chore(deps): update npm packages to v22#339
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Angular v22 introduced the @service decorator, whose precompiled libraries ship partial `ɵɵngDeclareService` declarations (e.g. @angular/common's NgLocalization). The Angular Linker did not recognize this declaration, so it passed through unlinked and fell back to JIT at runtime: The service 'NgLocalization' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available. This broke any v22 app that pulls in @angular/common (the e2e fixture's app never bootstrapped). Add a `link_service` that mirrors the upstream PartialServiceLinkerVersion1 + compileService: emit `ɵɵdefineService({ token, factory[, autoProvided: false] })`, delegating to the class `ɵfac` when no factory is declared, or wrapping a supplied factory in `() => (factory)()`. Also derive the core namespace from the declaration's `ngImport` property instead of the call's callee. Bundlers (esbuild's dep optimizer) rewrite `i0.ɵɵngDeclare*(...)` into a bare `ɵɵngDeclare*(...)` call while renaming the namespace import (e.g. to `core_exports`); the callee then no longer carries the namespace, but `ngImport` still points at the correct alias. This matches the TS linker, which emits `importExpr(R3.core)` resolved via the file's import manager, and fixes a 'i0 is not defined' runtime error in optimized bundles. Verified end-to-end: the v22 e2e fixture app boots and all 34 Playwright e2e tests pass.
f992ed4 to
d060617
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
This PR contains the following updates:
21.2.15→22.0.0^21.2.0→^22.0.021.2.13→22.0.0^21.2.0→^22.0.0^21.2.2→^22.0.021.2.15→22.0.0^21.2.0→^22.0.0^21.2.2→^22.0.021.2.15→22.0.0^21.2.0→^22.0.0^21.2.2→^22.0.0^21.1.6→^22.0.0^21.2.2→^22.0.021.2.15→22.0.0^21.2.0→^22.0.021.2.15→22.0.021.2.13→22.0.0^21.2.0→^22.0.0^21.2.2→^22.0.021.2.15→22.0.021.2.15→22.0.0^21.2.0→^22.0.021.2.15→22.0.0Release Notes
angular/angular (@angular/animations)
v22.0.0Compare Source
Blog post "Announcing Angular v22".
Breaking Changes
compiler
nullishCoalescingNotNullableandoptionalChainNotNullablediagnostics on exisiting projects.You might want to disable those 2 diagnotiscs in your
tsconfigtemporarily.invariables will throw in template expressions.compiler-cli
core
anyanymore. Make sure the element you pass is not nullable.changeDetectionproperty are nowOnPushby default. SpecifychangeDetection: ChangeDetectionStrategy.Eagerto keep the previous behavior.ChangeDetectorRef.checkNoChangeswas removed. In tests usefixture.detectChanges()instead.createNgModuleRefwas removed, usecreateNgModuleinsteadComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentFunction.ComponentFactoryResolverandComponentFactoryare no longer available. Pass the component class directly to APIs that previously required a factory, such asViewContainerRef.createComponentor use the standalonecreateComponentfunction.forms
minandmaxvalidation rules no longer supportstring values. Bound values must be numbers or null.
http
HttpXhrBackendwithprovideHttpClient(withXhr)if you want to keep supporting upload progress reports.platform-browser
host. However other DOM on the page may still be affected by those styles if not leveragingViewEncapsulation.Emulatedor if those styles are used by elements outside of Angular, potentially causing other DOM to appear unstyled.router
The return type for
TitleStrategy.getResolvedTitleForRoutewas previously 'any' while the actual return type could only be either
stringor
undefined. The return type now reflects the possible values correctly.Code that reads the value may need to be adjusted.
(cherry picked from commit
ad37f52)The
currentSnapshotparameter inCanMatchFnand thecanMatchmethod of theCanMatchinterface is now required. While this was already the behavior of the Router at runtime, existing class implementations ofCanMatchmust now include the third argument to satisfy the interface.paramsInheritanceStrategy now defaults to 'always'
The default value of paramsInheritanceStrategy has been changed from 'emptyOnly' to 'always'. This means that route parameters are inherited from all parent routes by default. To restore the previous behavior, set paramsInheritanceStrategy to 'emptyOnly' in your router configuration.
provideRoutes()has been removed. UseprovideRouter()orROUTESas multi token if necessary.upgrade
getAngularLib/setAngularLibhave been removed usegetAngularJSGlobal/setAngularJSGlobalinstead.Deprecations
http
withFetchis now deprecated, it can be safely removed.reportProgressoption is deprecated please usereportUploadProgress&reportDownloadProgressinstead.compiler
undefineddata-attributescompiler-cli
core
IdleRequestOptionssupport toIdleServiceprovideWebMcpToolsinjectAsynchelper functionprovideHttpClientto keep using theHttpXhrBackendimplementation.ChangeDetectionStrategy.Eagerwhere applicableApplicationRefwith configdeclareWebMcpToolsupport@ServicedecoratorcheckNoChangesfrom the public API.createNgModuleRefforms
reloadValidationto Signal Forms to manually trigger async validationto`FormRootto be used without submission options (#67727)SignalFormsConfigto a readonly APItouchedmodel into an input andtouchoutputsetValuein reactive formshttp
FetchBackendas default for theHttpBackendimplementationhttpResourcefrom leaking a subscriptionreportUploadProgress&reportDownloadProgressoptionslanguage-service
@Inputwith transformsmigrations
platform-browser
hostis droppedrouter
optionsoptional parameter forwithComponentInputBindingprovideRoutesfunction.service-worker
upgrade
getAngularLib/setAngularLibv21.2.16Compare Source
angular/angular-cli (@angular/build)
v22.0.0Compare Source
@angular/cli
Configuration
📅 Schedule: (in timezone Asia/Shanghai)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.