Skip to content

Commit 38f0cd7

Browse files
chore: release 21.0.0-beta.0 (#5039)
1 parent d6a2c56 commit 38f0cd7

5 files changed

Lines changed: 77 additions & 16 deletions

File tree

CHANGELOG.md

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,57 @@
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+
155
<a name="20.1.0"></a>
256

357
# [20.1.0](https://github.com/ngrx/platform/compare/20.0.1...20.1.0) (2025-10-22)

projects/www/src/app/reference/api-report.min.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,6 +862,7 @@
862862
"symbolNames": [
863863
"addEntities",
864864
"addEntity",
865+
"EntityChanges",
865866
"entityConfig",
866867
"EntityId",
867868
"EntityMap",
@@ -898,6 +899,12 @@
898899
"canonicalReference": "@ngrx/signals/entities!addEntity:function",
899900
"isDeprecated": false
900901
},
902+
"EntityChanges": {
903+
"kind": "TypeAlias",
904+
"name": "EntityChanges",
905+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type",
906+
"isDeprecated": false
907+
},
901908
"entityConfig": {
902909
"kind": "Function",
903910
"name": "entityConfig",

projects/www/src/app/reference/signals/entities/updateAllEntities.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
{
5656
"kind": "Reference",
5757
"text": "EntityChanges",
58-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
58+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
5959
},
6060
{
6161
"kind": "Content",
@@ -252,7 +252,7 @@
252252
{
253253
"kind": "Reference",
254254
"text": "EntityChanges",
255-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
255+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
256256
},
257257
{
258258
"kind": "Content",
@@ -384,7 +384,7 @@
384384
{
385385
"kind": "Reference",
386386
"text": "EntityChanges",
387-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
387+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
388388
},
389389
{
390390
"kind": "Content",
@@ -538,7 +538,7 @@
538538
{
539539
"kind": "Reference",
540540
"text": "EntityChanges",
541-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
541+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
542542
},
543543
{
544544
"kind": "Content",

projects/www/src/app/reference/signals/entities/updateEntities.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{
6969
"kind": "Reference",
7070
"text": "EntityChanges",
71-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
71+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
7272
},
7373
{
7474
"kind": "Content",
@@ -269,7 +269,7 @@
269269
{
270270
"kind": "Reference",
271271
"text": "EntityChanges",
272-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
272+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
273273
},
274274
{
275275
"kind": "Content",
@@ -479,7 +479,7 @@
479479
{
480480
"kind": "Reference",
481481
"text": "EntityChanges",
482-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
482+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
483483
},
484484
{
485485
"kind": "Content",
@@ -671,7 +671,7 @@
671671
{
672672
"kind": "Reference",
673673
"text": "EntityChanges",
674-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
674+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
675675
},
676676
{
677677
"kind": "Content",
@@ -816,7 +816,7 @@
816816
{
817817
"kind": "Reference",
818818
"text": "EntityChanges",
819-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
819+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
820820
},
821821
{
822822
"kind": "Content",
@@ -966,7 +966,7 @@
966966
{
967967
"kind": "Reference",
968968
"text": "EntityChanges",
969-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
969+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
970970
},
971971
{
972972
"kind": "Content",
@@ -1133,7 +1133,7 @@
11331133
{
11341134
"kind": "Reference",
11351135
"text": "EntityChanges",
1136-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
1136+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
11371137
},
11381138
{
11391139
"kind": "Content",
@@ -1266,7 +1266,7 @@
12661266
{
12671267
"kind": "Reference",
12681268
"text": "EntityChanges",
1269-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
1269+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
12701270
},
12711271
{
12721272
"kind": "Content",

projects/www/src/app/reference/signals/entities/updateEntity.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
{
6969
"kind": "Reference",
7070
"text": "EntityChanges",
71-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
71+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
7272
},
7373
{
7474
"kind": "Content",
@@ -278,7 +278,7 @@
278278
{
279279
"kind": "Reference",
280280
"text": "EntityChanges",
281-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
281+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
282282
},
283283
{
284284
"kind": "Content",
@@ -423,7 +423,7 @@
423423
{
424424
"kind": "Reference",
425425
"text": "EntityChanges",
426-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
426+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
427427
},
428428
{
429429
"kind": "Content",
@@ -590,7 +590,7 @@
590590
{
591591
"kind": "Reference",
592592
"text": "EntityChanges",
593-
"canonicalReference": "@ngrx/signals/entities!~EntityChanges:type"
593+
"canonicalReference": "@ngrx/signals/entities!EntityChanges:type"
594594
},
595595
{
596596
"kind": "Content",

0 commit comments

Comments
 (0)