
This PR contains the following updates:
Release Notes
angular/angular-cli
Compare Source
| Commit |
Type |
Description |
| 4ee825bac |
fix |
catch clause variable is not an Error instance |
| Commit |
Type |
Description |
| 83dcfb32f |
fix |
prevent numbers from class names |
| Commit |
Type |
Description |
| ef6da4aad |
fix |
allow the esbuild-based builder to fully resolve global stylesheet packages |
| eed54b359 |
fix |
catch clause variable is not an Error instance |
| c98471094 |
fix |
correctly respond to preflight requests |
| 94b444e4c |
fix |
correctly set ngDevMode in esbuilder |
| Commit |
Type |
Description |
| 44c18082a |
fix |
classify string util should concat string without using a . |
| Commit |
Type |
Description |
| cb0d3fb33 |
fix |
use appropriate package manager to install dependencies |
Special Thanks
Alan Agius, Charles Lyding, Jason Bedard and Paul Gschwendtner
Compare Source
| Commit |
Type |
Description |
| 3884b8652 |
fix |
add esbuild browser builder to workspace schema |
| Commit |
Type |
Description |
| 707911d42 |
feat |
support controlling addDependency utility rule install behavior |
| a8fe4fcc3 |
fix |
Allow skipping existing dependencies in E2E schematic |
| b8bf3b480 |
fix |
only issue a warning for addDependency existing specifier |
| Commit |
Type |
Description |
| a7709b718 |
feat |
add externalDependencies to the esbuild browser builder |
| 248860ad6 |
feat |
add Sass file support to experimental esbuild-based builder |
| b06ae5514 |
feat |
add service worker support to experimental esbuild builder |
| b5f6d862b |
feat |
Identify third-party sources in sourcemaps |
| b3a14d056 |
fix |
allow third-party sourcemaps to be ignored in esbuild builder |
| 53dd929e5 |
fix |
ensure esbuild builder sourcemap sources are relative to workspace |
| Commit |
Type |
Description |
| 526cdb263 |
feat |
allow chain rule to accept iterables of rules |
| Commit |
Type |
Description |
| cfe93fbc8 |
feat |
add support for yarn create and npm init |
Special Thanks
Alan Agius, Charles Lyding, Derek Cormier, Doug Parker, Jason Bedard, Joey Perrott, Paul Gschwendtner, Victor Porof and renovate[bot]
Compare Source
| Commit |
Type |
Description |
| f653bf4fb |
fix |
incorrect logo for Angular Material |
| Commit |
Type |
Description |
| 5810c2cc2 |
fix |
fallback to use projectRoot when sourceRoot is missing during coverage |
| Commit |
Type |
Description |
| 2ba4678b6 |
fix |
add i18n as valid project extension |
| c2201c835 |
fix |
log name of invalid extension too |
Special Thanks
Alan Agius, Fortunato Ventre, Katerina Skroumpelou and Kristiyan Kostadinov
Compare Source
| Commit |
Type |
Description |
| 178550529 |
fix |
handle cases when completion is enabled and running in an older CLI workspace |
| 10f24498e |
fix |
remove deprecation warning of no prefixed schema options |
| Commit |
Type |
Description |
| dfa6d73c5 |
fix |
remove browserslist configuration |
| Commit |
Type |
Description |
| 4d848c4e6 |
fix |
generate different content hashes for scripts which are changed during the optimization phase |
| Commit |
Type |
Description |
| 2500f34a4 |
fix |
provide actionable warning when a workspace project has missing root property |
Special Thanks
Alan Agius and martinfrancois
Compare Source
| Commit |
Type |
Description |
| 98a6aad60 |
fix |
during an update only use package manager force option with npm 7+ |
| 094aa16aa |
fix |
improve error message for project-specific ng commands when run outside of a project |
| e5e07fff1 |
fix |
show deprecated workspace config options in IDE |
| Commit |
Type |
Description |
| f9f970cab |
fix |
prevent importing RouterModule parallel to RoutingModule |
| Commit |
Type |
Description |
| aa8ed532f |
fix |
disable glob mounting for patterns that start with a forward slash |
| c76edb8a7 |
fix |
don't override base-href in HTML when it's not set in builder |
| f64903528 |
fix |
improve detection of CommonJS dependencies |
| 74dbd5fc2 |
fix |
support hidden component stylesheet sourcemaps with esbuild builder |
| Commit |
Type |
Description |
| 7aed97561 |
fix |
do not run ngcc when node_modules does not exist |
Special Thanks
Alan Agius, Charles Lyding, JoostK and Paul Gschwendtner
Compare Source
| Commit |
Type |
Description |
| fc72c625b |
fix |
correctly handle --collection option in ng new |
| f5badf221 |
fix |
improve global schema validation |
| ed302ea4c |
fix |
remove color from help epilogue |
| Commit |
Type |
Description |
| c58c66c0d |
fix |
use sourceRoot instead of src in universal schematic |
| Commit |
Type |
Description |
| 88acec1fd |
fix |
complete builders on the next event loop iteration |
| Commit |
Type |
Description |
| 694b73dfa |
fix |
exit dev-server when CTRL+C is pressed |
| 6d4782199 |
fix |
exit localized builds when CTRL+C is pressed |
| 282baffed |
fix |
hide stacktraces from webpack errors |
| c4b0abf5b |
fix |
set base-href in service worker manifest when using i18n and app-shell |
| Commit |
Type |
Description |
| 33f1cc192 |
fix |
restore process title after NGCC is executed |
| 6796998bf |
fix |
show a compilation error on invalid TypeScript version |
Special Thanks
Alan Agius, Charles Lyding and Tim Bowersox
Compare Source
| Commit |
Type |
Description |
| b3db91baf |
fix |
disable version check when running ng completion commands |
| cdab9fa74 |
fix |
provide an actionable error when using --configuration with ng run |
| 5521648e3 |
fix |
temporarily handle boolean options in schema prefixed with no |
| Commit |
Type |
Description |
| 5e960ce24 |
fix |
fix incorrect glob cwd in karma when using --include option |
| 1b5e92075 |
fix |
handle codeCoverageExclude correctly in Windows |
| ff6d81a45 |
fix |
ignore supported browsers during i18n extraction |
| Commit |
Type |
Description |
| 170c16f2e |
fix |
workspace writer skip creating empty projects property |
Special Thanks
Alan Agius, Charles Lyding and Paul Gschwendtner
Compare Source
| Commit |
Type |
Description |
| 23095e9c3 |
fix |
show more actionable error when command is ran in wrong scope |
| Commit |
Type |
Description |
| 5a486cb64 |
fix |
remove vscode testing configurations for minimal workspaces |
| Commit |
Type |
Description |
| 9d88c96d8 |
fix |
replace fallback locale for en-US |
Special Thanks
Alan Agius and Julien Marcou
Compare Source
| Commit |
Type |
Description |
| e4fb96657 |
fix |
add text to help output to indicate that additional commands are available when ran in different context |
| 7952e5790 |
fix |
avoid creating unnecessary global configuration |
| 66a1d6b9d |
fix |
correct scope cache command |
| e2d964289 |
fix |
correctly print package manager name when an install is needed |
| 75fd3330d |
fix |
during an update only use package manager force option with npm 7+ |
| e223890c1 |
fix |
ensure full process exit with older local CLI versions |
| 0cca3638a |
fix |
handle project being passed as a flag |
| b1451cb5e |
fix |
improve resilience of logging during process exit |
| 17fec1357 |
fix |
provide actionable error when project cannot be determined |
| Commit |
Type |
Description |
| 73dcf39c6 |
fix |
remove strict setting under application project |
| Commit |
Type |
Description |
| c788d5b56 |
fix |
log modified and removed files when using the verbose option |
| 6e8fe0ed5 |
fix |
replace dev-server socket path from /ws to /ng-cli-ws |
| 651adadf4 |
fix |
update Angular peer dependencies to 14.0 stable |
| Commit |
Type |
Description |
| cfd264d06 |
fix |
add peer dependency on Angular CLI |
Special Thanks
Alan Agius, Charles Lyding and Doug Parker
Compare Source
Breaking Changes
-
Several changes to the ng analytics command syntax.
ng analytics project <setting> has been replaced with ng analytics <setting>
ng analytics <setting> has been replaced with ng analytics <setting> --global
-
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
-
Support for TypeScript 4.4 and 4.5 has been removed. Please update to TypeScript 4.6.
-
--all option from ng update has been removed without replacement. To update packages which don’t provide ng update capabilities in your workspace package.json use npm update, yarn upgrade-interactive or yarn upgrade instead.
-
Deprecated option --prod has been removed from all builders. --configuration production/-c production should be used instead if the default configuration of the builder is not configured to production.
-
--configuration cannot be used with ng run. Provide the configuration as part of the target. Ex: ng run project:builder:configuration.
-
Deprecated ng x18n and ng i18n-extract commands have been removed in favor of ng extract-i18n.
-
Several changes in the Angular CLI commands and arguments handling.
ng help has been removed in favour of the —-help option.
ng —-version has been removed in favour of ng version and ng v.
- Deprecated camel cased arguments are no longer supported. Ex. using
—-sourceMap instead of —-source-map will result in an error.
ng update, —-migrate-only option no longer accepts a string of migration name, instead use —-migrate-only -—name <migration-name>.
—-help json help has been removed.
- camel case arguments are no longer allowed.
- camel case arguments are no longer allowed.
-
browser and karma builders script and styles options input files extensions are now validated.
Valid extensions for scripts are:
.js
.cjs
.mjs
.jsx
.cjsx
.mjsx
Valid extensions for styles are:
.css
.less
.sass
.scss
.styl
-
We now issue a build time error since importing a CSS file as an ECMA module is non standard Webpack specific feature, which is not supported by the Angular CLI.
This feature was never truly supported by the Angular CLI, but has as such for visibility.
-
Reflect metadata polyfill is no longer automatically provided in JIT mode
Reflect metadata support is not required by Angular in JIT applications compiled by the CLI.
Applications built in AOT mode did not and will continue to not provide the polyfill.
For the majority of applications, the reflect metadata polyfill removal should have no effect.
However, if an application uses JIT mode and also uses the previously polyfilled reflect metadata JavaScript APIs, the polyfill will need to be manually added to the application after updating.
To replicate the previous behavior, the core-js package should be manually installed and the import 'core-js/proposals/reflect-metadata'; statement should be added to the application's polyfills.ts file.
-
NG_BUILD_CACHE environment variable has been removed. cli.cache in the workspace configuration should be used instead.
-
The deprecated showCircularDependencies browser and server builder option has been removed. The recommended method to detect circular dependencies in project code is to use either a lint rule or other external tools.
parseJson and ParseJsonOptions APIs have been removed in favor of 3rd party JSON parsers such as jsonc-parser.
- The below APIs have been removed without replacement. Users should leverage other Node.js or other APIs.
fs namespace
clean
mapObject
- Schematics
NodePackageInstallTask will not execute package scripts by default
The NodePackageInstallTask will now use the package manager's --ignore-scripts option by default.
The --ignore-scripts option will prevent package scripts from executing automatically during an install.
If a schematic installs packages that need their install/postinstall scripts to be executed, the
NodePackageInstallTask now contains an allowScripts boolean option which can be enabled to provide the
previous behavior for that individual task. As with previous behavior, the allowScripts option will
prevent the individual task's usage of the --ignore-scripts option but will not override the package
manager's existing configuration.
- Deprecated
analytics property has been removed from TypedSchematicContext interface
Deprecations
-
The defaultCollection workspace option has been deprecated in favor of schematicCollections.
Before
"defaultCollection": "@​angular/material"
After
"schematicCollections": ["@​angular/material"]
-
The defaultProject workspace option has been deprecated. The project to use will be determined from the current working directory.
-
ContentHasMutatedException, InvalidUpdateRecordException, UnimplementedException and MergeConflictException symbol from @angular-devkit/core have been deprecated in favor of the symbol from @angular-devkit/schematics.
UnsupportedPlatformException - A custom error exception should be created instead.
| Commit |
Type |
Description |
| afafa5788 |
feat |
add --global option to ng analytics command |
| bb550436a |
feat |
add ng analytics info command |
| e5bf35ea3 |
feat |
add ng cache command |
| 7ab22ed40 |
feat |
add disable/enable aliases for off/on ng analytics command |
| 4212fb8de |
feat |
add prompt to set up CLI autocompletion |
| 0316dea67 |
feat |
add prompts on missing builder targets |
| 607a723f7 |
feat |
add support for auto completion |
| 366cabc66 |
feat |
add support for multiple schematics collections |
| 036327e9c |
feat |
deprecated defaultProject option |
| fb0622893 |
feat |
don't prompt to set up autocompletion for ng update and ng completion commands |
| 4ebfe0341 |
feat |
drop support for Node.js 12 |
| 022d8c7bb |
feat |
make ng completion set up CLI autocompletion by modifying .bashrc files |
| 2e15df941 |
feat |
remember after prompting users to set up autocompletion and don't prompt again |
| 7fa3e6587 |
feat |
support TypeScript 4.6.2 |
| 9e69331fa |
feat |
use PNPM as package manager when pnpm-lock.yaml exists |
| 6f6b453fb |
fix |
ng doc doesn't open browser in Windows |
| 8e66c9188 |
fix |
ng g show descrption from collection.json if not present in schema.json |
| 9edeb8614 |
fix |
add long description to ng update |
| 160cb0718 |
fix |
correctly handle --search option in ng doc |
| d46cf6744 |
fix |
display option descriptions during auto completion |
| 09f8659ce |
fix |
display package manager during ng update |
| a49cdfbfe |
fix |
don't prompt for analytics when running ng analytics |
| 4b22593c4 |
fix |
ensure all available package migrations are executed |
| 054ae02c2 |
fix |
favor project in cwd when running architect commands |
| ff4eba3d4 |
fix |
handle duplicate arguments |
| 5a8bdeb43 |
fix |
hide private schematics from ng g help output |
| 644f86d55 |
fix |
improve error message for Windows autocompletion use cases |
| 3012036e8 |
fix |
populate path with working directory in nested schematics |
| 8a396de6a |
fix |
print entire config when no positional args are provided to ng config |
| bdf2b9bfa |
fix |
print schematic errors correctly |
| efc3c3225 |
fix |
remove analytics prompt postinstall script |
| bf15b202b |
fix |
remove cache path from global valid paths |
| 142da460b |
fix |
remove incorrect warning during ng update |
| 96a0d92da |
fix |
remove JSON serialized description from help output |
| 78460e995 |
fix |
remove type casting and add optional chaining for current in optionTransforms |
| e5bdadac4 |
fix |
skip prompt or warn when setting up autocompletion without a global CLI install |
| ca401255f |
fix |
sort commands in help output |
| b97772dfc |
fix |
support silent package installs with Yarn 2+ |
| 87cd5cd43 |
fix |
workaround npm 7+ peer dependency resolve errors during updates |
| d94a67353 |
refactor |
remove deprecated --all option from ng update |
| 2fc7c73d7 |
refactor |
remove deprecated --prod flag |
| b69ca3a7d |
refactor |
remove deprecated command aliases for extract-i18n. |
| 2e0493130 |
refactor |
replace command line arguments parser |
| Commit |
Type |
Description |
| 7b78b7840 |
feat |
add --standalone to ng generate |
| e49220fba |
feat |
add migratiom to remove defaultProject in workspace config |
| 3fa38b08b |
feat |
introduce addDependency rule to utilities |
| b07ccfbb1 |
feat |
introduce a utility subpath export for Angular rules and utilities |
| 7e7de6858 |
feat |
update Angular dependencies to use ^ as version prefix |
| 69ecddaa7 |
feat |
update new and existing projects compilation target to ES2020 |
| 7e8e42063 |
fix |
add migration to remove package.json in libraries secondary entrypoints |
| b928d973e |
fix |
alphabetically order imports during component generation |
| 09a71bab6 |
fix |
Consolidated setup with a single beforeEach() |
| 1921b07ee |
fix |
don't add path mapping to old entrypoint definition file |
| c927c038b |
fix |
remove @types/node from new projects |
| 27cb29438 |
fix |
remove extra space in standalone imports |
| Commit |
Type |
Description |
| c7556b62b |
refactor |
replace parser with yargs-parser |
| Commit |
Type |
Description |
| 5330d52ae |
refactor |
replace parser with yargs-parser |
| Commit |
Type |
Description |
| 00186fb93 |
feat |
add initial experimental esbuild-based application browser builder |
| d23a168b8 |
feat |
validate file extensions for scripts and styles options |
| 2adf252dc |
fix |
add es2015 exports package condition to browser-esbuild |
| 72e820e7b |
fix |
better handle Windows paths in esbuild experimental builder |
| 587082fb0 |
fix |
close compiler on Karma exit |
| c52d10d1f |
fix |
close dev-server on error |
| 48630ccfd |
fix |
detect tailwind.config.cjs as valid tailwindcss configuration |
| 4d5f6c659 |
fix |
downlevel libraries based on the browserslist configurations |
| 1a160dac0 |
fix |
ensure karma sourcemap support on Windows |
| 07e776ea3 |
fix |
fail build when importing CSS files as an ECMA modules |
| ac1383f9e |
fix |
properly handle locally-built APF v14 libraries |
| 966d25b55 |
fix |
remove unneeded JIT reflect metadata polyfill |
| b8564a638 |
refactor |
remove deprecated NG_BUILD_CACHE environment variable |
| 0a1cd584d |
refactor |
remove deprecated showCircularDependencies browser and server builder option |
| Commit |
Type |
Description |
| c5b3e9299 |
refactor |
deprecate unused exception classes |
| 67144b9e5 |
refactor |
remove deprecated parseJson and ParseJsonOptions APIs |
| a0c02af7e |
refactor |
remove deprecated fs, object and array APIs |
| Commit |
Type |
Description |
| c9c781c7d |
feat |
add parameter to listSchematicNames to allow returning hidden schematics. |
| 0e6425fd8 |
feat |
disable package script execution by default in NodePackageInstallTask |
| 25498ad5b |
feat |
re-export core string helpers from schematics package |
| 464cf330a |
feat |
support null for options parameter from OptionTransform type |
| 33f9f3de8 |
feat |
support reading JSON content directly from a Tree |
| 01297f450 |
feat |
support reading text content directly from a Tree |
| 48f9b79bc |
fix |
support ignore scripts package installs with Yarn 2+ |
| 3471cd6d8 |
fix |
support quiet package installs with Yarn 2+ |
| 44c1e6d0d |
refactor |
remove deprecated analytics property |
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled due to failing status checks.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
- [ ] If you want to rebase/retry this PR, click this checkbox.
This PR has been generated by Mend Renovate. View repository job log here.
⚠ Artifact update problem
Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.
♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
- any of the package files in this branch needs updating, or
- the branch becomes conflicted, or
- you click the rebase/retry checkbox if found above, or
- you rename this PR's title to start with "rebase!" to trigger it manually
The artifact failure details are included below:
File name: package-lock.json
npm WARN using --force I sure hope you know what you are doing.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/typescript
npm ERR! dev typescript@"4.4.4" from the root project
npm ERR! peer typescript@">=4.4.3 <4.6" from @angular-devkit/[email protected]
npm ERR! node_modules/@angular-devkit/build-angular
npm ERR! dev @angular-devkit/build-angular@"13.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer typescript@">=4.2.3 <4.4" from @angular/[email protected]
npm ERR! node_modules/@angular/compiler-cli
npm ERR! dev @angular/compiler-cli@"12.2.10" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /tmp/renovate-cache/others/npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /tmp/renovate-cache/others/npm/_logs/2022-01-26T23_23_29_845Z-debug-0.log