feat(angular): update Angular libraries to version 9.1.0

This commit is contained in:
Brandon Roberts 2020-03-30 07:14:12 -05:00 committed by Victor Savkin
parent e5578076ed
commit 49d8ce1297
22 changed files with 1648 additions and 1104 deletions

View File

@ -96,9 +96,10 @@ export function runYarnInstall(silent: boolean = true) {
return install ? install.toString() : ''; return install ? install.toString() : '';
} }
export function runNgcc(silent: boolean = true) { export function runNgcc(silent: boolean = true, async: boolean = true) {
const install = execSync( const install = execSync(
'node ./node_modules/@angular/compiler-cli/ngcc/main-ngcc.js', 'node ./node_modules/@angular/compiler-cli/ngcc/main-ngcc.js' +
(!async ? ' --async=false' : ''),
{ {
cwd: tmpProjPath(), cwd: tmpProjPath(),
...(silent ? { stdio: ['ignore', 'ignore', 'ignore'] } : {}) ...(silent ? { stdio: ['ignore', 'ignore', 'ignore'] } : {})
@ -172,8 +173,8 @@ function default_1(factoryOptions = {}) {
} }
exports.default = default_1;` exports.default = default_1;`
); );
const inCI = process.env['CIRCLECI'] ? true : false;
runNgcc(); runNgcc(!inCI, !inCI);
execSync(`mv ${tmpProjPath()} ${tmpBackupProjPath()}`); execSync(`mv ${tmpProjPath()} ${tmpBackupProjPath()}`);
} }

View File

@ -32,24 +32,24 @@
"submit-plugin": "node ./scripts/submit-plugin.js" "submit-plugin": "node ./scripts/submit-plugin.js"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/build-angular": "~0.900.1", "@angular-devkit/build-angular": "~0.901.0",
"@angular-devkit/build-ng-packagr": "~0.900.1", "@angular-devkit/build-ng-packagr": "~0.901.0",
"@angular-devkit/build-optimizer": "~0.900.1", "@angular-devkit/build-optimizer": "~0.901.0",
"@angular-devkit/build-webpack": "~0.900.1", "@angular-devkit/build-webpack": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@angular/cli": "~9.0.1", "@angular/cli": "~9.1.0",
"@angular/common": "^9.0.0", "@angular/common": "^9.1.0",
"@angular/compiler": "^9.0.0", "@angular/compiler": "^9.1.0",
"@angular/compiler-cli": "^9.0.0", "@angular/compiler-cli": "^9.1.0",
"@angular/core": "^9.0.0", "@angular/core": "^9.1.0",
"@angular/forms": "^9.0.0", "@angular/forms": "^9.1.0",
"@angular/platform-browser": "^9.0.0", "@angular/platform-browser": "^9.1.0",
"@angular/platform-browser-dynamic": "^9.0.0", "@angular/platform-browser-dynamic": "^9.1.0",
"@angular/router": "^9.0.0", "@angular/router": "^9.1.0",
"@angular/service-worker": "^9.0.0", "@angular/service-worker": "^9.1.0",
"@angular/upgrade": "^9.0.0", "@angular/upgrade": "^9.1.0",
"@babel/core": "7.8.4", "@babel/core": "7.8.4",
"@babel/plugin-proposal-class-properties": "7.8.3", "@babel/plugin-proposal-class-properties": "7.8.3",
"@babel/plugin-proposal-decorators": "7.8.3", "@babel/plugin-proposal-decorators": "7.8.3",
@ -71,11 +71,11 @@
"@ngrx/schematics": "9.0.0", "@ngrx/schematics": "9.0.0",
"@ngrx/store": "9.0.0", "@ngrx/store": "9.0.0",
"@ngrx/store-devtools": "9.0.0", "@ngrx/store-devtools": "9.0.0",
"@ngtools/webpack": "~9.0.1", "@ngtools/webpack": "~9.1.0",
"@rollup/plugin-commonjs": "11.0.2", "@rollup/plugin-commonjs": "11.0.2",
"@rollup/plugin-image": "2.0.4", "@rollup/plugin-image": "2.0.4",
"@rollup/plugin-node-resolve": "7.1.1", "@rollup/plugin-node-resolve": "7.1.1",
"@schematics/angular": "~9.0.1", "@schematics/angular": "~9.1.0",
"@storybook/addon-knobs": "5.3.9", "@storybook/addon-knobs": "5.3.9",
"@storybook/angular": "5.3.9", "@storybook/angular": "5.3.9",
"@storybook/core": "5.3.9", "@storybook/core": "5.3.9",
@ -174,7 +174,7 @@
"mini-css-extract-plugin": "0.8.0", "mini-css-extract-plugin": "0.8.0",
"minimatch": "3.0.4", "minimatch": "3.0.4",
"next": "9.1.5", "next": "9.1.5",
"ng-packagr": "5.7.0", "ng-packagr": "9.1.0",
"ngrx-store-freeze": "0.2.4", "ngrx-store-freeze": "0.2.4",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"open": "6.4.0", "open": "6.4.0",
@ -199,8 +199,8 @@
"rollup-plugin-peer-deps-external": "2.2.2", "rollup-plugin-peer-deps-external": "2.2.2",
"rollup-plugin-postcss": "2.1.1", "rollup-plugin-postcss": "2.1.1",
"rollup-plugin-typescript2": "0.26.0", "rollup-plugin-typescript2": "0.26.0",
"rxjs": "6.5.3", "rxjs": "6.5.4",
"sass": "1.22.9", "sass": "1.26.3",
"sass-loader": "7.2.0", "sass-loader": "7.2.0",
"semver": "6.3.0", "semver": "6.3.0",
"shelljs": "^0.8.3", "shelljs": "^0.8.3",
@ -221,10 +221,10 @@
"ts-loader": "^5.3.1", "ts-loader": "^5.3.1",
"ts-node": "^8.0.2", "ts-node": "^8.0.2",
"tsconfig-paths-webpack-plugin": "^3.2.0", "tsconfig-paths-webpack-plugin": "^3.2.0",
"tsickle": "^0.37.0", "tsickle": "^0.38.1",
"tslib": "^1.9.3", "tslib": "^1.9.3",
"tslint": "6.0.0", "tslint": "6.0.0",
"typescript": "~3.7.4", "typescript": "~3.8.3",
"url-loader": "^3.0.0", "url-loader": "^3.0.0",
"verdaccio": "^4.4.2", "verdaccio": "^4.4.2",
"webpack": "4.41.2", "webpack": "4.41.2",

View File

@ -38,8 +38,8 @@
"dependencies": { "dependencies": {
"@nrwl/cypress": "*", "@nrwl/cypress": "*",
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@schematics/angular": "~9.0.1", "@schematics/angular": "~9.1.0",
"jasmine-marbles": "~0.6.0" "jasmine-marbles": "~0.6.0"
} }
} }

View File

@ -1,7 +1,7 @@
export const nxVersion = '*'; export const nxVersion = '*';
export const angularVersion = '9.0.0'; export const angularVersion = '9.1.0';
export const angularDevkitVersion = '0.900.1'; export const angularDevkitVersion = '0.901.0';
export const angularJsVersion = '1.6.6'; export const angularJsVersion = '1.6.6';
export const ngrxVersion = '9.0.0'; export const ngrxVersion = '9.0.0';
export const rxjsVersion = '~6.5.0'; export const rxjsVersion = '~6.5.4';
export const jestPresetAngularVersion = '8.1.2'; export const jestPresetAngularVersion = '8.1.2';

View File

@ -44,8 +44,8 @@
] ]
}, },
"dependencies": { "dependencies": {
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@nrwl/cli": "*" "@nrwl/cli": "*"
}, },
"peerDependencies": { "peerDependencies": {

View File

@ -36,8 +36,8 @@
"cypress": ">= 3 < 5" "cypress": ">= 3 < 5"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@cypress/webpack-preprocessor": "~4.1.2", "@cypress/webpack-preprocessor": "~4.1.2",
"tree-kill": "1.2.2", "tree-kill": "1.2.2",
"ts-loader": "^5.3.1", "ts-loader": "^5.3.1",

View File

@ -34,6 +34,6 @@
"dependencies": { "dependencies": {
"@nrwl/node": "*", "@nrwl/node": "*",
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@angular-devkit/schematics": "~9.0.1" "@angular-devkit/schematics": "~9.1.0"
} }
} }

View File

@ -35,8 +35,8 @@
"@nrwl/workspace": "*" "@nrwl/workspace": "*"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1" "@angular-devkit/schematics": "~9.1.0"
} }
} }

View File

@ -27,6 +27,6 @@
"@nrwl/workspace": "*" "@nrwl/workspace": "*"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/architect": "~0.900.1" "@angular-devkit/architect": "~0.901.0"
} }
} }

View File

@ -34,6 +34,6 @@
"dependencies": { "dependencies": {
"@nrwl/node": "*", "@nrwl/node": "*",
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@angular-devkit/schematics": "~9.0.1" "@angular-devkit/schematics": "~9.1.0"
} }
} }

View File

@ -34,7 +34,7 @@
}, },
"dependencies": { "dependencies": {
"@nrwl/react": "*", "@nrwl/react": "*",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@svgr/webpack": "^4.3.3", "@svgr/webpack": "^4.3.3",
"url-loader": "^2.2.0" "url-loader": "^2.2.0"
} }

View File

@ -34,10 +34,10 @@
"dependencies": { "dependencies": {
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@nrwl/linter": "*", "@nrwl/linter": "*",
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@angular-devkit/build-webpack": "~0.900.1", "@angular-devkit/build-webpack": "~0.901.0",
"circular-dependency-plugin": "5.2.0", "circular-dependency-plugin": "5.2.0",
"copy-webpack-plugin": "5.1.1", "copy-webpack-plugin": "5.1.1",
"fork-ts-checker-webpack-plugin": "^3.1.1", "fork-ts-checker-webpack-plugin": "^3.1.1",

View File

@ -31,9 +31,9 @@
"dependencies": { "dependencies": {
"@nrwl/node": "*", "@nrwl/node": "*",
"@nrwl/linter": "*", "@nrwl/linter": "*",
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"fs-extra": "7.0.1", "fs-extra": "7.0.1",
"tmp": "0.0.33", "tmp": "0.0.33",
"yargs-parser": "10.0.0", "yargs-parser": "10.0.0",

View File

@ -36,7 +36,7 @@
"@nrwl/cypress": "*", "@nrwl/cypress": "*",
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@nrwl/web": "*", "@nrwl/web": "*",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@svgr/webpack": "^5.2.0", "@svgr/webpack": "^5.2.0",
"babel-plugin-emotion": "^10.0.29", "babel-plugin-emotion": "^10.0.29",
"babel-plugin-styled-components": "^1.10.7", "babel-plugin-styled-components": "^1.10.7",

View File

@ -29,9 +29,9 @@
}, },
"homepage": "https://nx.dev", "homepage": "https://nx.dev",
"dependencies": { "dependencies": {
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"inquirer": "^6.3.1", "inquirer": "^6.3.1",
"minimist": "^1.2.0", "minimist": "^1.2.0",
"strip-json-comments": "2.0.1", "strip-json-comments": "2.0.1",

View File

@ -34,11 +34,11 @@
"@nrwl/cypress": "*", "@nrwl/cypress": "*",
"@nrwl/jest": "*", "@nrwl/jest": "*",
"@nrwl/linter": "*", "@nrwl/linter": "*",
"@angular-devkit/architect": "~0.900.1", "@angular-devkit/architect": "~0.901.0",
"@angular-devkit/build-optimizer": "~0.900.1", "@angular-devkit/build-optimizer": "~0.901.0",
"@angular-devkit/build-webpack": "~0.900.1", "@angular-devkit/build-webpack": "~0.901.0",
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"@babel/core": "^7.8.4", "@babel/core": "^7.8.4",
"@babel/preset-env": "^7.8.4", "@babel/preset-env": "^7.8.4",
"@babel/preset-typescript": "^7.8.3", "@babel/preset-typescript": "^7.8.3",
@ -81,7 +81,7 @@
"postcss-import": "12.0.1", "postcss-import": "12.0.1",
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"raw-loader": "3.1.0", "raw-loader": "3.1.0",
"rxjs": "^6.5.3", "rxjs": "^6.5.4",
"regenerator-runtime": "0.13.3", "regenerator-runtime": "0.13.3",
"rollup": "1.31.1", "rollup": "1.31.1",
"rollup-plugin-babel": "4.3.3", "rollup-plugin-babel": "4.3.3",

View File

@ -443,6 +443,55 @@
"alwaysAddToPackageJson": false "alwaysAddToPackageJson": false
} }
} }
},
"9.2.0": {
"version": "9.2.0-beta.1",
"packages": {
"@angular/cli": {
"version": "~9.1.0",
"alwaysAddToPackageJson": false
},
"typescript": {
"version": "~3.8.3",
"alwaysAddToPackageJson": false
},
"@angular-devkit/architect": {
"version": "~0.901.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-angular": {
"version": "~0.901.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-ng-packagr": {
"version": "~0.901.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-webpack": {
"version": "~0.901.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/build-optimizer": {
"version": "~0.901.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/core": {
"version": "~9.1.0",
"alwaysAddToPackageJson": false
},
"@angular-devkit/schematics": {
"version": "~9.1.0",
"alwaysAddToPackageJson": false
},
"@schematics/angular": {
"version": "~9.1.0",
"alwaysAddToPackageJson": false
},
"rxjs": {
"version": "~6.5.4",
"alwaysAddToPackageJson": false
}
}
} }
} }
} }

View File

@ -50,15 +50,15 @@
"prettier": "^1.19.1" "prettier": "^1.19.1"
}, },
"dependencies": { "dependencies": {
"@angular-devkit/core": "~9.0.1", "@angular-devkit/core": "~9.1.0",
"@angular-devkit/schematics": "~9.0.1", "@angular-devkit/schematics": "~9.1.0",
"cosmiconfig": "4.0.0", "cosmiconfig": "4.0.0",
"fs-extra": "6.0.0", "fs-extra": "6.0.0",
"ignore": "5.0.4", "ignore": "5.0.4",
"npm-run-all": "4.1.5", "npm-run-all": "4.1.5",
"hasha": "5.1.0", "hasha": "5.1.0",
"opn": "^5.3.0", "opn": "^5.3.0",
"rxjs": "^6.5.3", "rxjs": "^6.5.4",
"semver": "5.4.1", "semver": "5.4.1",
"strip-json-comments": "2.0.1", "strip-json-comments": "2.0.1",
"tmp": "0.0.33", "tmp": "0.0.33",

View File

@ -1,5 +1,15 @@
import { chain } from '@angular-devkit/schematics'; import { chain } from '@angular-devkit/schematics';
import { formatFiles, updateJsonInTree } from '@nrwl/workspace'; import {
formatFiles,
updateJsonInTree,
updatePackagesInPackageJson
} from '@nrwl/workspace';
import { join } from 'path';
const updatePackages = updatePackagesInPackageJson(
join(__dirname, '../../../', 'migrations.json'),
'9.2.0'
);
const addCacheableOperations = updateJsonInTree('nx.json', nxJson => { const addCacheableOperations = updateJsonInTree('nx.json', nxJson => {
nxJson.tasksRunnerOptions = nxJson.tasksRunnerOptions || {}; nxJson.tasksRunnerOptions = nxJson.tasksRunnerOptions || {};
@ -47,5 +57,5 @@ const addCacheableOperations = updateJsonInTree('nx.json', nxJson => {
}); });
export default function() { export default function() {
return chain([addCacheableOperations, formatFiles()]); return chain([updatePackages, addCacheableOperations, formatFiles()]);
} }

View File

@ -77,7 +77,8 @@ describe('Hasher', () => {
expect(e.message).toContain( expect(e.message).toContain(
'Nx failed to execute runtimeCacheInputs defined in nx.json failed:' 'Nx failed to execute runtimeCacheInputs defined in nx.json failed:'
); );
expect(e.message).toContain('boom: not found'); expect(e.message).toContain('boom:');
expect(e.message).toContain(' not found');
} }
}); });

View File

@ -1,7 +1,7 @@
export const nxVersion = '*'; export const nxVersion = '*';
export const angularCliVersion = '9.0.1'; export const angularCliVersion = '9.1.0';
export const typescriptVersion = '~3.7.4'; export const typescriptVersion = '~3.8.3';
export const prettierVersion = '1.19.1'; export const prettierVersion = '1.19.1';
export const typescriptESLintVersion = '2.19.2'; export const typescriptESLintVersion = '2.19.2';
export const eslintVersion = '6.8.0'; export const eslintVersion = '6.8.0';

2551
yarn.lock

File diff suppressed because it is too large Load Diff