|
| 1 | +<a name="21.0.0-beta.0"></a> |
| 2 | + |
| 3 | +# [21.0.0-beta.0](https://github.com/ngrx/platform/compare/20.0.1...21.0.0-beta.0) (2025-12-04) |
| 4 | + |
| 5 | +### Bug Fixes |
| 6 | + |
| 7 | +- **eslint-plugin:** only lint NgRx selectors in prefix-selectors-with-select ([#4995](https://github.com/ngrx/platform/issues/4995)) ([568dbe3](https://github.com/ngrx/platform/commit/568dbe3)), closes [#4447](https://github.com/ngrx/platform/issues/4447) |
| 8 | +- **signals:** drop `assertInInjectionContext` in production ([#4954](https://github.com/ngrx/platform/issues/4954)) ([37e6fa1](https://github.com/ngrx/platform/commit/37e6fa1)) |
| 9 | +- **signals:** drop `assertUniqueStoreMembers` in production ([#4953](https://github.com/ngrx/platform/issues/4953)) ([b4edd95](https://github.com/ngrx/platform/commit/b4edd95)) |
| 10 | +- **signals:** remove symbol descriptions from prod bundle ([#4979](https://github.com/ngrx/platform/issues/4979)) ([05cfb03](https://github.com/ngrx/platform/commit/05cfb03)) |
| 11 | + |
| 12 | +### Features |
| 13 | + |
| 14 | +- **eslint-plugin:** enhance prefix-selectors-with-select to handle destructuring ([#4926](https://github.com/ngrx/platform/issues/4926)) ([bc89544](https://github.com/ngrx/platform/commit/bc89544)) |
| 15 | +- **eslint-plugin:** split required typechecking configs ([#5002](https://github.com/ngrx/platform/issues/5002)) ([c1f4fc5](https://github.com/ngrx/platform/commit/c1f4fc5)) |
| 16 | +- **signals:** add ability to provide SignalStore at the platform level ([#4964](https://github.com/ngrx/platform/issues/4964)) ([835014b](https://github.com/ngrx/platform/commit/835014b)), closes [#4963](https://github.com/ngrx/platform/issues/4963) |
| 17 | +- **signals:** add EntityChanges type to public API ([#5014](https://github.com/ngrx/platform/issues/5014)) ([76e4dc6](https://github.com/ngrx/platform/commit/76e4dc6)), closes [#5012](https://github.com/ngrx/platform/issues/5012) |
| 18 | +- **signals:** add migration schematic to rename withEffects to withEventHandlers ([#5032](https://github.com/ngrx/platform/issues/5032)) ([d6a2c56](https://github.com/ngrx/platform/commit/d6a2c56)), closes [#5010](https://github.com/ngrx/platform/issues/5010) |
| 19 | +- **signals:** allow computation fn to be provided to `signalMethod` and `rxMethod` ([#4996](https://github.com/ngrx/platform/issues/4996)) ([eea69d7](https://github.com/ngrx/platform/commit/eea69d7)), closes [#4986](https://github.com/ngrx/platform/issues/4986) |
| 20 | +- **signals:** allow returning an array of observables from withEffects ([#5008](https://github.com/ngrx/platform/issues/5008)) ([8994d92](https://github.com/ngrx/platform/commit/8994d92)) |
| 21 | +- **signals:** provide Dispatcher and Events at the platform level ([#4978](https://github.com/ngrx/platform/issues/4978)) ([0722ddb](https://github.com/ngrx/platform/commit/0722ddb)) |
| 22 | +- **signals:** provide support for scoped events ([#4997](https://github.com/ngrx/platform/issues/4997)) ([c719d19](https://github.com/ngrx/platform/commit/c719d19)), closes [#4776](https://github.com/ngrx/platform/issues/4776) |
| 23 | +- **signals:** rename withEffects to withEventHandlers ([#5009](https://github.com/ngrx/platform/issues/5009)) ([3aa64ae](https://github.com/ngrx/platform/commit/3aa64ae)) |
| 24 | + |
| 25 | +### BREAKING CHANGES |
| 26 | + |
| 27 | +- **signals:** The withEffects feature from @ngrx/signals/events plugin is renamed to withEventHandlers. |
| 28 | + |
| 29 | +BEFORE: |
| 30 | + |
| 31 | +import { withEffects } from '@ngrx/signals/events'; |
| 32 | + |
| 33 | +export const CounterStore = signalStore( |
| 34 | +withState({ count: 0 }), |
| 35 | +withEffects((store, events = inject(Events)) => ({ |
| 36 | +logCount$: events.on(increment).pipe( |
| 37 | +tap(() => console.log(store.count())) |
| 38 | +), |
| 39 | +})) |
| 40 | +); |
| 41 | + |
| 42 | +AFTER: |
| 43 | + |
| 44 | +import { withEventHandlers } from '@ngrx/signals/events'; |
| 45 | + |
| 46 | +export const CounterStore = signalStore( |
| 47 | +withState({ count: 0 }), |
| 48 | +withEventHandlers((store, events = inject(Events)) => ({ |
| 49 | +logCount$: events.on(increment).pipe( |
| 50 | +tap(() => console.log(store.count())) |
| 51 | +), |
| 52 | +})) |
| 53 | +); |
| 54 | + |
1 | 55 | <a name="20.1.0"></a> |
2 | 56 |
|
3 | 57 | # [20.1.0](https://github.com/ngrx/platform/compare/20.0.1...20.1.0) (2025-10-22) |
|
0 commit comments