Skip to content

Commit

Permalink
feat: update to Angular v16.0.0-next.6 release (#3831)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonroberts authored Apr 6, 2023
1 parent e50126d commit d7e03df
Show file tree
Hide file tree
Showing 30 changed files with 343 additions and 657 deletions.
4 changes: 2 additions & 2 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# V15 Migration guide
# V16 Migration guide

This document has been moved to https://ngrx.io/guide/migration/v15.
This document has been moved to https://ngrx.io/guide/migration/v16.
4 changes: 2 additions & 2 deletions modules/component-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component-store",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Reactive store for component state",
"repository": {
"type": "git",
Expand All @@ -22,7 +22,7 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@angular/core": "^16.0.0-next.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/component-store/src/component-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,8 @@ export class ComponentStore<T extends object> implements OnDestroy {
(projector
? map((projectorArgs) =>
// projectorArgs could be an Array in case where the entire state is an Array, so adding this check
observablesOrSelectorsObject.length > 0 &&
Array.isArray(projectorArgs)
(observablesOrSelectorsObject as Observable<unknown>[]).length >
0 && Array.isArray(projectorArgs)
? projector(...projectorArgs)
: projector(projectorArgs)
)
Expand Down
6 changes: 3 additions & 3 deletions modules/component/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/component",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Reactive Extensions for Angular Components",
"repository": {
"type": "git",
Expand All @@ -20,8 +20,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/common": "^16.0.0-next.0",
"@angular/core": "^16.0.0-next.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/component/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
12 changes: 6 additions & 6 deletions modules/data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/data",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "API management for NgRx",
"repository": {
"type": "git",
Expand All @@ -20,11 +20,11 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@ngrx/store": "15.4.0",
"@ngrx/effects": "15.4.0",
"@ngrx/entity": "15.4.0",
"@angular/common": "^16.0.0-next.0",
"@angular/core": "^16.0.0-next.0",
"@ngrx/store": "16.0.0-beta.0",
"@ngrx/effects": "16.0.0-beta.0",
"@ngrx/entity": "16.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/data/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
6 changes: 3 additions & 3 deletions modules/effects/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/effects",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Side effect model for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -21,8 +21,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@ngrx/store": "15.4.0",
"@angular/core": "^16.0.0-next.0",
"@ngrx/store": "16.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/effects/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
6 changes: 3 additions & 3 deletions modules/entity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/entity",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Common utilities for entity reducers",
"repository": {
"type": "git",
Expand All @@ -20,8 +20,8 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@ngrx/store": "15.4.0",
"@angular/core": "^16.0.0-next.0",
"@ngrx/store": "16.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/entity/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
2 changes: 1 addition & 1 deletion modules/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/eslint-plugin",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "NgRx ESLint Plugin",
"repository": {
"type": "git",
Expand Down
10 changes: 5 additions & 5 deletions modules/router-store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/router-store",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Bindings to connect @angular/router to @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -20,10 +20,10 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/common": "^15.0.0",
"@angular/core": "^15.0.0",
"@angular/router": "^15.0.0",
"@ngrx/store": "15.4.0",
"@angular/common": "^16.0.0-next.0",
"@angular/core": "^16.0.0-next.0",
"@angular/router": "^16.0.0-next.0",
"@ngrx/store": "16.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
44 changes: 19 additions & 25 deletions modules/schematics-core/testing/create-workspace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,31 +37,25 @@ export async function createWorkspace(
appOptions = defaultAppOptions,
libOptions = defaultLibOptions
) {
appTree = await schematicRunner
.runExternalSchematicAsync(
'@schematics/angular',
'workspace',
workspaceOptions
)
.toPromise();

appTree = await schematicRunner
.runExternalSchematicAsync(
'@schematics/angular',
'application',
appOptions,
appTree
)
.toPromise();

appTree = await schematicRunner
.runExternalSchematicAsync(
'@schematics/angular',
'library',
libOptions,
appTree
)
.toPromise();
appTree = await schematicRunner.runExternalSchematic(
'@schematics/angular',
'workspace',
workspaceOptions
);

appTree = await schematicRunner.runExternalSchematic(
'@schematics/angular',
'application',
appOptions,
appTree
);

appTree = await schematicRunner.runExternalSchematic(
'@schematics/angular',
'library',
libOptions,
appTree
);

return appTree;
}
2 changes: 1 addition & 1 deletion modules/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
2 changes: 1 addition & 1 deletion modules/schematics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/schematics",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "NgRx Schematics for Angular",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion modules/schematics/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/store-devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store-devtools",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "Developer tools for @ngrx/store",
"repository": {
"type": "git",
Expand All @@ -20,7 +20,7 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@ngrx/store": "15.4.0",
"@ngrx/store": "16.0.0-beta.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
4 changes: 2 additions & 2 deletions modules/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/store",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "RxJS powered Redux for Angular apps",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
},
"homepage": "https://github.com/ngrx/platform#readme",
"peerDependencies": {
"@angular/core": "^15.0.0",
"@angular/core": "^16.0.0-next.0",
"rxjs": "^6.5.3 || ^7.5.0"
},
"schematics": "./schematics/collection.json",
Expand Down
2 changes: 1 addition & 1 deletion modules/store/schematics-core/utility/libs-version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const platformVersion = '^15.4.0';
export const platformVersion = '^16.0.0-beta.0';
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngrx/platform",
"version": "15.4.0",
"version": "16.0.0-beta.0",
"description": "monorepo for ngrx development",
"scripts": {
"ng": "ng",
Expand All @@ -12,7 +12,7 @@
"copy:dist": "ncp dist/ ./node_modules/@ngrx/",
"ci": "yarn run test && nyc report --reporter=text-lcov | coveralls",
"prettier": "prettier --write \"**/*.ts\"",
"postinstall": "opencollective postinstall && ngcc --properties es2020 browser module main",
"postinstall": "opencollective postinstall",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"copy:schematics": "ts-node ./build/copy-schematics-core.ts",
"schematics:check": "git diff --name-only --exit-code ./modules",
Expand Down Expand Up @@ -65,17 +65,17 @@
]
},
"dependencies": {
"@angular/animations": "15.2.1",
"@angular/cdk": "15.2.1",
"@angular/common": "15.2.1",
"@angular/compiler": "15.2.1",
"@angular/core": "15.2.1",
"@angular/forms": "15.2.1",
"@angular/material": "15.2.1",
"@angular/platform-browser": "15.2.1",
"@angular/platform-browser-dynamic": "15.2.1",
"@angular/platform-server": "15.2.1",
"@angular/router": "15.2.1",
"@angular/animations": "16.0.0-next.6",
"@angular/cdk": "16.0.0-next.4",
"@angular/common": "16.0.0-next.6",
"@angular/compiler": "16.0.0-next.6",
"@angular/core": "16.0.0-next.6",
"@angular/forms": "16.0.0-next.6",
"@angular/material": "16.0.0-next.4",
"@angular/platform-browser": "16.0.0-next.6",
"@angular/platform-browser-dynamic": "16.0.0-next.6",
"@angular/platform-server": "16.0.0-next.6",
"@angular/router": "16.0.0-next.6",
"@nrwl/angular": "15.8.7",
"core-js": "^2.5.4",
"eslint-etc": "^5.1.0",
Expand All @@ -84,20 +84,20 @@
"semver": "^7.3.6",
"strip-json-comments": "3.1.1",
"tslib": "^2.3.1",
"zone.js": "0.12.0"
"zone.js": "0.13.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "15.2.1",
"@angular-devkit/core": "15.2.1",
"@angular-devkit/schematics": "15.2.1",
"@angular-devkit/build-angular": "16.0.0-next.6",
"@angular-devkit/core": "16.0.0-next.6",
"@angular-devkit/schematics": "16.0.0-next.6",
"@angular-eslint/builder": "15.2.1",
"@angular-eslint/eslint-plugin": "15.2.1",
"@angular-eslint/eslint-plugin-template": "15.2.1",
"@angular-eslint/schematics": "15.2.1",
"@angular-eslint/template-parser": "15.2.1",
"@angular/cli": "15.2.1",
"@angular/compiler-cli": "15.2.1",
"@angular/language-service": "15.2.1",
"@angular/cli": "16.0.0-next.6",
"@angular/compiler-cli": "16.0.0-next.6",
"@angular/language-service": "16.0.0-next.6",
"@babel/core": "7.9.0",
"@nrwl/cli": "15.8.7",
"@nrwl/cypress": "15.8.7",
Expand All @@ -109,7 +109,7 @@
"@nrwl/tao": "15.8.7",
"@nrwl/workspace": "15.8.7",
"@octokit/rest": "^15.17.0",
"@schematics/angular": "15.2.1",
"@schematics/angular": "16.0.0-next.6",
"@testing-library/cypress": "9.0.0",
"@types/fs-extra": "^2.1.0",
"@types/glob": "^5.0.33",
Expand All @@ -128,7 +128,7 @@
"@typescript-eslint/eslint-plugin": "^5.43.0",
"@typescript-eslint/parser": "^5.43.0",
"@typescript-eslint/utils": "^5.43.0",
"chokidar": "^1.7.0",
"chokidar": "^3.5.3",
"chokidar-cli": "^1.2.0",
"conventional-changelog": "^1.1.4",
"conventional-changelog-cli": "^1.3.21",
Expand All @@ -151,7 +151,7 @@
"jest": "29.5.0",
"jest-environment-jsdom": "29.5.0",
"jest-jasmine2": "29.5.0",
"jest-preset-angular": "13.0.0",
"jest-preset-angular": "13.0.1",
"karma": "6.4.0",
"karma-chrome-launcher": "3.1.0",
"karma-cli": "~1.0.1",
Expand All @@ -160,7 +160,7 @@
"karma-jasmine-html-reporter": "2.0.0",
"lint-staged": "^8.0.0",
"ncp": "^2.0.0",
"ng-packagr": "15.2.1",
"ng-packagr": "16.0.0-next.2",
"npm-run-all": "^4.1.5",
"nx": "15.8.7",
"nyc": "^10.1.2",
Expand All @@ -185,7 +185,7 @@
"tsconfig-paths": "^3.1.3",
"tsickle": "^0.37.0",
"tsutils": "2.27.2",
"typescript": "4.9.5",
"typescript": "5.0.3",
"uglify-js": "^3.1.9"
},
"collective": {
Expand Down
1 change: 1 addition & 0 deletions projects/example-app-e2e/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"sourceMap": false,
"types": ["cypress", "node", "@testing-library/cypress"]
},
"include": [],
Expand Down
Loading

0 comments on commit d7e03df

Please sign in to comment.