Repository navigation
feat: Support @softarc/native-federation 4.11 - #214
Merged
Merged
Conversation
- fromPackageJson() takes an optional base config, so it falls back to core's strict-singleton, build: 'package' default - autoShareScope resolves projectPath with core's inferProjectPath, against workspaceRoot instead of the working directory - The init schematic generates fromPackageJson().patch(...)
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.
Brings the adapter in line with core v4.11.0.
Changes
@softarc/native-federation~4.10.0→~4.11.0.fromPackageJson()takes an optional base config. Without one, core shares every dependency withsingleton,strictVersion,requiredVersion: 'auto'andbuild: 'package'(native-federation-core#254). The Angular skip list is still applied.autoShareScoperesolvesprojectPathwith core'sinferProjectPath(native-federation-core#256), so a relative path is read againstworkspaceRoot. Without one it starts from thepackageJsonfolder orworkspaceRootinstead of the working directory.fromPackageJson().patch(['@angular/*'], { includeSecondaries: { keepAll: true } }).Compatibility
autoShareScope()builds started from a folder other than the workspace root now read a differentpackage.json. Core's own 4.11 changes reach users through the adapter too: an override no longer drops packages whose name starts with its key (native-federation-core#259), andcatalog:/workspace:dependencies publish a~range on the installed version (native-federation-core#257).Verification
pnpm test(502 passed),pnpm typecheck,pnpm lint(no errors),pnpm build.