Skip to content

Commit 612437d

Browse files
timdeschryverbrandonroberts
authored andcommitted
chore: update v19 dependencies
1 parent 02aab0f commit 612437d

File tree

29 files changed

+167
-48
lines changed

29 files changed

+167
-48
lines changed

CHANGELOG.md

+87
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
<a name="19.0.0-beta.0""></a>
2+
3+
# [19.0.0-beta.0"](https://github.com/ngrx/platform/compare/18.1.1...19.0.0-beta.0") (2024-11-20)
4+
5+
### Features
6+
7+
- **schematics:** change standalone default to true for components ([#4569](https://github.com/ngrx/platform/issues/4569)) ([c7d0ce6](https://github.com/ngrx/platform/commit/c7d0ce6))
8+
- **signals:** rename `rxMethod.unsubscribe` to `destroy` ([#4584](https://github.com/ngrx/platform/issues/4584)) ([57ad5c5](https://github.com/ngrx/platform/commit/57ad5c5))
9+
- **signals:** throw error in dev mode on state mutation ([#4526](https://github.com/ngrx/platform/issues/4526)) ([7a84209](https://github.com/ngrx/platform/commit/7a84209))
10+
11+
### BREAKING CHANGES
12+
13+
- **signals:** The `signalState`/`signalStore` state object is frozen in development mode.
14+
If a mutable change occurs to the state object, an error will be thrown.
15+
16+
BEFORE:
17+
18+
```ts
19+
const userState = signalState(initialState);
20+
patchState(userState, (state) => {
21+
state.user.firstName = 'mutable change'; // mutable change which went through
22+
return state;
23+
});
24+
```
25+
26+
AFTER:
27+
28+
```ts
29+
const userState = signalState(initialState);
30+
patchState(userState, (state) => {
31+
state.user.firstName = 'mutable change'; // throws in dev mode
32+
return state;
33+
});
34+
```
35+
36+
- **signals:** The `unsubscribe` method from `rxMethod` is renamed to `destroy`.
37+
38+
BEFORE:
39+
40+
```ts
41+
const logNumber = rxMethod<number>(tap(console.log));
42+
43+
const num1Ref = logNumber(interval(1_000));
44+
const num2Ref = logNumber(interval(2_000));
45+
46+
// destroy `num1Ref` after 2 seconds
47+
setTimeout(() => num1Ref.unsubscribe(), 2_000);
48+
49+
// destroy all reactive method refs after 5 seconds
50+
setTimeout(() => logNumber.unsubscribe(), 5_000);
51+
```
52+
53+
AFTER:
54+
55+
```ts
56+
const logNumber = rxMethod<number>(tap(console.log));
57+
58+
const num1Ref = logNumber(interval(1_000));
59+
const num2Ref = logNumber(interval(2_000));
60+
61+
// destroy `num1Ref` after 2 seconds
62+
setTimeout(() => num1Ref.destroy(), 2_000);
63+
64+
// destroy all reactive method refs after 5 seconds
65+
setTimeout(() => logNumber.destroy(), 5_000);
66+
```
67+
68+
- **schematics:** The default setting for generating components using schematics is updated.
69+
70+
BEFORE:
71+
72+
The default setting for generating components using schematics does not use standalone components.
73+
74+
AFTER:
75+
76+
The default setting for generating components using schematics uses standalone components.
77+
78+
- The minimum required version of Angular has been updated.
79+
80+
BEFORE:
81+
82+
The minimum required version is Angular 18.x
83+
84+
AFTER:
85+
86+
The minimum required version is Angular 19.x
87+
188
<a name="18.1.1"></a>
289

390
## [18.1.1](https://github.com/ngrx/platform/compare/18.1.0...18.1.1) (2024-10-29)

MIGRATION.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
# V18 Migration guide
1+
# V19 Migration guide
22

3-
This document has been moved to https://ngrx.io/guide/migration/v18.
3+
This document has been moved to https://ngrx.io/guide/migration/v19.

modules/component-store/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/component-store",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Reactive store for component state",
55
"repository": {
66
"type": "git",
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/ngrx/platform#readme",
2424
"peerDependencies": {
25-
"@angular/core": "^18.0.0",
25+
"@angular/core": "^19.0.0",
2626
"rxjs": "^6.5.3 || ^7.5.0"
2727
},
2828
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/component/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/component",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Reactive Extensions for Angular Components",
55
"repository": {
66
"type": "git",
@@ -20,8 +20,8 @@
2020
},
2121
"homepage": "https://github.com/ngrx/platform#readme",
2222
"peerDependencies": {
23-
"@angular/common": "^18.0.0",
24-
"@angular/core": "^18.0.0",
23+
"@angular/common": "^19.0.0",
24+
"@angular/core": "^19.0.0",
2525
"rxjs": "^6.5.3 || ^7.5.0"
2626
},
2727
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/data/package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/data",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "API management for NgRx",
55
"repository": {
66
"type": "git",
@@ -20,11 +20,11 @@
2020
},
2121
"homepage": "https://github.com/ngrx/platform#readme",
2222
"peerDependencies": {
23-
"@angular/common": "^18.0.0",
24-
"@angular/core": "^18.0.0",
25-
"@ngrx/store": "18.1.1",
26-
"@ngrx/effects": "18.1.1",
27-
"@ngrx/entity": "18.1.1",
23+
"@angular/common": "^19.0.0",
24+
"@angular/core": "^19.0.0",
25+
"@ngrx/store": "19.0.0-beta.0",
26+
"@ngrx/effects": "19.0.0-beta.0",
27+
"@ngrx/entity": "19.0.0-beta.0",
2828
"rxjs": "^6.5.3 || ^7.5.0"
2929
},
3030
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/effects/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/effects",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Side effect model for @ngrx/store",
55
"repository": {
66
"type": "git",
@@ -21,8 +21,8 @@
2121
},
2222
"homepage": "https://github.com/ngrx/platform#readme",
2323
"peerDependencies": {
24-
"@angular/core": "^18.0.0",
25-
"@ngrx/store": "18.1.1",
24+
"@angular/core": "^19.0.0",
25+
"@ngrx/store": "19.0.0-beta.0",
2626
"rxjs": "^6.5.3 || ^7.5.0"
2727
},
2828
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/entity/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/entity",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Common utilities for entity reducers",
55
"repository": {
66
"type": "git",
@@ -20,8 +20,8 @@
2020
},
2121
"homepage": "https://github.com/ngrx/platform#readme",
2222
"peerDependencies": {
23-
"@angular/core": "^18.0.0",
24-
"@ngrx/store": "18.1.1",
23+
"@angular/core": "^19.0.0",
24+
"@ngrx/store": "19.0.0-beta.0",
2525
"rxjs": "^6.5.3 || ^7.5.0"
2626
},
2727
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/eslint-plugin/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/eslint-plugin",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "NgRx ESLint Plugin",
55
"repository": {
66
"type": "git",

modules/operators/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/operators",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Shared RxJS Operators for NgRx libraries",
55
"repository": {
66
"type": "git",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/router-store/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/router-store",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Bindings to connect @angular/router to @ngrx/store",
55
"repository": {
66
"type": "git",
@@ -20,10 +20,10 @@
2020
},
2121
"homepage": "https://github.com/ngrx/platform#readme",
2222
"peerDependencies": {
23-
"@angular/common": "^18.0.0",
24-
"@angular/core": "^18.0.0",
25-
"@angular/router": "^18.0.0",
26-
"@ngrx/store": "18.1.1",
23+
"@angular/common": "^19.0.0",
24+
"@angular/core": "^19.0.0",
25+
"@angular/router": "^19.0.0",
26+
"@ngrx/store": "19.0.0-beta.0",
2727
"rxjs": "^6.5.3 || ^7.5.0"
2828
},
2929
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/schematics/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/schematics",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "NgRx Schematics for Angular",
55
"repository": {
66
"type": "git",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/signals/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/signals",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Reactive Store and Set of Utilities for Angular Signals",
55
"repository": {
66
"type": "git",
@@ -21,7 +21,7 @@
2121
},
2222
"homepage": "https://github.com/ngrx/platform#readme",
2323
"peerDependencies": {
24-
"@angular/core": "^18.0.0",
24+
"@angular/core": "^19.0.0",
2525
"rxjs": "^6.5.3 || ^7.4.0"
2626
},
2727
"peerDependenciesMeta": {
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/store-devtools/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/store-devtools",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "Developer tools for @ngrx/store",
55
"repository": {
66
"type": "git",
@@ -20,8 +20,8 @@
2020
},
2121
"homepage": "https://github.com/ngrx/platform#readme",
2222
"peerDependencies": {
23-
"@angular/core": "^18.0.0",
24-
"@ngrx/store": "18.1.1",
23+
"@angular/core": "^19.0.0",
24+
"@ngrx/store": "19.0.0-beta.0",
2525
"rxjs": "^6.5.3 || ^7.5.0"
2626
},
2727
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

modules/store/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/store",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "RxJS powered Redux for Angular apps",
55
"repository": {
66
"type": "git",
@@ -21,7 +21,7 @@
2121
},
2222
"homepage": "https://github.com/ngrx/platform#readme",
2323
"peerDependencies": {
24-
"@angular/core": "^18.0.0",
24+
"@angular/core": "^19.0.0",
2525
"rxjs": "^6.5.3 || ^7.5.0"
2626
},
2727
"schematics": "./schematics/collection.json",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const platformVersion = '^18.1.1';
1+
export const platformVersion = '^19.0.0-beta.0';

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ngrx/platform",
3-
"version": "18.1.1",
3+
"version": "19.0.0-beta.0",
44
"description": "monorepo for ngrx development",
55
"scripts": {
66
"ng": "ng",
@@ -17,7 +17,7 @@
1717
"copy:schematics": "ts-node ./build/copy-schematics-core.ts",
1818
"schematics:check": "git diff --name-only --exit-code ./modules",
1919
"build:stackblitz": "ts-node ./build/stackblitz.ts && git add ./stackblitz.html",
20-
"publish:next": "ts-node ./build/publish",
20+
"publish:next": "ts-node ./build/publish-rc.1",
2121
"publish:latest": "ts-node ./build/publish-latest.ts",
2222
"nx": "nx",
2323
"update": "nx migrate latest",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# V19 Update Guide
2+
3+
## Angular CLI update
4+
5+
NgRx supports using the Angular CLI `ng update` command to update your dependencies. Migration schematics are run to make the upgrade smoother. These schematics will fix some of the breaking changes.
6+
7+
To update your packages to the latest released version, run the command below.
8+
9+
```sh
10+
ng update @ngrx/store@19
11+
```
12+
13+
## Dependencies
14+
15+
Version 19 has the minimum version requirements:
16+
17+
- Angular version 19.x
18+
- Angular CLI version 19.x
19+
- TypeScript version 5.6.x
20+
- RxJS version ^6.5.x || ^7.5.0
21+
22+
## Breaking changes
23+
24+
TODO

projects/ngrx.io/content/navigation.json

+8
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,10 @@
568568
{
569569
"title": "Migrations",
570570
"children": [
571+
{
572+
"title": "V19",
573+
"url": "guide/migration/v19"
574+
},
571575
{
572576
"title": "V18",
573577
"url": "guide/migration/v18"
@@ -721,6 +725,10 @@
721725
}
722726
],
723727
"docVersions": [
728+
{
729+
"title": "v18",
730+
"url": "https://v18.ngrx.io"
731+
},
724732
{
725733
"title": "v17",
726734
"url": "https://v17.ngrx.io"

0 commit comments

Comments
 (0)