custom-elements-everywhere icon indicating copy to clipboard operation
custom-elements-everywhere copied to clipboard

Update dependency @angular/router to v15

Open renovate[bot] opened this issue 2 years ago • 1 comments

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/router (source) 14.1.0 -> 15.0.1 age adoption passing confidence

Release Notes

angular/angular

v15.0.1

Compare Source

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

v15.0.0

Compare Source

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 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 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 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 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
d4b3c0b47c fix hardening rules related to the attribute order on iframe elements (#​47935)
85330f3fd9 fix update isDevMode to rely on ngDevMode (#​47475)
forms
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)
http
Commit Type Description
3ba99e286a feat allow for child HttpClients to request via parents (#​47502)
84d0d33c35 feat introduce provideHttpClientTesting provider function (#​47502)
62c7a7a16e feat introduce functional interceptors (#​47502)
e47b129070 feat introduce the provideHttpClient() API (#​47502)
ea16a98dfe fix better handle unexpected undefined XSRF tokens (#​47683)
e7b48da713 fix rename withLegacyInterceptors to withInterceptorsFromDi (#​47901)
language-service
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)
localize
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)
platform-server
Commit Type Description
2908eba59c fix align server renderer interface with base renderer (#​47868)
router
Commit Type Description
7bee28d037 feat add a migration to remove relativeLinkResolution usages (#​47604)
5163e3d876 feat Add UrlTree constructor to public API (#​47186)
da58801f95 feat auto-unwrap default exports when lazy loading (#​47586)
c3f857975d feat make RouterOutlet name an Input so it can be set dynamically (#​46569)
f73ef21442 feat merge RouterLinkWithHref into RouterLink (#​47630)
16c8f55663 feat migrate RouterLinkWithHref references to RouterLink (#​47599)
07017a7bd3 feat prevent provideRouter() from usage in @​Component (#​47669)
79e9e8ab77 fix Delay router scroll event until navigated components have rendered (#​47563)
6a88bad019 fix Ensure ActivatedRouteSnapshot#title has correct value (#​47481)
7b89d95c0e fix Remove deprecated relativeLinkResolution (#​47623)

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

v14.2.12

Compare Source

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 Type Description
54814c8e9b fix hardening attribute and property binding rules for

Special Thanks

Andrew Kushnir

v14.2.11

Compare Source

router
Commit Type Description
aef353c143 fix Ensure renavigating in component init works with enabledBlocking (#​48066)

Special Thanks

Alan Agius, Andrew Scott and Mujo Osmanovic

v14.2.10

Compare Source

core
Commit Type Description
a4312e1be5 fix add zone.js version 0.12.x as a valid peer dependency (#​48002)
router
Commit Type Description
db867fee77 fix fix redirectTo on named outlets - resolves #​33783 (#​47927)

Special Thanks

Alan Agius, Albert Szekely, Andrew Scott, Doug Parker, Kristiyan Kostadinov, Markus Eckstein, Peter Scriven and abergquist

v14.2.9

Compare Source

platform-browser
Commit Type Description
92d28bdd99 perf resolve memory leak when using animations with shadow DOM (#​47903)
platform-server
Commit Type Description
d2d9bbf5ce fix call onSerialize when state is empty (#​47888)

Special Thanks

Alan Agius, Kristiyan Kostadinov, Virginia Dooley and mgechev

v14.2.8

Compare Source

Special Thanks

Andrew Scott, Balaji, Paul Gschwendtner, WD Snoeijer, onrails and vyom1611

v14.2.7

Compare Source

Special Thanks

Bob Watson, Charles Barnes, Joey Perrott, Virginia Dooley, WD Snoeijer, abergquist and urugator

v14.2.6

Compare Source

compiler-cli
Commit Type Description
3fd176a905 fix add missing period to error message (#​47744)
c3821f5ab5 perf minimize filesystem calls when generating shims (#​47682)

Special Thanks

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

v14.2.5

Compare Source

This release contains various API docs improvements.

Special Thanks

Alexander Wiebe, Ciprian Sauliuc, Dmytro Mezhenskyi, George Kalpakas, Joe Martin (Crowdstaffing), Jordan, Ole M, Paul Gschwendtner, Pawel Kozlowski and mgechev

v14.2.4

Compare Source

compiler-cli
Commit Type Description
a4b66fe1e5 perf cache source file for reporting type-checking diagnostics (#​47508)
core
Commit Type Description
2c46b5ab24 fix correctly check for typeof of undefined in ngDevMode check (#​47480)

Special Thanks

Alan Agius, Ashley Hunter, Doug Parker, Jessica Janiuk, JoostK, Kristiyan Kostadinov, Rokas Brazdžionis and Simona Cotin

v14.2.3

Compare Source

animations
Commit Type Description
bba2dae812 fix make sure that the useAnimation function delay is applied (#​47468)

Special Thanks

AleksanderBodurri, Andrew Kushnir, Andrew Scott, Bob Watson, George Kalpakas, Joey Perrott, Mauro Mattos, dario-piotrowicz, fabioemoutinho and famzila

v14.2.2

Compare Source

animations
Commit Type Description
937e6c5b3d fix make sure that the animation function delay is applied (#​47285)
common
Commit Type Description
c9bdf9bab1 fix rename rawSrc -> ngSrc in NgOptimizedImage directive (#​47362) (#​47396)
core
Commit Type Description
a3e1303f04 fix imply @​Optional flag when a default value is provided (#​47242)
forms
Commit Type Description
80c66a1e57 fix don't prevent default behavior for forms with method="dialog" (#​47308)

Special Thanks

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

v14.2.1

Compare Source

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 Type Description
54814c8e9b fix hardening attribute and property binding rules for

Special Thanks

Andrew Kushnir

v14.2.0

Compare Source

animations
Commit Type Description
b96e571897 fix fix stagger timing not handling params (#​47208)
common
Commit Type Description
b380fdd59e feat add a density cap for image srcsets (#​47082)
7ce497e5bc feat add built-in Imgix loader (#​47082)
bff870db61 feat add cloudflare loader (#​47082)
86e77a5d55 feat add Image directive skeleton (#​45627) (#​47082)
0566205a02 feat Add image lazy loading and fetchpriority (#​47082)
4e952ba216 feat add loaders for cloudinary & imagekit (#​47082)
e854a8cdde feat add loading attr to NgOptimizedImage (#​47082)
8d3701cb4c feat add warnings re: image distortion (#​47082)
d5f7da2120 feat define public API surface for NgOptimizedImage directive (#​47082)
d3c3426aa4 feat detect LCP images in NgOptimizedImage and assert if priority is set (#​47082)
451b85ca17 feat explain why width/height is required (#​47082)
586274fe65 feat provide an ability to exclude origins from preconnect checks in NgOptimizedImage (#​47082)
57f3386e5b feat support custom srcset attributes in NgOptimizedImage (#​47082)
7baf9a46cd feat verify that priority images have preconnect links (#​47082)
f81765b333 feat warn if rendered size is much smaller than intrinsic (#​47082)
e2ab99b95e fix allow null/undefined to be passed to ngClass input (#​39280) (#​46906)
bedf537951 fix allow null/undefined to be passed to ngStyle input (#​47069)
f9511bf6e8 fix avoid interacting with a destroyed injector (#​47243)
dc29e21b14 fix consider density descriptors with multiple digits as valid (#​47230)
801daf82d1 fix detect data: and blob: inputs in NgOptimizedImage directive (#​47082)
fff8056e7f fix fix formatting on oversized image error (#​47188) (#​47232)
1ca2ce19ab fix remove default for image width (#​47082)
c5db867ddc fix remove duplicate deepForEach (#​47189)
1cf43deb18 fix sanitize rawSrc and rawSrcset values in NgOptimizedImage directive (#​47082)
d71dfe931f fix set bound width and height onto host element (#​47082)
32caa8b669 fix support density descriptors with 2+ decimals (#​47197) (#​47232)
ae4405f0bf fix throw if srcset is used with rawSrc (#​47082)
0c8eb8bc82 perf monitor LCP only for images without priority attribute (#​47082)
compiler-cli
Commit Type Description
ea89677c12 feat support more recent version of tsickle (#​47018)
core
Commit Type Description
d1e83e1b30 feat add createComponent function (#​46685)
10becab70e feat add reflectComponentType function (#​46685)
4b377d3a6d feat introduce createApplication API (#​46475)
31429eaccc feat support TypeScript 4.8 (#​47038)
796840209c fix align TestBed interfaces and implementation (#​46635)
forms
Commit Type Description
426af91a42 feat add FormBuilder.record() method (#​46485)
b302797de4 fix Correctly infer FormBuilder types involving [value, validators] shorthand in more cases. (#​47034)
language-service
Commit Type Description
598b72bd05 feat support fix the component missing member (#​46764)
platform-browser
Commit Type Description
07606e3181 feat add isEmpty method to the TransferState class (#​46915)
platform-server
Commit Type Description
2b4d7f6733 feat support document reference in render functions (#​47032)
router
Commit Type Description
0abb67af59 feat allow guards and resolvers to be plain functions (#​46684)
75df404467 feat Create APIs for using Router without RouterModule (#​47010)
10289f1f6e feat expose resolved route title (#​46826)
8600732b09 feat Expose the default matcher for Routes used by the Router (#​46913)
422323cee0 feat improve typings for RouterLink boolean inputs (#​47101)
26ea97688c feat Make router directives standalone (#​46758)
2a43beec15 fix Fix route recognition behavior with some versions of rxjs (#​47098)
service-worker
Commit Type Description
383090858c feat support sendRequest as a notificationclick action (#​46912)
3f548610dd fix export NoNewVersionDetectedEvent (#​47044)
482b6119c2 fix update golden index.md (#​47044)

Special Thanks

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

v14.1.3

Compare Source

compiler
Commit Type Description
0583227708 fix infinite loop in parser assignment expression with invalid left-hand expression (#​47151)

Special Thanks

AlirezaEbrahimkhani, Alma Eyre, Andrew Scott, Bob Watson, George Kalpakas, Kalbarczyk, Kristiyan Kostadinov, Leosvel Pérez Espinosa, Roman Matusevich and Sonu Kapoor

v14.1.2

Compare Source

core
Commit Type Description
5ff715c549 fix check if transplanted views are attached to change detector (#​46974)
router
Commit Type Description
439d77e852 fix Fix route recognition behavior with some versions of rxjs (#​47098) (#​47112)

Special Thanks

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

v14.1.1

Compare Source

core
Commit Type Description
3606917732 fix improve the missing control flow directive message (#​46903)
router
Commit Type Description
79825d3f10 fix Do not call preload method when not necessary (#​47007)
05f3f7445a fix Use correct return type for provideRoutes function (#​46941)

Special Thanks

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


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] avatar Nov 17 '22 00:11 renovate[bot]

⚠ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: libraries/angular/package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: undefined@undefined
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR!   @angular/common@"14.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"15.2.7" from @angular/[email protected]
npm ERR! node_modules/@angular/router
npm ERR!   @angular/router@"15.2.7" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/worker/1b31d0/9f98be/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/worker/1b31d0/9f98be/cache/others/npm/_logs/2023-04-17T10_24_10_574Z-debug-0.log

renovate[bot] avatar Nov 17 '22 00:11 renovate[bot]