-
Notifications
You must be signed in to change notification settings - Fork 26.2k
build: update angular #44024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: update angular #44024
Conversation
749d2bb to
c6f2668
Compare
c6f2668 to
661bb65
Compare
661bb65 to
e479d35
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This comment has been minimized.
This comment has been minimized.
|
@googlebot I consent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
We should add the v12 package aliases to the renovate ignore list
|
This PR was merged into the repository by commit 595a7e3. |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
This PR contains the following updates:
13.0.0-rc.3->13.0.00.1300.0-rc.3->0.1300.013.0.0-rc.3->13.0.013.0.0-rc.3->13.0.013.0.0-rc.3->13.0.012.2.11->13.0.013.0.0-rc.2->13.0.013.0.0-rc.3->13.0.0^12.0.0->^13.0.013.0.0-rc.3->13.0.012.2.11->13.0.013.0.0-rc.3->13.0.013.0.0-rc.3->13.0.0^12.0.0->^13.0.013.0.0-rc.3->13.0.012.2.11->13.0.0eed375c->60f0cbc13.0.0-rc.3->13.0.013.0.0-rc.3->13.0.012.2.11->13.0.013.0.0-rc.2->13.0.013.0.0-rc.3->13.0.012.2.11->13.0.013.0.0-rc.3->13.0.012.2.11->13.0.012.2.11->13.0.013.0.0-rc.3->13.0.012.2.11->13.0.013.0.0-rc.3->13.0.013.0.0-rc.3->13.0.09277822->c1eb5f7🔡 If you wish to disable git hash updates, add
":disableDigestUpdates"to the extends array in your config.Release Notes
angular/angular-cli
v13.0.0Compare Source
Breaking Changes
@angular/cli
12.20.@schematics/angular
classlist.jsandweb-animations-jsare removed from application polyfills and uninstalled from the package. These were only needed for compatibility with Internet Explorer, which is no longer needed now that Angular only supports evergreen browsers. See: https://angular.io/guide/browser-support.Add the following to the polyfills file for an app to re-add these packages:
And then run:
@schematics/angulardeprecated options.lintFixhave been removed from all schematics.ng lint --fixshould be used instead.legacyBrowsershave been removed from theapplicationschematics since IE 11 is no longer supported.configurationhas been removed from theweb-workeras it was unused.targethas been removed from theservice-workeras it was unused.@angular-devkit/build-angular
Support for
karma-coverage-instanbul-reporterhas been dropped in favor of the official karma coverage pluginkarma-coverage.Support for
node-sasshas been removed.sasswill be used by default to compile SASS and SCSS files.NG_PERSISTENT_BUILD_CACHEenvironment variable option no longer have effect. Configurecli.cachein the workspace configuration instead.{ "$schema": "./node_modules/@​angular/cli/lib/config/schema.json", "version": 1, "cli": { "cache": { "enabled": true, "path": ".custom-cache-path", "environment": "all" } } ... }The automatic inclusion of Angular-required ES2015 polyfills to support ES5 browsers has been removed. Previously when targetting ES5 within the application's TypeScript configuration or listing an ES5 requiring browser in the browserslist file, Angular-required polyfills were included in the built application. However, with Angular no longer supporting IE11, there are now no browsers officially supported by Angular that would require these polyfills. As a result, the automatic inclusion of these ES2015 polyfills has been removed. Any polyfills manually added to an application's code are not affected by this change.
With this change a number of deprecated dev-server builder options which proxied to the browser builder have been removed. These options should be configured in the browser builder instead.
The removed options are:
aotsourceMapdeployUrlbaseHrefvendorChunkcommonChunkoptimizationprogressWith this change we removed several deprecated builder options
extractCsshas been removed from the browser builder. CSS is now always extracted.servePathDefaultWarningandhmrWarninghave been removed from the dev-server builder. These options had no effect.Deprecated
@angular-devkit/build-angular:tslintbuilder has been removed. Use https://github.com/angular-eslint/angular-eslint instead.Differential loading support has been removed. With Angular no longer supporting IE11, there are now no browsers officially supported by Angular that require ES5 code. As a result, differential loading's functionality for creating and conditionally loading ES5 and ES2015+ variants of an application is no longer required.
TypeScript versions prior to 4.4 are no longer supported.
The dev-server now uses WebSockets to communicate changes to the browser during HMR and live-reloaded. If during your development you are using a proxy you will need to enable proxying of WebSockets.
We remove inlining of Google fonts in WOFF format since IE 11 is no longer supported. Other supported browsers use WOFF2.
@angular-devkit/build-webpack
webpack-dev-serverversion 3 has been removed. For more information about the migration please see: https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.mdNote: this change only affects users depending on
@angular-devkit/build-webpackdirectly.@angular-devkit/core
idin schemas. Use$idinstead.Note: this only effects schematics and builders authors.
@angular-devkit/schematics
isActionhas been removed without replacement as it was unused.With this change we remove the following deprecated APIs
TslintFixTaskTslintFixTaskOptionsNote: this only effects schematics developers.
@ngtools/webpack
Deprecated
inlineStyleMimeTypeoption has been removed fromAngularWebpackPluginOptions. UseinlineStyleFileExtensioninstead.Applications directly using the
webpack-cliand not the Angular CLI to build must set the environment variableDISABLE_V8_COMPILE_CACHE=1. The@ngtools/webpackpackage now uses dynamic imports to provide support for the ESM@angular/compiler-clipackage. Thev8-compile-cachepackage used by thewebpack-clidoes not currently support dynamic import expressions and will cause builds to fail if the environment variable is not specified. Applications using the Angular CLI are not affected by this limitation.Deprecations
@angular-devkit/build-optimizerIt's functionality has been included in
@angular-devkit/build-angularso this package is no longer needed by the CLI and we will stop publishing the package soon. It has been an experimental (never hit1.0.0) and internal (only used by Angular itself) package and should be not be used directly by others.@angular-devkit/build-angular
NG_BUILD_CACHEenvironment variable option will be removed in the next major version. Configurecli.cachein the workspace configuration instead.@angular/cli
enginesto requirenode12.20.0ng updateoutput for Angular packages@schematics/angular
/.angular/cacheto.gitignorenoImplicitOverrideandnoPropertyAccessFromIndexSignatureto workspace tsconfigdestroyAfterEachin newly generated spec filesrenderModuleFactoryfrom server filetargetandliboptions for library tsconfig@angular-devkit/build-optimizeras deprecated.@angular-devkit/architect
@angular-devkit/build-angular
type=moduleto all scripts tagskarma-coverage-instanbul-reporternode-sasswebpack-dev-serverto version 4es2020andes2015conditional exports@angular/localize/toolsnot respected@angular/localizedetection prior to webpack initializationxxhash64@angular-devkit/build-webpack
webpack-dev-serverto version 4@angular-devkit/core
chokidarNodeJsSyncHost/NodeJsAsyncHostdelete operation@angular-devkit/schematics
isAction@ngtools/webpack
inlineStyleMimeTypeoption@angular/compiler-clipackageSpecial Thanks
Alan Agius, Charles Lyding, Doug Parker, Douglas Parker, Joey Perrott, Kristiyan Kostadinov, Lukas Spirig and Paul Gschwendtner
angular/angular
v13.0.0Compare Source
Breaking Changes
common
SpyLocationused by theRouterTestingModulehas changedto match the behavior of browsers. It no longer emits a 'popstate' event
when
Location.gois called. In addition,simulateHashChangenowtriggers both a
hashchangeand apopstateevent.Tests which use
location.goand expect the changes to be picked up bythe
Routershould likely change tosimulateHashChangeinstead.Each test is different in what it attempts to assert so there is no
single change that works for all tests. Each test using the
SpyLocationtosimulate browser URL changes should be evaluated on a case-by-case basis.
core
TypeScript versions older than 4.4.2 are no longer supported.
NodeJS versions older than
v12.20.0are no longersupported due to the Angular packages using the NodeJS package exports
feature with subpath patterns.
The
WrappedValueclass can no longer be imported from@angular/core,which may result in compile errors or failures at runtime if outdated
libraries are used that are still using
WrappedValue. The usage ofWrappedValueshould be removed as no replacement is available.forms
FormControlStatushas been introduced, which is a union of all possible status strings for form controls.AbstractControl.statushas been narrowed fromstringtoFormControlStatus, andstatusChangeshas been narrowed fromObservable<any>toObservable<FormControlStatus>. Most applications should consume the new types seamlessly. Any breakage caused by this change is likely due to one of the following two problems: (1) the app is comparingAbstractControl.statusagainst a string which is not a valid status; or, (2) the app is usingstatusChangesevents as if they were something other than strings.router
The default url serializer would previously drop
everything after and including a question mark in query parameters. That
is, for a navigation to
/path?q=hello?&other=123, the queryparams would be parsed to just
{q: 'hello'}. This isincorrect because the URI spec allows for question mark characers in
query data. This change will now correctly parse the params for the
above example to be
{v: 'hello?', other: '123'}.Previously
nullandundefinedinputs forrouterLinkwereequaivalent to empty string and there was no way to disable the link's
navigation.
In addition, the
hrefis changed from a propertyHostBinding()to anattribute binding (
HostBinding('attr.href')). The effect of thischange is that
DebugElement.properties['href']will now return thehrefvalue returned by the native element which will be the full URLrather than the internal value of the
RouterLinkhrefproperty.The router will no longer replace the browser URL when a new navigation
cancels an ongoing navigation. This often causes URL flicker and was
only in place to support some AngularJS hybrid applications. Hybrid
applications which rely on the
navigationIdbeing present on initialnavigations that were handled by the Angular router should instead
subscribe to
NavigationCancelevents and perform thelocation.replaceStatethemselves to addnavigationIdto the Routerstate.
In addition, tests which assert
urlChangeson theSpyLocationmayneed to be adjusted to account for the
replaceStatewhich is no longertriggered.
It is no longer possible to use
Route.loadChildrenusing a stringvalue. The following supporting classes were removed from
@angular/core:NgModuleFactoryLoaderSystemJsNgModuleFactoryLoaderThe
@angular/routerpackage no longer exports these symbols:SpyNgModuleFactoryLoaderDeprecatedLoadChildrenThe signature of the
setupTestingRouterfunction from@angular/core/testinghas been changed to drop itsNgModuleFactoryLoaderparameter, as an argument for that parameter can no longer be created.
service-worker
SwUpdate#activateUpdateandSwUpdate#checkForUpdatechanged toPromise<boolean>.Although unlikely, it is possible that this change will cause TypeScript type-checking to fail in
some cases. If necessary, update your types to account for the new
return type.
Deprecations
renderModuleFactorysymbol in@angular/platform-serveris no longer necessary as of Angular v13.The
renderModuleFactorycalls can be replaced withrenderModule.service-worker
SwUpdate#activatedobservable is deprecated.The
SwUpdate#activatedobservable only emits values as a direct response to callingSwUpdate#activateUpdate()and was only useful for determining whether the call resulted in anupdate or not. Now, the return value of
SwUpdate#activateUpdate()can be used to determine theoutcome of the operation and therefore using
SwUpdate#activateddoes not offer any benefit.SwUpdate#availalbeobservable is deprecated.The new
SwUpdate#versionUpdatesobservable provides the same information and more. Therefore, itis possible to rebuild the same behavior as
SwUpdate#availalbeusing the events emitted bySwUpdate#versionUpdatesand filtering forVersionReadyEventevents.As a result, the
SwUpdate#availalbeobservable is now redundant.renderModuleFactory(#43757)bazel
strict_templatesandexperimental_extended_template_diagnosticstong_module()rule (#43582)ng_packagetargets (#43764)esm2020andes2020conditions in APF package exports (#43740)ng_packagerule (#43431)ng_module(#43431)common
compiler
compiler-cli
Configuration
📅 Schedule: "after 10pm every weekday,before 4am every weekday,every weekend" in timezone America/Tijuana.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Renovate will not automatically rebase this PR, because other commits have been found.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.