Releases: SchweizerischeBundesbahnen/scion-workbench
14.0.0-beta.9 (@scion/workbench)
14.0.0-beta.9 (2023-01-31)
Bug Fixes
- workbench/messagebox: fix registration of MessageBoxService in root injector (47beed6)
14.0.0-beta.8 (@scion/workbench)
14.0.0-beta.8 (2022-12-21)
Bug Fixes
- workbench/popup: attach popup to the DOM even if the view is inactive (24d7d7c)
- workbench/popup: do not provide popup config for injection (1656679)
Features
Dependencies
- workbench/host: update
@scion/microfrontend-platform
to version1.0.0-rc.12
(1f674fa)
1.0.0-beta.16 (@scion/workbench-client)
1.0.0-beta.16 (2022-12-21)
Features
Dependencies
- workbench-client: update
@scion/microfrontend-platform
to version1.0.0-rc.12
(1f674fa)
BREAKING CHANGES
-
workbench-client: Updating
@scion/microfrontend-platform
to version1.0.0-rc.12
introduced a breaking change.More information on how to migrate can be found in the changelog of the SCION Microfrontend Platform.
14.0.0-beta.7 (@scion/workbench)
14.0.0-beta.7 (2022-12-07)
Bug Fixes
- workbench/host: destroy SCION Microfrontend Platform when destroying the Angular platform (2f62e66)
- workbench/host: dispose view-related command handlers on platform shutdown (f784a28)
- workbench/host: fix zone synchronization when displaying a notification outside of the Angular zone (db78df0)
- workbench/host: fix zone synchronization when opening a message box outside of the Angular zone (d4e70fe)
- workbench/host: inject initializers provided under
MICROFRONTEND_PLATFORM_POST_STARTUP
DI token in the Angular zone (2581190) - workbench/host: provide
WorkbenchNotificationService
for injection (ee89380) - workbench/host: register application-specific messaging interceptors before workbench/platform interceptors (3204973)
- workbench/host: retain focus on element that closed popup due to loss of focus (29c82bf)
Dependencies
- workbench/host: update
@scion/microfrontend-platform
to version1.0.0-rc.11
(34fec1d)
BREAKING CHANGES
-
workbench/host: Updating
@scion/microfrontend-platform
to version1.0.0-rc.11
introduced a breaking change.More information on how to migrate can be found in the changelog of the SCION Microfrontend Platform.
1.0.0-beta.15 (@scion/workbench-client)
1.0.0-beta.15 (2022-12-07)
Bug Fixes
- workbench-client: do not focus nested microfrontend in a popup (9293464)
Dependencies
- workbench-client: update
@scion/microfrontend-platform
to version1.0.0-rc.11
(34fec1d)
Features
- workbench-client: enable Observables of
WorkbenchView
to emit in the correct context (ec0d808)
BREAKING CHANGES
-
workbench-client: Updating
@scion/microfrontend-platform
to version1.0.0-rc.11
introduced a breaking change.More information on how to migrate can be found in the changelog of the SCION Microfrontend Platform.
For Angular applications, we strongly recommend replacing zone-specific decorators for
MessageClient
andIntentClient
with anObservableDecorator
. Otherwise, you may experience performance degradation due to frequent change detection cycles.To migrate:
- Remove decorators for
MessageClient
andIntentClient
, including their registration in the bean manager (e.g.,NgZoneMessageClientDecorator
andNgZoneIntentClientDecorator
). - Provide a
NgZoneObservableDecorator
and register it in the bean manager before starting the platform. Note to register it as a bean, not as a decorator.
Example of an
ObservableDecorator
for Angular Applicationsexport class NgZoneObservableDecorator implements ObservableDecorator { constructor(private zone: NgZone) { } public decorate$<T>(source$: Observable<T>): Observable<T> { return new Observable<T>(observer => { const insideAngular = NgZone.isInAngularZone(); const subscription = source$ .pipe( subscribeInside(fn => this.zone.runOutsideAngular(fn)), observeInside(fn => insideAngular ? this.zone.run(fn) : this.zone.runOutsideAngular(fn)), ) .subscribe(observer); return () => subscription.unsubscribe(); }); } }
Example of Registering an
ObservableDecorator
in Angular Applicationsconst zone: NgZone = ...; // Register decorator Beans.register(ObservableDecorator, {useValue: new NgZoneObservableDecorator(zone)}); // Connect to the host zone.runOutsideAngular(() => WorkbenchClient.connect(...));
- Remove decorators for
14.0.0-beta.6 (@scion/workbench)
14.0.0-beta.6 (2022-11-09)
Bug Fixes
- workbench: resolve view-related data for views that are child of component-less routes (2fb8ae9), closes #357
Features
- workbench/host: provide lifecycle hook invoked before starting the microfrontend platform (0ee9982)
Dependencies
- workbench/host: update
@scion/microfrontend-platform
to version1.0.0-rc.10
(966ec41)
1.0.0-beta.14 (@scion/workbench-client)
1.0.0-beta.14 (2022-11-09)
Features
- workbench-client/router: support named parameters in title/heading of view capability (98f4bbd)
14.0.0-beta.5 (@scion/workbench)
14.0.0-beta.5 (2022-10-13)
Bug Fixes
- workbench-client/router: set title/heading as passed to navigation (f182859)
Features
- workbench-client/router: support named parameters in title/heading of view capability (98f4bbd)
14.0.0-beta.4 (@scion/workbench)
14.0.0-beta.4 (2022-10-11)
Bug Fixes
- workbench/view: display title/heading of a view as specified in the constructor of the view (74db341)
Features
1.0.0-beta.13 (@scion/workbench-client)
1.0.0-beta.13 (2022-10-11)
Features
- workbench-client/popup: add 'referrer' to popup handle to provide information about the calling context (920d831)