Repository navigation
feat: Support Angular 22.3 - #215
Merged
Merged
Conversation
- Move @angular/build, @angular/localize and @angular-devkit/* to 22.3 - Import NodePackageInstallTask from @angular-devkit/schematics/tasks: the 22.3 exports map blocks the tasks/index.js path, which broke ng add - Port the 22.3 asset fixes to the remote builder: isSubDirectory root matching, expandDirectories: false, nested .gitkeep and directory ignores, the literal-glob fast path and the destination escape check - Bump every upstream tag to v22.3.0 (bdda8bbf1b)
- The directory-ignore case keeps a file that must survive and no longer claims new 22.3 behaviour - Cover a changed file matched by a literal glob in copyChangedAssets
Aukevanoost
added a commit
that referenced
this pull request
Nov 27, 2026
Backports 22.2.5..22.3.0 onto the Angular 21 layout. Incoming: - #214: @softarc/native-federation ~4.11.0; fromPackageJson() takes an optional base config and autoShareScope resolves projectPath against workspaceRoot. - #171/#213: rewriteModulePreloads (./ssr export) for native import maps. - #209: ngServerMode is set in exposed-module bundles. - #210: the prod node preload no longer passes hostInstances. - #215: NodePackageInstallTask comes from @angular-devkit/schematics/tasks. - Tag-triggered release workflow (staged npm publish). Angular 21 specific adaptations: - Left out the Angular 22.3 bump: kept the -v4 name, 21.2.18 version and ng21 pins; bumped @softarc/native-federation to 4.11 by hand. - Kept the `// upstream:` tags at v21.2.19 (1a728258d6) and the 21.2 debugOptimize note. - Dropped the remote builder, share-utils.spec.ts and tools/esbuild/sourcemap-ignorelist-plugin.ts as before. - @angular/ssr 21.2 emits the same modulepreload markup as 22, so rewriteModulePreloads applies unchanged. - follow-redirects@1 override raised to ^1.16.2 for a high advisory. - pnpm-lock.yaml regenerated rather than merged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the adapter to Angular 22.3 (
@angular/build~22.3.0). Users on Angular 22.2 stay on adapter 22.2.x.Changes
@angular/build,@angular/localizeand@angular-devkit/*move to 22.3.ng addfix:@angular-devkit/schematics22.3 adds an exports map, which blocks ourtasks/index.jsimport. The init schematic now imports from@angular-devkit/schematics/tasks. Without this,ng addfails on 22.3 with "Missing ./tasks/index.js specifier".Remote builder assets: the copied asset code now includes the 22.3 upstream fixes:
isSubDirectory, so our old deliberate divergence is now upstream behaviour (angular/angular-cli 58c30c05f6).expandDirectories: false: a glob that names a directory no longer copies its contents (65f302c5df)..gitkeepis ignored in nested folders too, not only at the input root.One deliberate difference: entries are resolved one at a time instead of with Angular's bounded
mapConcurrent. The parity spec covers the nested.gitkeepand directory-glob changes, and a watch-mode case for a changed file matched by a literal glob.All
// upstream:tags point at v22.3.0 (bdda8bbf1b). Apart from the asset helpers, none of the code we copied changed upstream.Checked in the 22.3.0 release, no change needed
.angular/cache/22.3.0/<project>/build/(checked in the SSR example). Our federation cache (cachePath) is separate, and nothing in the adapter depends on Angular's cache layout.@angular/platform-serverbundle keeps its own copy, as on 22.2./privatetypes still compile and all specs pass.Testing
pnpm typecheck,pnpm lint,pnpm test(503 passing),pnpm knipandpnpm buildall pass.SSR smoke test with the federated SSR example from angular-examples (host, mfe1, mfe2) on Angular 22.3.0, using this branch's packed build:
ɵdomino) is in the server bundles./healthzreports mfe1, mfe2 and the host)./,/todos,/todos/:idand/insightsreturn 200 with the remote components rendered on the server, and no errors appear in any server log.ng serve(dev SSR).