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 major to v19 (major) #2346

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 19, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular-devkit/build-angular 18.2.12 -> 19.0.2 age adoption passing confidence
@angular-devkit/core 18.2.12 -> 19.0.2 age adoption passing confidence
@angular-devkit/schematics 18.2.12 -> 19.0.2 age adoption passing confidence
@angular/animations (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/cli 18.2.12 -> 19.0.2 age adoption passing confidence
@angular/common (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/common (source) ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/common (source) ^16.2.0 || ^17.0.0 || ^18.0.0 -> ^16.2.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/common (source) ^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/common (source) ^17.1.0 || ^18.0.0 -> ^17.1.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/common (source) ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/compiler (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/compiler-cli (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/core (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/core (source) ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/core (source) ^16.2.0 || ^17.0.0 || ^18.0.0 -> ^16.2.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/core (source) ^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^15.2.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/core (source) ^17.1.0 || ^18.0.0 -> ^17.1.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/core (source) ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 -> ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 age adoption passing confidence
@angular/forms (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/language-service (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/platform-browser (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/platform-browser-dynamic (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@angular/router (source) 18.2.12 -> 19.0.0 age adoption passing confidence
@schematics/angular 18.2.12 -> 19.0.2 age adoption passing confidence

Release Notes

angular/angular-cli (@​angular-devkit/build-angular)

v19.0.2

Compare Source

v19.0.1

Compare Source

@​angular-devkit/build-angular
Commit Type Description
b63123f20 fix use stylePreprocessorOptions
@​angular/build
Commit Type Description
74461da64 fix ensure accurate content length for server assets
1b4dcedd5 fix use sha256 instead of sha-256 as hash algorithm name
@​angular/ssr
Commit Type Description
8bd2b260e fix handle baseHref that start with ./

v19.0.0

Compare Source

Breaking Changes

@​schematics/angular
  • The app-shell schematic is no longer compatible with Webpack-based builders.
@​angular-devkit/build-angular
@​angular-devkit/core
  • The deprecated fileBuffer function is no longer available. Update your code to use stringToFileBuffer instead to maintain compatibility.

    Note: that this change does not affect application developers.

@​angular/build
  • The @angular/localize/init polyfill will no longer be added automatically to projects. To prevent runtime issues, ensure that this polyfill is manually included in the "polyfills" section of your "angular.json" file if your application relies on Angular localization features.
@​angular/ssr
  • The CommonEngine API now needs to be imported from @angular/ssr/node.

    Before

    import { CommonEngine } from '@​angular/ssr';

    After

    import { CommonEngine } from '@​angular/ssr/node';
@​angular-devkit/schematics-cli
Commit Type Description
37693c40e feat add package manager option to blank schematic
@​schematics/angular
Commit Type Description
a381a3db1 feat add option to export component as default
755f3a07f feat add option to setup new workspace or application as zoneless mode
cfca5442e feat integrate withEventReplay() in provideClientHydration for new SSR apps
292a4b7c2 feat update app-shell and ssr schematics to adopt new Server Rendering API
b1504c3bc fix component spec with export default
4b4e000dd fix don't show server routing prompt when using browser builder
4e2a5fe15 fix enable opt-in for new @angular/ssr feature
fcf7443d6 fix explicitly set standalone:false
7992218a9 fix remove declaration and sourceMap from default tsconfig
9e6ab1bf2 fix use default import for express
@​angular/cli
Commit Type Description
201b60e1d feat handle string key/value pairs, e.g. --define
b847d4460 fix recommend optional application update migration during v19 update
f249e7e85 perf enable Node.js compile code cache when available
ecc107d83 perf enable Node.js compile code cache when available
@​angular-devkit/architect
Commit Type Description
78f76485f feat merge object options from CLI
@​angular-devkit/build-angular
Commit Type Description
0a4ef3026 feat karma-coverage w/ app builder
dcbdca85c feat karma+esbuild+watch
54594b5ab feat support karma with esbuild
ea5ae68da fix bring back style tags in browser builder
476f94f51 fix fix --watch regression in karma
25d928b4f fix fix hanging terminal when browser-sync is not installed
2ec877dd0 fix handle basename collisions
ab6e19e1f fix handle main field
43e7aae22 fix remove double-watch in karma
1e37b5939 fix serve assets
9d7613db9 fix zone.js/testing + karma + esbuild
e40384e63 refactor remove deprecated browserTarget
62877bdf2 refactor remove Protractor builder and schematics
@​angular-devkit/core
Commit Type Description
0d8a1006d refactor remove deprecated fileBuffer function in favor of stringToFileBuffer
@​angular/build
Commit Type Description
b6951f448 feat add sass to stylePreprocessorOptions in application builder
efb434136 feat Auto-CSP support as a part of angular.json schema
816e3cb86 feat enable component stylesheet hot replacement by default
3b00fc908 feat introduce outputMode option to the application builder
7d883a152 feat introduce ssr.experimentalPlatform option
c48d6947e feat set development/production condition
f63072668 feat utilize ssr.entry during prerendering to enable access to local API routes
bbc290133 feat utilize ssr.entry in Vite dev-server when available
5a7a2925b fix add missing redirect in SSR manifest
06e5176c2 fix add warning when --prerendering or --app-shell are no-ops
ecaf870b5 fix always clear dev-server error overlay on non-error result
f8677f6a9 fix always record component style usage for HMR updates
099e477a8 fix avoid hashing development external component stylesheets
3602bbb77 fix avoid overwriting inline style bundling additional results
71534aadc fix check referenced files against native file paths
fed31e064 fix correctly use dev-server hmr option to control stylesheet hot replacement
b86bb080e fix disable dev-server websocket when live reload is disabled
7c50ba9e2 fix ensure index.csr.html is always generated when prerendering or SSR are enabled
efb2232df fix ensure accurate content size in server asset metadata
18a8584ea fix ensure SVG template URLs are considered templates with external stylesheets
7502fee28 fix Exclude known --import from execArgv when spawning workers
2551df533 fix fully disable component style HMR in JIT mode
c41529cc1 fix handle APP_BASE_HREF correctly in prerendered routes
87a90afd4 fix incomplete string escaping or encoding
1bb68ba68 fix move lmdb to optionalDependencies
a995c8ea6 fix prevent prerendering of catch-all routes
1654acf0f fix relax constraints on external stylesheet component id
0d4558ea5 fix set ngServerMode during vite prebundling
55d7f01b6 fix simplify disabling server features with --no-server via command line
cf0228b82 fix skip wildcard routes from being listed as prerendered routes
af52fb49b fix synchronize import/export conditions between bundler and TypeScript
6c618d495 fix update logic to support both internal and external SSR middlewares
bfa8fec9b fix use named export reqHandler for server.ts request handling
c8e1521a2 fix workaround Vite CSS ShadowDOM hot replacement
d6a34034d refactor remove automatic addition of @angular/localize/init polyfill and related warnings
@​angular/ssr
Commit Type Description
92209dd2e feat add createRequestHandler and createNodeRequestHandler utilities
41fb2ed86 feat Add getHeaders Method to AngularAppEngine and AngularNodeAppEngine for handling pages static headers
f346ee8a8 feat add isMainModule function
d66aaa3ca feat add server routing configuration API
bca568389 feat dynamic route resolution using Angular router
30c25bf68 feat export AngularAppEngine as public API
455b5700c feat expose writeResponseToNodeResponse and createWebRequestFromNodeRequest in public API
9692a9054 feat improve handling of aborted requests in AngularServerApp
576ff604c feat introduce AngularNodeAppEngine API for Node.js integration
3c9697a8c feat introduce new hybrid rendering API
4b09887a9 feat move CommonEngine API to /node entry-point
d43180af5 fix add missing peer dependency on @angular/platform-server
74b3e2d51 fix add validation to prevent use of provideServerRoutesConfig in browser context
2640bf7a6 fix correct route extraction and error handling
44077f54e fix designate package as side-effect free
df4e1d360 fix enable serving of prerendered pages in the App Engine
0793c78cf fix ensure wildcard RenderMode is applied when no Angular routes are defined
65b6e75a5 fix export RESPONSE_INIT, REQUEST, and REQUEST_CONTEXT tokens
4ecf63a77 fix export PrerenderFallback
50df63196 fix improve handling of route mismatches between Angular server routes and Angular router
3cf7a5223 fix initialize the DI tokens with null to avoid requiring them to be set to optional
85df4011b fix resolve bootstrap is not a function error
e9c9e4995 fix resolve circular dependency issue from main.server.js reference in manifest
64c52521d fix show error when multiple routes are set with RenderMode.AppShell
280ebbda4 fix support for HTTP/2 request/response handling
fb05e7f0a fix use wildcard server route configuration on the '/' route when the app router is empty
12ff37adb perf cache generated inline CSS for HTML
1d70e3b46 perf cache resolved entry-points
f460b91d4 perf integrate ETags for prerendered pages
e52ae7f6f perf prevent potential stampede in entry-points cache
angular/angular (@​angular/animations)

v19.0.0

Compare Source

Breaking Changes

compiler
  • this.foo property reads no longer refer to template context variables. If you intended to read the template variable, do not use this..
core
  • Angular directives, components and pipes are now standalone by default.

    • Specify standalone: false for declarations that are currently declared in @NgModules.
    • ng update for v19 will take care of this automatically.
  • TypeScript versions less than 5.5 are no longer supported.

  • Timing changes for effect API (in developer preview):

    • effects which are triggered outside of change detection run as part of
      the change detection process instead of as a microtask. Depending on the
      specifics of application/test setup, this can result in them executing
      earlier or later (or requiring additional test steps to trigger; see below
      examples).

    • effects which are triggered during change detection (e.g. by input
      signals) run earlier, before the component's template.

  • ExperimentalPendingTasks has been renamed to PendingTasks.

  • 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.

  • createComponent will now 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.
    // 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]] });
  • 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.

  • 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.

  • The deprecated factories property in KeyValueDiffers has been removed.

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.
localize
  • The name option in the ng add @localize`` schematic has been removed in favor of the project option.
platform-browser
  • The deprecated BrowserModule.withServerTransition method has been removed. Please use the APP_ID DI token to set the application id instead.
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.
common
Commit Type Description
24c6373820 feat add optional rounded transform support in cloudinary image loader (#​55364)
50f08e6c4b feat automatically use sizes auto in NgOptimizedImage (#​57479)
13c13067bc feat disable keyvalue sorting using null compareFn (#​57487)
compiler
Commit Type Description
a2e4ee0cb3 feat add diagnostic for unused standalone imports (#​57605)
0c9d721ac1 feat add support for the typeof keyword in template expressions. (#​58183)
09f589f000 fix this.a should always refer to class property a (#​55183)
98804fd4be fix add more specific matcher for hydrate never block (#​58360)
b25121ee4a fix avoid having to duplicate core environment (#​58444)
560282aa9b fix control flow nodes with root at the end projected incorrectly (#​58607)
2be161d015 fix fix :host parsing in pseudo-selectors (#​58681)
806a61b5a6 fix fix multiline selectors (#​58681)
a3cb530d84 fix handle typeof expressions in serializer (#​58217)
ba4340875a fix ignore placeholder-only i18n messages (#​58154)
[e5d3abb298](https://redirect.github.com/angular/angular/commit/e5d3abb29842412f82a67562aceff245d4

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

coderabbitai bot commented Nov 19, 2024

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@renovate renovate bot force-pushed the renovate/major-angular-major branch from fabbc42 to e007e5c Compare November 20, 2024 15:50
@trakhimenok
Copy link
Contributor

Depends on nrwl/nx#28847

@renovate renovate bot force-pushed the renovate/major-angular-major branch 10 times, most recently from fec0311 to 0ce54fc Compare November 26, 2024 08:52
@renovate renovate bot force-pushed the renovate/major-angular-major branch from 0ce54fc to 2c13646 Compare November 26, 2024 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant