Skip to content

Commit

Permalink
feat(angular): support angular 16.2.0 (#18561)
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Aug 14, 2023
1 parent cdeec56 commit 8601a0e
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 213 deletions.
29 changes: 13 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
},
"devDependencies": {
"@actions/core": "^1.10.0",
"@angular-devkit/architect": "~0.1602.0-rc.1",
"@angular-devkit/build-angular": "~16.2.0-rc.1",
"@angular-devkit/core": "~16.2.0-rc.1",
"@angular-devkit/schematics": "~16.2.0-rc.1",
"@angular-devkit/architect": "~0.1602.0",
"@angular-devkit/build-angular": "~16.2.0",
"@angular-devkit/core": "~16.2.0",
"@angular-devkit/schematics": "~16.2.0",
"@angular-eslint/eslint-plugin": "~16.0.0",
"@angular-eslint/eslint-plugin-template": "~16.0.0",
"@angular-eslint/template-parser": "~16.0.0",
"@angular/cli": "~16.2.0-rc.1",
"@angular/common": "~16.2.0-rc.0",
"@angular/compiler": "~16.2.0-rc.0",
"@angular/compiler-cli": "~16.2.0-rc.0",
"@angular/core": "~16.2.0-rc.0",
"@angular/router": "~16.2.0-rc.0",
"@angular/cli": "~16.2.0",
"@angular/common": "~16.2.0",
"@angular/compiler": "~16.2.0",
"@angular/compiler-cli": "~16.2.0",
"@angular/core": "~16.2.0",
"@angular/router": "~16.2.0",
"@babel/core": "^7.22.9",
"@babel/helper-create-regexp-features-plugin": "^7.22.9",
"@babel/plugin-transform-runtime": "^7.22.9",
Expand All @@ -64,7 +64,7 @@
"@ngrx/effects": "~16.0.0",
"@ngrx/router-store": "~16.0.0",
"@ngrx/store": "~16.0.0",
"@nguniversal/builders": "~16.2.0-rc.0",
"@nguniversal/builders": "~16.2.0",
"@nx/cypress": "16.7.0-beta.4",
"@nx/devkit": "16.7.0-beta.4",
"@nx/eslint-plugin": "16.7.0-beta.4",
Expand All @@ -90,7 +90,7 @@
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-url": "^7.0.0",
"@schematics/angular": "~16.2.0-rc.1",
"@schematics/angular": "~16.2.0",
"@side/jest-runtime": "^1.1.0",
"@storybook/addon-essentials": "7.2.2",
"@storybook/core-server": "7.2.2",
Expand Down Expand Up @@ -221,7 +221,7 @@
"mini-css-extract-plugin": "~2.4.7",
"minimatch": "3.0.5",
"next-sitemap": "^3.1.10",
"ng-packagr": "~16.2.0-next.1",
"ng-packagr": "~16.2.0",
"node-fetch": "^2.6.7",
"nx": "16.7.0-beta.4",
"nx-cloud": "16.3.0",
Expand Down Expand Up @@ -367,9 +367,6 @@
"pnpm": {
"patchedDependencies": {
"lerna@6.6.2": "patches/lerna@6.6.2.patch"
},
"overrides": {
"@angular-devkit/core": "$@angular-devkit/core"
}
}
}
Expand Down
44 changes: 22 additions & 22 deletions packages/angular/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,13 +270,13 @@
"description": "Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.",
"factory": "./src/migrations/update-16-6-0/explicitly-set-projects-to-update-buildable-deps"
},
"update-angular-cli-version-16-2-0-rc-1": {
"update-angular-cli-version-16-2-0": {
"cli": "nx",
"version": "16.7.0-beta.2",
"version": "16.7.0-beta.6",
"requires": {
"@angular/core": ">=16.2.0-rc.0"
"@angular/core": ">=16.2.0"
},
"description": "Update the @angular/cli package version to ~16.2.0-rc.1.",
"description": "Update the @angular/cli package version to ~16.2.0.",
"factory": "./src/migrations/update-16-7-0/update-angular-cli"
}
},
Expand Down Expand Up @@ -1246,64 +1246,64 @@
}
},
"16.7.0": {
"version": "16.7.0-beta.2",
"version": "16.7.0-beta.6",
"x-prompt": "Do you want to update the Angular version to v16.2?",
"requires": {
"@angular/core": ">=16.1.0 <16.2.0"
},
"packages": {
"@angular-devkit/architect": {
"version": "~0.1602.0-rc.1",
"version": "~0.1602.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-angular": {
"version": "~16.2.0-rc.1",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-webpack": {
"version": "~0.1602.0-rc.1",
"version": "~0.1602.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/core": {
"version": "~16.2.0-rc.1",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/schematics": {
"version": "~16.2.0-rc.1",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@angular/core": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": true
},
"@angular/material": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@angular/cdk": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@nguniversal/builders": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@nguniversal/common": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@nguniversal/express-engine": {
"version": "~16.2.0-rc.0",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"@schematics/angular": {
"version": "~16.2.0-rc.1",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
},
"ng-packagr": {
"version": "~16.2.0-next.1",
"version": "~16.2.0",
"alwaysAddToPackageJson": false
}
},
"x-prompt": "Do you want to update the Angular version to v16.2?",
"requires": {
"@angular/core": ">=16.1.0 <16.2.0-next.1"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { formatFiles, Tree, updateJson } from '@nx/devkit';

export const angularCliVersion = '~16.2.0-rc.1';
export const angularCliVersion = '~16.2.0';

export default async function (tree: Tree) {
let shouldFormat = false;
Expand Down
8 changes: 4 additions & 4 deletions packages/angular/src/utils/versions.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export const nxVersion = require('../../package.json').version;

export const angularVersion = '~16.2.0-rc.0';
export const angularDevkitVersion = '~16.2.0-rc.1';
export const ngPackagrVersion = '~16.2.0-next.1';
export const angularVersion = '~16.2.0';
export const angularDevkitVersion = '~16.2.0';
export const ngPackagrVersion = '~16.2.0';
export const ngrxVersion = '~16.0.0';
export const rxjsVersion = '~7.8.0';
export const zoneJsVersion = '~0.13.0';
export const angularJsVersion = '1.7.9';
export const tsLibVersion = '^2.3.0';

export const ngUniversalVersion = '~16.2.0-rc.0';
export const ngUniversalVersion = '~16.2.0';
export const corsVersion = '~2.8.5';
export const typesCorsVersion = '~2.8.5';
export const expressVersion = '~4.18.2';
Expand Down
2 changes: 1 addition & 1 deletion packages/workspace/src/utils/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ export const typescriptVersion = '~5.1.3';

// TODO: remove when preset generation is reworked and
// deps are not installed from workspace
export const angularCliVersion = '~16.2.0-rc.1';
export const angularCliVersion = '~16.2.0';

1 comment on commit 8601a0e

@vercel
Copy link

@vercel vercel bot commented on 8601a0e Aug 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-git-master-nrwl.vercel.app
nx-dev-nrwl.vercel.app
nx-five.vercel.app
nx.dev

Please sign in to comment.