Commit |
Type |
Description |
dd850b2ab7 |
fix |
correctly report GC memory amounts (#50760) |
Commit |
Type |
Description |
29d358170b |
feat |
add component input binding support for NgComponentOutlet (#51148) |
1837efb9da |
feat |
Allow ngSrc to be changed post-init (#50683) |
Commit |
Type |
Description |
c27a1e61d6 |
feat |
scope selectors in @scope queries (#50747) |
Commit |
Type |
Description |
12bad6576d |
fix |
libraries compiled with v16.1+ breaking with Angular framework v16.0.x (#50714) |
Commit |
Type |
Description |
0b14e4ef74 |
feat |
exposes the fixture of the RouterTestingHarness (#50280) |
Commit |
Type |
Description |
cc722ea1f5 |
fix |
return full spans for Comment nodes (#50855) |
Commit |
Type |
Description |
dea8dc0378 |
fix |
Run fetch request out the angular zone (#50981) |
Commit |
Type |
Description |
f920fcbd94 |
fix |
Ensure elements are removed from the cache after leave animation. (#50929) |
Commit |
Type |
Description |
499fb5c772 |
fix |
ensure that standalone components get correct injector instances (#50954) |
c65913ecb7 |
fix |
handle deref returning null on RefactiveNode . (#50992) |
Commit |
Type |
Description |
31419f6a3b |
perf |
do not remove renderer from cache when REMOVE_STYLES_ON_COMPONENT_DESTROY is enabled. (#51005) |
Commit |
Type |
Description |
3efb577cf3 |
fix |
Use takeUntil on leaky subscription. (#50901) |
Commit |
Type |
Description |
4ba5850ba6 |
fix |
use setTimeout when coalescing tasks in Node.js (#50820) |
Commit |
Type |
Description |
a4348355ce |
fix |
allow for downgraded components to work with component-router (#50871) |
Commit |
Type |
Description |
dd6fc5785f |
fix |
expose input transform function on ComponentFactory and ComponentMirror (#50713) |
Commit |
Type |
Description |
e1bbe47c23 |
fix |
support input transform functions (#50713) |
Commit |
Type |
Description |
79dd6a847a |
fix |
wait until animation completion before destroying renderer (#50677) |
a797f41d1b |
fix |
wait until animation completion before destroying renderer (#50860) |
Commit |
Type |
Description |
9488a3fd46 |
fix |
Send query params on fetch request (#50740) |
5ae001829c |
fix |
use serializeBody to support JSON payload in FetchBackend (#50776) |
Commit |
Type |
Description |
71360b3a3e |
fix |
libraries compiled with v16.1+ breaking with Angular framework v16.0.x (#50715) |
Commit |
Type |
Description |
d9bed48eb5 |
fix |
extend toSignal to accept any Subscribable (#50162) |
Commit |
Type |
Description |
5e1d8444ae |
fix |
Prevent a component from importing itself. (#50554) |
Commit |
Type |
Description |
4e663297c5 |
fix |
error when reading compiled input transforms metadata in JIT mode (#50600) |
721bc72649 |
fix |
resolve deprecation warning with TypeScript 5.1 (#50460) |
Commit |
Type |
Description |
85c5427582 |
feat |
Introduction of the fetch Backend for the HttpClient (#50247) |
Commit |
Type |
Description |
05ac0868c9 |
fix |
avoid duplicated content during hydration while processing a component with i18n (#50644) |
Commit |
Type |
Description |
703b8fcac1 |
fix |
do not remove comments in component styles (#50346) |
Commit |
Type |
Description |
2b6da93e19 |
fix |
incorrectly throwing error for self-referencing component (#50559) |
c992109d6c |
fix |
wait for HTTP in ngOnInit correctly before server render (#50573) |
Commit |
Type |
Description |
df65c4fc8f |
fix |
Trigger leave animation when ViewContainerRef is injected (#48705) |
Commit |
Type |
Description |
7e1bc513de |
fix |
untrack subscription and unsubscription in async pipe (#50522) |
Commit |
Type |
Description |
9970b29ace |
fix |
update ApplicationRef.isStable to account for rendering pending tasks (#50425) |
Commit |
Type |
Description |
c11041e372 |
fix |
adds missing symbols for animation standalone bundling test (#50434) |
98e8fdf40e |
fix |
fix Self flag inside embedded views with custom injectors (#50270) |
199ff4fe7f |
fix |
host directives incorrectly validating aliased bindings (#50364) |
Commit |
Type |
Description |
080bbd2137 |
fix |
create macrotask during request handling instead of load start (#50406) |
Commit |
Type |
Description |
c1016d4e57 |
fix |
add additional component metadata to component ID generation (#50340) |
cc41758b59 |
fix |
allow onDestroy unregistration while destroying (#50237) |
7d679bdb59 |
fix |
allow passing value of any type to isSignal function (#50035) |
Commit |
Type |
Description |
52c74d3b4a |
fix |
add additional component metadata to component ID generation (#50203) |
048b6b1e0d |
fix |
bootstrapApplication call not rejected when error is thrown in importProvidersFrom module (#50120) |
d68796782f |
fix |
handle hydration of root components with injected ViewContainerRef (#50136) |
f751ce6445 |
fix |
handle projection of hydrated containters into components that skip hydration (#50199) |
346ab73dd9 |
fix |
only try to retrieve transferred state on the browser (#50144) |
Blog post "Angular v16 is now available".
- Angular Compatibility Compiler (ngcc) has been removed and as a result Angular View Engine libraries will no longer work
- Deprecated
EventManager
method addGlobalEventListener
has been removed as it is not used by Ivy.
- Several changes to the Angular Package Format (APF)
- Removal of FESM2015
- Replacing ES2020 with ES2022
- Replacing FESM2020 with FESM2022
- Several changes to the Angular Package Format (APF)
- Removal of FESM2015
- Replacing ES2020 with ES2022
- Replacing FESM2020 with FESM2022
MockPlatformLocation
is now provided by default in tests.
Existing tests may have behaviors which rely on
BrowserPlatformLocation
instead. For example, direct access to the
window.history
in either the test or the component rather than going
through the Angular APIs (Location.getState()
). The quickest fix is to
update the providers in the test suite to override the provider again
TestBed.configureTestingModule({providers: [{provide: PlatformLocation, useClass: BrowserPlatformLocation}]})
.
The ideal fix would be to update the code to instead be compatible with
MockPlatformLocation
instead.
- If the 'ngTemplateOutletContext' is different from the context, it will result in a compile-time error.
Before the change, the following template was compiling:
interface MyContext {
$implicit: string;
}
@Component({
standalone: true,
imports: [NgTemplateOutlet],
selector: 'person',
template: `
<ng-container
*ngTemplateOutlet="
myTemplateRef;
context: { $implicit: 'test', xxx: 'xxx' }
"></ng-container>
`,
})
export class PersonComponent {
myTemplateRef!: TemplateRef<MyContext>;
}
However, it does not compile now because the 'xxx' property does not exist in 'MyContext', resulting in the error: 'Type '{ $implicit: string; xxx: string; }' is not assignable to type 'MyContext'.'
The solution is either:
- add the 'xxx' property to 'MyContext' with the correct type or
- add '$any(...)' inside the template to make the error disappear. However, adding '$any(...)' does not correct the error but only preserves the previous behavior of the code.
- Deprecated
XhrFactory
export from @angular/common/http
has been removed. Use XhrFactory
from @angular/common
instead.
-
- TypeScript 4.8 is no longer supported.
-
QueryList.filter now supports type guard functions, which will result in type narrowing. Previously if you used type guard functions, it resulted in no changes to the return type. Now the type would be narrowed, which might require updates to the application code that relied on the old behavior.
-
zone.js
versions 0.11.x
and 0.12.x
are not longer supported.
-
entryComponents
has been deleted from the @NgModule
and @Component
public APIs. Any usages can be removed since they weren't doing anyting.
ANALYZE_FOR_ENTRY_COMPONENTS
injection token has been deleted. Any references can be removed.
-
ComponentRef.setInput will only set the input on the
component if it is different from the previous value (based on Object.is
equality). If code relies on the input always being set, it should be
updated to copy objects or wrap primitives in order to ensure the input
value differs from the previous call to setInput
.
-
RendererType2.styles
no longer accepts a nested arrays.
-
The APP_ID
token value is no longer randomly generated. If you are bootstrapping multiple application on the same page you will need to set to provide the APP_ID
yourself.
bootstrapApplication(ComponentA, {
providers: [
{ provide: APP_ID, useValue: 'app-a' },
// ... other providers ...
]
});
-
The ReflectiveInjector
and related symbols were removed. Please update the code to avoid references to the ReflectiveInjector
symbol. Use Injector.create
as a replacement to create an injector instead.
-
Node.js v14 support has been removed
Node.js v14 is planned to be End-of-Life on 2023-04-30. Angular will stop supporting Node.js v14 in Angular v16. Angular v16 will continue to officially support Node.js versions v16 and v18.
- The deprecated
BrowserTransferStateModule
was removed, since it's no longer needed. The TransferState
class can be injected without providing the module. The BrowserTransferStateModule
was empty starting from v14 and you can just remove the reference to that module from your applications.
-
Users that are using SSR with JIT mode will now need to add import to @angular/compiler
before bootstrapping the application.
NOTE: this does not effect users using the Angular CLI.
-
renderApplication
method no longer accepts a root component as first argument. Instead, provide a bootstrapping function that returns a Promise<ApplicationRef>
.
Before
const output: string = await renderApplication(RootComponent, options);
Now
const bootstrap = () => bootstrapApplication(RootComponent, appConfig);
const output: string = await renderApplication(bootstrap, options);
-
renderModuleFactory
has been removed. Use renderModule
instead.
- The
Scroll
event's routerEvent
property may also be
a NavigationSkipped
event. Previously, it was only a NavigationEnd
event.
ComponentFactoryResolver
has been removed from Router APIs.
Component factories are not required to create an instance of a component
dynamically. Passing a factory resolver via resolver argument is no longer needed
and code can instead use ViewContainerRef.createComponent
without the
factory resolver.
- The
RouterEvent
type is no longer present in the Event
union type representing all router event types. If you have code using something like filter((e: Event): e is RouterEvent => e instanceof RouterEvent)
, you'll need to update it to filter((e: Event|RouterEvent): e is RouterEvent => e instanceof RouterEvent)
.
- Tests which mock
ActivatedRoute
instances may need to be adjusted
because Router.createUrlTree now does the right thing in more
scenarios. This means that tests with invalid/incomplete ActivatedRoute mocks
may behave differently than before. Additionally, tests may now navigate
to a real URL where before they would navigate to the root. Ensure that
tests provide expected routes to match.
There is rarely production impact, but it has been found that relative
navigations when using an ActivatedRoute
that does not appear in the
current router state were effectively ignored in the past. By creating
the correct URLs, this sometimes resulted in different navigation
behavior in the application. Most often, this happens when attempting to
create a navigation that only updates query params using an empty
command array, for example router.navigate([], {relativeTo: route, queryParams: newQueryParams})
. In this case, the relativeTo
property
should be removed.
makeStateKey
, StateKey
and TransferState
exports have been moved from @angular/platform-browser
to @angular/core
. Please update the imports.
- import {makeStateKey, StateKey, TransferState} from '@angular/platform-browser';
+ import {makeStateKey, StateKey, TransferState} from '@angular/core';
-
EnvironmentInjector.runInContext
is now deprecated, with
runInInjectionContext
functioning as a direct replacement:
// Previous method version (deprecated):
envInjector.runInContext(fn);
// New standalone function:
runInInjectionContext(envInjector, fn);
-
The @Directive
/@Component
moduleId
property is now
deprecated. It did not have any effect for multiple major versions and
will be removed in v17.
-
BrowserModule.withServerTransition
has been deprecated. APP_ID
should be used instead to set the application ID.
NB: Unless, you render multiple Angular applications on the same page, setting an application ID is not necessary.
Before:
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
...
]
After:
imports: [
BrowserModule,
{ provide: APP_ID, useValue: 'serverApp' },
...
],
-
ApplicationConfig
has moved, please import ApplicationConfig
from @angular/core
instead.
PlatformConfig.baseUrl
and PlatformConfig.useAbsoluteUrl
platform-server config options are deprecated as these were not used.
Commit |
Type |
Description |
48aa96ea13 |
refactor |
remove Angular Compatibility Compiler (ngcc) (#49101) |
2703fd6260 |
refactor |
remove deprecated EventManager method addGlobalEventListener (#49645) |
Commit |
Type |
Description |
5dce2a5a3a |
feat |
Provide MockPlatformLocation by default in BrowserTestingModule (#49137) |
d47fef72cb |
fix |
strict type checking for ngtemplateoutlet (#48374) |
c41a21658c |
refactor |
remove deprecated XhrFactory export from http entrypoint (#49251) |
Commit |
Type |
Description |
03d1d00ad9 |
feat |
Add an extended diagnostic for nSkipHydration (#49512) |
ed817e32fe |
fix |
Catch FatalDiagnosticError during template type checking (#49527) |
49fe974501 |
perf |
optimize NgModule emit for standalone components (#49837) |
Commit |
Type |
Description |
07a1aa3004 |
feat |
Improve typings form (async)Validators (#48679) |
Commit |
Type |
Description |
5e5dac278d |
feat |
Migration to remove Router guard and resolver interfaces (#49337) |
Commit |
Type |
Description |
b5278cc115 |
feat |
renderApplication now accepts a bootstrapping method (#49248) |
056d68002f |
feat |
add provideServerSupport function to provide server capabilities to an application (#49380) |
7870fb07fe |
feat |
rename provideServerSupport to provideServerRendering (#49678) |
a08a8ff108 |
fix |
bundle @angular/domino in via esbuild (#49229) |
5ea624f313 |
fix |
remove dependency on @angular/platform-browser-dynamic (#50064) |
e99460865e |
refactor |
deprecate useAbsoluteUrl and baseUrl (#49546) |
41f27ad086 |
refactor |
remove renderApplication overload that accepts a component (#49463) |
17abe6dc96 |
refactor |
remove deprecated renderModuleFactory (#49247) |
Commit |
Type |
Description |
ea32c3289a |
feat |
Expose information about the last successful Navigation (#49235) |
455c728525 |
feat |
helper functions to convert class guards to functional (#48709) |
f982a3f965 |
feat |
Opt-in for binding Router information to component inputs (#49633) |
1f055b90b6 |
fix |
Ensure anchor scrolling happens on ignored same URL navigations (#48025) |
6193a3d406 |
fix |
fix = not parsed in router segment name (#47332) |
c0b1b7becf |
fix |
Remove deprecated ComponentFactoryResolver from APIs (#49239) |
1e32709e0e |
fix |
remove RouterEvent from Event union type (#46061) |
3c7e637374 |
fix |
Route matching should only happen once when navigating (#49163) |
1600687fe5 |
fix |
Route matching should only happen once when navigating (#49163) |
31f210bf2c |
fix |
Router.createUrlTree should work with any ActivatedRoute (#48508) |
Commit |
Type |
Description |
5e7fc259ea |
feat |
add function to provide service worker (#48247) |
Commit |
Type |
Description |
9107e931ca |
fix |
fix incorrectly reported distortion for padded images (#49889) |
Commit |
Type |
Description |
7c58885797 |
fix |
catch fatal diagnostic when getting diagnostics for components (#50046) |
Commit |
Type |
Description |
2fff8fadbe |
fix |
handle invalid classes in class array bindings (#49924) |
Commit |
Type |
Description |
05a0225deb |
fix |
prevent headers from throwing an error when initializing numerical values (#49379) |
Commit |
Type |
Description |
09a42d988e |
fix |
canceledNavigationResolution: 'computed' with redirects to the current URL (#49793) |
Commit |
Type |
Description |
b0c1a90f55 |
fix |
Produce diagnositc if directive used in host binding is not exported (#49792) |
Commit |
Type |
Description |
a40529af2e |
fix |
Catch FatalDiagnosticError during template type checking (#49792) |
Commit |
Type |
Description |
702ec90110 |
fix |
When using setInput, mark view dirty in same way as markForCheck (#49747) |
Alan Agius, Andrew Kushnir, Andrew Scott, Kristiyan Kostadinov, Matthieu Riegler and Nikola Kološnjaji
Commit |
Type |
Description |
ae34dbca1b |
feat |
Backport NgOptimizedImage to v13 |
Alex Castle and Paul Gschwendtner
Commit |
Type |
Description |
d9efa1b0d7 |
feat |
change the URL sanitization to only block javascript: URLs (#49659) |
Commit |
Type |
Description |
cad7274ef9 |
fix |
create correct URL relative to path with empty child (#49691) |
9b61379096 |
fix |
Ensure initial navigation clears current navigation when blocking (#49572) |
Andrew Scott, Guillaume Weghsteen, John Manners, Johnny Gérard, Matthieu Riegler, Robin Richtsfeld, Sandra Limacher, Sarthak Thakkar, Vinit Neogi and vikram menon
Commit |
Type |
Description |
d201fc2dec |
fix |
set style property value to empty string instead of an invalid value (#49460) |
Alan Agius, Andrew Scott, Asaf Malin, Jan Cabadaj, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Sid and Tano Abeleyra
Commit |
Type |
Description |
bae6b5ceb1 |
fix |
Allow TestBed.configureTestingModule to work with recursive cycle of standalone components. (#49473) |
087f4412af |
fix |
more accurate matching of classes during content projection (#48888) |
Aditya Srinivasan, Alex Rickabaugh, Andrew Scott, Kristiyan Kostadinov, Masaoki Kobayashi, Matthieu Riegler, Paul Gschwendtner, Peter Götz, Thomas Pischke, Virginia Dooley and avmaxim
Alan Agius, Esteban Gehring, Matthieu Riegler and Virginia Dooley
Commit |
Type |
Description |
37bbc61cfe |
feat |
Backport NgOptimizedImage to Angular 14. |
Alex Castle, Joey Perrott and Paul Gschwendtner
Commit |
Type |
Description |
6207d6f1f0 |
fix |
add protractor support if protractor imports are detected (#49274) |
Alan Agius, Andrew Kushnir, Andrew Scott, Kristiyan Kostadinov, Matthieu Riegler, Paul Gschwendtner, Sai Kartheek Bommisetty and Vinit Neogi
Commit |
Type |
Description |
f0e926074d |
fix |
make Location.normalize() return the correct path when the base path contains characters that interfere with regex syntax. (#49181) |
Commit |
Type |
Description |
04d8b6c61a |
fix |
do not persist component analysis if template/styles are missing (#49184) |
Commit |
Type |
Description |
d60ea6ab5a |
fix |
update zone.js peerDependencies ranges (#49244) |
Commit |
Type |
Description |
44d095a61c |
fix |
avoid migrating the same class multiple times in standalone migration (#49245) |
92b0bda9e4 |
fix |
delete barrel exports in standalone migration (#49176) |
Commit |
Type |
Description |
3062442728 |
fix |
add error message when using loadComponent with a NgModule (#49164) |
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
- Class and
InjectionToken
guards and resolvers are
deprecated. Instead, write guards as plain JavaScript functions and
inject dependencies with inject
from @angular/core
.
Commit |
Type |
Description |
926c35f4ac |
docs |
Deprecate class and InjectionToken and resolvers (#47924) |
Commit |
Type |
Description |
54b24eb40f |
feat |
Add loaderParams attribute to NgOptimizedImage (#48907) |
Commit |
Type |
Description |
0cf11167f1 |
fix |
incorrectly detecting forward refs when symbol already exists in file (#48988) |
Commit |
Type |
Description |
a154db8a81 |
feat |
add ng generate schematic to convert declarations to standalone (#48790) |
345e737daa |
feat |
add ng generate schematic to convert to standalone bootstrapping APIs (#48848) |
e7318fc758 |
feat |
add ng generate schematic to remove unnecessary modules (#48832) |
Commit |
Type |
Description |
4ae384fd61 |
feat |
Allow auto-imports of a pipe via quick fix when its selector is used, both directly and via reexports. (#48354) |
141333411e |
feat |
Introduce a new NgModuleIndex, and use it to suggest re-exports. (#48354) |
d0145033bd |
fix |
generate forwardRef for same file imports (#48898) |
Commit |
Type |
Description |
bf4ad38117 |
fix |
remove styles from DOM of destroyed components (#48298) |
Commit |
Type |
Description |
25e220a23a |
fix |
avoid duplicate TransferState info after renderApplication call (#49094) |
Commit |
Type |
Description |
31b94c762f |
feat |
Add a withNavigationErrorHandler feature to provideRouter (#48551) |
dedac8d3f7 |
feat |
Add test helper for trigger navigations in tests (#48552) |
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
Commit |
Type |
Description |
5f2a3edcf2 |
fix |
Make radio buttons respect [attr.disabled] (#48864) |
AleksanderBodurri, Alvaro Junqueira, Dylan Hunn, Joey Perrott, Matthieu Riegler, PaloMiklo and Paul Gschwendtner
Jessica Janiuk, Kian Yang Lee, Matthieu Riegler, Redouane Bekkouche and Simona Cotin
Commit |
Type |
Description |
d36dfd4b62 |
fix |
fix non-animatable warnings for easing (#48583) |
Commit |
Type |
Description |
a334e4efbe |
fix |
warn if using ngSrcset without a configured image loader (#48804) |
Commit |
Type |
Description |
171b4d4640 |
fix |
incorrect code when non-null assertion is used after a safe access (#48801) |
Commit |
Type |
Description |
73972c684e |
fix |
insert transfer state script before other script tags (#48868) |
Commit |
Type |
Description |
d5b2c249a3 |
fix |
Handle routerLink directive on svg anchors. (#48857) |
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
Commit |
Type |
Description |
98ccb57117 |
fix |
handle css selectors with space after an escaped character. (#48558) |
Commit |
Type |
Description |
a6b10f6e59 |
fix |
'createUrlTreeFromSnapshot' with empty paths and named outlets (#48734) |
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
Commit |
Type |
Description |
68ce4f6ab4 |
fix |
Update Location to get a normalized URL valid in case a represented URL starts with the substring equals APP_BASE_HREF (#48489) |
032b2bd689 |
perf |
avoid excessive DOM mutation in NgClass (#48433) |
Commit |
Type |
Description |
dd54f6bd96 |
fix |
makeEnvironmentProviders should accept EnvironmentProviders (#48720) |
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 ノウラ
-
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 the providers
in the root NgModule
or
bootstrapApplication
:
routeReuseStrategy
titleStrategy
urlHandlingStrategy
The following options are meant to be configured using the options
available in RouterModule.forRoot
or provideRouter
.
onSameUrlNavigation
paramsInheritanceStrategy
urlUpdateStrategy
canceledNavigationResolution
The following options are available in RouterModule.forRoot
but not
available in provideRouter
:
malformedUriErrorHandler
- This was found to not be used anywhere
internally.
errorHandler
- Developers can instead subscribe to Router.events
and filter for NavigationError
.
Commit |
Type |
Description |
a532d71975 |
feat |
allow self-closing tags on custom elements (#48535) |
caf7228f8a |
fix |
resolve deprecation warning (#48652) |
33f35b04ef |
fix |
type-only symbols incorrectly retained when downlevelling custom decorators (#48638) |
Commit |
Type |
Description |
caedef0f5b |
fix |
update @babel/core dependency and lock version (#48634) |
Commit |
Type |
Description |
6acae1477a |
feat |
Add TestBed.runInInjectionContext to help test functions which use inject (#47955) |
38421578a2 |
feat |
Make the isStandalone() function available in public API (#48114) |
dd42974b07 |
feat |
support TypeScript 4.9 (#48005) |
Commit |
Type |
Description |
8aa8b4b77c |
fix |
Form provider FormsModule.withConfig return a FormsModule (#48526) |
Commit |
Type |
Description |
5f0b53c735 |
feat |
Allow auto-imports to suggest multiple possible imports. (#47787) |
6a8ea29a04 |
fix |
expose package.json for vscode extension resolution (#48678) |
ce8160ecb2 |
fix |
Prevent crashes on unemitable references (#47938) |
e615b598ba |
fix |
ship /api entry-point (#48670) |
6ce7d76a0e |
fix |
update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48663) |
Commit |
Type |
Description |
a1a8e91eca |
fix |
add triple slash type reference on @angular/localize on `ng add (#48502) |
Commit |
Type |
Description |
cc284afbbc |
fix |
combine newly-added imports in import manager (#48620) |
Commit |
Type |
Description |
228e992db7 |
docs |
Deprecate canLoad guards in favor of canMatch (#48180) |
0a8b8a66cd |
docs |
Deprecate public members of Router that are meant to be configured elsewhere (#48006) |
332461bd0c |
feat |
Add ability to override onSameUrlNavigation default per-navigation (#48050) |
f58ad86e51 |
feat |
Add feature provider for enabling hash navigation (#48301) |
73f03ad2d2 |
feat |
Add new NavigationSkipped event for ignored navigations (#48024) |
3fe75710d9 |
fix |
page refresh should not destroy history state (#48540) |
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
Commit |
Type |
Description |
6c1064c72f |
fix |
fix incorrect handling of camel-case css properties (#48436) |
Commit |
Type |
Description |
f30d18a942 |
fix |
Fix TestBed.overrideProvider type to include multi (#48424) |
Commit |
Type |
Description |
b55d2dab5d |
fix |
evaluate const tuple types statically (#48091) |
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
Commit |
Type |
Description |
50b1c2bf52 |
fix |
Don't generate srcsets with very large sources (#47997) |
bf44dc234a |
fix |
Update Location to support base href containing origin (#48327) |
Commit |
Type |
Description |
9a5d84249a |
fix |
make sure selectors inside container queries are correctly scoped (#48353) |
Commit |
Type |
Description |
167bc0d163 |
fix |
Produce diagnostic rather than crash when using invalid hostDirective (#48314) |
Commit |
Type |
Description |
e4dcaa513e |
fix |
unable to inject ChangeDetectorRef inside host directives (#48355) |
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
Commit |
Type |
Description |
86a21f5569 |
fix |
accept inheriting the constructor from a class in a library (#48156) |
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
Commit |
Type |
Description |
930af9dd26 |
fix |
Fix MockPlatformLocation events and missing onPopState implementation (#48113) |
Commit |
Type |
Description |
b342e55509 |
fix |
don't mutate validators array (#47830) |
a12a120272 |
fix |
FormBuilder.group return right type with shorthand parameters. (#48084) |
Commit |
Type |
Description |
cc8b76ef7c |
fix |
correctly handle host directive inputs/outputs (#48147) |
a8c33bf931 |
fix |
update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build (#48120) |
Commit |
Type |
Description |
e4309d57d8 |
fix |
correct type of nextState parameter in canDeactivate (#48038) |
9baefd085f |
fix |
Ensure renavigating in component init works with enabledBlocking (#48063) |
fa5528fb5f |
fix |
restore 'history.state' on popstate even if navigationId missing (#48033) |
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
- 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.
Commit |
Type |
Description |
b871db57da |
fix |
hardening attribute and property binding rules for <iframe> elements (#48059) |
Andrew Kushnir, Andrew Scott, George Looshch, Joey Perrott and Paul Gschwendtner
- 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.
Commit |
Type |
Description |
b1d7b79ff4 |
fix |
hardening attribute and property binding rules for <iframe> elements (#48029) |
Andrew Kushnir, Andrew Scott, George Looshch, Joey Perrott and Paul Gschwendtner
- 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.
Commit |
Type |
Description |
54814c8e9b |
fix |
hardening attribute and property binding rules for <iframe> elements (#48028) |
Andrew Kushnir
Blog post "Angular v15 is now available".
-
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
or ShadowDom
- define keyframes rules in global stylesheets (e.g styles.css)
- define keyframes rules programmatically in code.
-
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 like string
).
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.
- Angular no longer supports Node.js versions
14.[15-19].x
and 16.[10-12].x
. Current supported versions of Node.js are 14.20.x
, 16.13.x
and 18.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
or srcdoc
preceding other attributes. Such usages may need to be updated to ensure compliance with the new stricter rules around iframe bindings.
- setDisabledState will always be called when a
ControlValueAccessor
is attached. You can opt-out with FormsModule.withConfig
or ReactiveFormsModule.withConfig
.
-
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.
- 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.
- The
DATE_PIPE_DEFAULT_TIMEZONE
token is now deprecated in favor
of the DATE_PIPE_DEFAULT_OPTIONS
token, which accepts an object
as a value and the timezone can be defined as a field (called timezone
)
on that object.
-
- The ability to pass an
NgModule
to the providedIn
option for
@Injectable
and InjectionToken
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 where providedIn: '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 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.
- The
RouterLinkWithHref
directive is deprecated, use the RouterLink
directive instead. The RouterLink
contains the code from the RouterLinkWithHref
to handle elements with href
attributes.
Commit |
Type |
Description |
a8569e3802 |
feat |
export forms utility functions: isFormArray, isFormGroup… (#47718) |
96b7fe93af |
fix |
call setDisabledState on ControlValueAcessor when control is enabled (#47576) |
a99d9d67f3 |
fix |
don't mutate validators array (#47830) |
2625dc1312 |
fix |
Improve a very commonly viewed error message by adding a guide. (#47969) |
ae29f98c20 |
fix |
Runtime error pages must begin with leading zero (#47991) |
Commit |
Type |
Description |
bebef5fb43 |
feat |
Quick fix to import a component when its selector is used (#47088) |
e7ee53c541 |
feat |
support to fix invalid banana in box (#47393) |
Commit |
Type |
Description |
400a6b5e37 |
fix |
add polyfill in polyfills array instead of polyfills.ts (#47569) |
b6fd814542 |
fix |
update ng add schematic to support Angular CLI version 15 (#47763) |
d36fd3d9e4 |
refactor |
remove deprecated canParse method from TranslationParsers (#47275) |
Commit |
Type |
Description |
2908eba59c |
fix |
align server renderer interface with base renderer (#47868) |
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
Commit |
Type |
Description |
aef353c143 |
fix |
Ensure renavigating in component init works with enabledBlocking (#48066) |
Alan Agius, Andrew Scott and Mujo Osmanovic
Commit |
Type |
Description |
a4312e1be5 |
fix |
add zone.js version 0.12.x as a valid peer dependency (#48002) |
Alan Agius, Albert Szekely, Andrew Scott, Doug Parker, Kristiyan Kostadinov, Markus Eckstein, Peter Scriven and abergquist
Commit |
Type |
Description |
92d28bdd99 |
perf |
resolve memory leak when using animations with shadow DOM (#47903) |
Commit |
Type |
Description |
d2d9bbf5ce |
fix |
call onSerialize when state is empty (#47888) |
Alan Agius, Kristiyan Kostadinov, Virginia Dooley and mgechev
Andrew Scott, Balaji, Paul Gschwendtner, WD Snoeijer, onrails and vyom1611
Bob Watson, Charles Barnes, Joey Perrott, Virginia Dooley, WD Snoeijer, abergquist and urugator
Alan Agius, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, Charles Lyding, Joey Perrott, Joshua Morony, Mathew Berg, Paul Gschwendtner, Peter Dickten, Renan Ferro, Sri Ram, WD Snoeijer, markostanimirovic and Álvaro Martínez
This release contains various API docs improvements.
Alexander Wiebe, Ciprian Sauliuc, Dmytro Mezhenskyi, George Kalpakas, Joe Martin (Crowdstaffing), Jordan, Ole M, Paul Gschwendtner, Pawel Kozlowski and mgechev
Commit |
Type |
Description |
a4b66fe1e5 |
perf |
cache source file for reporting type-checking diagnostics (#47508) |
Commit |
Type |
Description |
2c46b5ab24 |
fix |
correctly check for typeof of undefined in ngDevMode check (#47480) |
Alan Agius, Ashley Hunter, Doug Parker, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Rokas Brazdžionis and Simona Cotin
Commit |
Type |
Description |
bba2dae812 |
fix |
make sure that the useAnimation function delay is applied (#47468) |
AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, Joey Perrott, Mauro Mattos, dario-piotrowicz, fabioemoutinho and famzila
Commit |
Type |
Description |
937e6c5b3d |
fix |
make sure that the animation function delay is applied (#47285) |
Commit |
Type |
Description |
a3e1303f04 |
fix |
imply @Optional flag when a default value is provided (#47242) |
Commit |
Type |
Description |
80c66a1e57 |
fix |
don't prevent default behavior for forms with method="dialog" (#47308) |
Abhishek Rawat, Andrew Kushnir, Benjamin Chanudet, Bob Watson, George Kalpakas, Ikko Ashimine, Kristiyan Kostadinov, Marc Wrobel, Mariia Subkov, Pawel Kozlowski, Sebastian, abergquist, dario-piotrowicz, onrails and vyom1611
Commit |
Type |
Description |
0e35829580 |
fix |
avoid errors for inputs with Object-builtin names (#47220) |
Commit |
Type |
Description |
6091786696 |
fix |
include headers in requests for assets (#47260) |
28d33505fd |
fix |
only consider GET requests as navigation requests (#47263) |
Aristeidis Bampakos, Asaf M, Bingo's Code, Bob Watson, Daniel Ostrovsky, George Kalpakas, Giovanni Alberto Rivas, Jeremy Elbourn, Jobayer Hossain, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kara Erickson, Kristiyan Kostadinov, Maina Wycliffe, Sabareesh Kappagantu, Simona Cotin, Sonu Sindhu, Yann Provoost, abergquist, jaybell and vyom1611
Commit |
Type |
Description |
b96e571897 |
fix |
fix stagger timing not handling params (#47208) |
Commit |
Type |
Description |
ea89677c12 |
feat |
support more recent version of tsickle (#47018) |
Commit |
Type |
Description |
426af91a42 |
feat |
add FormBuilder.record() method (#46485) |
b302797de4 |
fix |
Correctly infer FormBuilder types involving [value, validators] shorthand in more cases. (#47034) |
Commit |
Type |
Description |
598b72bd05 |
feat |
support fix the component missing member (#46764) |
Commit |
Type |
Description |
07606e3181 |
feat |
add isEmpty method to the TransferState class (#46915) |
Commit |
Type |
Description |
2b4d7f6733 |
feat |
support document reference in render functions (#47032) |
Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Dylan Hunn, Emmanuel Roux, FatalMerlin, George Kalpakas, Ilia Mirkin, Jan Kuehle, Jeremy Elbourn, Jessica Janiuk, JiaLiPassion, Kalbarczyk, Kara Erickson, Katie Hempenius, Kristiyan Kostadinov, Merlin, Paul Gschwendtner, Pawel Kozlowski, Tristan Sprößer, Victor Porof, angular-robot[bot], dario-piotrowicz, ivanwonder and vyom
Commit |
Type |
Description |
0583227708 |
fix |
infinite loop in parser assignment expression with invalid left-hand expression (#47151) |
AlirezaEbrahimkhani, Alma Eyre, Andrew Scott, Bob Watson, George Kalpakas, Kalbarczyk, Kristiyan Kostadinov, Leosvel Pérez Espinosa, Roman Matusevich and Sonu Kapoor
Commit |
Type |
Description |
5ff715c549 |
fix |
check if transplanted views are attached to change detector (#46974) |
Commit |
Type |
Description |
439d77e852 |
fix |
Fix route recognition behavior with some versions of rxjs (#47098) (#47112) |
4javier, Andrew Kushnir, Andrew Scott, AntonioCardenas, Bob Watson, Bruno Barbosa, Eduardo Speroni, Edward, George Kalpakas, Jan Melcher, Kristiyan Kostadinov, Mladen Jakovljević, Paul Gschwendtner, Pawel Kozlowski, Roman Matusevich, Vovch, ashide2729, ileil and onrails
Commit |
Type |
Description |
3606917732 |
fix |
improve the missing control flow directive message (#46903) |
Commit |
Type |
Description |
79825d3f10 |
fix |
Do not call preload method when not necessary (#47007) |
05f3f7445a |
fix |
Use correct return type for provideRoutes function (#46941) |
Alan Agius, Andrew Kushnir, Andrew Quinn, Andrew Scott, Aristeidis Bampakos, Asaf M, Bob Watson, Cédric Exbrayat, Durairaj Subramaniam, George Kalpakas, Ivaylo Kirov, J Rob Gant, Kristiyan Kostadinov, Marek Hám, Paul Gschwendtner, Roman Matusevich and Simona Cotin
- The
createNgModuleRef
is deprecated in favor of newly added createNgModule
one.
- The bit field signature of
inject()
has been deprecated, in favor of the
new options object. Correspondingly, InjectFlags
is deprecated as well.
Commit |
Type |
Description |
55308f2df5 |
feat |
add provideAnimations() and provideNoopAnimations() functions (#46793) |
Commit |
Type |
Description |
33ce3883a5 |
feat |
Add extended diagnostic to warn when missing let on ngForOf (#46683) |
6f11a58040 |
feat |
Add extended diagnostic to warn when text attributes are intended to be bindings (#46161) |
9e836c232f |
feat |
warn when style suffixes are used with attribute bindings (#46651) |
Commit |
Type |
Description |
93c65e7b14 |
feat |
add extended diagnostic for non-nullable optional chains (#46686) |
131d029da1 |
feat |
detect missing control flow directive imports in standalone components (#46146) |
6b8e60c06a |
fix |
improve the missingControlFlowDirective message (#46846) |
Commit |
Type |
Description |
82acbf919b |
feat |
improve error message for nullish header (#46059) |
Commit |
Type |
Description |
e9cb0454dc |
feat |
more closely align UpgradeModule#bootstrap() with angular.bootstrap() (#46214) |
AleksanderBodurri, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Cédric Exbrayat, Dmitrij Kuba, Dylan Hunn, George Kalpakas, Jessica Janiuk, JiaLiPassion, Joey Perrott, John Vandenberg, JoostK, Keith Li, Or'el Ben-Ya'ir, Paul Gschwendtner, Pawel Kozlowski, SyedAhm3r, arturovt, mariu, markostanimirovic and mgechev
Commit |
Type |
Description |
5bdbb6285b |
fix |
make sure falsy values are added to _globalTimelineStyles (#46863) |
Commit |
Type |
Description |
41253f9c46 |
fix |
inputs/outputs incorrectly parsed in jit mode (#46813) |
Commit |
Type |
Description |
4e77c7fbf3 |
fix |
do not invoke jasmine done callback multiple times with waitForAsync |
Andrew Kushnir, Andrew Scott, Bob Watson, Cédric Exbrayat, Doug Parker, George Kalpakas, Jessica Janiuk, Kristiyan Kostadinov, Paul Gschwendtner, acvi, dario-piotrowicz, jnizet and piyush132000
Commit |
Type |
Description |
99697dae66 |
fix |
only consider used pipes for inline type-check requirement (#46807) |
Commit |
Type |
Description |
4f469cbef3 |
fix |
expose ControlConfig in public API (#46594) |
e8c8b695f2 |
fix |
Move all remaining errors in Forms to use RuntimeErrorCode. (#46654) |
Commit |
Type |
Description |
14863acb1a |
fix |
add --project option to ng-add schematic (#46664) |
Alan Agius, Andrew Scott, Bob Watson, Dylan Hunn, George Kalpakas, Ivaylo Kirov, Jessica Janiuk, JoostK, Joshua VanAllen, Lukas Matta, Marcin Wosinek, Nicolas Molina Monroy, Paul Gschwendtner, SoulsMark, Uday Sony, dario-piotrowicz, markostanimirovic and zhysky
Commit |
Type |
Description |
a3bd65e2b8 |
fix |
Ensure APP_INITIALIZER of enabledBlocking option completes (#46634) |
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Aristeidis Bampakos, Bob Watson, George Kalpakas, Paul Gschwendtner and Pawel Kozlowski
Commit |
Type |
Description |
51be9bbe29 |
fix |
cleanup DOM elements when the root view is removed (#45143) |
999aca86c8 |
fix |
enable shadowElements to leave when their parent does (#46459) |
Commit |
Type |
Description |
42aed6b13e |
fix |
handle CSS custom properties in NgStyle (#46451) |
Commit |
Type |
Description |
74a26d870e |
fix |
Convert existing reactive errors to use RuntimeErrorCode. (#46560) |
747872212d |
fix |
Update a Forms validator error to use RuntimeError (#46537) |
Commit |
Type |
Description |
d6fac9e914 |
fix |
Ensure that new RouterOutlet instances work after old ones are destroyed (#46554) |
Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Bezael, Chad Ramos, Chellappan, Cédric Exbrayat, Dylan Hunn, George Kalpakas, Jeremy Meiss, Jessica Janiuk, Joey Perrott, KMathy, Kristiyan Kostadinov, Paul Gschwendtner, Pawel Kozlowski, Ramesh Thiruchelvam, Vaibhav Kumar, arturovt, dario-piotrowicz and renovate[bot]
Commit |
Type |
Description |
3dd7bb3f8f |
fix |
reset the start and done fns on player reset (#46364) |
Commit |
Type |
Description |
c086653655 |
fix |
deduplicate imports of standalone components in JIT compiler (#46439) |
5d3b97e1f8 |
fix |
handle NgModules with standalone pipes in TestBed correctly (#46407) |
Commit |
Type |
Description |
6ad7b40a6f |
fix |
invalid style attribute being generated for null values (#46433) |
4javier, Aakash, Alan Agius, Andrew Kushnir, Aristeidis Bampakos, Dany Paredes, Derek Cormier, JoostK, Kristiyan Kostadinov, Paul Gschwendtner, Ramesh Thiruchelvam, behrooz bozorg chami, dario-piotrowicz, markostanimirovic, renovate[bot] and web-dave
Commit |
Type |
Description |
8ecfd71fd7 |
fix |
don't emit empty providers array (#46301) |
b92c1a6ada |
fix |
use inline type-check blocks for components outside rootDir (#46096) |
Commit |
Type |
Description |
3fd8948b4a |
fix |
Resolve forwardRef declarations for jit (#46334) |
Alex Rickabaugh, Andrew Scott, Badawi7, Daniel Schmitz, Derek Cormier, JoostK, Kevin Davila, Kristiyan Kostadinov, Paul Draper, Paul Gschwendtner, Tom Eustace, Totati, Younes Jaaidi, alefra, dario-piotrowicz, markostanimirovic, mgechev, piyush132000, sten-bone and vivekkoya
Commit |
Type |
Description |
b00d237c0e |
fix |
update API extractor version (#46259) |
9a0a7bac21 |
perf |
reduce input files for ng_package rollup and type bundle actions (#46187) |
Commit |
Type |
Description |
dde0b7f4b3 |
fix |
allow FormBuilder.group(...) to accept optional fields. (#46253) |
Adrien Crivelli, Alan Agius, Alex Rickabaugh, Andrew Kushnir, Andrew Scott, Dylan Hunn, Fabrizio Fallico, George Kalpakas, Jelle Bruisten, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Paul Gschwendtner, Phalgun Vaddepalli, San Leen, dario-piotrowicz, mgechev and wellWINeo
Blog post "Angular v14 is now available".
- The
AnimationDriver.getParentElement
method has become required, so any
implementors of this interface are now required to provide an implementation
for this method. This breakage is unlikely to affect application developers,
as AnimationDriver
is not expected to be implemented in user code.
- Adds new required class member that any implementors of the LocationStrategy will need to satisfy.
Location does not depend on PlatformLocation anymore.
-
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
or ShadowDom
- define keyframes rules in global stylesheets (e.g styles.css)
- define keyframes rules programmatically in code.
-
Support for Node.js v12 has been removed as it will become EOL on 2022-04-30. Please use Node.js v14.15 or later.
-
TypeScript versions older than 4.6 are no longer supported.
-
Forms [email] input coercion
Forms [email] input value will be considered as true if it is defined with any value rather
than false and 'false'.
-
Since Ivy, TestBed doesn't use AOT summaries. The aotSummaries
fields in TestBed APIs were present, but unused. The fields were deprecated in previous major version and in v14 those fields are removed. The aotSummaries
fields were completely unused, so you can just drop them from the TestBed APIs usage.
-
Forms classes accept a generic.
Forms model classes now accept a generic type parameter. Untyped versions of these classes are available to opt-out of the new, stricter behavior.
-
objects with a length key set to zero will no longer validate as empty.
This is technically a breaking change, since objects with a key length
and value 0
will no longer validate as empty. This is a very minor change, and any reliance on this behavior is probably a bug anyway.
-
Queries including + will now actually query for + instead of space.
Most workarounds involving custom codecs will be unaffected.
Possible server-side workarounds will need to be undone.
-
JSONP will throw an error when headers are set on a reques
JSONP does not support headers being set on requests. Before when
a request was sent to a JSONP backend that had headers set the headers
were ignored. The JSONP backend will now throw an error if it
receives a request that has any headers set. Any uses of JSONP
on requests with headers set will need to remove the headers
to avoid the error.
-
This change may cause a breaking change in unit tests that are implicitly depending on a specific
number and sequence of change detections in order for their assertions to pass.
-
This may break invalid calls to TransferState
methods.
This tightens parameter types of TransferState
usage, and is a minor breaking change which may reveal existing problematic calls.
-
The type of Route.pathMatch
is now stricter. Places that use
pathMatch
will likely need to be updated to have an explicit
Route
/Routes
type so that TypeScript does not infer the type as
string
.
-
When returning a Promise
from the
LoadChildrenCallback
, the possible type is now restricted to
Type<any>|NgModuleFactory<any>
rather than any
.
-
initialNavigation: 'enabled'
was deprecated in v11 and is replaced by
initialNavigation: 'enabledBlocking'
.
-
The type of component
on ActivatedRoute
and ActivatedRouteSnapshot
includes string
. In reality, this is not the case. The component
cannot be anything other than a component class.
-
- The type of
initialUrl
is set to string|UrlTree
but in reality,
the Router
only sets it to a value that will always be UrlTree
initialUrl
is documented as "The target URL passed into the
Router#navigateByUrl()
call before navigation" but the value
actually gets set to something completely different. It's set to the
current internal UrlTree
of the Router at the time navigation
occurs.
With this change, there is no exact replacement for the old value of
initialUrl
because it was never intended to be exposed.
Router.url
is likely the best replacement for this.
In more specific use-cases, tracking the finalUrl
between successful
navigations can also be used as a replacement.
-
Lazy loaded configs are now also validated once loaded like the
initial set of routes are. Lazy loaded modules which have invalid Route
configs will now error. Note that this is only done in dev mode so
there is no production impact of this change.
-
When a guard returns a UrlTree
, the router would previously schedule
the redirect navigation within a setTimeout
. This timeout is now removed,
which can result in test failures due to incorrectly written tests.
Tests which perform navigations should ensure that all timeouts are
flushed before making assertions. Tests should ensure they are capable
of handling all redirects from the original navigation.
-
Previously, resolvers were waiting to be completed
before proceeding with the navigation and the Router would take the last
value emitted from the resolver.
The router now takes only the first emitted value by the resolvers
and then proceeds with navigation. This is now consistent with Observables
returned by other guards: only the first value is used.
-
in TaskTrackingZoneSpec track a periodic task until it is cancelled
The breaking change is scoped only to the plugin
zone.js/plugins/task-tracking
. If you used TaskTrackingZoneSpec
and
checked the pending macroTasks e.g. using (this.ngZone as any)._inner ._parent._properties.TaskTrackingZone.getTasksFor('macroTask')
, then
its behavior slightly changed for periodic macrotasks. For example,
previously the setInterval
macrotask was no longer tracked after its
callback was executed for the first time. Now it's tracked until
the task is explicitly cancelled, e.g with clearInterval(id)
.
- The
ngModuleFactory
input of the NgComponentOutlet
directive is deprecated in favor of a newly added ngModule
input. The ngModule
input accepts references to the NgModule class directly, without the need to resolve module factory first.
- The
initialValueIsDefault
option has been deprecated and replaced with the otherwise-identical nonNullable
option, for the sake of naming consistency.
- It is now deprecated to provide both
AbstractControlOption
s and an async validators argument to a FormControl. Previously, the async validators would just be silently dropped, resulting in a probably buggy forms. Now, the constructor call is deprecated, and Angular will print a warning in devmode.
- The
resolver
argument of the RouterOutletContract.activateWith
function and the resolver
field of the OutletContext
class are deprecated. Passing component factory resolvers are no longer needed. The ComponentFactoryResolver
-related symbols were deprecated in @angular/core
package since v13.
Commit |
Type |
Description |
bb8d7091c6 |
fix |
exclude empty styles from emitted metadata (#45459) |
4d6a1d6722 |
fix |
scope css keyframes in emulated view encapsulation (#42608) |
f03e313f24 |
fix |
scope css keyframes in emulated view encapsulation (#42608) |
Commit |
Type |
Description |
6c284ef32e |
fix |
stop scroll occuring at tabs level |
Commit |
Type |
Description |
9d4af65e34 |
feat |
Provide plugin to delegate rename requests to Angular (#44696) |
3ae133c69e |
fix |
Fix detection of Angular for v14+ projects (#45998) |
Commit |
Type |
Description |
a50e2da64a |
fix |
ensure transitively loaded compiler code is tree-shakable (#45405) |
Commit |
Type |
Description |
d56a537196 |
feat |
Add migration to add explicit Route /Routes type (#45084) |
Commit |
Type |
Description |
74a2e2e2ec |
fix |
cope with packages following APF v14+ (#45833) |
Commit |
Type |
Description |
ec0a0e0669 |
feat |
add cacheOpaqueResponses option for data-groups (#44723) |
bd04fbc05b |
feat |
emit a notification when the service worker is already up-to-date after check (#45216) |
Adrian Kunz, Alan Agius, AleksanderBodurri, Alex Rickabaugh, AlirezaEbrahimkhani, Amir Rustamzadeh, Andrew Kushnir, Andrew Scott, Chabbey François, Charles Lyding, Cédric Exbrayat, Daan De Smedt, David Schmidt, Derek Cormier, Dmitrij Kuba, Doug Parker, Dylan Hunn, Emma Twersky, George Kalpakas, George Looshch, Jan Kuehle, Jessica Janiuk, JiaLiPassion, JimMorrison723, Joe Martin (Crowdstaffing), Joey Perrott, JoostK, Kristiyan Kostadinov, Krzysztof Platis, Leosvel Pérez Espinosa, Maddie Klein, Mark Whitfeld, Martin Sikora, Michael-Doner, Michal Materowski, Minko Gechev, Paul Gschwendtner, Pawel Kozlowski, Payam Shahidi, Pusztai Tibor, Ricardo Mattiazzi Baumgartner, Roy Dorombozi, Ruslan Lekhman, Samuel Littley, Sergej Grilborzer, Sumit Arora, Tobias Speicher, Virginia Dooley, Zack Elliott, alirezaghey, ananyahs96, arturovt, cexbrayat, dario-piotrowicz, ivanwonder, kamikopi, markostanimirovic, markwhitfeld, mgechev, renovate[bot], twerske and zverbeta
Earlier changelog entries can be found in CHANGELOG_ARCHIVE.md file.