Angular 15
https://github.com/angular/angular
15.2.8 (2023-04-19)
core
Commit | Description |
---|---|
handle invalid classes in class array bindings (#49924) |
http
Commit | Description |
---|---|
prevent headers from throwing an error when initializing numerical values (#49379) |
router
Commit | Description |
---|---|
canceledNavigationResolution: 'computed' with redirects to the current URL (#49793) |
15.2.7 (2023-04-12)
compiler
Commit | Description |
---|---|
Produce diagnositc if directive used in host binding is not exported (#49792) |
compiler-cli
Commit | Description |
---|---|
Catch FatalDiagnosticError during template type checking (#49792) |
core
Commit | Description |
---|---|
When using setInput, mark view dirty in same way as markForCheck (#49747) |
Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Kristiyan Kostadinov, Matthieu Riegler and Nikola Kološnjaji
15.2.6 (2023-04-05)
core
Commit | Description |
---|---|
change the URL sanitization to only block javascript: URLs (#49659) |
router
Commit | Description |
---|---|
create correct URL relative to path with empty child (#49691) | |
Ensure initial navigation clears current navigation when blocking (#49572) |
Special Thanks
Andrew Scott, Guillaume Weghsteen, John Manners, Johnny Gérard, Matthieu Riegler, Robin Richtsfeld, Sandra Limacher, Sarthak Thakkar, Vinit Neogi and vikram menon
15.2.5 (2023-03-29)
common
Commit | Description |
---|---|
invalid ImageKit transformation (#49201) |
compiler
Commit | Description |
---|---|
do not unquote CSS values (#49460) | |
handle trailing comma in object literal (#49535) |
core
Commit | Description |
---|---|
set style property value to empty string instead of an invalid value (#49460) |
router
Commit | Description |
---|---|
Ensure Router preloading works with lazy component and static children (#49571) | |
fix #49457 outlet activating with old info (#49459) |
Special Thanks
Alan Agius, Andrew Scott, Asaf Malin, Jan Cabadaj, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Sid and Tano Abeleyra
15.2.4 (2023-03-22)
core
Commit | Description |
---|---|
Allow TestBed.configureTestingModule to work with recursive cycle of standalone components. (#49473) |
|
more accurate matching of classes during content projection (#48888) |
migrations
Commit | Description |
---|---|
preserve trailing commas in code generated by standalone migration (#49533) |
Special Thanks
Aditya Srinivasan, Alex Rickabaugh, Andrew Scott, Kristiyan Kostadinov, Masaoki Kobayashi, Matthieu Riegler, Paul Gschwendtner, Peter Götz, Thomas Pischke, Virginia Dooley and avmaxim
15.2.3 (2023-03-16)
Special Thanks
Alan Agius, Esteban Gehring, Matthieu Riegler and Virginia Dooley
15.2.1 (2023-03-01)
common
Commit | Description |
---|---|
make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181) |
compiler-cli
Commit | Description |
---|---|
do not persist component analysis if template/styles are missing (#49184) |
core
Commit | Description |
---|---|
update zone.js peerDependencies ranges (#49244) |
migrations
Commit | Description |
---|---|
avoid migrating the same class multiple times in standalone migration (#49245) | |
delete barrel exports in standalone migration (#49176) |
router
Commit | Description |
---|---|
add error message when using loadComponent with a NgModule (#49164) |
Special Thanks
Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Craig Spence, Doug Parker, Iván Navarro, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Michael Ziluck, Paul Gschwendtner, Stephanie Tuerk, Vincent and Virginia Dooley
15.2.0 (2023-02-22)
Deprecations
- Class and
InjectionToken
guards and resolvers are
deprecated. Instead, write guards as plain JavaScript functions and
inject dependencies withinject
from@angular/core
.
Commit | Description |
---|---|
Deprecate class and InjectionToken and resolvers (#47924) |
common
Commit | Description |
---|---|
Add loaderParams attribute to NgOptimizedImage (#48907) |
compiler-cli
Commit | Description |
---|---|
incorrectly detecting forward refs when symbol already exists in file (#48988) |
core
language-service
migrations
platform-browser
Commit | Description |
---|---|
remove styles from DOM of destroyed components (#48298) |
platform-server
Commit | Description |
---|---|
avoid duplicate TransferState info after renderApplication call (#49094) |
router
Commit | Description |
---|---|
Add a withNavigationErrorHandler feature to provideRouter (#48551) | |
Add test helper for trigger navigations in tests (#48552) |
Special Thanks
Alan Agius, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dylan Hunn, Ikko Eltociear Ashimine, Ilyass, Jessica Janiuk, Joey Perrott, John Manners, Kalbarczyk, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Virginia Dooley, Walid Bouguima, cexbrayat and mgechev
15.2.0-rc.0 (2023-02-15)
forms
Commit | Description |
---|---|
Make radio buttons respect [attr.disabled] (#48864) |
migrations
Special Thanks
AleksanderBodurri, Alvaro Junqueira, Dylan Hunn, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, PaloMiklo, Paul Gschwendtner, Pawel Kozlowski and cexbrayat
15.2.0-next.4 (2023-02-08)
common
Commit | Description |
---|---|
Add loaderParams attribute to NgOptimizedImage (#48907) |
compiler-cli
Commit | Description |
---|---|
incorrectly detecting forward refs when symbol already exists in file (#48988) |
language-service
Commit | Description |
---|---|
generate forwardRef for same file imports (#48898) |
migrations
Special Thanks
Alex Castle, Andrew Scott, Dylan Hunn, Jessica Janiuk, Kian Yang Lee, Kristiyan Kostadinov, Matthieu Riegler, Pawel Kozlowski, Redouane Bekkouche, Simona Cotin and Walid Bouguima
15.1.4 (2023-02-08)
Special Thanks
Jessica Janiuk, Kian Yang Lee, Matthieu Riegler, Redouane Bekkouche and Simona Cotin
15.2.0-next.3 (2023-02-02)
animations
Commit | Description |
---|---|
fix non-animatable warnings for easing (#48583) |
common
Commit | Description |
---|---|
warn if using ngSrcset without a configured image loader (#48804) |
compiler
Commit | Description |
---|---|
incorrect code when non-null assertion is used after a safe access (#48801) |
core
Commit | Description |
---|---|
add ng generate schematic to convert to standalone bootstrapping APIs (#48848) |
migrations
platform-server
Commit | Description |
---|---|
insert transfer state script before other script tags (#48868) |
router
Commit | Description |
---|---|
Add test helper for trigger navigations in tests (#48552) | |
Handle routerLink directive on svg anchors. (#48857) |
Special Thanks
Alan Agius, Andrew Scott, Besim Gürbüz, Brecht Billiet, Dario Piotrowicz, Dylan Hunn, Iván Navarro, Kristiyan Kostadinov, Matthieu Riegler, Onkar Ruikar, Payam Valadkhan, Santosh Yadav, Virginia Dooley and Walid Bouguima
15.1.3 (2023-02-02)
animations
Commit | Description |
---|---|
fix non-animatable warnings for easing (#48583) |
common
Commit | Description |
---|---|
warn if using ngSrcset without a configured image loader (#48804) |
compiler
Commit | Description |
---|---|
incorrect code when non-null assertion is used after a safe access (#48801) |
migrations
Commit | Description |
---|---|
Fixed file format issue with lint (#48859) | |
migration host incorrectly reading empty files (#48849) |
platform-server
Commit | Description |
---|---|
insert transfer state script before other script tags (#48868) |
router
Commit | Description |
---|---|
Handle routerLink directive on svg anchors. (#48857) |
Special Thanks
Alan Agius, Besim Gürbüz, Brecht Billiet, Dario Piotrowicz, Dylan Hunn, Iván Navarro, Jessica Janiuk, Kristiyan Kostadinov, Matthieu Riegler, Onkar Ruikar, Payam Valadkhan, Santosh Yadav, Virginia Dooley and Walid Bouguima
15.2.0-next.2 (2023-01-25)
compiler
Commit | Description |
---|---|
handle css selectors with space after an escaped character. (#48558) |
compiler-cli
Commit | Description |
---|---|
resolve deprecation warning (#48812) |
core
Commit | Description |
---|---|
add ng generate schematic to convert declarations to standalone (#48790) | |
add ng generate schematic to remove unnecessary modules (#48832) |
router
Commit | Description |
---|---|
'createUrlTreeFromSnapshot' with empty paths and named outlets (#48734) |
Special Thanks
Alan Agius, AleksanderBodurri, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Payam Valadkhan, Virginia Dooley, Yann Thomas LE MOIGNE and dario-piotrowicz
15.1.2 (2023-01-25)
compiler
Commit | Description |
---|---|
handle css selectors with space after an escaped character. (#48558) |
compiler-cli
Commit | Description |
---|---|
resolve deprecation warning (#48812) |
router
Commit | Description |
---|---|
'createUrlTreeFromSnapshot' with empty paths and named outlets (#48734) |
Special Thanks
Alan Agius, AleksanderBodurri, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, JoostK, Matthieu Riegler, Paul Gschwendtner, Payam Valadkhan, Virginia Dooley, Yann Thomas LE MOIGNE and dario-piotrowicz
15.2.0-next.1 (2023-01-18)
Deprecations
- Class and
InjectionToken
guards and resolvers are
deprecated. Instead, write guards as plain JavaScript functions and
inject dependencies withinject
from@angular/core
.
Commit | Description |
---|---|
Deprecate class and InjectionToken and resolvers (#47924) |
common
Commit | Description |
---|---|
Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489) |
|
avoid excessive DOM mutation in NgClass (#48433) |
core
Commit | Description |
---|---|
makeEnvironmentProviders should accept EnvironmentProviders (#48720) |
language-service
Special Thanks
Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Dylan Hunn, Jens, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Vladyslav Slipchenko, ced, dario-piotrowicz, mgechev and ノウラ
15.1.1 (2023-01-18)
common
Commit | Description |
---|---|
Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489) |
|
avoid excessive DOM mutation in NgClass (#48433) |
core
Commit | Description |
---|---|
makeEnvironmentProviders should accept EnvironmentProviders (#48720) |
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Scott, Aristeidis Bampakos, Bob Watson, Jens, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Vladyslav Slipchenko, ced, dario-piotrowicz, mgechev and ノウラ
15.1.0 (2023-01-10)
Deprecations
router
-
CanLoad guards in the Router are deprecated. Use CanMatch
instead. -
router writable properties
The following strategies are meant to be configured by registering the
application strategy in DI via theproviders
in the rootNgModule
or
bootstrapApplication
:routeReuseStrategy
titleStrategy
urlHandlingStrategy
The following options are meant to be configured using the options
available inRouterModule.forRoot
orprovideRouter
.onSameUrlNavigation
paramsInheritanceStrategy
urlUpdateStrategy
canceledNavigationResolution
The following options are available in
RouterModule.forRoot
but not
available inprovideRouter
:malformedUriErrorHandler
- This was found to not be used anywhere
internally.errorHandler
- Developers can instead subscribe toRouter.events
and filter forNavigationError
.
common
Commit | Description |
---|---|
Add BrowserPlatformLocation to the public API (#48488) | |
Add data attribtue to NgOptimizedImage (#48497) |
compiler
Commit | Description |
---|---|
allow self-closing tags on custom elements (#48535) | |
resolve deprecation warning (#48652) | |
type-only symbols incorrectly retained when downlevelling custom decorators (#48638) |
compiler-cli
Commit | Description |
---|---|
update @babel/core dependency and lock version (#48634) |
core
Commit | Description |
---|---|
Add TestBed.runInInjectionContext to help test functions which use inject (#47955) |
|
Make the isStandalone() function available in public API (#48114) |
|
support TypeScript 4.9 (#48005) |
forms
Commit | Description |
---|---|
Form provider FormsModule.withConfig return a FormsModule (#48526) |
language-service
localize
Commit | Description |
---|---|
add triple slash type reference on @angular/localize on `ng add (#48502) |
migrations
Commit | Description |
---|---|
combine newly-added imports in import manager (#48620) |
router
Special Thanks
Alan Agius, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Lyding, Derek Cormier, Doug Parker, Dylan Hunn, George Kalpakas, Greg Magolan, Jessica Janiuk, JiaLiPassion, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Renan Ferro, Tim Gates, Vadim, Virginia Dooley, ced, mgechev, piyush132000, robertIsaac and sr5434
15.1.0-rc.0 (2023-01-05)
common
Commit | Description |
---|---|
Add data attribtue to NgOptimizedImage (#48497) |
compiler
Commit | Description |
---|---|
allow self-closing tags on custom elements (#48535) | |
type-only symbols incorrectly retained when downlevelling custom decorators (#48638) |
compiler-cli
Commit | Description |
---|---|
update @babel/core dependency and lock version (#48634) |
localize
Commit | Description |
---|---|
add triple slash type reference on @angular/localize on `ng add (#48502) |
migrations
Commit | Description |
---|---|
combine newly-added imports in import manager (#48620) |
Special Thanks
Alan Agius, Alex Castle, Andrew Kushnir, Derek Cormier, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Renan Ferro, Vadim, ced, mgechev, piyush132000 and robertIsaac
15.1.0-next.3 (2022-12-14)
animations
Commit | Description |
---|---|
fix incorrect handling of camel-case css properties (#48436) |
common
compiler-cli
Commit | Description |
---|---|
evaluate const tuple types statically (#48091) |
router
Commit | Description |
---|---|
Add feature provider for enabling hash navigation (#48301) |
Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, BrowserPerson, Jens, Jessica Janiuk, Joey Perrott, JoostK, Konstantin Kharitonov, Lukas Matta, Matthieu Riegler, Piotr Kowalski, Virginia Dooley, Yannick Baron, dario-piotrowicz, lsst25, piyush132000 and why520crazy
15.0.4 (2022-12-14)
animations
Commit | Description |
---|---|
fix incorrect handling of camel-case css properties (#48436) |
common
compiler-cli
Commit | Description |
---|---|
evaluate const tuple types statically (#48091) |
Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, BrowserPerson, Jens, Jessica Janiuk, Joey Perrott, JoostK, Konstantin Kharitonov, Lukas Matta, Piotr Kowalski, Virginia Dooley, Yannick Baron, dario-piotrowicz, lsst25, piyush132000 and why520crazy
15.1.0-next.2 (2022-12-07)
common
Commit | Description |
---|---|
Don't generate srcsets with very large sources (#47997) | |
Update Location to support base href containing origin (#48327) |
compiler
Commit | Description |
---|---|
make sure selectors inside container queries are correctly scoped (#48353) |
compiler-cli
Commit | Description |
---|---|
Produce diagnostic rather than crash when using invalid hostDirective (#48314) |
core
Commit | Description |
---|---|
Make the isStandalone() function available in public API (#48114) |
|
support TypeScript 4.9 (#48005) | |
unable to inject ChangeDetectorRef inside host directives (#48355) |
Special Thanks
Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Lyding, Derek Cormier, Joey Perrott, Konstantin Kharitonov, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz, piyush132000 and sr5434
15.0.3 (2022-12-07)
common
Commit | Description |
---|---|
Don't generate srcsets with very large sources (#47997) | |
Update Location to support base href containing origin (#48327) |
compiler
Commit | Description |
---|---|
make sure selectors inside container queries are correctly scoped (#48353) |
compiler-cli
Commit | Description |
---|---|
Produce diagnostic rather than crash when using invalid hostDirective (#48314) |
core
Commit | Description |
---|---|
unable to inject ChangeDetectorRef inside host directives (#48355) |
Special Thanks
Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Derek Cormier, Joey Perrott, Konstantin Kharitonov, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz and piyush132000
15.1.0-next.1 (2022-11-30)
Deprecations
router
- CanLoad guards in the Router are deprecated. Use CanMatch
instead.
compiler-cli
Commit | Description |
---|---|
accept inheriting the constructor from a class in a library (#48156) |
router
Commit | Description |
---|---|
Deprecate canLoad guards in favor of canMatch (#48180) | |
Add ability to override onSameUrlNavigation default per-navigation (#48050) |
Special Thanks
Alan Agius, Andrew Scott, Aristeidis Bampakos, Bob Watson, Derek Cormier, Dylan Hunn, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Rokas Brazdžionis and piyush132000
15.0.2 (2022-11-30)
compiler-cli
Commit | Description |
---|---|
accept inheriting the constructor from a class in a library (#48156) |
Special Thanks
Alan Agius, Andrew Scott, Aristeidis Bampakos, Bob Watson, Derek Cormier, JoostK, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Rokas Brazdžionis, mgechev and piyush132000
15.1.0-next.0 (2022-11-22)
Deprecations
router
-
router writable properties
The following strategies are meant to be configured by registering the
application strategy in DI via theproviders
in the rootNgModule
or
bootstrapApplication
:routeReuseStrategy
titleStrategy
urlHandlingStrategy
The following options are meant to be configured using the options
available inRouterModule.forRoot
orprovideRouter
.onSameUrlNavigation
paramsInheritanceStrategy
urlUpdateStrategy
canceledNavigationResolution
The following options are available in
RouterModule.forRoot
but not
available inprovideRouter
:malformedUriErrorHandler
- This was found to not be used anywhere
internally.errorHandler
- Developers can instead subscribe toRouter.events
and filter forNavigationError
.
common
Commit | Description |
---|---|
Fix MockPlatformLocation events and missing onPopState implementation (#48113) |
core
Commit | Description |
---|---|
Add TestBed.runInInjectionContext to help test functions which use inject (#47955) |
forms
Commit | Description |
---|---|
don't mutate validators array (#47830) | |
FormBuilder.group return right type with shorthand parameters. (#48084) |
language-service
router
Special Thanks
Alan Agius, Andrew Kushnir, Andrew Scott, Bjarki, Bob Watson, Brooke, Derek Cormier, Dylan Hunn, George Kalpakas, Greg Magolan, Ikko Ashimine, Ivan Rodriguez, Jessica Janiuk, JiaLiPassion, Joe Roxbury, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Mikhail Savchuk, Nebojsa Cvetkovic, Pawel Kozlowski, Volodymyr, Wooshaah and mgechev
15.0.1 (2022-11-22)
common
Commit | Description |
---|---|
Fix MockPlatformLocation events and missing onPopState implementation (#48113) |
forms
Commit | Description |
---|---|
don't mutate validators array (#47830) | |
FormBuilder.group return right type with shorthand parameters. (#48084) |
language-service
Commit | Description |
---|---|
correctly handle host directive inputs/outputs (#48147) | |
update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48120) |
router
Special Thanks
Alan Agius, Andrew Scott, Bjarki, Bob Watson, Brooke, Derek Cormier, Dylan Hunn, George Kalpakas, Greg Magolan, Ikko Ashimine, Ivan Rodriguez, Jessica Janiuk, Joe Roxbury, Joey Perrott, Kristiyan Kostadinov, Matthieu Riegler, Mikhail Savchuk, Nebojsa Cvetkovic, Pawel Kozlowski, Volodymyr and Wooshaah
15.0.0 (2022-11-16)
Breaking Changes
compiler
-
Keyframes names are now prefixed with the component's "scope name".
For example, the following keyframes rule in a component definition,
whose "scope name" is host-my-cmp:@keyframes foo { ... }
will become:
@keyframes host-my-cmp_foo { ... }
Any TypeScript/JavaScript code which relied on the names of keyframes rules
will no longer match.The recommended solutions in this case are to either:
- change the component's view encapsulation to the
None
orShadowDom
- define keyframes rules in global stylesheets (e.g styles.css)
- define keyframes rules programmatically in code.
- change the component's view encapsulation to the
compiler-cli
-
Invalid constructors for DI may now report compilation errors
When a class inherits its constructor from a base class, the compiler may now
report an error when that constructor cannot be used for DI purposes. This may
either be because the base class is missing an Angular decorator such as
@Injectable()
or@Directive()
, or because the constructor contains parameters
which do not have an associated token (such as primitive types likestring
).
These situations used to behave unexpectedly at runtime, where the class may be
constructed without any of its constructor parameters, so this is now reported
as an error during compilation.Any new errors that may be reported because of this change can be resolved either
by decorating the base class from which the constructor is inherited, or by adding
an explicit constructor to the class for which the error is reported. -
Angular compiler option
enableIvy
has been removed as Ivy is the only rendering engine.
core
- Angular no longer supports Node.js versions
14.[15-19].x
and16.[10-12].x
. Current supported versions of Node.js are14.20.x
,16.13.x
and18.10.x
. - TypeScript versions older than 4.8 are no longer supported.
- Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.
- Existing iframe usages may have
src
orsrcdoc
preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings.
forms
- setDisabledState will always be called when a
ControlValueAccessor
is attached. You can opt-out withFormsModule.withConfig
orReactiveFormsModule.withConfig
.
localize
-
canParse
method has been removed from all translation parsers in@angular/localize/tools
.analyze
should be used instead.- the
hint
parameter in theparse
methods is now mandatory.
router
- Previously, the
RouterOutlet
would immediately
instantiate the component being activated during navigation. Now the
component is not instantiated until the change detection runs. This
could affect tests which do not trigger change detection after a router
navigation. In rarer cases, this can affect production code that relies
on the exact timing of component availability. - The title property is now required on ActivatedRouteSnapshot
relativeLinkResolution
is no longer configurable in
the Router. This option was used as a means to opt out of a bug fix.
Deprecations
common
- The
DATE_PIPE_DEFAULT_TIMEZONE
token is now deprecated in favor
of theDATE_PIPE_DEFAULT_OPTIONS
token, which accepts an object
as a value and the timezone can be defined as a field (calledtimezone
)
on that object.
core
-
- The ability to pass an
NgModule
to theprovidedIn
option for
@Injectable
andInjectionToken
is now deprecated.
providedIn: NgModule
was intended to be a tree-shakable alternative to
NgModule providers. It does not have wide usage, and in most cases is used
incorrectly, in circumstances whereprovidedIn: 'root'
should be
preferred. If providers should truly be scoped to a specific NgModule, use
NgModule.providers
instead.- The ability to set
providedIn: 'any'
for an@Injectable
or
InjectionToken
is now deprecated.
providedIn: 'any'
is an option with confusing semantics and is almost
never used apart from a handful of esoteric cases internal to the framework. - The ability to pass an
-
The bit field signature of
Injector.get()
has been deprecated, in favor of the new options object. -
The bit field signature of
TestBed.inject()
has been deprecated, in favor of the new options object.
router
- The
RouterLinkWithHref
directive is deprecated, use theRouterLink
directive instead. TheRouterLink
contains the code from theRouterLinkWithHref
to handle elements withhref
attributes.
common
compiler
Commit | Description |
---|---|
scope css keyframes in emulated view encapsulation (#42608) | |
update element schema (#47552) | |
update element schema (#47552) |
compiler-cli
core
forms
http
language-service
Commit | Description |
---|---|
Quick fix to import a component when its selector is used (#47088) | |
support to fix invalid banana in box (#47393) |
localize
platform-server
Commit | Description |
---|---|
align server renderer interface with base renderer (#47868) |
router
Special Thanks
Alan Agius, AleksanderBodurri, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Charles Lyding, Dylan Hunn, Ferdinand Malcher, George Kalpakas, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Martin Probst, Matthias Weiß, Matthieu Riegler, Paul Gschwendtner, Pawel Kozlowski, Sabareesh Kappagantu, WD Snoeijer, angular-robot[bot], arturovt, ced, dario-piotrowicz, ivanwonder and jaybell
15.0.0-rc.3 (2022-11-09)
Breaking Changes
core
- Existing iframe usages may have security-sensitive attributes applied as an attribute or property binding in a template or via host bindings in a directive. Such usages would require an update to ensure compliance with the new stricter rules around iframe bindings.
core
Commit | Description |
---|---|
add zone.js version 0.12.x as a valid peer dependency (#48002) |
|
hardening attribute and property binding rules for elements (#47964) |
forms
Commit | Description |
---|---|
Improve a very commonly viewed error message by adding a guide. (#47969) | |
Runtime error pages must begin with leading zero (#47991) |
http
Commit | Description |
---|---|
rename withLegacyInterceptors to withInterceptorsFromDi (#47901) |
router
Commit | Description |
---|---|
fix redirectTo on named outlets - resolves #33783 (#47927) |
Special Thanks
Alan Agius, Albert Szekely, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Doug Parker, Dylan Hunn, Kristiyan Kostadinov, Markus Eckstein, Matthieu Riegler, Paul Gschwendtner, Peter Scriven and abergquist
15.0.0-rc.2 (2022-11-04)
Breaking Changes
core
- Existing iframe usages may have
src
orsrcdoc
preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings.
core
Commit | Description |
---|---|
allow readonly arrays for standalone imports (#47851) | |
hardening rules related to the attribute order on iframe elements (#47935) |
platform-browser
Commit | Description |
---|---|
resolve memory leak when using animations with shadow DOM (#47903) |
platform-server
Commit | Description |
---|---|
call onSerialize when state is empty (#47888) |
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Charles Lyding, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, Virginia Dooley and mgechev
15.0.0-rc.1 (2022-10-26)
common
Commit | Description |
---|---|
Don't warn about image distortion is fill mode is enabled (#47824) |
forms
Commit | Description |
---|---|
don't mutate validators array (#47830) |
platform-server
Commit | Description |
---|---|
align server renderer interface with base renderer (#47868) |
Special Thanks
Alan Agius, Alex Castle, Andrew Scott, Balaji, George Kalpakas, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, WD Snoeijer, onrails and vyom1611
15.0.0-rc.0 (2022-10-19)
common
Commit | Description |
---|---|
don't generate srcset if noopImageLoader is used (#47804) | |
update size error to mention 'fill' mode (#47797) | |
warn if using supported CDN but not built-in loader (#47330) |
compiler-cli
Commit | Description |
---|---|
implement more host directive validations as diagnostics (#47768) |
localize
Commit | Description |
---|---|
update ng add schematic to support Angular CLI version 15 (#47763) |
router
Commit | Description |
---|---|
Delay router scroll event until navigated components have rendered (#47563) |
Special Thanks
Alan Agius, Alex Castle, Andrew Kushnir, Andrew Scott, Bob Watson, Charles Barnes, Charles Lyding, Kara Erickson, Kristiyan Kostadinov, Paul Gschwendtner, Virginia Dooley, WD Snoeijer, abergquist and urugator
15.0.0-next.6 (2022-10-12)
Breaking Changes
compiler-cli
-
Invalid constructors for DI may now report compilation errors
When a class inherits its constructor from a base class, the compiler may now
report an error when that constructor cannot be used for DI purposes. This may
either be because the base class is missing an Angular decorator such as
@Injectable()
or@Directive()
, or because the constructor contains parameters
which do not have an associated token (such as primitive types likestring
).
These situations used to behave unexpectedly at runtime, where the class may be
constructed without any of its constructor parameters, so this is now reported
as an error during compilation.Any new errors that may be reported because of this change can be resolved either
by decorating the base class from which the constructor is inherited, or by adding
an explicit constructor to the class for which the error is reported.
core
- Angular no longer supports Node.js versions
14.[15-19].x
and16.[10-12].x
. Current supported versions of Node.js are14.20.x
,16.13.x
and18.10.x
. - TypeScript versions older than 4.8 are no longer supported.
forms
- setDisabledState will always be called when a
ControlValueAccessor
is attached. You can opt-out withFormsModule.withConfig
orReactiveFormsModule.withConfig
.
router
relativeLinkResolution
is no longer configurable in
the Router. This option was used as a means to opt out of a bug fix.
Deprecations
common
- The
DATE_PIPE_DEFAULT_TIMEZONE
token is now deprecated in favor
of theDATE_PIPE_DEFAULT_OPTIONS
token, which accepts an object
as a value and the timezone can be defined as a field (calledtimezone
)
on that object.
router
- The
RouterLinkWithHref
directive is deprecated, use theRouterLink
directive instead. TheRouterLink
contains the code from theRouterLinkWithHref
to handle elements withhref
attributes.
common
compiler
Commit | Description |
---|---|
update element schema (#47552) | |
update element schema (#47552) |
compiler-cli
core
forms
Commit | Description |
---|---|
export forms utility functions: isFormArray, isFormGroup… (#47718) | |
call setDisabledState on ControlValueAcessor when control is enabled (#47576) |
http
language-service
Commit | Description |
---|---|
Quick fix to import a component when its selector is used (#47088) |
router
Special Thanks
Alan Agius, AleksanderBodurri, Alex Castle, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Charles Lyding, Dylan Hunn, Ferdinand Malcher, George Kalpakas, Jessica Janiuk, Joey Perrott, JoostK, Joshua Morony, Kristiyan Kostadinov, Martin Probst, Mathew Berg, Matthias Weiß, Paul Gschwendtner, Peter Dickten, Renan Ferro, Sri Ram, WD Snoeijer, arturovt, jaybell, markostanimirovic and Álvaro Martínez
15.0.0-next.5 (2022-10-05)
Breaking Changes
compiler
-
Keyframes names are now prefixed with the component's "scope name".
For example, the following keyframes rule in a component definition,
whose "scope name" is host-my-cmp:@keyframes foo { ... }
will become:
@keyframes host-my-cmp_foo { ... }
Any TypeScript/JavaScript code which relied on the names of keyframes rules
will no longer match.The recommended solutions in this case are to either:
- change the component's view encapsulation to the
None
orShadowDom
- define keyframes rules in global stylesheets (e.g styles.css)
- define keyframes rules programmatically in code.
- change the component's view encapsulation to the
router
- Previously, the
RouterOutlet
would immediately
instantiate the component being activated during navigation. Now the
component is not instantiated until the change detection runs. This
could affect tests which do not trigger change detection after a router
navigation. In rarer cases, this can affect production code that relies
on the exact timing of component availability.
Deprecations
core
-
- The ability to pass an
NgModule
to theprovidedIn
option for
@Injectable
andInjectionToken
is now deprecated.
providedIn: NgModule
was intended to be a tree-shakable alternative to
NgModule providers. It does not have wide usage, and in most cases is used
incorrectly, in circumstances whereprovidedIn: 'root'
should be
preferred. If providers should truly be scoped to a specific NgModule, use
NgModule.providers
instead.- The ability to set
providedIn: 'any'
for an@Injectable
or
InjectionToken
is now deprecated.
providedIn: 'any'
is an option with confusing semantics and is almost
never used apart from a handful of esoteric cases internal to the framework. - The ability to pass an
compiler
Commit | Description |
---|---|
scope css keyframes in emulated view encapsulation (#42608) |
compiler-cli
Commit | Description |
---|---|
support hasInvalidatedResolutions. (#47585) |
core
Commit | Description |
---|---|
deprecate providedIn: NgModule and providedIn: 'any' (#47616) |
localize
Commit | Description |
---|---|
add polyfill in polyfills array instead of polyfills.ts (#47569) |
router
Commit | Description |
---|---|
auto-unwrap default exports when lazy loading (#47586) | |
make RouterOutlet name an Input so it can be set dynamically (#46569) |
Special Thanks
Alan Agius, Alex Rickabaugh, Alexander Wiebe, Andrew Kushnir, Andrew Scott, Ciprian Sauliuc, Dmytro Mezhenskyi, Dylan Hunn, George Kalpakas, Joe Martin (Crowdstaffing), Jordan, Kristiyan Kostadinov, Martin Probst, Ole M, Paul Gschwendtner, Pawel Kozlowski, dario-piotrowicz and mgechev
15.0.0-next.4 (2022-09-28)
Breaking Changes
router
- The title property is now required on ActivatedRouteSnapshot
Deprecations
core
- The bit field signature of
Injector.get()
has been deprecated, in favor of the new options object. - The bit field signature of
TestBed.inject()
has been deprecated, in favor of the new options object.
core
language-service
Commit | Description |
---|---|
support to fix invalid banana in box (#47393) |
router
Commit | Description |
---|---|
Ensure ActivatedRouteSnapshot#title has correct value (#47481) |
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Ashley Hunter, Doug Parker, Jessica Janiuk, JiaLiPassion, Kristiyan Kostadinov, Rokas Brazdžionis, Simona Cotin and ivanwonder
15.0.0-next.3 (2022-09-21)
animations
Commit | Description |
---|---|
make sure that the useAnimation function delay is applied (#47468) |
compiler-cli
Commit | Description |
---|---|
cache source file for reporting type-checking diagnostics (#47471) |
Special Thanks
AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, JiaLiPassion, Joey Perrott, JoostK, Kristiyan Kostadinov, Mauro Mattos, Pawel Kozlowski, Sabareesh Kappagantu, angular-robot[bot], dario-piotrowicz, fabioemoutinho and famzila
15.0.0-next.2 (2022-09-14)
animations
Commit | Description |
---|---|
make sure that the animation function delay is applied (#47285) |
common
Commit | Description |
---|---|
rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362) |
core
Commit | Description |
---|---|
imply @Optional flag when a default value is provided (#47242) |
forms
Commit | Description |
---|---|
don't prevent default behavior for forms with method="dialog" (#47308) |
Special Thanks
Abhishek Rawat, Andrew Kushnir, Benjamin Chanudet, Bob Watson, Dylan Hunn, George Kalpakas, Ikko Ashimine, Joey Perrott, Kristiyan Kostadinov, Marc Wrobel, Mariia Subkov, Pawel Kozlowski, Sebastian, abergquist, dario-piotrowicz, onrails and vyom1611
15.0.0-next.1 (2022-09-07)
Breaking Changes
compiler-cli
- Angular compiler option
enableIvy
has been removed as Ivy is the only rendering engine.
localize
-
canParse
method has been removed from all translation parsers in@angular/localize/tools
.analyze
should be used instead.- the
hint
parameter in theparse
methods is now mandatory.
common
Commit | Description |
---|---|
improve formatting of image warnings (#47299) | |
use DOCUMENT token to query for preconnect links (#47353) |
compiler
Commit | Description |
---|---|
avoid errors for inputs with Object-builtin names (#47220) |
compiler-cli
Commit | Description |
---|---|
remove enableIvy options (#47346) |
localize
Commit | Description |
---|---|
remove deprecated canParse method from TranslationParsers (#47275) |
service-worker
Commit | Description |
---|---|
include headers in requests for assets (#47260) | |
only consider GET requests as navigation requests (#47263) |
Special Thanks
Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Asaf M, Bingo's Code, Bob Watson, Daniel Ostrovsky, George Kalpakas, Giovanni Alberto Rivas, Jeremy Elbourn, JiaLiPassion, Jobayer Hossain, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Maina Wycliffe, Sabareesh Kappagantu, Simona Cotin, Sonu Sindhu, Yann Provoost, abergquist, angular-robot[bot], jaybell and vyom1611
15.0.0-next.0 (2022-08-25)
common
Commit | Description |
---|---|
fix formatting on oversized image error (#47188) | |
support density descriptors with 2+ decimals (#47197) |
router
Commit | Description |
---|---|
Add UrlTree constructor to public API (#47186) |
Special Thanks
Alan Agius, Alex Rickabaugh, Andrew Scott, Joey Perrott, Kara Erickson, Kristiyan Kostadinov and Pawel Kozlowski