-
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.0
0.1300.0-rc.3
->0.1300.0
13.0.0-rc.3
->13.0.0
13.0.0-rc.3
->13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.2
->13.0.0
13.0.0-rc.3
->13.0.0
^12.0.0
->^13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.3
->13.0.0
13.0.0-rc.3
->13.0.0
^12.0.0
->^13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
eed375c
->60f0cbc
13.0.0-rc.3
->13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.2
->13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.3
->13.0.0
12.2.11
->13.0.0
13.0.0-rc.3
->13.0.0
13.0.0-rc.3
->13.0.0
9277822
->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.0
Compare Source
Breaking Changes
@angular/cli
12.20
.@schematics/angular
classlist.js
andweb-animations-js
are 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/angular
deprecated options.lintFix
have been removed from all schematics.ng lint --fix
should be used instead.legacyBrowsers
have been removed from theapplication
schematics since IE 11 is no longer supported.configuration
has been removed from theweb-worker
as it was unused.target
has been removed from theservice-worker
as it was unused.@angular-devkit/build-angular
Support for
karma-coverage-instanbul-reporter
has been dropped in favor of the official karma coverage pluginkarma-coverage
.Support for
node-sass
has been removed.sass
will be used by default to compile SASS and SCSS files.NG_PERSISTENT_BUILD_CACHE
environment variable option no longer have effect. Configurecli.cache
in the workspace configuration instead.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:
aot
sourceMap
deployUrl
baseHref
vendorChunk
commonChunk
optimization
progress
With this change we removed several deprecated builder options
extractCss
has been removed from the browser builder. CSS is now always extracted.servePathDefaultWarning
andhmrWarning
have been removed from the dev-server builder. These options had no effect.Deprecated
@angular-devkit/build-angular:tslint
builder 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-server
version 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-webpack
directly.@angular-devkit/core
id
in schemas. Use$id
instead.Note: this only effects schematics and builders authors.
@angular-devkit/schematics
isAction
has been removed without replacement as it was unused.With this change we remove the following deprecated APIs
TslintFixTask
TslintFixTaskOptions
Note: this only effects schematics developers.
@ngtools/webpack
Deprecated
inlineStyleMimeType
option has been removed fromAngularWebpackPluginOptions
. UseinlineStyleFileExtension
instead.Applications directly using the
webpack-cli
and not the Angular CLI to build must set the environment variableDISABLE_V8_COMPILE_CACHE=1
. The@ngtools/webpack
package now uses dynamic imports to provide support for the ESM@angular/compiler-cli
package. Thev8-compile-cache
package used by thewebpack-cli
does 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-optimizer
It's functionality has been included in
@angular-devkit/build-angular
so 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_CACHE
environment variable option will be removed in the next major version. Configurecli.cache
in the workspace configuration instead.@angular/cli
engines
to requirenode
12.20.0
ng update
output for Angular packages@schematics/angular
/.angular/cache
to.gitignore
noImplicitOverride
andnoPropertyAccessFromIndexSignature
to workspace tsconfigdestroyAfterEach
in newly generated spec filesrenderModuleFactory
from server filetarget
andlib
options for library tsconfig@angular-devkit/build-optimizer
as deprecated.@angular-devkit/architect
@angular-devkit/build-angular
type=module
to all scripts tagskarma-coverage-instanbul-reporter
node-sass
webpack-dev-server
to version 4es2020
andes2015
conditional exports@angular/localize/tools
not respected@angular/localize
detection prior to webpack initializationxxhash64
@angular-devkit/build-webpack
webpack-dev-server
to version 4@angular-devkit/core
chokidar
NodeJsSyncHost
/NodeJsAsyncHost
delete operation@angular-devkit/schematics
isAction
@ngtools/webpack
inlineStyleMimeType
option@angular/compiler-cli
packageSpecial Thanks
Alan Agius, Charles Lyding, Doug Parker, Douglas Parker, Joey Perrott, Kristiyan Kostadinov, Lukas Spirig and Paul Gschwendtner
angular/angular
v13.0.0
Compare Source
Breaking Changes
common
SpyLocation
used by theRouterTestingModule
has changedto match the behavior of browsers. It no longer emits a 'popstate' event
when
Location.go
is called. In addition,simulateHashChange
nowtriggers both a
hashchange
and apopstate
event.Tests which use
location.go
and expect the changes to be picked up bythe
Router
should likely change tosimulateHashChange
instead.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
SpyLocation
tosimulate 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.0
are no longersupported due to the Angular packages using the NodeJS package exports
feature with subpath patterns.
The
WrappedValue
class 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 ofWrappedValue
should be removed as no replacement is available.forms
FormControlStatus
has been introduced, which is a union of all possible status strings for form controls.AbstractControl.status
has been narrowed fromstring
toFormControlStatus
, andstatusChanges
has 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.status
against a string which is not a valid status; or, (2) the app is usingstatusChanges
events 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
null
andundefined
inputs forrouterLink
wereequaivalent to empty string and there was no way to disable the link's
navigation.
In addition, the
href
is changed from a propertyHostBinding()
to anattribute binding (
HostBinding('attr.href')
). The effect of thischange is that
DebugElement.properties['href']
will now return thehref
value returned by the native element which will be the full URLrather than the internal value of the
RouterLink
href
property.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
navigationId
being present on initialnavigations that were handled by the Angular router should instead
subscribe to
NavigationCancel
events and perform thelocation.replaceState
themselves to addnavigationId
to the Routerstate.
In addition, tests which assert
urlChanges
on theSpyLocation
mayneed to be adjusted to account for the
replaceState
which is no longertriggered.
It is no longer possible to use
Route.loadChildren
using a stringvalue. The following supporting classes were removed from
@angular/core
:NgModuleFactoryLoader
SystemJsNgModuleFactoryLoader
The
@angular/router
package no longer exports these symbols:SpyNgModuleFactoryLoader
DeprecatedLoadChildren
The signature of the
setupTestingRouter
function from@angular/core/testing
has been changed to drop itsNgModuleFactoryLoader
parameter, as an argument for that parameter can no longer be created.
service-worker
SwUpdate#activateUpdate
andSwUpdate#checkForUpdate
changed 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
renderModuleFactory
symbol in@angular/platform-server
is no longer necessary as of Angular v13.The
renderModuleFactory
calls can be replaced withrenderModule
.service-worker
SwUpdate#activated
observable is deprecated.The
SwUpdate#activated
observable 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#activated
does not offer any benefit.SwUpdate#availalbe
observable is deprecated.The new
SwUpdate#versionUpdates
observable provides the same information and more. Therefore, itis possible to rebuild the same behavior as
SwUpdate#availalbe
using the events emitted bySwUpdate#versionUpdates
and filtering forVersionReadyEvent
events.As a result, the
SwUpdate#availalbe
observable is now redundant.renderModuleFactory
(#43757)bazel
strict_templates
andexperimental_extended_template_diagnostics
tong_module()
rule (#43582)ng_package
targets (#43764)esm2020
andes2020
conditions in APF package exports (#43740)ng_package
rule (#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.