
This PR contains the following updates:
Release Notes
angular/angular-cli
Compare Source
Commit |
Type |
Description |
1c9cf594f |
fix |
handle missing which binary in path |
28b2cd18e |
fix |
skip downloading temp CLI when running ng update without package names |
Commit |
Type |
Description |
ad6928184 |
fix |
project extension warning message should identify concerned project |
Special Thanks
AgentEnder and Alan Agius
Compare Source
Commit |
Type |
Description |
17eb20c77 |
fix |
throw more relevant error when Rule returns invalid null value |
Special Thanks
Alan Agius and Charles Lyding
Compare Source
Commit |
Type |
Description |
05b18f4e4 |
fix |
add builders and schematic names as page titles in collected analytics |
Special Thanks
Alan Agius, Jason Bedard and Paul Gschwendtner
Compare Source
Commit |
Type |
Description |
e7e0cb78f |
fix |
correctly display error messages that contain "at" text. |
4756d7e06 |
fix |
watch symbolic links |
Commit |
Type |
Description |
1e3ecbdb1 |
perf |
avoid bootstrap conversion AST traversal where possible |
Special Thanks
Alan Agius, Charles Lyding, Jason Bedard and Joey Perrott
Compare Source
Commit |
Type |
Description |
5405a9b3b |
fix |
favor non deprecated packages during update |
Commit |
Type |
Description |
6bfd6a7fb |
fix |
update minimum Angular version to 14.2 |
Commit |
Type |
Description |
2b00bca61 |
fix |
allow esbuild-based builder to use SVG Angular templates |
45c95e1bf |
fix |
change service worker errors to compilation errors |
ecc014d66 |
fix |
handle service-worker serving with localize in dev-server |
39ea128c1 |
fix |
handling of @media queries inside css layers |
17b7e1bdf |
fix |
issue warning when using deprecated tilde imports |
3afd784f1 |
fix |
watch index file when running build in watch mode |
Special Thanks
Alan Agius, Charles Lyding, Jason Bedard and Joey Perrott
Compare Source
Commit |
Type |
Description |
e4ca46866 |
fix |
update ng-packagr version to ^14.2.0 |
Special Thanks
Alan Agius
Compare Source
Commit |
Type |
Description |
596037010 |
fix |
add missing space after period in warning text |
Commit |
Type |
Description |
44c25511e |
feat |
add ability to serve service worker when using dev-server |
3fb569b5c |
feat |
switch to Sass modern API in esbuild builder |
5bd03353a |
fix |
correct esbuild builder global stylesheet sourcemap URL |
c4402b1bd |
fix |
correctly handle parenthesis in url |
50c783307 |
fix |
use valid CSS comment for sourcemaps with Sass in esbuild builder |
4c251853f |
perf |
avoid extra string creation with no sourcemaps for esbuild sass |
d97640534 |
perf |
with esbuild builder only load Sass compiler when needed |
Special Thanks
Alan Agius, Charles Lyding, Doug Parker, Jason Bedard, Joey Perrott, Kristiyan Kostadinov and angular-robot[bot]
Compare Source
Commit |
Type |
Description |
365035cb3 |
fix |
update workspace extension warning to use correct phrasing |
Special Thanks
AgentEnder, Alan Agius, Charles Lyding and Jason Bedard
Compare Source
Commit |
Type |
Description |
3e19c842c |
fix |
avoid collect stats from chunks with no files |
d0a0c597c |
fix |
correctly handle data URIs with escaped quotes in stylesheets |
67b3a086f |
fix |
process stylesheet resources from url tokens with esbuild browser builder |
e6c45c316 |
perf |
reduce babel transformation in esbuild builder |
38b71bcc0 |
perf |
use esbuild in esbuild builder to downlevel native async/await |
Commit |
Type |
Description |
dd47a5e8c |
fix |
elide type only named imports when using emitDecoratorMetadata |
Special Thanks
Alan Agius, Charles Lyding and Jason Bedard
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 |
|
|
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, 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.