-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update module provider behavior (#913)
* fix(module): change behavior of `BaseModuleProvider` * fix(module-navigation): move functionality from init to constructor
- Loading branch information
Showing
8 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
'@equinor/fusion-framework-module-navigation': patch | ||
--- | ||
|
||
__Change init of NavigationProvider__ | ||
|
||
moved the init to constructor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
'@equinor/fusion-framework-module': patch | ||
--- | ||
|
||
__Change base behavior of BaseModuleProvider__ | ||
|
||
because of weird limitations of JavaScript, private fields are not accessible until all constructors are initialized (from ancestor to current child). | ||
This causes the `abstract` init function could not access private members when overridden. | ||
|
||
* __removed__ `init` from `BaseModuleProvider` | ||
- _this is a breaking change, but not yet published, yet the `patch` version_ | ||
- https://github.com/equinor/fusion-framework/blob/43854d9538ade189483c43e04b52eff7e1aa3b0c/packages/modules/module/src/lib/provider/BaseModuleProvider.ts#L31 | ||
* __added__ `provider` sub-scope for package | ||
|
||
> The usage when extending `BaseModuleProvider` is not as 😘, but now works |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export * from './provider'; | ||
export { IModuleProvider } from './provider'; | ||
export { SemanticVersion } from './semantic-version'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
export type { IModuleProvider } from './IModuleProvider'; | ||
export { BaseModuleProvider } from './BaseModuleProvider'; | ||
export { BaseModuleProvider, BaseModuleProviderCtorArgs } from './BaseModuleProvider'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters