354 KiB
15.0.4 (2022-12-14)
animations
| Commit | Type | Description |
|---|---|---|
| 6c1064c72f | fix | fix incorrect handling of camel-case css properties (#48436) |
common
| Commit | Type | Description |
|---|---|---|
| f30d18a942 | fix | Fix TestBed.overrideProvider type to include multi (#48424) |
compiler-cli
| Commit | Type | Description |
|---|---|---|
| b55d2dab5d | fix | 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.0.3 (2022-12-07)
common
| 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) |
compiler
| Commit | Type | Description |
|---|---|---|
| 9a5d84249a | fix | make sure selectors inside container queries are correctly scoped (#48353) |
compiler-cli
| Commit | Type | Description |
|---|---|---|
| 167bc0d163 | fix | Produce diagnostic rather than crash when using invalid hostDirective (#48314) |
core
| Commit | Type | Description |
|---|---|---|
| e4dcaa513e | fix | 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.0.2 (2022-11-30)
compiler-cli
| Commit | Type | Description |
|---|---|---|
| 86a21f5569 | fix | 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.0.1 (2022-11-22)
common
| Commit | Type | Description |
|---|---|---|
| 930af9dd26 | fix | Fix MockPlatformLocation events and missing onPopState implementation (#48113) |
forms
| Commit | Type | Description |
|---|---|---|
| b342e55509 | fix | don't mutate validators array (#47830) |
| a12a120272 | fix | FormBuilder.group return right type with shorthand parameters. (#48084) |
language-service
| 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) |
router
| 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) |
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)
Blog post "Angular v15 is now available".
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
NoneorShadowDom - 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
enableIvyhas been removed as Ivy is the only rendering engine.
core
- Angular no longer supports Node.js versions
14.[15-19].xand16.[10-12].x. Current supported versions of Node.js are14.20.x,16.13.xand18.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
srcorsrcdocpreceding 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
ControlValueAccessoris attached. You can opt-out withFormsModule.withConfigorReactiveFormsModule.withConfig.
localize
-
canParsemethod has been removed from all translation parsers in@angular/localize/tools.analyzeshould be used instead.- the
hintparameter in theparsemethods is now mandatory.
router
- Previously, the
RouterOutletwould 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
relativeLinkResolutionis 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_TIMEZONEtoken is now deprecated in favor of theDATE_PIPE_DEFAULT_OPTIONStoken, 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
NgModuleto theprovidedInoption for@InjectableandInjectionTokenis now deprecated.
providedIn: NgModulewas 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, useNgModule.providersinstead.- The ability to set
providedIn: 'any'for an@InjectableorInjectionTokenis 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
RouterLinkWithHrefdirective is deprecated, use theRouterLinkdirective instead. TheRouterLinkcontains the code from theRouterLinkWithHrefto handle elements withhrefattributes.
common
| Commit | Type | Description |
|---|---|---|
| c0c7efaf7c | feat | add provideLocationMocks() function to provide Location mocks (#47674) |
| 75e6297f09 | feat | add preload tag on server for priority img (#47343) |
| 4fde292bb5 | feat | Add automatic srcset generation to ngOptimizedImage (#47547) |
| 9483343ebf | feat | Add fill mode to NgOptimizedImage (#47738) |
| bdb5371033 | feat | add injection token for default DatePipe configuration (#47157) |
| 449d29b701 | fix | Add fetchpriority to ngOptimizedImage preloads (#48010) |
| 4f52d4e474 | fix | don't generate srcset if noopImageLoader is used (#47804) |
| 3a18398d83 | fix | Don't warn about image distortion is fill mode is enabled (#47824) |
| edea15f2c6 | fix | export the IMAGE_CONFIG token (#48051) |
| 8abf1c844c | fix | fix formatting on oversized image error (#47188) |
| ca7bf65933 | fix | rename rawSrc -> ngSrc in NgOptimizedImage directive (#47362) |
| b3879dbf14 | fix | support density descriptors with 2+ decimals (#47197) |
| fa4798095e | fix | update size error to mention 'fill' mode (#47797) |
| 23f210c0ab | fix | warn if using supported CDN but not built-in loader (#47330) |
| 945432e3fa | fix | Warn on fill ngOptimizedImage without height (#48036) |
compiler
| Commit | Type | Description |
|---|---|---|
| 051f75648d | fix | scope css keyframes in emulated view encapsulation (#42608) |
| 39b72e208b | fix | update element schema (#47552) |
| 48b354a83e | fix | update element schema (#47552) |
compiler-cli
| Commit | Type | Description |
|---|---|---|
| bc54687c7b | fix | exclude abstract classes from strictInjectionParameters requirement (#44615) |
| 309b2cde51 | fix | implement more host directive validations as diagnostics (#47768) |
| 2e1dddec45 | fix | support hasInvalidatedResolutions. (#47585) |
| 19ad4987f9 | fix | use @ts-ignore. (#47636) |
| 8fcadaad48 | perf | cache source file for reporting type-checking diagnostics (#47471) |
| 16f96eeabf | refactor | remove enableIvy options (#47346) |
core
| Commit | Type | Description |
|---|---|---|
| e3cef4a784 | docs | deprecate providedIn: NgModule and providedIn: 'any' (#47616) |
| 1b9fd46d14 | feat | add support for Node.js version 18 (#47730) |
| ed11a13c3c | feat | drop support for TypeScript 4.6 and 4.7 (#47690) |
| db28badfe6 | feat | enable the new directive composition API (#47642) |
| 7de1469be6 | feat | introduce EnvironmentProviders wrapper type (#47669) |
| 841c8e5138 | feat | support object-based DI flags in Injector.get() (#46761) |
| 120555a626 | feat | support object-based DI flags in TestBed.inject() (#46761) |
| 96c0e42e61 | fix | allow readonly arrays for standalone imports (#47851) |
| 28f289b825 | fix | hardening attribute and property binding rules for |