fix(deps): update dependency @angular/core to v11 [security] #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~9.0.7
->~11.0.0
GitHub Vulnerability Alerts
CVE-2021-4231
A vulnerability was found in Angular up to 11.0.4/11.1.0-next.2. It has been classified as problematic. Affected is the handling of comments. The manipulation leads to cross site scripting. It is possible to launch the attack remotely but it might require an authentication first. Upgrading to version 11.0.5 and 11.1.0-next.3 is able to address this issue. The name of the patch is ba8da742e3b243e8f43d4c63aa842b44e14f2b09. It is recommended to upgrade the affected component.
Release Notes
angular/angular
v11.0.5
Compare Source
Bug Fixes
ngDevMode
tofalse
when callingenableProdMode()
(#40124) (922f492)v11.0.4
Compare Source
Bug Fixes
onError
when the root view is removed (#39940) (35309bb)Performance Improvements
ngDevMode
to tree-shake warning (#39964) (72aad32)ngDevMode
to tree-shake warnings (#39964) (bf3de9b)ngDevMode
to tree-shakecheckNoChanges
(#39964) (2fbb684)ngDevMode
to tree-shake warnings (#39959) (1e3534f)ngDevMode
to tree-shake_ngModelWarning
(#39964) (735556d)v11.0.3
Compare Source
Bug Fixes
Attribute
DI decorator indeps
section of a token (#37085) (aaa3111), closes #36479DEPRECATIONS
v11.0.2
Compare Source
Bug Fixes
v11.0.1
Compare Source
Bug Fixes
Performance Improvements
v11.0.0
Compare Source
Blog post "Version 11 of Angular Now Available".
Bug Fixes
--stamp
flag is used (#39392) (84e09a0)DatePipe
(#38009) (26f2820), closes #37989params
andreportProgress
options toHttpClient.put()
overload (#37873) (dd8d8c8), closes #23600KeyValuePipe
(#37447) (4dfe0fa)AsyncPipe
(#37447) (5f815c0)I18nPluralPipe
(#37447) (3b919ef)SlicePipe
(#37447) (4744c22)null
(#37447) (c7d5555), closes #36259r
->Y
(#39495) (feda78e)this.$event
andthis.$any
accesses in expressions (#39323) (a8e0db7), closes #30278let
statements in ES2015+ mode (#38775) (123bff7)setClassMetadata
call in ES5 for class with custom decorator (#39527) (b0bbc1f), closes #39509fullTemplateTypeCheck
is disabled (#39320) (67ea7b6), closes #38195CollectionChangeRecord
symbol (#38668) (fdea180)TestBed
is not instantiated before override provider (#38717) (c8f056b)createNamedArrayType()
(#39209) (f6d5cdf)ngDevMode
for undefined. (#36055) (f541e5f)ngDevMode
is undeclared (#39415) (cc32932)LView
rather than inTView
(#39233) (0992b67), closes #37021 #38144 #38073markDirty()
should only mark flags when really scheduling tick. (#39316) (3b6497b), closes #39296SkipSelf
(#39464) (7cb9e19)OnPush
component when inputs change (#39452) (dd28855), closes #38948statusChanges
on subsequent value update/validations (#38354) (d9fea85), closes #20424 #14542NG_VALUE_ACCESSOR
injection token as array (#29723) (2b1b718), closes #29351null
in.parent
of abstract control (#32671) (f4f1bcc), closes #16999BoundAttribute
(#38995) (323be39)baseUrl
(#39334) (b4e8399)shouldReuseRoute
(#26949) (3817e5f), closes #16192relativeLinkResolution
tocorrected
by default (#25609) (837889f)ExtraOptions
toRouter
inRouterTestingModule
(#39096) (d8c0534), closes #23347routerLink
(#39151) (b0b4953)preserveQueryParams
(#38762) (93ee05d)preserveQueryParams
symbol (#38762) (783a5bd)createUrlTree
(#39347) (161b278)Features
formatDate
(#38828) (984ed39)DatePipe
(#37447) (daf8b7f)keySpan
toVariable
node (#38965) (239968d)TemplateTypeChecker
operation to getSymbol
from a template node (#38618) (c4556db)Symbol
ofTemplate
s andElement
s in component template (#38618) (cf2e8b9)Symbol
of AST expression in component template (#38618) (f56ece4)TemplateTypeChecker
(#38618) (9e77bd3)async
withwaitForAsync
(#39212) (5ce71e0)ViewEncapsulation.Native
(#38882) (0e733f3)initialNavigation
schematic (#36926) (0ec7043)Function
constructor (#39209) (5913e5c)ViewEncapsulation.Native
(#38882) (4a1c12c)AbstractControl.parent
accesses (#39009) (aeec223), closes #32671getDefinitionAndBoundSpan
(go to definition) (#39101) (3975dd9)getSemanticDiagnostics
for external templates (#39065) (63624a2)getTypeDefinitionAtPosition
(go to type definition) (#39145) (a84976f)navigateByUrl
andcreateUrlTree
with invalid parameters (#38825) (7849fdd)relativeLinkResolution
migration to update default value (#38698) (15ea811)initialNavigation
options to replace legacy (#37480) (c4becca)UnrecoverableStateError
(#36847) (036a2fa), closes #36539Performance Improvements
ngDevMode
to tree-shake error messages in router (#38674) (db21c4f)BREAKING CHANGES
The locale data API has been marked as returning readonly arrays, rather than mutable arrays, since these arrays are shared across calls to the API.
If you were mutating them (e.g. calling
sort()
,push()
,splice()
, etc.) then your code will no longer compile.If you need to mutate the array, you should now make a copy (e.g. by calling
slice()
) and mutate the copy.When passing a date-time formatted string to the
DatePipe
in a format that contains fractions of a millisecond, the milliseconds will now always be rounded down rather than to the nearest millisecond.Most applications will not be affected by this change.
If this is not the desired behaviour then consider pre-processing the string to round the millisecond part before passing it to the
DatePipe
.The
slice
pipe now returnsnull
for theundefined
input value, which is consistent with the behavior of most pipes.If you rely on
undefined
being the result in that case, you now need to check for it explicitly.The typing of the
keyvalue
pipe has been fixed to report that for input objects that havenumber
keys, the result will contain the string representation of the keys.This was already the case and the types have simply been updated to reflect this.
Please update the consumers of the pipe output if they were relying on the incorrect types.
Note that this does not affect use cases where the input values are
Map
s, so if you need to preservenumber
s, this is an effective way.The signatures of the number pipes now explicitly state which types are accepted.
This should only cause issues in corner cases, as any other values would result in runtime exceptions.
The signature of the
date
pipe now explicitly states which types are accepted.This should only cause issues in corner cases, as any other values would result in runtime exceptions.
The
async
pipe no longer claims to returnundefined
for an input that was typed asundefined
.Note that the code actually returned
null
onundefined
inputs.In the unlikely case you were relying on this, please fix the typing of the consumers of the pipe output.
The case conversion pipes no longer let falsy values through.
They now map both
null
andundefined
tonull
and raise an exception on invalid input (0
,false
,NaN
) just like most "common pipes".If your code required falsy values to pass through, you need to handle them explicitly.
TypeScript 3.9 is no longer supported, please upgrade to TypeScript 4.0.
Expressions within ICUs are now type-checked again, fixing a regression in Ivy.
This may cause compilation failures if errors are found in expressions that appear within an ICU.
Please correct these expressions to resolve the type-check errors.
CollectionChangeRecord
has been removed, useIterableChangeRecord
instead.If you call
TestBed.overrideProvider
after TestBed initialization, provider overrides are not applied.This behavior is consistent with other override methods (such as
TestBed.overrideDirective
, etc) but they throw an error to indicate that, when the check was missing in theTestBed.overrideProvider
function.Now calling
TestBed.overrideProvider
afterTestBed
initialization also triggers an error, thus there is a chance that some tests (whereTestBed.overrideProvider
is called afterTestBed
initialization) will start to fail and require updates to moveTestBed.overrideProvider
calls beforeTestBed
initialization is completed.In v10, IE 9, 10, and IE mobile support was deprecated.
In v11, Angular framework removes IE 9, 10, and IE mobile support completely.
Supporting outdated browsers like these increases bundle size, code complexity, and test load, and also requires time and effort that could be spent on improvements to the framework.
For example, fixing issues can be more difficult, as a straightforward fix for modern browsers could break old ones that have quirks due to not receiving updates from vendors.
ViewEncapsulation.Native
has been removed. UseViewEncapsulation.ShadowDom
instead.Existing usages will be updated automatically by
ng update
.Previously if
FormControl
,FormGroup
andFormArray
class instances had async validators defined at initialization time, the status change event was not emitted once async validators completed.After this change the status event is emitted into the
statusChanges
observable.If your code relies on the old behavior, you can filter/ignore this additional status change event.
Directives in the
@angular/forms
package used to haveany[]
as a type ofvalidators
andasyncValidators
arguments in constructors.Now these arguments are properly typed, so if your code relies on directive constructor types it may require some updates to improve type safety.
Type of
AbstractFormControl.parent
now includesnull
.null
is now included in the types of.parent
.If you don't already have a check for this case, the TypeScript compiler might complain.
A v11 migration exists which adds the non-null assertion operator where necessary.
In an unlikely case your code was testing the parent against
undefined
with strict equality, you'll need to change this to=== null
instead, since the parent is now explicitly initialized withnull
instead of being leftundefined
.If you use
useAbsoluteUrl
to setupplatform-server
, you now need to also specifybaseUrl
.We are intentionally making this a breaking change in a minor release, because if
useAbsoluteUrl
is set totrue
then the behavior of the application could be unpredictable, resulting in issues that are hard to discover but could be affecting production environments.@angular/platform-webworker and @angular/platform-webworker-dynamic have been removed as they were deprecated in v8.
This change corrects the argument order when calling
RouteReuseStrategy#shouldReuseRoute
.Previously, when evaluating child routes, they would be called with the future and current arguments would be swapped.
If your
RouteReuseStrategy
relies specifically on only the future or current snapshot state, you may need to update theshouldReuseRoute
implementation's use of "future" and "current"ActivatedRouteSnapshot
s.While the new parameter types allow a variable of type
NavigationExtras
to be passed in, they will not allow object literals, as they may only specify known properties.They will also not accept types that do not have properties in common with the ones in the
Pick
.To fix this error, only specify properties from the
NavigationExtras
which are actually used in the respective function calls or use a type assertion on the object or variable:as NavigationExtras
.This commit changes the default value of
relativeLinkResolution
from'legacy'
to'default'
.If your application previously used the default by not specifying a value in the
ExtraOptions
and uses relative links when navigating from children of empty path routes, you will need to update yourRouterModule
to specifically specify'legacy'
forrelativeLinkResolution
.See https://angular.io/api/router/ExtraOptions#relativeLinkResolution for more details.
The
initialNavigation
property for the options inRouterModule.forRoot
no longer supportslegacy_disabled
,legacy_enabled
,true
, orfalse
as valid values.legacy_enabled
(the old default) is insteadenabledNonBlocking
.enabled
is deprecated as a valid value for theRouterModule.forRoot
initialNavigation
option.enabledBlocking
has been introduced to replace it.preserveQueryParams
has been removed, usequeryParamsHandling: "preserve"
instead.If you were accessing the
RouterLink
values ofqueryParams
,fragment
orqueryParamsHandling
you might need to relax the typing to also acceptundefined
andnull
.Code Refactoring
navigateByUrl
andcreateUrlTree
to be more accurate (#38227) (e4f4d18), closes #18798v10.2.5
Compare Source
v10.2.4
Compare Source
v10.2.3
Compare Source
v10.2.2
Compare Source
v10.2.1
Compare Source
v10.2.0
Compare Source
v10.1.6
Compare Source
v10.1.5
Compare Source
v10.1.4
Compare Source
v10.1.3
Compare Source
v10.1.2
Compare Source
v10.1.1
Compare Source
v10.1.0
Compare Source
v10.0.14
Compare Source
v10.0.13
Compare Source
v10.0.12
Compare Source
v10.0.11
Compare Source
v10.0.10
Compare Source
v10.0.9
Compare Source
v10.0.8
Compare Source
v10.0.7
Compare Source
v10.0.6
Compare Source
v10.0.5
Compare Source
v10.0.4
Compare Source
v10.0.3
Compare Source
v10.0.2
Compare Source
v10.0.1
Compare Source
v10.0.0
Compare Source
v9.1.13
Compare Source
v9.1.12
Compare Source
v9.1.11
Compare Source
v9.1.10
Compare Source
v9.1.9
Compare Source
v9.1.8
Compare Source
v9.1.7
Compare Source
v9.1.6
Compare Source
v9.1.5
Compare Source
v9.1.4
Compare Source
v9.1.3
Compare Source
v9.1.2
Compare Source
v9.1.1
Compare Source
v9.1.0
Compare Source
Configuration
📅 Schedule: Branch creation - "" (UTC), 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 this update again.
This PR has been generated by Mend Renovate. View repository job log here.