-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40fdd80
commit 2b31eb2
Showing
4 changed files
with
186 additions
and
5 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
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,11 +1,64 @@ | ||
# [18.0.0-beta.7](https://github.com/SchweizerischeBundesbahnen/scion-workbench/compare/18.0.0-beta.6...18.0.0-beta.7) (2024-10-11) | ||
# [18.0.0-beta.8](https://github.com/SchweizerischeBundesbahnen/scion-workbench/compare/18.0.0-beta.7...18.0.0-beta.8) (2024-10-28) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* **workbench/dialog:** enable updating dialog properties in an Angular effect ([7da2418](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/7da24185e8cc94db2f45a31a6d367c190c5f4104)) | ||
* **workbench/view:** enable updating view properties in an Angular effect ([a7d3594](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/a7d3594193c31715ac5fcb5da2d8015e803bb0aa)) | ||
* **workbench:** position document root as required by `@scion/toolkit` ([0d2f6c2](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/0d2f6c2229d6c75f8271795b6e399affaa43eef1)) | ||
* **workbench/popup:** ensure the popup anchor not leaving view boundaries ([c629f49](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/c629f49f3ba520c2cd700a008e4ed0af1c86e01f)) | ||
* **workbench/view:** ensure view overlays align with view boundaries when view position changes ([2998295](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/29982951bf8290108d3b09104ebc456f3acb9f6c)) | ||
|
||
|
||
### Features | ||
|
||
* **workbench:** prevent tracking unwanted dependencies in effects ([7a7eaf8](https://github.com/SchweizerischeBundesbahnen/scion-workbench/commit/7a7eaf847f3ed54dcc7eeab300cbde53700b8e46)) | ||
|
||
|
||
### BREAKING CHANGES | ||
|
||
* **workbench:** SCION Workbench requires `@scion/toolkit` version `1.6.0` or later. | ||
* **workbench:** SCION Workbench requires `@scion/components` version `18.1.1` or later. | ||
* **workbench:** Calling following workbench methods in a reactive (tracking) context (e.g., `effect`) now throws an error. Migrate by using Angular's `untracked()` function. | ||
- `WorkbenchRouter.navigate` | ||
- `WorkbenchService.registerPerspective` | ||
- `WorkbenchService.switchPerspective` | ||
- `WorkbenchService.resetPerspective` | ||
- `WorkbenchService.closeViews` | ||
- `WorkbenchService.switchTheme` | ||
- `WorkbenchService.registerPartAction` | ||
- `WorkbenchService.registerViewMenuItem` | ||
- `WorkbenchLauncher.launch` | ||
- `WorkbenchDialogService.open` | ||
- `WorkbenchMessageBoxService.open` | ||
- `NotificationService.notify` | ||
- `PopupService.open` | ||
- `WorkbenchPart.activate` | ||
- `WorkbenchView.activate` | ||
- `WorkbenchView.close` | ||
- `WorkbenchView.move` | ||
- `WorkbenchView.registerMenuItem` | ||
- `WorkbenchDialog.close` | ||
- `Popup.close` | ||
|
||
**Migration Example** | ||
```ts | ||
import {effect, inject, untracked} from '@angular/core'; | ||
import {WorkbenchRouter} from '@scion/workbench'; | ||
|
||
const workbenchRouter = inject(WorkbenchRouter); | ||
|
||
// Before | ||
effect(() => { | ||
if (someSignal()) { | ||
workbenchRouter.navigate(['path/to/view']); | ||
} | ||
}); | ||
|
||
// After | ||
effect(() => { | ||
if (someSignal()) { | ||
untracked(() => workbenchRouter.navigate(['path/to/view'])); | ||
} | ||
}); | ||
``` | ||
|
||
|
||
|
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