This repository has been archived by the owner on Jul 25, 2020. It is now read-only.
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:
5.2.11
->10.0.2
5.2.11
->10.0.2
5.2.11
->10.0.2
8.1.2
->10.0.2
5.2.11
->10.0.2
5.2.11
->10.0.2
5.2.11
->7.2.16
5.2.11
->10.0.2
5.2.11
->10.0.2
Release Notes
angular/angular
v10.0.2
Compare Source
Bug Fixes
Performance Improvements
v10.0.1
Compare Source
Bug Fixes
selectedOptions
(#37620) (dfb58c4), closes #37433RouterLinkActive
should run CD when settingisActive
(#21411) (a8ea817), closes #15943 #19934Performance Improvements
v10.0.0
Compare Source
Release Highlights & Update instructions
To learn about the release highlights and our CLI-powered automated update workflow for your projects please check out the v10 release announcement.
Features
module
points to esm2015 output (#36944) (c98a4d6)FileWriter
(#36626) (772ccf0)CacheQueryOptions
options in ngsw-config (#34663) (dc9f4b9), closes #28443registerWhenStable
SW registration strategy (#35870) (00efacf), closes #34464ignoreVary: true
when retrieving responses from cache (#34663) (ee35e22), closes #36638Bug Fixes
locales/global/*.js
are not ES5 compliant (#36342) (078b0be), closes angular/angular-cli#16394KeyValuePipe
accept type unions withnull
(#36093) (d783519), closes #35743isCaseSensitive()
returns correct value (#36859) (fc4741f)$localize
messages (#36989) (4e1b5e4)MockFileSystem
handles case-sensitivity (#36859) (26eacd4)getRootDirs()
handles case-sensitivity (#36859) (3f3e9b7)@Input
(#35889) (cda2530), closes #35383@NgModule
classes (#36369) (28995db), closes #35700APP_INITIALIZER
s before accessingLOCALE_ID
token in Ivy TestBed (#36237) (1649743), closes #36230undefined
(#36140) (9ba46d9)SimpleChange#firstChange
for pre-existing inputs (#36140) (b14ac96), closes #36130[@angular](https://togithub.com/angular)/core
module (#36783) (dd049ca)HtmlAst
to get the span of HTML tag (#36371) (81195a2)}
(#36123) (fced8ee), closes #31586getLocation()
works (#36853) (70b25a3)viaModule
should benull
for local imports (#36989) (d268d2a)node_modules/
(#36559) (6ab43d7), closes #36526node_modules/
(#37040) (9ade1c3)package.json
(#37040) (11c0402)paths
mapping does not exist (#36525) (717df13), closes #36518EsmDependencyHost
(#37075) (c6872c0)ENOMEM
errors in worker processes (#36626) (4779c4b)main
property for ESM5 format (#36396) (2463548), closes #35788defineProperty()
re-exports in CommonJS and UMD (#36989) (91092f6)browser
property in entry-points (#36396) (6b3aa60), closes #36062xhr2
dependency (#36366) (b59bc0e), closes #36358Code Refactoring
Performance Improvements
getBasePaths()
computation (#36881) (e037840)Dependency updates
@angular/compiler-cli now requires:
BREAKING CHANGES
to support Closure Compiler's advanced optimizations
The support for Closure Compiler in Angular packages has been
experimental and broken for quite some time.
As of TS3.9, Closure is unusable with the JavaScript emit. Please follow
microsoft/TypeScript#38374 for more
information and updates.
If you used Closure Compiler with Angular in the past, you will likely
be better off consuming Angular packages built from sources directly
rather than consuming the version we publish on npm,
which is primarily optimized for Webpack/Rollup + Terser build pipeline.
As a temporary workaround, you might consider using your current build
pipeline with Closure flag
--compilation_level=SIMPLE
. This flagwill ensure that your build pipeline produces buildable and
runnable artifacts, at the cost of increased payload size due to
advanced optimizations being disabled.
If you were affected by this change, please help us understand your
needs by leaving a comment on #37234.
A generic type parameter has always been required for the
ModuleWithProviders
pattern to work with Ivy, but prior to this commit, View Engine allowed the generic type to be omitted (though support was officially deprecated).If you're using
ModuleWithProviders
without a generic type in your application code, a v10 migration will update your code for you.However, if you are using View Engine and also depending on a library that omits the generic type, you will now get a build time error similar to:
In this case, ngcc won't help you (because it's Ivy-only) and the migration only covers application code.
You should contact the library author to fix their library to provide a type parameter when they use this class.
As a workaround, we suggest setting
skipLibChecks
to false in your tsconfig or updating your app to use Ivy.change
event.Tests which trigger
change
events need to be updated to triggerinput
events instead.The
change
event was in place to support IE9, as we found thatinput
events were not fired with backspace or cut actions. If you need to maintain IE9 support, you will need to add a change event listener to number inputs and call theonChange
method ofNumberValueAccessor
manually.Lastly, old versions of WebDriver would synthetically trigger the
change
event onWebElement.clear
andWebElement.sendKeys
. If you are using an old version of WebDriver, you may need to update tests to ensureinput
events are triggered. For example, you could useelement.sendKeys(Keys.chord(Keys.CONTROL, "a"), Keys.BACK_SPACE);
in place ofelement.clear()
.minLength
andmaxLength
validators now verify that the form control's value has anumeric
length
property, and only validate for length if that's the case.Previously, falsey values without the length property (such as
0
orfalse
values) were triggering validation errors. If your code relies onthe old behavior, you can include other validators such as min or
requiredTrue to the list of validators for a particular field.
Angular's npm packages e.g. @angular/core
If you are not using Angular CLI to build your application or library,
and you need to be able to build es5 artifacts, then you will need to
downlevel the distributed Angular code to es5 on your own.
Angular CLI will automatically downlevel the code to es5 if differential
loading is enabled in the Angular project, so no action is required from
Angular CLI users.
console.error
.If you want to allow the navigation to continue, you will need to update the resolvers to emit
some value, (i.e. defaultIfEmpty(...), of(...), etc).
headers would be taken into account when retrieving resources from the
cache, completely preventing the retrieval of cached assets (due to
ServiceWorker implementation details) and leading to unpredictable
behavior due to inconsistent/buggy implementations in different
browsers.
Now,
Vary
headers are ignored when retrieving resources from theServiceWorker caches, which can result in resources being retrieved even
when their headers are different. If your application needs to
differentiate its responses based on request headers, please make sure
the Angular ServiceWorker is configured
to avoid caching the affected resources.
were not detected before. The error could previously have gone undetected
because two WrappedValues are considered "equal" in all cases for the purposes
of the check, even if their respective unwrapped values are not.
Additionally,
[val]=(observable | async).someProperty
will no longertrigger change detection if the value of
someProperty
is identical tothe value in the previous emit. If you need to force change detection,
either update the binding to use an object whose reference changes or
subscribe to the observable and call markForCheck as needed.
common: format day-periods that cross midnight
When formatting a time with the
b
orB
format codes, the renderedstring was not correctly handling day periods that spanned midnight.
Instead the logic was falling back to the default case of
AM
.Now the logic has been updated so that it matches times that are within
a day period that spans midnight, so it will now render the correct
output, such as
at night
in the case of English.Applications that are using either
formatDate()
orDatePipe
and anyof the
b
orB
format codes will be affected by this change.router: UrlMatcher's type now reflects that it could always return
null.
If you implemented your own Router or Recognizer class, please update it to
handle matcher returning null.
9.1.11 (2020-06-10)
Reverts
9.1.10 (2020-06-09)
Bug Fixes
Renovate configuration
📅 Schedule: 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.
👻 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.