Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update angular monorepo to v19 (major) #175

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 15, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/animations (source) ^18.0.1 -> ^19.0.0-next age adoption passing confidence
@angular/common (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/compiler (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/compiler-cli (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/core (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/forms (source) ^18.0.1 -> ^19.0.0-next age adoption passing confidence
@angular/platform-browser (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/platform-browser-dynamic (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/platform-server (source) ^18.1.0-rc -> ^19.0.0-next age adoption passing confidence
@angular/router (source) ^18.0.1 -> ^19.0.0-next age adoption passing confidence

Release Notes

angular/angular (@​angular/animations)

v19.0.0-next.2

Compare Source

Breaking Changes

core
  • Render default fallback with empty projectableNodes.

    When passing an empty array to projectableNodes in the createComponent API, the default fallback content of the ng-content will be rendered if present. To prevent rendering the default content, pass document.createTextNode('') as a projectableNode.

    For example:

    // The first ng-content will render the default fallback content if present
    createComponent(MyComponent. { projectableNodes: [[], [secondNode]] });
    
    // To prevent projecting the default fallback content:
    createComponent(MyComponent. { projectableNodes: [[document.createTextNode('')], [secondNode]] });
  • The timers that are used for zone coalescing and hybrid
    mode scheduling (which schedules an application state synchronization
    when changes happen outside the Angular zone) will now run in the zone
    above Angular rather than the root zone. This will mostly affect tests
    which use fakeAsync: these timers will now be visible to fakeAsync
    and can be affected by tick or flush.

elements
  • as part of switching away from custom CD behavior to the
    hybrid scheduler, timing of change detection around custom elements has
    changed subtly. These changes make elements more efficient, but can cause
    tests which encoded assumptions about how or when elements would be checked
    to require updating.
common
Commit Type Description
50f08e6c4bf feat automatically use sizes auto in NgOptimizedImage (#​57479)
compiler-cli
Commit Type Description
4716c3b9660 perf reduce duplicate component style resolution (#​57502)
core
Commit Type Description
a3cdbfe87f5 fix avoid leaking memory if component throws during creation (#​57546)
7a99815146e fix Do not bubble capture events. (#​57476)
7b1e5be20b9 fix fallback to default ng-content with empty projectable nodes. (#​57480)
0300dd2e18f fix Fix fixture.detectChanges with autoDetect disabled and zoneless (#​57416)
226a67dabba fix Schedulers run in zone above Angular rather than root (#​57553)
elements
Commit Type Description
0cebfd7462c fix switch to ComponentRef.setInput & remove custom scheduler (#​56728)
router
Commit Type Description
8f6308457f0 fix Do not unnecessarily run matcher twice on route matching (#​57530)
upgrade
Commit Type Description
c9d90786d0a fix Address Trusted Types violations in @​angular/upgrade (#​57454)

v19.0.0-next.1

Compare Source

Breaking Changes

core
  • The autoDetect feature of ComponentFixture will now
    attach the fixture to the ApplicationRef. As a result, errors during
    automatic change detection of the fixture be reported to the ErrorHandler.
    This change may cause custom error handlers to observe new failures that were previously unreported.
compiler-cli
Commit Type Description
9e87593055 feat ensure template style elements are preprocessed as inline styles (#​57429)
core
Commit Type Description
b063468027 feat support TypeScript 5.6 (#​57424)
3b0dca75d6 fix Allow zoneless scheduler to run inside fakeAsync (#​56932)
f03d274e87 fix ComponentFixture autoDetect feature works like production (#​55228)
d4449fce21 fix handle hydration of components that project content conditionally (#​57383)
migrations
Commit Type Description
4ae66f25d0 fix account for members with doc strings and no modifiers (#​57389)
ac93839d69 fix avoid migrating route component in tests (#​57317)
58a79b6e43 fix preserve type when using inject decorator (#​57389)

v19.0.0-next.0

Compare Source

Breaking Changes

core
  • Errors that are thrown during ApplicationRef.tick
    will now be rethrown when using TestBed. These errors should be
    resolved by ensuring the test environment is set up correctly to
    complete change detection successfully. There are two alternatives to
    catch the errors:

    • Instead of waiting for automatic change detection to happen, trigger
      it synchronously and expect the error. For example, a jasmine test
      could write expect(() => TestBed.inject(ApplicationRef).tick()).toThrow()
    • TestBed will reject any outstanding ComponentFixture.whenStable promises. A jasmine test,
      for example, could write expectAsync(fixture.whenStable()).toBeRejected().

    As a last resort, you can configure errors to not be rethrown by
    setting rethrowApplicationErrors to false in TestBed.configureTestingModule.

router
  • The Router.errorHandler property has been removed.
    Adding an error handler should be configured in either
    withNavigationErrorHandler with provideRouter or the errorHandler
    property in the extra options of RouterModule.forRoot. In addition,
    the error handler cannot be used to change the return value of the
    router navigation promise or prevent it from rejecting. Instead, if you
    want to prevent the promise from rejecting, use resolveNavigationPromiseOnError.
  • The return type of the Resolve interface now includes
    RedirectCommand.
core
Commit Type Description
468d3fb9b1 fix rethrow errors during ApplicationRef.tick in TestBed (#​57200)
router
Commit Type Description
f271021e19 feat Add routerOutletData input to RouterOutlet directive (#​57051)
b2790813a6 fix Align RouterModule.forRoot errorHandler with provider error handler (#​57050)
7436d3180e fix Update Resolve interface to include RedirectCommand like ResolveFn (#​57309)

v18.2.2

Compare Source

core
Commit Type Description
106917af878 fix avoid leaking memory if component throws during creation (#​57546)
6d3a2af146a fix Do not bubble capture events. (#​57476)
http
Commit Type Description
5d2e243c76a fix Dynamicaly call the global fetch implementation (#​57531)
router
Commit Type Description
804925b1149 fix Do not unnecessarily run matcher twice on route matching (#​57530)
upgrade
Commit Type Description
03ec620e31a fix Address Trusted Types violations in @​angular/upgrade (#​57454)

v18.2.1

Compare Source

core
Commit Type Description
9de30a7b1c fix Allow zoneless scheduler to run inside fakeAsync (#​56932)
286012fb89 fix handle hydration of components that project content conditionally (#​57383)
migrations
Commit Type Description
0bb649b8fa fix account for members with doc strings and no modifiers (#​57389)
3b63082384 fix avoid migrating route component in tests (#​57317)
6b4357fae4 fix preserve type when using inject decorator (#​57389)

v18.2.0

Compare Source

Breaking Changes

zone.js
  • fakeAsync will now flush pending timers at the end of
    the given function by default. To opt-out of this, you can use {flush: false} in options parameter of fakeAsync
compiler
Commit Type Description
d9d68e73d2 fix reduce chance of conflicts between generated factory and local variables (#​57181)
compiler-cli
Commit Type Description
0b1dd39663 perf improve performance of interpolatedSignalNotInvoked extended diagnostic (#​57291)
core
Commit Type Description
f7918f5272 feat Add 'flush' parameter option to fakeAsync to flush after the test (#​57239)
7919982063 feat Add whenStable helper on ApplicationRef (#​57190)

v18.1.5

Compare Source

compiler-cli
Commit Type Description
5401332b0e fix generate valid TS 5.6 type checking code (#​57303)
core
Commit Type Description
e39b22a932 fix Account for addEventListener to be passed a Window or Document. (#​57282)
db65bc25ca fix Account for addEventListener to be passed a Window or Document. (#​57354)
0e024ecc27 fix complete post-hydration cleanup in components that use ViewContainerRef (#​57300)
822db64b93 fix skip hydration for i18n nodes that were not projected (#​57356)
810f76f574 fix take skip hydration flag into account while hydrating i18n blocks (#​57299)

v18.1.4

Compare Source

compiler
Commit Type Description
6a99f83659 fix reduce chance of conflicts between generated factory and local variables (#​57181)
compiler-cli
Commit Type Description
afb05ff1cb fix support JIT transforms before other transforms modifying classes (#​57262)
bae54a1621 perf improve performance of interpolatedSignalNotInvoked extended diagnostic (#​57291)
language-service
Commit Type Description
6ac209c24f fix avoid generating TS suggestion diagnostics for templates (#​56241)

v18.1.3

Compare Source

compiler
Commit Type Description
31dea066d6 fix reduce chance of conflicts between generated factory and local variables (#​57181)
compiler-cli
Commit Type Description
1f9e090910 fix emitting references to ngtypecheck files (#​57138) (#​57202)
core
Commit Type Description
f7ab04018e fix errors during ApplicationRef.tick should be rethrown for zoneless tests (#​56993)
eaa83f9d27 fix hydration error in some let declaration setups (#​57173)

v18.1.2

Compare Source

compiler
Commit Type Description
463945003d fix limit the number of chained instructions (#​57069)
compiler-cli
Commit Type Description
e904f34020 fix add warning for unused let declarations (#​57033)
core
Commit Type Description
9e52c1c840 fix afterNextRender hooks return that callback value. (#​57031)
b9fb98c67c fix tree shake dev mode error message (#​57035)

v18.1.1

Compare Source


Configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

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


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

This PR was generated by Mend Renovate. View the repository job log.

Copy link
Contributor Author

renovate bot commented Aug 15, 2024

⚠️ Artifact update problem

Renovate failed to update artifacts 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: tests/fixtures/prerender-false/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular-devkit/build-angular@18.0.2
npm error Found: @angular/compiler-cli@19.0.0-next.0
npm error node_modules/@angular/compiler-cli
npm error   dev @angular/compiler-cli@"^19.0.0-next" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error node_modules/@angular-devkit/build-angular
npm error   dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Conflicting peer dependency: @angular/compiler-cli@18.2.0
npm error node_modules/@angular/compiler-cli
npm error   peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error   node_modules/@angular-devkit/build-angular
npm error     dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_14_967Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_14_967Z-debug-0.log

File name: tests/fixtures/non-angular-project/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular/ssr@18.1.4
npm error Found: @angular/common@19.0.0-next.0
npm error node_modules/@angular/common
npm error   @angular/common@"^19.0.0-next" from the root project
npm error   peer @angular/common@"19.0.0-next.0" from @angular/forms@19.0.0-next.0
npm error   node_modules/@angular/forms
npm error     @angular/forms@"^19.0.0-next" from the root project
npm error   4 more (@angular/platform-browser, ...)
npm error
npm error Could not resolve dependency:
npm error peer @angular/common@"^18.0.0" from @angular/ssr@18.1.4
npm error node_modules/@angular/ssr
npm error   @angular/ssr@"^18.0.2" from the root project
npm error
npm error Conflicting peer dependency: @angular/common@18.2.0
npm error node_modules/@angular/common
npm error   peer @angular/common@"^18.0.0" from @angular/ssr@18.1.4
npm error   node_modules/@angular/ssr
npm error     @angular/ssr@"^18.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_18_043Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_18_043Z-debug-0.log

File name: tests/fixtures/browser-builder/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular-devkit/build-angular@18.0.2
npm error Found: @angular/compiler-cli@19.0.0-next.0
npm error node_modules/@angular/compiler-cli
npm error   dev @angular/compiler-cli@"^19.0.0-next" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error node_modules/@angular-devkit/build-angular
npm error   dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Conflicting peer dependency: @angular/compiler-cli@18.2.0
npm error node_modules/@angular/compiler-cli
npm error   peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error   node_modules/@angular-devkit/build-angular
npm error     dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_19_693Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_19_693Z-debug-0.log

File name: tests/fixtures/application-builder/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: @angular-devkit/build-angular@18.0.2
npm error Found: @angular/compiler-cli@19.0.0-next.0
npm error node_modules/@angular/compiler-cli
npm error   dev @angular/compiler-cli@"^19.0.0-next" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error node_modules/@angular-devkit/build-angular
npm error   dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Conflicting peer dependency: @angular/compiler-cli@18.2.0
npm error node_modules/@angular/compiler-cli
npm error   peer @angular/compiler-cli@"^18.0.0" from @angular-devkit/build-angular@18.0.2
npm error   node_modules/@angular-devkit/build-angular
npm error     dev @angular-devkit/build-angular@"^18.0.2" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_22_556Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-08-15T11_54_22_556Z-debug-0.log

Copy link

netlify bot commented Aug 15, 2024

Deploy Preview for plugin-angular-universal-demo ready!

Name Link
🔨 Latest commit 258516e
🔍 Latest deploy log https://app.netlify.com/sites/plugin-angular-universal-demo/deploys/66bdec858cfd5e0008a5782a
😎 Deploy Preview https://deploy-preview-175--plugin-angular-universal-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Aug 15, 2024
@github-actions github-actions bot added the Stale label Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-framework-in-fixtures dependencies javascript Stale type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants