Skip to content

Commit 6a42966

Browse files
committed
feat: ugrade to Angular 22-next
BREAKING CHANGES: The minimum required version of Angular has been updated. BEFORE: The minimum required version is Angular 21.x AFTER: The minimum required version is Angular 22.x
1 parent a469cbf commit 6a42966

123 files changed

Lines changed: 3918 additions & 2069 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

modules/component-store/ng-package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/modules/component-store",
4-
"assets": ["migrations/**/*.json", "schematics/**/*.json", "**/files/**/*"],
4+
"assets": [
5+
"migrations/**/*.json",
6+
"schematics/**/*.json",
7+
"schematics-core/**/*.json",
8+
"**/files/**/*"
9+
],
510
"allowedNonPeerDependencies": ["@ngrx/operators"],
611
"lib": {
712
"entryFile": "index.ts"

modules/component-store/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"homepage": "https://github.com/ngrx/platform#readme",
2424
"peerDependencies": {
25-
"@angular/core": "^21.0.0",
25+
"@angular/core": "^22.0.0-next.0",
2626
"rxjs": "^6.5.3 || ^7.5.0"
2727
},
2828
"schematics": "./schematics/collection.json",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"module": "commonjs"
3+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

modules/component-store/spec/integration.spec.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { Component, Type, Injectable } from '@angular/core';
1+
import {
2+
Component,
3+
Type,
4+
Injectable,
5+
ChangeDetectionStrategy,
6+
} from '@angular/core';
27
import { ComponentStore } from '../src';
38
import {
49
TestBed,
@@ -206,6 +211,7 @@ describe('ComponentStore integration', () => {
206211
<child></child>
207212
}`,
208213
standalone: false,
214+
changeDetection: ChangeDetectionStrategy.Eager,
209215
})
210216
class ParentComponent implements Parent {
211217
isChildVisible = true;

modules/component-store/tsconfig.build.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"noImplicitAny": true,
1111
"noImplicitReturns": true,
1212
"downlevelIteration": true,
13+
"ignoreDeprecations": "6.0",
1314
"outDir": "../../dist/modules/component-store",
1415
"paths": {
1516
"@ngrx/operators": ["./dist/modules/operators"]

modules/component-store/tsconfig.schematics.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"target": "es2022",
99
"moduleResolution": "nodenext",
1010
"downlevelIteration": true,
11+
"ignoreDeprecations": "6.0",
1112
"outDir": "../../dist/modules/component-store",
1213
"paths": {
1314
"@ngrx/component-store/schematics-core": ["./schematics-core"],
@@ -17,7 +18,8 @@
1718
"inlineSources": true,
1819
"lib": ["ES2022", "dom"],
1920
"skipLibCheck": true,
20-
"strict": true
21+
"strict": true,
22+
"types": ["node"]
2123
},
2224
"include": ["migrations/**/*.ts", "schematics/**/*.ts"],
2325
"exclude": ["**/*.spec.ts"],
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "commonjs"
3+
}

modules/component/ng-package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
{
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/modules/component",
4-
"assets": ["migrations/**/*.json", "schematics/**/*.json", "**/files/**/*"],
4+
"assets": [
5+
"migrations/**/*.json",
6+
"schematics/**/*.json",
7+
"schematics-core/**/*.json",
8+
"**/files/**/*"
9+
],
510
"lib": {
611
"entryFile": "index.ts"
712
}

0 commit comments

Comments
 (0)