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 dependency @angular/common to v19 #1433

Conversation

renovate-bot
Copy link
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@angular/common (source) ^17.3.0 -> ^19.0.0 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

angular/angular (@​angular/common)

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
  • Generally this PR has two implications:

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

    We've seen a few common failure cases:

    • Tests which used to rely on the Promise timing of effects now need to
      await whenStable() or call .detectChanges() in order for effects to
      run.

    • Tests which use faked clocks may need to fast-forward/flush the clock to
      cause effects to run.

    • effect()s triggered during CD could rely on the application being fully
      rendered (for example, they could easily read computed styles, etc). With
      the change, they run before the component's updates and can get incorrect
      answers. The recent afterRenderEffect() API is a natural replacement for
      this style of effect.

    • effect()s which synchronize with the forms system are particularly
      timing-sensitive and might need to adjust their initialization timing.

    • TypeScript versions less than 5.5 are no longer supported.
  • ExperimentalPendingTasks has been renamed to
    PendingTasks.

  • Angular directives, components and pipes are now standalone by default. Specify for declarations that are currently declared in s. for v19 will take care of this automatically.

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

  • 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]] });
  • 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 fix resolve :host:host-context(.foo) (#​58681)
80f56954ce fix transform chained pseudo-selectors (#​58681)
compiler-cli
Commit Type Description
d9687f43dd feat 'strictStandalone' flag enforces standalone (#​57935)
9e87593055 feat ensure template style elements are preprocessed as inline styles (#​57429)
231e6ff6ca feat generate the HMR replacement module (#​58205)
dbe612f2cd fix disable standalone by default on older versions of Angular (#​58405)
d4d76ead80 fix do not fail fatal when references to non-existent module are discovered (#​58515)
33fe252c58 fix do not report unused declarations coming from an imported array (#​57940)
fb44323c51 fix incorrectly generating relative file paths on case-insensitive platforms (#​58150)
22cd6869ef fix make the unused imports diagnostic easier to read (#​58468)
9bbb01c85e fix report individual diagnostics for unused imports (#​58589)
4716c3b966 perf reduce duplicate component style resolution (#​57502)
core
Commit Type Description
6ea8e1e9aa feat Add a schematics to migrate to standalone: false. (#​57643)
3ebe6b4ad4 feat Add async run method on ExperimentalPendingTasks (#​56546)
69fc5ae922 feat Add incremental hydration public api (#​58249)
8ebbae88ca feat Add rxjs operator prevent app stability until an event (#​56533)
19edf2c057 feat add syntactic sugar for initializers (#​53152)
c93b510f9b feat allow passing undefined without needing to include it in the type argument of input (#​57621)
ab25a192ba feat allow running output migration on a subset of paths (#​58299)
fc59e2a7b7 feat change effect() execution timing & no-op allowSignalWrites (#​57874)
8bcc663a53 feat drop support for TypeScript 5.4 (#​57577)
18d8d44b1f feat experimental resource() API for async dependencies (#​58255)
9762b24b5e feat experimental impl of rxResource() (#​58255)
6b8c494d05 feat flipping the default value for standalone to true (#​58169)
e6e5d29e83 feat initial version of the output migration (#​57604)
be2e49639b feat introduce afterRenderEffect (#​57549)
ec386e7f12 feat introduce debugName optional arg to framework signal functions (#​57073)
8311f00faa feat introduce the reactive linkedSignal (#​58189)
1b1519224d feat mark input, output and model APIs as stable (#​57804)
a7eff3ffaa feat mark signal-based query APIs as stable (#​57921)
a1f229850a feat migrate ExperimentalPendingTasks to PendingTasks (#​57533)
3f1e7ab6ae feat promote outputFromObservable & outputToObservable to stable. (#​58214)
97c44a1d6c feat Promote takeUntilDestroyed to stable. (#​58200)
e5adf92965 feat stabilize @let syntax (#​57813)
b063468027 feat support TypeScript 5.6 (#​57424)
819ff034ce feat treat directives, pipes, components as by default (#​58229)
ee426c62f0 fix allow signal write error (#​57973)
c095679f92 fix avoid breaking change with apps using rxjs 6.x (#​58341)
71ee81af2c fix clean up event contract once hydration is done (#​58174)
f03d274e87 fix ComponentFixture autoDetect feature works like production (#​55228)
950a5540f1 fix Ensure the ViewContext is retained after closure minification (#​57903)
7b1e5be20b fix fallback to default ng-content with empty projectable nodes. (#​57480)
0300dd2e18 fix Fix fixture.detectChanges with autoDetect disabled and zoneless (#​57416)
5fe57d4fbb fix fixes issues with control flow and incremental hydration (#​58644)
51933ef5a6 fix prevent errors on contract cleanup (#​58614)
fd7716440b fix Prevents trying to trigger incremental hydration on CSR (#​58366)
656b5d3e78 fix Re-assign error codes to be within core bounds (<1000) (#​53455)
6e0af6dbbb fix resolve forward-referenced host directives during directive matching (#​58492)
468d3fb9b1 fix rethrow errors during ApplicationRef.tick in TestBed (#​57200)
226a67dabb fix Schedulers run in zone above Angular rather than root (#​57553)
97fb86d331 perf set encapsulation to None for empty component styles (#​57130)
c15ec36bd1 refactor remove deprecated factories Property in KeyValueDiffers (#​58064)
elements
Commit Type Description
fe5c4e086a fix support output()-shaped outputs (#​57535)
0cebfd7462 fix switch to ComponentRef.setInput & remove custom scheduler (#​56728)
forms
Commit Type Description
3e7d724037 feat add ability to clear a FormRecord (#​50750)
18b6f3339f fix fix FormRecord type inference (#​50750)
http
Commit Type Description
4b9accdf16 feat promote withRequestsMadeViaParent to stable. (#​58221)
057cf7fb6b fix preserve all headers from Headers object (#​57802)
language-service
Commit Type Description
8da9fb49b5 feat add code fix for unused standalone imports (#​57605)
1f067f4507 feat add code reactoring action to migrate @Input to signal-input (#​57214)
56ee47f2ec feat allow code refactorings to compute edits asynchronously (#​57214)
bc83fc1e2e feat support converting to signal queries in VSCode extension (#​58106)
5c4305f024 feat support migrating full classes to signal inputs in VSCode (#​57975)
6342befff8 feat support migrating full classes to signal queries (#​58263)
7ecfd89592 fix The suppress diagnostics option should work for external templates (#​57873)
localize
Commit Type Description
9c3bd1b5d1 refactor remove deprecated name option. (#​58063)
migrations
Commit Type Description
dff4de0f75 feat add a combined migration for all signals APIs (#​58259)
b6bc93803c feat add schematic to migrate to signal queries (#​58032)
bb286f65e7 feat capture output migration stats (#​58321)
2bfc64daf1 feat expose output as function migration (#​58299)
59fe9bc772 feat introduce signal input migration as ng generate schematic (#​57805)
cbec46a51d feat migrate .pipe calls in outputs used in tests (#​57691)
cf70d626cd feat print output migration stats in ng generate (#​58321)
68e5370a66 feat remove complete calls for migrated outputs (#​57671)
9da21f798d feat replace .next usage on outputs (#​57654)
42607bf0f2 fix add outputs migration to combined shorthand (#​58318)
71f5ef2aa5 fix change imports to be G3 compatible (#​57654)
e6514b9f3d fix do not migrate next calls in template if not an EventEmitter (#​58631)
c5e676bb87 fix flip the default standalone flag in route-lazy-loading migration (#​58474)
b84ed2b628 fix include the output migration in the defaults of the signal migration (#​58635)
90c7ec39a0 fix inject migration always inserting generated variables before super call (#​58393)
7a65cdd911 fix inject migration not inserting generated code after super call in some cases (#​58393)
00e2001351 fix migrate more .next output usages (#​58282)
e85ac5c7cb fix properly bundle shared compiler code into migrations (#​58515)
3a264db866 fix properly handle comments in output migration (#​57691)
616b411a6d fix properly migrate output aliases (#​58411)
d504452e2f fix properly replace imports across files (#​58414)
c1aa411cf1 fix properly resolve tsconfig paths on windows (#​58137)
e26797b38e fix replace removed NgModules in tests with their exports (#​58627)
platform-browser
Commit Type Description
c36a1c023b fix correctly add external stylesheets to ShadowDOM components (#​58482)
5c61f46409 refactor remove deprecated BrowserModule.withServerTransition method (#​58062)
platform-server
Commit Type Description
9e82559de4 fix destroy PlatformRef when error happens during the bootstrap() phase (#​58112)
router
Commit Type Description
f271021e19 feat Add routerOutletData input to RouterOutlet directive (#​57051)
b2790813a6 fix Align RouterModule.forRoot errorHandler with provider error handler (#​57050)
a49c35ec76 fix remove setter for injector on OutletContext (#​58343)
7436d3180e fix Update Resolve interface to include RedirectCommand like ResolveFn (#​57309)
service-worker
Commit Type Description
8ddce80a0b feat allow specifying maxAge for entire application (#​49601)
1479af978c feat finish implementation of refreshAhead feature (#​53356)

v18.2.12

Compare Source

compiler-cli
Commit Type Description
4c38160853 fix correct extraction of generics from type aliases (#​58548)

v18.2.11

Compare Source

core
Commit Type Description
5f2d98a1b1 fix avoid slow stringification when checking for duplicates in dev mode (#​58521)
3aa45a2fa1 fix resolve forward-referenced host directives during directive matching (#​58492) (#​58500)

v18.2.10

Compare Source

compiler
Commit Type Description
69dce38e778 fix transform pseudo selectors correctly for the encapsulated view. (#​58417)
localize
Commit Type Description
3b989ac5bd9 fix Adding arb format to the list of valid formats in the localization extractor cli (#​58287)

v18.2.9

Compare Source

compiler-cli
Commit Type Description
b0ab653965 fix report when NgModule imports or exports itself (#​58231)

v18.2.8

Compare Source

compiler
Commit Type Description
11692c8dab fix add multiple :host and nested selectors support (#​57796)
66dcc691f5 fix allow combinators inside pseudo selectors (#​57796)
48a1437e77 fix fix comment typo (#​57796)
d325f9b55f fix fix parsing of the :host-context with pseudo selectors (#​57796)
aea747ab3b fix preserve attributes attached to :host selector (#​57796)
21be258be6 fix scope :host-context inside pseudo selectors, do not decrease specificity (#​57796)
7a6fd427d5 fix transform pseudo selectors correctly for the encapsulated view (#​57796)
compiler-cli
Commit Type Description
f187c3abf8 fix defer symbols only used in types (#​58104)
core
Commit Type Description
46bafb0b0a fix clean up afterRender after it is executed (#​58119)
platform-server
Commit Type Description
b40875a2cc fix destroy PlatformRef when error happens during the bootstrap() phase (#​58112) (#​58135)

v18.2.7

Compare Source

common
Commit Type Description
249d0260f9 fix execute checks and remove placeholder when image is already loaded (#​55444)
46a2ad39f5 fix prevent warning about oversize image twice (#​58021)
8f2b0ede59 fix skip checking whether SVGs are oversized (#​57966)
compiler-cli
Commit Type Description
901c1e1a7f fix correctly get the type of nested function call expressions (#​57010)
core
Commit Type Description
2f347ef8fc fix provide flag to opt into manual cleanup for after render hooks (#​57917)
http
Commit Type Description
ca637fe6a9 fix cleanup JSONP script listeners once loading completed (#​57877)
migrations
Commit Type Description
b9d846dad7 fix delete constructor if it only has super call (#​58013)
upgrade
Commit Type Description
e40a4fa3c7 fix support input signal bindings (#​57020)

v18.2.6

Compare Source

v18.2.5

Compare Source

compiler-cli
Commit Type Description
e685ed883a fix extended diagnostics not validating ICUs (#​57845)
core
Commit Type Description
76709d5d6e fix Handle @let declaration with array when preparingForHydration (#​57816)
migrations
Commit Type Description
5c866942a1 fix account for explicit standalone: false in migration (#​57803)

v18.2.4

Compare Source

compiler
Commit Type Description
b619d6987e fix produce less noisy errors when parsing control flow (#​57711)
migrations
Commit Type Description
9895e4492f fix replace leftover modules with their exports during pruning (#​57684)

v18.2.3

Compare Source

http
Commit Type Description
de68e049e4 fix Dynamicaly call the global fetch implementation (#​57531)

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
c8e2885136 feat Add extended diagnostic to warn when there are uncalled functions in event bindings (#​56295) (#​56295)
compiler-cli
Commit Type Description
98ed5b609e feat run JIT transform on classes with jit: true opt-out (#​56892)
c76b440ac0 fix add warning for unused let declarations (#​57033)
0f0a1f2836 fix emitting references to ngtypecheck files (#​57138)
6c2fbda694 fix extended diagnostic visitor not visiting template attributes (#​57033)
e11c0c42d2 fix run JIT transforms on @NgModule classes with jit: true (#​57212)
core
Commit Type Description
f7918f5272 feat Add 'flush' parameter option to fakeAsync to flush after the test (#​57239)
fab673a1dd feat add ng generate schematic to convert to inject (#​57056)
7919982063 feat Add whenStable helper on ApplicationRef (#​57190)
3459289ef0 feat bootstrapModule can configure NgZone in providers (#​57060)
296216cbe1 fix Allow hybrid CD scheduling to support multiple "Angular zones" (#​57267)
8718abce90 fix Deprecate ignoreChangesOutsideZone option (#​57029)
827070e331 fix Do not run image performance warning checks on server (#​57234)
ca89ef9141 fix handle shorthand assignment in the inject migration (#​57134)
5dcdbfcba9 fix rename the equality function option in toSignal (#​56769)
2a4f488a6c fix warnings for oversized images and lazy-lcp present with bootstrapModule (#​57060)
language-service
Commit Type Description
4bb558ab0c feat support writing code refactorings (#​56895)
7663debce1 perf quick exit if no code fixes can exist (#​57000)
migrations
Commit Type Description
147eee4253 feat add migration to convert standalone component routes to be lazy loaded (#​56428)
cb442a0ce7 fix account for parameters with union types (#​57127)
166166d79e fix add alias to inject migration (#​57127)
b1a9d0f4de fix avoid duplicating comments when generating properties (#​57367)
5d76401ff5 fix preserve optional parameters (#​57367)
1cf616f671 fix remove generic arguments from the injected type reference (#​57127)
ba0df30ef6 fix remove unused imports in inject migration (#​57179)
aae9646a1b fix unwrap injected forwardRef (#​57127)
604270619a perf speed up signal input migration by combining two analyze phases (#​57318)
router
Commit Type Description
6c76c91e15 feat Add defaultQueryParamsHandling to router configuration (#​57198)

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

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 this update 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

⚠️ 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: gemini/sample-apps/genwealth/ui/package-lock.json
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/core
npm error   @angular/core@"^17.3.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/core@"19.0.0" from @angular/[email protected]
npm error node_modules/@angular/common
npm error   @angular/common@"^19.0.0" 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-11-20T00_17_22_382Z-eresolve-report.txt
npm error A complete log of this run can be found in: /tmp/renovate/cache/others/npm/_logs/2024-11-20T00_17_22_382Z-debug-0.log

@renovate-bot renovate-bot requested a review from a team as a code owner November 20, 2024 00:17
Copy link

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 19.x releases. But if you manually upgrade to 19.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate-bot renovate-bot deleted the renovate/angular-common-19.x branch November 20, 2024 03:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants