Skip to content

Commit d0cf4f6

Browse files
authored
chore!: require RxJS >=7.2 (#271)
# Build - Pin dependencies - Match compatible minimum dependency versions - Remove `nx` dependency to fix Nx commands - Require RxJS >=7.2 to import operators from the primary entry point - Remove `tools` project # CI - Improve Nx scripts BREAKING CHANGE: Require RxJS >=7.2
1 parent 723c2e1 commit d0cf4f6

File tree

7 files changed

+455
-770
lines changed

7 files changed

+455
-770
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ jobs:
7575
with:
7676
name: ngworker-router-component-store
7777
path: dist/packages/router-component-store
78+
if-no-files-found: error
79+
retention-days: 7

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Required peer dependencies:
88

99
- Angular >=12.2
1010
- NgRx Component Store >=12.0
11-
- RxJS >=7.0
11+
- RxJS >=7.2
12+
- TypeScript >=4.3
1213

1314
Published with partial Ivy compilation.
1415

nx.json

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,32 @@
55
"defaultBase": "main"
66
},
77
"cli": {
8-
"defaultCollection": "@nrwl/angular"
8+
"defaultCollection": "@nrwl/angular",
9+
"packageManager": "yarn"
10+
},
11+
"implicitDependencies": {
12+
"package.json": {
13+
"dependencies": "*",
14+
"devDependencies": "*"
15+
},
16+
".eslintrc.json": "*"
917
},
1018
"tasksRunnerOptions": {
1119
"default": {
1220
"runner": "@nrwl/workspace/tasks-runners/default",
1321
"options": {
14-
"cacheableOperations": ["build", "lint", "test", "e2e"],
15-
"parallel": 1
22+
"cacheableOperations": ["build", "lint", "test", "e2e"]
1623
}
1724
}
1825
},
26+
"targetDependencies": {
27+
"build": [
28+
{
29+
"target": "build",
30+
"projects": "dependencies"
31+
}
32+
]
33+
},
1934
"generators": {
2035
"@nrwl/angular:application": {
2136
"style": "css",

package.json

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
"private": true,
44
"scripts": {
55
"postinstall": "node ./decorate-angular-cli.js && ngcc --properties es2015 browser module main",
6-
"build": "nx build",
7-
"lint": "nx workspace-lint && nx lint --max-warnings=0",
6+
"build": "nx run-many --target=build --all",
7+
"ci": "yarn lint && yarn test && yarn build",
8+
"lint": "nx workspace-lint && nx run-many --target=lint --all --max-warnings=0",
89
"nx": "nx",
9-
"test": "nx test"
10+
"test": "nx run-many --target=test --all"
1011
},
1112
"engines": {
1213
"node": "14.20.1",
@@ -17,56 +18,52 @@
1718
"yarn": "1.22.19"
1819
},
1920
"dependencies": {
20-
"@angular/animations": "^12.2.0",
21-
"@angular/common": "^12.2.0",
22-
"@angular/compiler": "^12.2.0",
23-
"@angular/core": "^12.2.0",
24-
"@angular/forms": "^12.2.0",
25-
"@angular/platform-browser": "^12.2.0",
26-
"@angular/platform-browser-dynamic": "^12.2.0",
27-
"@angular/router": "^12.2.0",
28-
"@ngrx/component-store": "^12.5.1",
29-
"@ngrx/router-store": "^12.5.1",
30-
"@ngrx/store": "^12.5.1",
31-
"@nrwl/angular": "^13.1.4",
32-
"rxjs": "^7.4.0",
33-
"tslib": "^2.0.0",
34-
"zone.js": "~0.11.4"
21+
"@angular/common": "12.2.0",
22+
"@angular/compiler": "12.2.0",
23+
"@angular/core": "12.2.0",
24+
"@angular/platform-browser": "12.2.0",
25+
"@angular/platform-browser-dynamic": "12.2.0",
26+
"@angular/router": "12.2.0",
27+
"@ngrx/component-store": "12.0.0",
28+
"@ngrx/router-store": "12.0.0",
29+
"@ngrx/store": "12.0.0",
30+
"@nrwl/angular": "13.1.4",
31+
"rxjs": "7.2.0",
32+
"tslib": "2.3.1",
33+
"zone.js": "0.11.4"
3534
},
3635
"devDependencies": {
37-
"@angular-devkit/build-angular": "~12.2.0",
38-
"@angular-eslint/eslint-plugin": "~12.3.0",
39-
"@angular-eslint/eslint-plugin-template": "~12.3.0",
40-
"@angular-eslint/template-parser": "~12.3.0",
41-
"@angular/cli": "^12.2.0",
42-
"@angular/compiler-cli": "^12.2.0",
43-
"@angular/language-service": "^12.2.0",
36+
"@angular-devkit/build-angular": "12.2.0",
37+
"@angular-eslint/eslint-plugin": "12.3.0",
38+
"@angular-eslint/eslint-plugin-template": "12.3.0",
39+
"@angular-eslint/template-parser": "12.3.0",
40+
"@angular/cli": "12.2.0",
41+
"@angular/compiler-cli": "12.2.0",
42+
"@angular/language-service": "12.2.0",
4443
"@nrwl/cli": "13.1.4",
4544
"@nrwl/cypress": "13.1.4",
4645
"@nrwl/eslint-plugin-nx": "13.1.4",
4746
"@nrwl/jest": "13.1.4",
4847
"@nrwl/linter": "13.1.4",
4948
"@nrwl/tao": "13.1.4",
5049
"@nrwl/workspace": "13.1.4",
51-
"@schematics/angular": "12.2.0",
5250
"@types/jest": "27.0.2",
5351
"@types/node": "14.14.33",
54-
"@typescript-eslint/eslint-plugin": "~4.33.0",
55-
"@typescript-eslint/parser": "^5.3.1",
56-
"cypress": "^8.3.0",
52+
"@typescript-eslint/eslint-plugin": "4.33.0",
53+
"@typescript-eslint/parser": "4.33.0",
54+
"cypress": "8.7.0",
5755
"eslint": "7.32.0",
5856
"eslint-config-prettier": "8.1.0",
5957
"eslint-plugin-ngrx": "^1.46.3",
6058
"jest": "27.2.3",
6159
"jest-preset-angular": "10.0.1",
62-
"ng-packagr": "^12.1.1",
63-
"nx": "13.1.4",
64-
"postcss": "^8.3.9",
65-
"postcss-import": "^14.0.2",
66-
"postcss-preset-env": "^6.7.0",
67-
"postcss-url": "^10.1.1",
68-
"prettier": "^2.3.1",
60+
"ng-packagr": "12.2.7",
61+
"postcss": "8.4.18",
62+
"postcss-import": "14.1.0",
63+
"postcss-preset-env": "6.7.0",
64+
"postcss-url": "10.1.3",
65+
"prettier": "2.7.1",
6966
"ts-jest": "27.0.5",
70-
"typescript": "~4.3.5"
67+
"typescript": "4.3.5"
7168
}
7269
}

tools/project.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

workspace.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"version": 2,
33
"projects": {
4-
"router-component-store": "packages/router-component-store",
5-
"tools": "tools"
4+
"router-component-store": "packages/router-component-store"
65
}
76
}

0 commit comments

Comments
 (0)