mycomplexsoul / delta

To do list, money manager, media tracker, last time task was done and scaffolding generator
0 stars 0 forks source link

Update angular monorepo to v15 (major) #406

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/animations 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/common 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/compiler 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/compiler-cli (source) 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/core 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/forms 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/language-service 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/platform-browser 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/platform-browser-dynamic 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/router (source) 14.2.12 -> 15.0.4 age adoption passing confidence
@angular/service-worker 14.2.12 -> 15.0.4 age adoption passing confidence

Release Notes

angular/angular ### [`v15.0.4`](https://togithub.com/angular/angular/blob/HEAD/CHANGELOG.md#​1504-2022-12-14) [Compare Source](https://togithub.com/angular/angular/compare/15.0.3...15.0.4) ##### animations | Commit | Type | Description | | -- | -- | -- | | [6c1064c72f](https://togithub.com/angular/angular/commit/6c1064c72f7d5b9a455813046939ab0161c143bf) | fix | fix incorrect handling of camel-case css properties ([#​48436](https://togithub.com/angular/angular/pull/48436)) | ##### common | Commit | Type | Description | | -- | -- | -- | | [f30d18a942](https://togithub.com/angular/angular/commit/f30d18a9424afacbd47d70f91e233e286bb94b0d) | fix | Fix TestBed.overrideProvider type to include multi ([#​48424](https://togithub.com/angular/angular/pull/48424)) | ##### compiler-cli | Commit | Type | Description | | -- | -- | -- | | [b55d2dab5d](https://togithub.com/angular/angular/commit/b55d2dab5d76ffa809ac1feb78392a75c3081dec) | fix | evaluate const tuple types statically ([#​48091](https://togithub.com/angular/angular/pull/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 ### [`v15.0.3`](https://togithub.com/angular/angular/blob/HEAD/CHANGELOG.md#​1503-2022-12-07) [Compare Source](https://togithub.com/angular/angular/compare/15.0.2...15.0.3) ##### common | Commit | Type | Description | | -- | -- | -- | | [50b1c2bf52](https://togithub.com/angular/angular/commit/50b1c2bf520e88828eadefcb2d0acaf151f8118e) | fix | Don't generate srcsets with very large sources ([#​47997](https://togithub.com/angular/angular/pull/47997)) | | [bf44dc234a](https://togithub.com/angular/angular/commit/bf44dc234a32069cb297ef7d3a87c2004cad8b00) | fix | Update `Location` to support base href containing `origin` ([#​48327](https://togithub.com/angular/angular/pull/48327)) | ##### compiler | Commit | Type | Description | | -- | -- | -- | | [9a5d84249a](https://togithub.com/angular/angular/commit/9a5d84249a0fd6b5c2a77c7ab6cbf72d90c45ee3) | fix | make sure selectors inside container queries are correctly scoped ([#​48353](https://togithub.com/angular/angular/pull/48353)) | ##### compiler-cli | Commit | Type | Description | | -- | -- | -- | | [167bc0d163](https://togithub.com/angular/angular/commit/167bc0d1638ffd6fe91bcb40f96c2ab90f3e01cb) | fix | Produce diagnostic rather than crash when using invalid hostDirective ([#​48314](https://togithub.com/angular/angular/pull/48314)) | ##### core | Commit | Type | Description | | -- | -- | -- | | [e4dcaa513e](https://togithub.com/angular/angular/commit/e4dcaa513e7d5ccd3a63edf6132792873f01f7c1) | fix | unable to inject ChangeDetectorRef inside host directives ([#​48355](https://togithub.com/angular/angular/pull/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 ### [`v15.0.2`](https://togithub.com/angular/angular/blob/HEAD/CHANGELOG.md#​1502-2022-11-30) [Compare Source](https://togithub.com/angular/angular/compare/15.0.1...15.0.2) ##### compiler-cli | Commit | Type | Description | | -- | -- | -- | | [86a21f5569](https://togithub.com/angular/angular/commit/86a21f5569bc4b8060a882bd3d542a6c002438c7) | fix | accept inheriting the constructor from a class in a library ([#​48156](https://togithub.com/angular/angular/pull/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 ### [`v15.0.1`](https://togithub.com/angular/angular/blob/HEAD/CHANGELOG.md#​1501-2022-11-22) [Compare Source](https://togithub.com/angular/angular/compare/15.0.0...15.0.1) ##### common | Commit | Type | Description | | -- | -- | -- | | [930af9dd26](https://togithub.com/angular/angular/commit/930af9dd2607754e778922a4bb31055123229e24) | fix | Fix MockPlatformLocation events and missing onPopState implementation ([#​48113](https://togithub.com/angular/angular/pull/48113)) | ##### forms | Commit | Type | Description | | -- | -- | -- | | [b342e55509](https://togithub.com/angular/angular/commit/b342e5550928c14ddfb33861189f67b39e163d05) | fix | don't mutate validators array ([#​47830](https://togithub.com/angular/angular/pull/47830)) | | [a12a120272](https://togithub.com/angular/angular/commit/a12a120272024e49bd3d80d9ed1ae30dcf8622f8) | fix | FormBuilder.group return right type with shorthand parameters. ([#​48084](https://togithub.com/angular/angular/pull/48084)) | ##### language-service | Commit | Type | Description | | -- | -- | -- | | [cc8b76ef7c](https://togithub.com/angular/angular/commit/cc8b76ef7cb908d2c95229f39bf82a13ca59570b) | fix | correctly handle host directive inputs/outputs ([#​48147](https://togithub.com/angular/angular/pull/48147)) | | [a8c33bf931](https://togithub.com/angular/angular/commit/a8c33bf93132425a617381e4aa9a6f0e8e0ddf5b) | fix | update packages/language-service/build.sh script to work with vscode-ng-language-service's new Bazel build ([#​48120](https://togithub.com/angular/angular/pull/48120)) | ##### router | Commit | Type | Description | | -- | -- | -- | | [e4309d57d8](https://togithub.com/angular/angular/commit/e4309d57d893e111bda3744a61630d1888ddbc02) | fix | correct type of nextState parameter in canDeactivate ([#​48038](https://togithub.com/angular/angular/pull/48038)) | | [9baefd085f](https://togithub.com/angular/angular/commit/9baefd085fb079c312c4c03d79775a0fcff933b9) | fix | Ensure renavigating in component init works with enabledBlocking ([#​48063](https://togithub.com/angular/angular/pull/48063)) | | [fa5528fb5f](https://togithub.com/angular/angular/commit/fa5528fb5f0fe6e4e6ea85d39e43262018520c43) | fix | restore 'history.state' on popstate even if navigationId missing ([#​48033](https://togithub.com/angular/angular/pull/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 ### [`v15.0.0`](https://togithub.com/angular/angular/blob/HEAD/CHANGELOG.md#​1500-2022-11-16) [Compare Source](https://togithub.com/angular/angular/compare/14.2.12...15.0.0) [Blog post "Angular v15 is now available"](http://goo.gle/angular-v15). #### 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](https://togithub.com/keyframes) foo { ... } will become: [@​keyframes](https://togithub.com/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. ##### 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 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. ##### core - 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. ##### forms - setDisabledState will always be called when a `ControlValueAccessor` is attached. You can opt-out with `FormsModule.withConfig` or `ReactiveFormsModule.withConfig`. ##### localize - - `canParse` method has been removed from all translation parsers in `@angular/localize/tools`. `analyze` should be used instead. - the `hint` parameter in the`parse` 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 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. ##### core - - 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. ##### router - The `RouterLinkWithHref` directive is deprecated, use the `RouterLink` directive instead. The `RouterLink` contains the code from the `RouterLinkWithHref` to handle elements with `href` attributes. ##### common | Commit | Type | Description | | -- | -- | -- | | [c0c7efaf7c](https://togithub.com/angular/angular/commit/c0c7efaf7c8a53c1a6f137aac960757cc804f263) | feat | add `provideLocationMocks()` function to provide Location mocks ([#​47674](https://togithub.com/angular/angular/pull/47674)) | | [75e6297f09](https://togithub.com/angular/angular/commit/75e6297f0901cc98aea1626a138a820e68d026ec) | feat | add preload tag on server for priority img ([#​47343](https://togithub.com/angular/angular/pull/47343)) | | [4fde292bb5](https://togithub.com/angular/angular/commit/4fde292bb58f5d5bc3cf6e634f7cff9eb0d13d84) | feat | Add automatic srcset generation to ngOptimizedImage ([#​47547](https://togithub.com/angular/angular/pull/47547)) | | [9483343ebf](https://togithub.com/angular/angular/commit/9483343ebf958297ebcb81ef313d356296a41f41) | feat | Add fill mode to NgOptimizedImage ([#​47738](https://togithub.com/angular/angular/pull/47738)) | | [bdb5371033](https://togithub.com/angular/angular/commit/bdb5371033d8e9a110619861323e8383a32d5900) | feat | add injection token for default DatePipe configuration ([#​47157](https://togithub.com/angular/angular/pull/47157)) | | [449d29b701](https://togithub.com/angular/angular/commit/449d29b701ee5a50e7279d44f4c3888a5d6f7e96) | fix | Add fetchpriority to ngOptimizedImage preloads ([#​48010](https://togithub.com/angular/angular/pull/48010)) | | [4f52d4e474](https://togithub.com/angular/angular/commit/4f52d4e47416494b4054e43a0d96383bde7813ca) | fix | don't generate srcset if noopImageLoader is used ([#​47804](https://togithub.com/angular/angular/pull/47804)) | | [3a18398d83](https://togithub.com/angular/angular/commit/3a18398d8303fb4ae1923b3a182e6abb92e3117b) | fix | Don't warn about image distortion is fill mode is enabled ([#​47824](https://togithub.com/angular/angular/pull/47824)) | | [edea15f2c6](https://togithub.com/angular/angular/commit/edea15f2c63675e86248a25649008a10e1384334) | fix | export the IMAGE_CONFIG token ([#​48051](https://togithub.com/angular/angular/pull/48051)) | | [8abf1c844c](https://togithub.com/angular/angular/commit/8abf1c844c656b41a604098889db76e8c63da720) | fix | fix formatting on oversized image error ([#​47188](https://togithub.com/angular/angular/pull/47188)) | | [ca7bf65933](https://togithub.com/angular/angular/commit/ca7bf6593380fa760891d29fba5c9f61c6e9bf8b) | fix | rename `rawSrc` -> `ngSrc` in NgOptimizedImage directive ([#​47362](https://togithub.com/angular/angular/pull/47362)) | | [b3879dbf14](https://togithub.com/angular/angular/commit/b3879dbf1470ab4f31e676f1f8909cd50d963844) | fix | support density descriptors with 2+ decimals ([#​47197](https://togithub.com/angular/angular/pull/47197)) | | [fa4798095e](https://togithub.com/angular/angular/commit/fa4798095e3820087c4a3bccc9638c5e979315da) | fix | update size error to mention 'fill' mode ([#​47797](https://togithub.com/angular/angular/pull/47797)) | | [23f210c0ab](https://togithub.com/angular/angular/commit/23f210c0abfb6104f4aa2f39d0efd096c2b7574d) | fix | warn if using supported CDN but not built-in loader ([#​47330](https://togithub.com/angular/angular/pull/47330)) | | [945432e3fa](https://togithub.com/angular/angular/commit/945432e3fa2cb22ff911eda2a8ad3302a8adba5a) | fix | Warn on fill ngOptimizedImage without height ([#​48036](https://togithub.com/angular/angular/pull/48036)) | ##### compiler | Commit | Type | Description | | -- | -- | -- | | [051f75648d](https://togithub.com/angular/angular/commit/051f75648d6065949796ac1c7ea67e71e31b011e) | fix | scope css keyframes in emulated view encapsulation ([#​42608](https://togithub.com/angular/angular/pull/42608)) | | [39b72e208b](https://togithub.com/angular/angular/commit/39b72e208b46d80f1d9a802cebf043c2ccf3c5f2) | fix | update element schema ([#​47552](https://togithub.com/angular/angular/pull/47552)) | | [48b354a83e](https://togithub.com/angular/angular/commit/48b354a83e6d94735a03eebb3a52c5698e7a0f44) | fix | update element schema ([#​47552](https://togithub.com/angular/angular/pull/47552)) | ##### compiler-cli | Commit | Type | Description | | -- | -- | -- | | [bc54687c7b](https://togithub.com/angular/angular/commit/bc54687c7b91efe451aa744d2d3a15ca3524231e) | fix | exclude abstract classes from `strictInjectionParameters` requirement ([#​44615](https://togithub.com/angular/angular/pull/44615)) | | [309b2cde51](https://togithub.com/angular/angular/commit/309b2cde51d1577d6561e826be01e2b5fce43c49) | fix | implement more host directive validations as diagnostics ([#​47768](https://togithub.com/angular/angular/pull/47768)) | | [2e1dddec45](https://togithub.com/angular/angular/commit/2e1dddec45fef8291b1f3abce2a937e28bb75a87) | fix | support hasInvalidatedResolutions. ([#​47585](https://togithub.com/angular/angular/pull/47585)) | | [19ad4987f9](https://togithub.com/angular/angular/commit/19ad4987f9070222bb2fb8bd07a43ed7995f602a) | fix | use [@​ts-ignore](https://togithub.com/ts-ignore). ([#​47636](https://togithub.com/angular/angular/pull/47636)) | | [8fcadaad48](https://togithub.com/angular/angular/commit/8fcadaad48b2b1328f47b7603b230445a26f95a8) | perf | cache source file for reporting type-checking diagnostics ([#​47471](https://togithub.com/angular/angular/pull/47471)) | | [16f96eeabf](https://togithub.com/angular/angular/commit/16f96eeabf77964092b4b6a830e29f2761ffaeec) | refactor | remove `enableIvy` options ([#​47346](https://togithub.com/angular/angular/pull/47346)) | ##### core | Commit | Type | Description | | -- | -- | -- | | [e3cef4a784](https://togithub.com/angular/angular/commit/e3cef4a7843d22fd004f1e27afcc42d0fbbef74a) | docs | deprecate `providedIn: NgModule` and `providedIn: 'any'` ([#​47616](https://togithub.com/angular/angular/pull/47616)) | | [1b9fd46d14](https://togithub.com/angular/angular/commit/1b9fd46d14ed46f78b6d761b3917ded1f0d51e0d) | feat | add support for Node.js version 18 ([#​47730](https://togithub.com/angular/angular/pull/47730)) | | [ed11a13c3c](https://togithub.com/angular/angular/commit/ed11a13c3c5cccb0094c1a4ff9c60ea741a42067) | feat | drop support for TypeScript 4.6 and 4.7 ([#​47690](https://togithub.com/angular/angular/pull/47690)) | | [db28badfe6](https://togithub.com/angular/angular/commit/db28badfe67f404e81dacd7c3131af105feb3412) | feat | enable the new directive composition API ([#​47642](https://togithub.com/angular/angular/pull/47642)) | | [7de1469be6](https://togithub.com/angular/angular/commit/7de1469be62b08037681ee9e75614fb800700ef8) | feat | introduce EnvironmentProviders wrapper type ([#​47669](https://togithub.com/angular/angular/pull/47669)) | | [841c8e5138](https://togithub.com/angular/angular/commit/841c8e51386645d7fd26642f41952ed8f0a2dbe5) | feat | support object-based DI flags in Injector.get() ([#​46761](https://togithub.com/angular/angular/pull/46761)) | | [120555a626](https://togithub.com/angular/angular/commit/120555a626d66523e46ce01681b11a0f38e3a40a) | feat | support object-based DI flags in TestBed.inject() ([#​46761](https://togithub.com/angular/angular/pull/46761)) | | [96c0e42e61](https://togithub.com/angular/angular/commit/96c0e42e61b8a4fced1354da0162c06e7b029cf3) | fix | allow readonly arrays for standalone imports ([#​47851](https://togithub.com/angular/angular/pull/47851)) | | [28f289b825](https://togithub.com/angular/angular/commit/28f289b825be7f4bf6dc5db69197741867b8ea23) | fix | hardening attribute and property binding rules for