diff --git a/.changeset/breezy-walls-burn.md b/.changeset/breezy-walls-burn.md deleted file mode 100644 index d660474296a..00000000000 --- a/.changeset/breezy-walls-burn.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@module-federation/bridge-react": patch -"@module-federation/sdk": minor -"@module-federation/runtime-core": minor ---- - -Add `isBrowserEnvValue` as a tree-shakable ENV_TARGET-aware constant while -preserving the `isBrowserEnv()` function. Internal runtime and bridge callers -use the constant to enable bundler dead-code elimination without breaking the -public API. diff --git a/.changeset/config.json b/.changeset/config.json index 9d5a1350533..ca299bd137c 100644 --- a/.changeset/config.json +++ b/.changeset/config.json @@ -19,6 +19,7 @@ "@module-federation/bridge-vue3", "@module-federation/bridge-shared", "@module-federation/bridge-react-webpack-plugin", + "@module-federation/modern-js", "@module-federation/modern-js-v3", "@module-federation/retry-plugin", "@module-federation/data-prefetch", diff --git a/.changeset/feat-dts-custom-output-dir.md b/.changeset/feat-dts-custom-output-dir.md deleted file mode 100644 index a7f76ef9de5..00000000000 --- a/.changeset/feat-dts-custom-output-dir.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@module-federation/dts-plugin': minor -'@module-federation/sdk': minor ---- - -feat(dts-plugin): support custom outputDir for DTS type emission - -Expose the `outputDir` option in `DtsRemoteOptions` so users can configure where `@mf-types.zip` and `@mf-types.d.ts` are emitted. Fix `GenerateTypesPlugin` to use `path.relative()` for correct asset placement in subdirectories. diff --git a/.changeset/fix-esbuild-import-maps.md b/.changeset/fix-esbuild-import-maps.md deleted file mode 100644 index 67cfe50a9e7..00000000000 --- a/.changeset/fix-esbuild-import-maps.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@module-federation/esbuild": patch ---- - -fix: fix import map registration for ESM remote modules - -The import map registration was failing because the runtimePlugin was looking for moduleMap in the host scope instead of fetching it from the remote module exports. This fix adds explicit synchronous import map registration in the host initialization code that runs after initializeSharing but before any code that imports from remotes. diff --git a/.changeset/gentle-news-grab.md b/.changeset/gentle-news-grab.md deleted file mode 100644 index ff61cb4fe33..00000000000 --- a/.changeset/gentle-news-grab.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/devtools': patch ---- - -feat(chrome-devtools): add diagnostic messaging and UI enhancements for error handling diff --git a/.changeset/icy-pears-hunt.md b/.changeset/icy-pears-hunt.md deleted file mode 100644 index 15d940c809b..00000000000 --- a/.changeset/icy-pears-hunt.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -'@module-federation/runtime-core': patch -'@module-federation/sdk': patch ---- - -feat(runtime-core): enhance error handling for script loading and execution diff --git a/.changeset/legal-nights-dress.md b/.changeset/legal-nights-dress.md deleted file mode 100644 index 183a86a5d69..00000000000 --- a/.changeset/legal-nights-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/dts-plugin': patch ---- - -fix(dts-plugin): use default import for fs-extra to fix ESM compatibility diff --git a/.changeset/modern-cats-shake.md b/.changeset/modern-cats-shake.md deleted file mode 100644 index facafd1cb63..00000000000 --- a/.changeset/modern-cats-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/runtime-core': patch ---- - -fix(runtime-core): change log to error for remote removal failure and remove redundant log function diff --git a/.changeset/spicy-oranges-joke.md b/.changeset/spicy-oranges-joke.md deleted file mode 100644 index c3f94775a9d..00000000000 --- a/.changeset/spicy-oranges-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/rspack': patch ---- - -fix(rspack): update condition for provideExternalRuntime error handling diff --git a/.changeset/tame-brooms-dream.md b/.changeset/tame-brooms-dream.md deleted file mode 100644 index da619a3d0a3..00000000000 --- a/.changeset/tame-brooms-dream.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@module-federation/enhanced": patch ---- - -Remove the unused `ChildCompilationRuntimePlugin` implementation from the -enhanced runtime container internals. diff --git a/.changeset/tidy-shrimps-shop.md b/.changeset/tidy-shrimps-shop.md deleted file mode 100644 index 8a50319cd4d..00000000000 --- a/.changeset/tidy-shrimps-shop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@module-federation/node": patch ---- - -Fix node chunk parsing and align node webpack-path lint handling. diff --git a/.changeset/two-camels-wave.md b/.changeset/two-camels-wave.md deleted file mode 100644 index 141a99c19c4..00000000000 --- a/.changeset/two-camels-wave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'create-module-federation': patch ---- - -Update React and React DOM to v19.2.3 diff --git a/.changeset/two-geese-happen.md b/.changeset/two-geese-happen.md deleted file mode 100644 index 41d4c59a1e3..00000000000 --- a/.changeset/two-geese-happen.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/modern-js': patch ---- - -feat: support rspack async startup diff --git a/.changeset/yummy-hounds-burn.md b/.changeset/yummy-hounds-burn.md deleted file mode 100644 index aaaeb14dd9c..00000000000 --- a/.changeset/yummy-hounds-burn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@module-federation/runtime-core': patch ---- - -fix(runtime-core): improve error messages clarity and fix preload resourceCategory bug diff --git a/apps/node-dynamic-remote-new-version/CHANGELOG.md b/apps/node-dynamic-remote-new-version/CHANGELOG.md index b827d9f6057..9ffd0441743 100644 --- a/apps/node-dynamic-remote-new-version/CHANGELOG.md +++ b/apps/node-dynamic-remote-new-version/CHANGELOG.md @@ -1,5 +1,12 @@ # node-dynamic-remote-new-version +## 1.0.1 + +### Patch Changes + +- Updated dependencies [ec7ab53] + - @module-federation/node@2.7.34 + ## null ### Patch Changes diff --git a/apps/node-dynamic-remote-new-version/package.json b/apps/node-dynamic-remote-new-version/package.json index e98461064cf..46afe4fa2af 100644 --- a/apps/node-dynamic-remote-new-version/package.json +++ b/apps/node-dynamic-remote-new-version/package.json @@ -6,7 +6,7 @@ "@module-federation/node": "workspace:*", "lodash": "4.17.23" }, - "version": "1.0.0", + "version": "1.0.1", "scripts": { "build": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli --config webpack.config.js --output-path dist --mode production", "build:development": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli --config webpack.config.js --output-path dist --mode development", diff --git a/apps/node-dynamic-remote/CHANGELOG.md b/apps/node-dynamic-remote/CHANGELOG.md index c12a24746fb..0eb2d5749d4 100644 --- a/apps/node-dynamic-remote/CHANGELOG.md +++ b/apps/node-dynamic-remote/CHANGELOG.md @@ -1,5 +1,12 @@ # node-dynamic-remote +## 1.0.1 + +### Patch Changes + +- Updated dependencies [ec7ab53] + - @module-federation/node@2.7.34 + ## null ### Patch Changes diff --git a/apps/node-dynamic-remote/package.json b/apps/node-dynamic-remote/package.json index 67841fd0c56..64b7acb9198 100644 --- a/apps/node-dynamic-remote/package.json +++ b/apps/node-dynamic-remote/package.json @@ -6,7 +6,7 @@ "@module-federation/node": "workspace:*", "lodash": "4.17.23" }, - "version": "1.0.0", + "version": "1.0.1", "scripts": { "build": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli --config webpack.config.js --output-path dist --mode production", "build:development": "NODE_OPTIONS=--max_old_space_size=4096 pnpm exec webpack-cli --config webpack.config.js --output-path dist --mode development", diff --git a/apps/router-demo/router-remote5-2005/CHANGELOG.md b/apps/router-demo/router-remote5-2005/CHANGELOG.md index 41f563b6368..01c0329f74f 100644 --- a/apps/router-demo/router-remote5-2005/CHANGELOG.md +++ b/apps/router-demo/router-remote5-2005/CHANGELOG.md @@ -1,5 +1,13 @@ # remote5 +## 2.0.3 + +### Patch Changes + +- Updated dependencies [c856ec1] + - @module-federation/bridge-react@2.2.0 + - @module-federation/rsbuild-plugin@2.2.0 + ## 2.0.2 ### Patch Changes diff --git a/apps/router-demo/router-remote5-2005/package.json b/apps/router-demo/router-remote5-2005/package.json index c31f26dbb5e..0683b7a4ca1 100644 --- a/apps/router-demo/router-remote5-2005/package.json +++ b/apps/router-demo/router-remote5-2005/package.json @@ -1,7 +1,7 @@ { "name": "remote5", "private": true, - "version": "2.0.2", + "version": "2.0.3", "scripts": { "dev": "rsbuild dev", "build": "rsbuild build", diff --git a/apps/router-demo/router-remote6-2006/CHANGELOG.md b/apps/router-demo/router-remote6-2006/CHANGELOG.md index 74b52b9dc70..2fab683264e 100644 --- a/apps/router-demo/router-remote6-2006/CHANGELOG.md +++ b/apps/router-demo/router-remote6-2006/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 2.0.3 + +### Patch Changes + +- Updated dependencies [c856ec1] + - @module-federation/bridge-react@2.2.0 + - @module-federation/rsbuild-plugin@2.2.0 + ## 2.0.2 ### Patch Changes diff --git a/apps/router-demo/router-remote6-2006/package.json b/apps/router-demo/router-remote6-2006/package.json index 2423cd1c83c..c1c25997780 100644 --- a/apps/router-demo/router-remote6-2006/package.json +++ b/apps/router-demo/router-remote6-2006/package.json @@ -1,7 +1,7 @@ { "name": "remote6", "private": true, - "version": "2.0.2", + "version": "2.0.3", "scripts": { "dev": "rsbuild dev", "build": "rsbuild build", diff --git a/apps/shared-tree-shaking/no-server/host/CHANGELOG.md b/apps/shared-tree-shaking/no-server/host/CHANGELOG.md index 3513545ef4f..55b94ed6711 100644 --- a/apps/shared-tree-shaking/no-server/host/CHANGELOG.md +++ b/apps/shared-tree-shaking/no-server/host/CHANGELOG.md @@ -1,5 +1,12 @@ # modernjs-ssr-nested-remote +## 1.0.3 + +### Patch Changes + +- Updated dependencies [90758e9] + - @module-federation/enhanced@2.2.0 + ## 1.0.2 ### Patch Changes diff --git a/apps/shared-tree-shaking/no-server/host/package.json b/apps/shared-tree-shaking/no-server/host/package.json index a3df0139329..eb1401c7688 100644 --- a/apps/shared-tree-shaking/no-server/host/package.json +++ b/apps/shared-tree-shaking/no-server/host/package.json @@ -1,7 +1,7 @@ { "name": "shared-tree-shaking-no-server-host", "private": true, - "version": "1.0.2", + "version": "1.0.3", "scripts": { "reset": "npx rimraf ./**/node_modules", "dev": "modern dev", diff --git a/apps/shared-tree-shaking/no-server/provider/CHANGELOG.md b/apps/shared-tree-shaking/no-server/provider/CHANGELOG.md index 3513545ef4f..55b94ed6711 100644 --- a/apps/shared-tree-shaking/no-server/provider/CHANGELOG.md +++ b/apps/shared-tree-shaking/no-server/provider/CHANGELOG.md @@ -1,5 +1,12 @@ # modernjs-ssr-nested-remote +## 1.0.3 + +### Patch Changes + +- Updated dependencies [90758e9] + - @module-federation/enhanced@2.2.0 + ## 1.0.2 ### Patch Changes diff --git a/apps/shared-tree-shaking/no-server/provider/package.json b/apps/shared-tree-shaking/no-server/provider/package.json index e9f90abd132..25e4eabf8d1 100644 --- a/apps/shared-tree-shaking/no-server/provider/package.json +++ b/apps/shared-tree-shaking/no-server/provider/package.json @@ -1,7 +1,7 @@ { "name": "shared-tree-shaking-no-server-provider", "private": true, - "version": "1.0.2", + "version": "1.0.3", "scripts": { "reset": "npx rimraf ./**/node_modules", "dev": "modern dev", diff --git a/apps/shared-tree-shaking/with-server/host/CHANGELOG.md b/apps/shared-tree-shaking/with-server/host/CHANGELOG.md index e33efd8bf88..1600a098b3c 100644 --- a/apps/shared-tree-shaking/with-server/host/CHANGELOG.md +++ b/apps/shared-tree-shaking/with-server/host/CHANGELOG.md @@ -1,5 +1,11 @@ # modernjs-ssr-nested-remote +## 1.0.3 + +### Patch Changes + +- @module-federation/modern-js-v3@2.2.0 + ## 1.0.2 ### Patch Changes diff --git a/apps/shared-tree-shaking/with-server/host/package.json b/apps/shared-tree-shaking/with-server/host/package.json index 08f150043d9..a51aa20a60c 100644 --- a/apps/shared-tree-shaking/with-server/host/package.json +++ b/apps/shared-tree-shaking/with-server/host/package.json @@ -1,7 +1,7 @@ { "name": "shared-tree-shaking-with-server-host", "private": true, - "version": "1.0.2", + "version": "1.0.3", "scripts": { "reset": "npx rimraf ./**/node_modules", "dev": "modern dev", diff --git a/apps/shared-tree-shaking/with-server/provider/CHANGELOG.md b/apps/shared-tree-shaking/with-server/provider/CHANGELOG.md index e33efd8bf88..1600a098b3c 100644 --- a/apps/shared-tree-shaking/with-server/provider/CHANGELOG.md +++ b/apps/shared-tree-shaking/with-server/provider/CHANGELOG.md @@ -1,5 +1,11 @@ # modernjs-ssr-nested-remote +## 1.0.3 + +### Patch Changes + +- @module-federation/modern-js-v3@2.2.0 + ## 1.0.2 ### Patch Changes diff --git a/apps/shared-tree-shaking/with-server/provider/package.json b/apps/shared-tree-shaking/with-server/provider/package.json index 1d362a83250..4fce80bf3a7 100644 --- a/apps/shared-tree-shaking/with-server/provider/package.json +++ b/apps/shared-tree-shaking/with-server/provider/package.json @@ -1,7 +1,7 @@ { "name": "shared-tree-shaking-with-server-provider", "private": true, - "version": "1.0.2", + "version": "1.0.3", "scripts": { "reset": "npx rimraf ./**/node_modules", "dev": "modern dev", diff --git a/apps/website-new/CHANGELOG.md b/apps/website-new/CHANGELOG.md index 05a72c7fc9b..bfcf7399f48 100644 --- a/apps/website-new/CHANGELOG.md +++ b/apps/website-new/CHANGELOG.md @@ -1,5 +1,12 @@ # website-new +## 1.3.15 + +### Patch Changes + +- @module-federation/rspress-plugin@2.2.0 +- @module-federation/error-codes@2.2.0 + ## 1.3.14 ### Patch Changes diff --git a/apps/website-new/package.json b/apps/website-new/package.json index cea1909ee11..78910ee8e01 100644 --- a/apps/website-new/package.json +++ b/apps/website-new/package.json @@ -1,6 +1,6 @@ { "name": "website-new", - "version": "1.3.14", + "version": "1.3.15", "private": true, "description": "Federation example for website-new", "scripts": { diff --git a/packages/bridge/bridge-react-webpack-plugin/CHANGELOG.md b/packages/bridge/bridge-react-webpack-plugin/CHANGELOG.md index 23da66ae390..b2a25ff0543 100644 --- a/packages/bridge/bridge-react-webpack-plugin/CHANGELOG.md +++ b/packages/bridge/bridge-react-webpack-plugin/CHANGELOG.md @@ -1,5 +1,14 @@ # @module-federation/bridge-react-webpack-plugin +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 2.1.0 ### Patch Changes @@ -157,7 +166,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/bridge/bridge-react-webpack-plugin/package.json b/packages/bridge/bridge-react-webpack-plugin/package.json index a1eb9deee4e..4da15b7dd1e 100644 --- a/packages/bridge/bridge-react-webpack-plugin/package.json +++ b/packages/bridge/bridge-react-webpack-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/bridge-react-webpack-plugin", - "version": "2.1.0", + "version": "2.2.0", "publishConfig": { "access": "public" }, diff --git a/packages/bridge/bridge-react/CHANGELOG.md b/packages/bridge/bridge-react/CHANGELOG.md index fbf40568f2a..8d482d871b7 100644 --- a/packages/bridge/bridge-react/CHANGELOG.md +++ b/packages/bridge/bridge-react/CHANGELOG.md @@ -1,5 +1,19 @@ # @module-federation/bridge-react +## 2.2.0 + +### Patch Changes + +- c856ec1: Add `isBrowserEnvValue` as a tree-shakable ENV_TARGET-aware constant while + preserving the `isBrowserEnv()` function. Internal runtime and bridge callers + use the constant to enable bundler dead-code elimination without breaking the + public API. +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/bridge-shared@2.2.0 + ## 2.1.0 ### Patch Changes @@ -96,7 +110,6 @@ - dc103ee: fix: support React Router v6 in peer dependencies Update react-router peer dependency from "^7" to "^6 || ^7" to fix npm install failures for projects using React Router v6. - - @module-federation/sdk@0.21.2 - @module-federation/bridge-shared@0.21.2 @@ -190,7 +203,6 @@ - 65aa038: chore(bridge-react): set sideEffects false - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -199,7 +211,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/bridge/bridge-react/package.json b/packages/bridge/bridge-react/package.json index 1fb1a1dc633..7518e6e6465 100644 --- a/packages/bridge/bridge-react/package.json +++ b/packages/bridge/bridge-react/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/bridge-react", - "version": "2.1.0", + "version": "2.2.0", "sideEffects": false, "publishConfig": { "access": "public" diff --git a/packages/bridge/bridge-shared/CHANGELOG.md b/packages/bridge/bridge-shared/CHANGELOG.md index 3ea783e5108..f182a5032cb 100644 --- a/packages/bridge/bridge-shared/CHANGELOG.md +++ b/packages/bridge/bridge-shared/CHANGELOG.md @@ -1,5 +1,7 @@ # @module-federation/bridge-shared +## 2.2.0 + ## 2.1.0 ## 2.0.1 @@ -51,7 +53,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -60,7 +61,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/bridge/bridge-shared/package.json b/packages/bridge/bridge-shared/package.json index 57e546b6b50..f7ccac83468 100644 --- a/packages/bridge/bridge-shared/package.json +++ b/packages/bridge/bridge-shared/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/bridge-shared", - "version": "2.1.0", + "version": "2.2.0", "publishConfig": { "access": "public" }, diff --git a/packages/bridge/vue3-bridge/CHANGELOG.md b/packages/bridge/vue3-bridge/CHANGELOG.md index 592f3624625..7e2ab18e201 100644 --- a/packages/bridge/vue3-bridge/CHANGELOG.md +++ b/packages/bridge/vue3-bridge/CHANGELOG.md @@ -1,5 +1,16 @@ # @module-federation/bridge-vue3 +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/runtime@2.2.0 + - @module-federation/bridge-shared@2.2.0 + ## 2.1.0 ### Patch Changes @@ -203,7 +214,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -365,7 +375,6 @@ ### Patch Changes - 6bc13cf: Fixed several issues: - 1. Resolved inconsistencies in naming between `name` and `moduleName` to align with the type defined in `packages/bridge/bridge-shared/src/type.ts`. This also fixed an issue where `name` was being passed to the remote component, and if it was ``, it caused rendering issues. 2. Issue: When passing props from a Vue 3 host application to a Vue 3 remote application created with `createRemoteComponent`, the props were being applied as attributes on the root container instead of being passed to the remote component. Fix: Set `inheritAttrs: false` in `remoteApp.tsx` and explicitly pass all attributes to the remote component using `useAttrs()`. diff --git a/packages/bridge/vue3-bridge/package.json b/packages/bridge/vue3-bridge/package.json index 4714c492b20..10e8cb4aa47 100644 --- a/packages/bridge/vue3-bridge/package.json +++ b/packages/bridge/vue3-bridge/package.json @@ -7,7 +7,7 @@ "url": "git+https://github.com/module-federation/core.git", "directory": "packages/bridge/vue3-bridge" }, - "version": "2.1.0", + "version": "2.2.0", "publishConfig": { "access": "public" }, diff --git a/packages/chrome-devtools/CHANGELOG.md b/packages/chrome-devtools/CHANGELOG.md index 6326cdc8ef4..426d32586b4 100644 --- a/packages/chrome-devtools/CHANGELOG.md +++ b/packages/chrome-devtools/CHANGELOG.md @@ -1,5 +1,15 @@ # @module-federation/devtools +## 2.2.0 + +### Patch Changes + +- 94de418: feat(chrome-devtools): add diagnostic messaging and UI enhancements for error handling +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 2.1.0 ### Patch Changes @@ -161,7 +171,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/chrome-devtools/package.json b/packages/chrome-devtools/package.json index f0e1811b67f..9a7efbb183e 100644 --- a/packages/chrome-devtools/package.json +++ b/packages/chrome-devtools/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/devtools", - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "repository": { "type": "git", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index e93cdd99045..ad4ebadd4a2 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,16 @@ # @module-federation/cli +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [079aecd] + - @module-federation/sdk@2.2.0 + - @module-federation/dts-plugin@2.2.0 + ## 2.1.0 ### Patch Changes @@ -196,7 +207,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -277,7 +287,6 @@ ### Patch Changes - e9a0681: Improve dynamic module import for `readConfig` function to use file URL format. - - Added `pathToFileURL` import from 'url' module. - Updated the dynamic import statement for `mfConfig` to use `pathToFileURL(preBundlePath).href`. - Ensures compatibility and correctness in environments where file paths require URL format. diff --git a/packages/cli/package.json b/packages/cli/package.json index 07cb89d1410..abd980f9e34 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/cli", - "version": "2.1.0", + "version": "2.2.0", "type": "commonjs", "description": "Module Federation CLI", "homepage": "https://module-federation.io", diff --git a/packages/create-module-federation/CHANGELOG.md b/packages/create-module-federation/CHANGELOG.md index d6eac777dd8..4375ff38de3 100644 --- a/packages/create-module-federation/CHANGELOG.md +++ b/packages/create-module-federation/CHANGELOG.md @@ -1,5 +1,11 @@ # create-module-federation +## 2.2.0 + +### Patch Changes + +- 5fe1ceb: Update React and React DOM to v19.2.3 + ## 2.1.0 ## 2.0.1 @@ -55,7 +61,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/create-module-federation/package.json b/packages/create-module-federation/package.json index 22e0236a4db..d32b5597a07 100644 --- a/packages/create-module-federation/package.json +++ b/packages/create-module-federation/package.json @@ -3,7 +3,7 @@ "description": "Create a new Module Federation project", "public": true, "sideEffects": false, - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "repository": { "type": "git", diff --git a/packages/data-prefetch/CHANGELOG.md b/packages/data-prefetch/CHANGELOG.md index fbefe28b453..c87a70cc8b9 100644 --- a/packages/data-prefetch/CHANGELOG.md +++ b/packages/data-prefetch/CHANGELOG.md @@ -1,5 +1,15 @@ # @module-federation/data-prefetch +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.1.0 ### Patch Changes @@ -187,7 +197,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -606,7 +615,6 @@ ### Patch Changes - 9e32644: Refactored the way prefetch entries are imported for improved dynamic loading handling. - - Changed the import of prefetch entries to use a function wrapper for more dynamic control. - Updated data types to ensure consistency with the new function-based import approach. - Modified the `injectPrefetch` function structure to incorporate the new import method. diff --git a/packages/data-prefetch/package.json b/packages/data-prefetch/package.json index bad40566ecb..cdd7667c2f8 100644 --- a/packages/data-prefetch/package.json +++ b/packages/data-prefetch/package.json @@ -1,7 +1,7 @@ { "name": "@module-federation/data-prefetch", "description": "Module Federation Data Prefetch", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "author": "nieyan ", "homepage": "https://github.com/module-federation/core", diff --git a/packages/dts-plugin/CHANGELOG.md b/packages/dts-plugin/CHANGELOG.md index 19dbfcc6004..9252b893538 100644 --- a/packages/dts-plugin/CHANGELOG.md +++ b/packages/dts-plugin/CHANGELOG.md @@ -1,5 +1,24 @@ # @module-federation/dts-plugin +## 2.2.0 + +### Minor Changes + +- 12240bb: feat(dts-plugin): support custom outputDir for DTS type emission + + Expose the `outputDir` option in `DtsRemoteOptions` so users can configure where `@mf-types.zip` and `@mf-types.d.ts` are emitted. Fix `GenerateTypesPlugin` to use `path.relative()` for correct asset placement in subdirectories. + +### Patch Changes + +- 079aecd: fix(dts-plugin): use default import for fs-extra to fix ESM compatibility +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/managers@2.2.0 + - @module-federation/third-party-dts-extractor@2.2.0 + - @module-federation/error-codes@2.2.0 + ## 2.1.0 ### Patch Changes @@ -248,7 +267,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/dts-plugin/package.json b/packages/dts-plugin/package.json index c338aa0b242..d212bf7a8e1 100644 --- a/packages/dts-plugin/package.json +++ b/packages/dts-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/dts-plugin", - "version": "2.1.0", + "version": "2.2.0", "author": "hanric ", "main": "./dist/index.js", "module": "./dist/esm/index.mjs", diff --git a/packages/enhanced/CHANGELOG.md b/packages/enhanced/CHANGELOG.md index 580d14a744a..c6059d6a2bb 100644 --- a/packages/enhanced/CHANGELOG.md +++ b/packages/enhanced/CHANGELOG.md @@ -1,5 +1,28 @@ # @module-federation/enhanced +## 2.2.0 + +### Patch Changes + +- 90758e9: Remove the unused `ChildCompilationRuntimePlugin` implementation from the + enhanced runtime container internals. +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [079aecd] +- Updated dependencies [83662e3] + - @module-federation/sdk@2.2.0 + - @module-federation/dts-plugin@2.2.0 + - @module-federation/rspack@2.2.0 + - @module-federation/bridge-react-webpack-plugin@2.2.0 + - @module-federation/cli@2.2.0 + - @module-federation/data-prefetch@2.2.0 + - @module-federation/managers@2.2.0 + - @module-federation/manifest@2.2.0 + - @module-federation/runtime-tools@2.2.0 + - @module-federation/inject-external-runtime-core-plugin@2.2.0 + - @module-federation/error-codes@2.2.0 + ## 2.1.0 ### Patch Changes @@ -367,7 +390,6 @@ ### Patch Changes - 756750e: test: add test coverage for ConsumeSharedPlugin - - Add 70+ tests for createConsumeSharedModule method covering all critical business logic - Implement tests for import resolution logic including error handling and direct fallback regex matching - Add requiredVersion resolution tests for package name extraction and version resolution @@ -378,7 +400,6 @@ - Achieve test coverage parity with ProvideSharedPlugin (70+ tests each) - 756750e: test: add test coverage for ProvideSharedPlugin - - Add 73 tests covering all critical business logic and edge cases - Implement complete shouldProvideSharedModule method coverage (15 tests) for version filtering with semver validation - Add provideSharedModule method tests (16 tests) covering version resolution, request pattern filtering, and warning generation @@ -389,7 +410,6 @@ - Add performance and memory usage tests for large-scale scenarios - 756750e: test: add test coverage for ConsumeSharedPlugin and ProvideSharedPlugin - - Add 70+ tests for ConsumeSharedPlugin covering all critical business logic including multi-stage module resolution, import resolution logic, version filtering, and error handling - Add 73 tests for ProvideSharedPlugin covering shouldProvideSharedModule method, provideSharedModule method, module matching, and resolution stages - Fix minor bug in ProvideSharedPlugin where originalRequestString was used instead of modulePathAfterNodeModules for prefix matching @@ -414,7 +434,6 @@ ### Patch Changes - 0bf3a3a: test: add comprehensive test coverage for request pattern filtering - - Add integration tests for request pattern filtering in provide-filters test case - Add test cases verifying modules match/don't match request include filters - Add unit tests for `extractPathAfterNodeModules` utility function @@ -442,11 +461,9 @@ ### Minor Changes - 0ab51b8: fix(enhanced): add module factory for EntryDependency when entry is empty - - bind normalModuleFactory for EntryDependency when no moduleFactory is bound for EntryDependency - 98a29c3: feat(enhanced): add include/exclude filtering for shared modules - - Add include/exclude filtering for both ConsumeSharedPlugin and ProvideSharedPlugin - Support version-based filtering using semantic version ranges (e.g., `include: { version: '^18.0.0' }`) - Support request pattern filtering with string and RegExp (e.g., `include: { request: /^Button/ }`) @@ -474,7 +491,6 @@ ### Patch Changes - bc3bc10: enhance HoistContainerReferencesPlugin for better module hoisting - - Separate handling for container, federation, and remote dependencies - Improved support for `runtimeChunk: 'single'` configuration - Proper remote module hoisting using the new `addRemoteDependency` hook @@ -483,14 +499,12 @@ - Added comprehensive unit tests for the plugin functionality - 7000c1f: fix: BuildVersion now correctly reads from project's package.json - - Fixed getBuildVersion() to accept optional root parameter for correct directory resolution - Updated StatsManager to use compiler.context when determining build version - Ensures buildVersion in mf-manifest.json matches the project's package.json version - Resolves issue #3835 where buildVersion was reading from wrong package.json location - 4ffefbe: refactor: rename container hooks for clarity and consistency - - Renamed `addContainerEntryModule` to `addContainerEntryDependency` - Renamed `addFederationRuntimeModule` to `addFederationRuntimeDependency` - Added new `addRemoteDependency` hook for remote module tracking @@ -498,7 +512,6 @@ - This is an internal refactoring with no breaking changes to external APIs - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -507,7 +520,6 @@ - Updated build configurations and dependencies to support latest versions - 1825b9d: fix(enhanced): add runtime safety checks to prevent errors - - Add typeof check for prevStartup function in EmbedFederationRuntimeModule to prevent calling undefined function - Add typeof check for **webpack_require**.x in StartupHelpers to prevent calling undefined function - Add warning logs when these functions are missing to help developers debug issues @@ -639,7 +651,6 @@ ### Minor Changes - 82b8cac: Updated ModuleFederationPlugin to enhance configuration capabilities and target environment identification. - - Introduced `definePluginOptions` to manage DefinePlugin settings. - Added `FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN` to handle disabling of snapshot optimizations via experiments. - Implemented environment target detection (`web` or `node`) based on compiler options and experiments. @@ -708,7 +719,6 @@ ### Minor Changes - f4fb242: Enhancements to layer handling in module federation tests and configuration. - - Introduced new layer configurations to support more nuanced federation scenarios that consider multiple layers of dependency. - f4fb242: support request option on ConsumeSharePlugin. Allows matching requests like the object key of shared does @@ -719,7 +729,6 @@ ### Patch Changes - f4fb242: Refactored module sharing configuration handling. - - Simplified plugin schema for better maintainability - Improved layer-based module sharing test coverage - Removed redundant plugin exports @@ -817,7 +826,6 @@ ### Minor Changes - fce107e: Enhanced module federation plugin to remove the `federationRuntime` experiment and replace it with `asyncStartup`. - - Dropped support for `federationRuntime` experiment and introduced `asyncStartup` to enable asynchronous container startup. - Refactored EmbedFederationRuntimePlugin for improved runtime embedding and startup management. - Added options to enable runtime embedding for all chunks. @@ -1311,7 +1319,6 @@ ### Patch Changes - 6b02145: Added a check to skip processing when virtualRuntimeEntry is present. - - Added an early return in `FederationRuntimePlugin` to skip processing if `options.virtualRuntimeEntry` is defined. - 22a3b83: fix(data-prefetch): apply DataPrefetchPlugin on demand @@ -1331,7 +1338,6 @@ ### Patch Changes - 70a1708: Added a check to skip processing when virtualRuntimeEntry is present. - - Added an early return in `FederationRuntimePlugin` to skip processing if `options.virtualRuntimeEntry` is defined. - @module-federation/rspack@0.6.9 - @module-federation/sdk@0.6.9 @@ -1362,7 +1368,6 @@ - 1b6bf0e: ContainerPlugin to use makeHook to addInclude of federation runtime dependency - 9e32644: Added support for hoisting federation runtime modules and enhancing dependency management. - - Introduced `FederationModulesPlugin` to handle federation-related hooks and dependencies. - Added new `FederationRuntimeDependency` and logic to include it conditionally. - Enhanced `ContainerPlugin` and related plugins to support experimental `federationRuntime` options. @@ -1370,7 +1375,6 @@ - Implemented changes across multiple files to support the new plugin and dependency management features. - 9e32644: Refactor `HoistContainerReferencesPlugin` to optimize module disconnection and cleanup logic. - - Removed `moduleToDelete` set as it was redundant. - Ensured all referenced modules are disconnected from unused chunks directly. - Added call to `cleanUpChunks` within the main loop to clean up chunks using `allReferencedModules`. diff --git a/packages/enhanced/package.json b/packages/enhanced/package.json index 8da764f4233..73ac5a65e01 100644 --- a/packages/enhanced/package.json +++ b/packages/enhanced/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/enhanced", - "version": "2.1.0", + "version": "2.2.0", "main": "./dist/src/index.js", "types": "./dist/src/index.d.ts", "repository": { diff --git a/packages/error-codes/CHANGELOG.md b/packages/error-codes/CHANGELOG.md index 580d3a543f7..d3d56320f66 100644 --- a/packages/error-codes/CHANGELOG.md +++ b/packages/error-codes/CHANGELOG.md @@ -1,5 +1,7 @@ # @module-federation/error-codes +## 2.2.0 + ## 2.1.0 ### Patch Changes @@ -68,7 +70,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/error-codes/package.json b/packages/error-codes/package.json index fc4198ef3fe..2d89ab2d053 100644 --- a/packages/error-codes/package.json +++ b/packages/error-codes/package.json @@ -4,7 +4,7 @@ "author": "zhanghang ", "public": true, "sideEffects": false, - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "repository": { "type": "git", diff --git a/packages/esbuild/CHANGELOG.md b/packages/esbuild/CHANGELOG.md index f87b48a915c..1ad98e11c73 100644 --- a/packages/esbuild/CHANGELOG.md +++ b/packages/esbuild/CHANGELOG.md @@ -1,5 +1,18 @@ # @module-federation/esbuild +## 0.0.98 + +### Patch Changes + +- a944c2d: fix: fix import map registration for ESM remote modules + + The import map registration was failing because the runtimePlugin was looking for moduleMap in the host scope instead of fetching it from the remote module exports. This fix adds explicit synchronous import map registration in the host initialization code that runs after initializeSharing but before any code that imports from remotes. + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 0.0.97 ### Patch Changes diff --git a/packages/esbuild/package.json b/packages/esbuild/package.json index 3a68d01742b..ad199f5dcc5 100644 --- a/packages/esbuild/package.json +++ b/packages/esbuild/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/esbuild", - "version": "0.0.97", + "version": "0.0.98", "author": "Zack Jackson (@ScriptedAlchemy)", "main": "./dist/index.js", "module": "./dist/index.mjs", diff --git a/packages/managers/CHANGELOG.md b/packages/managers/CHANGELOG.md index 5ca74130b5c..026537eea20 100644 --- a/packages/managers/CHANGELOG.md +++ b/packages/managers/CHANGELOG.md @@ -1,5 +1,14 @@ # @module-federation/managers +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 2.1.0 ### Patch Changes @@ -156,7 +165,6 @@ ### Patch Changes - 7000c1f: fix: BuildVersion now correctly reads from project's package.json - - Fixed getBuildVersion() to accept optional root parameter for correct directory resolution - Updated StatsManager to use compiler.context when determining build version - Ensures buildVersion in mf-manifest.json matches the project's package.json version @@ -167,7 +175,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/managers/package.json b/packages/managers/package.json index 7fe60ce89a6..5a065fcfb08 100644 --- a/packages/managers/package.json +++ b/packages/managers/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/managers", - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "description": "Provide managers for helping handle mf data .", "keywords": [ diff --git a/packages/manifest/CHANGELOG.md b/packages/manifest/CHANGELOG.md index 1a5eb923f63..86121030e86 100644 --- a/packages/manifest/CHANGELOG.md +++ b/packages/manifest/CHANGELOG.md @@ -1,5 +1,17 @@ # @module-federation/manifest +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [079aecd] + - @module-federation/sdk@2.2.0 + - @module-federation/dts-plugin@2.2.0 + - @module-federation/managers@2.2.0 + ## 2.1.0 ### Patch Changes @@ -221,7 +233,6 @@ ### Patch Changes - 7000c1f: fix: BuildVersion now correctly reads from project's package.json - - Fixed getBuildVersion() to accept optional root parameter for correct directory resolution - Updated StatsManager to use compiler.context when determining build version - Ensures buildVersion in mf-manifest.json matches the project's package.json version @@ -232,7 +243,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/manifest/package.json b/packages/manifest/package.json index 6161b9e16f5..42cc7b9d8df 100644 --- a/packages/manifest/package.json +++ b/packages/manifest/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/manifest", - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "description": "Provide manifest/stats for webpack/rspack MF project .", "keywords": [ diff --git a/packages/metro-core/CHANGELOG.md b/packages/metro-core/CHANGELOG.md index 80d8091f2a6..a5fd3ce05c2 100644 --- a/packages/metro-core/CHANGELOG.md +++ b/packages/metro-core/CHANGELOG.md @@ -1,5 +1,17 @@ # @module-federation/metro +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [079aecd] + - @module-federation/sdk@2.2.0 + - @module-federation/dts-plugin@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.1.0 ### Patch Changes diff --git a/packages/metro-core/package.json b/packages/metro-core/package.json index b5b40b96eee..603bd33dc44 100644 --- a/packages/metro-core/package.json +++ b/packages/metro-core/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/metro", - "version": "2.1.0", + "version": "2.2.0", "description": "Module Federation for Metro bundler", "keywords": [ "module-federation", diff --git a/packages/metro-plugin-rnc-cli/CHANGELOG.md b/packages/metro-plugin-rnc-cli/CHANGELOG.md index 0dd0c58195e..0bbda13ba51 100644 --- a/packages/metro-plugin-rnc-cli/CHANGELOG.md +++ b/packages/metro-plugin-rnc-cli/CHANGELOG.md @@ -1,5 +1,11 @@ # @module-federation/metro-plugin-rnc-cli +## 2.2.0 + +### Patch Changes + +- @module-federation/metro@2.2.0 + ## 2.1.0 ### Patch Changes diff --git a/packages/metro-plugin-rnc-cli/package.json b/packages/metro-plugin-rnc-cli/package.json index f71a7fe38b8..9a2ff653669 100644 --- a/packages/metro-plugin-rnc-cli/package.json +++ b/packages/metro-plugin-rnc-cli/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/metro-plugin-rnc-cli", - "version": "2.1.0", + "version": "2.2.0", "description": "Metro Module Federation plugin for React Native Enterprise Framework (RNEF)", "keywords": [ "rnc", diff --git a/packages/metro-plugin-rnef/CHANGELOG.md b/packages/metro-plugin-rnef/CHANGELOG.md index 7bc0163e4d6..acc62dbd23a 100644 --- a/packages/metro-plugin-rnef/CHANGELOG.md +++ b/packages/metro-plugin-rnef/CHANGELOG.md @@ -1,5 +1,11 @@ # @module-federation/metro-plugin-rnef +## 2.2.0 + +### Patch Changes + +- @module-federation/metro@2.2.0 + ## 2.1.0 ### Patch Changes diff --git a/packages/metro-plugin-rnef/package.json b/packages/metro-plugin-rnef/package.json index 79546d4750b..7a8624b80e2 100644 --- a/packages/metro-plugin-rnef/package.json +++ b/packages/metro-plugin-rnef/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/metro-plugin-rnef", - "version": "2.1.0", + "version": "2.2.0", "description": "Metro Module Federation plugin for React Native Enterprise Framework (RNEF)", "keywords": [ "rnef", diff --git a/packages/modernjs-v3/CHANGELOG.md b/packages/modernjs-v3/CHANGELOG.md index 7645b93ee07..cdc99e3af9e 100644 --- a/packages/modernjs-v3/CHANGELOG.md +++ b/packages/modernjs-v3/CHANGELOG.md @@ -1,5 +1,22 @@ # @module-federation/modern-js-v3 +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] +- Updated dependencies [ec7ab53] + - @module-federation/bridge-react@2.2.0 + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/node@2.7.34 + - @module-federation/cli@2.2.0 + - @module-federation/rsbuild-plugin@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.1.0 ### Minor Changes @@ -357,7 +374,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -366,7 +382,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/modernjs-v3/package.json b/packages/modernjs-v3/package.json index a4fc69af427..6c9e6a6d744 100644 --- a/packages/modernjs-v3/package.json +++ b/packages/modernjs-v3/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/modern-js-v3", - "version": "2.1.0", + "version": "2.2.0", "files": [ "dist/", "types.d.ts", diff --git a/packages/modernjs/CHANGELOG.md b/packages/modernjs/CHANGELOG.md index 0a2704674a8..bd8b8a16b14 100644 --- a/packages/modernjs/CHANGELOG.md +++ b/packages/modernjs/CHANGELOG.md @@ -1,5 +1,23 @@ # @module-federation/modern-js +## 2.2.0 + +### Patch Changes + +- 3d8b09c: feat: support rspack async startup +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] +- Updated dependencies [ec7ab53] + - @module-federation/bridge-react@2.2.0 + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/node@2.7.34 + - @module-federation/cli@2.2.0 + - @module-federation/rsbuild-plugin@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.1.0 ### Minor Changes @@ -341,7 +359,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -350,7 +367,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/modernjs/package.json b/packages/modernjs/package.json index 8e1f08875be..6f9854ef7cf 100644 --- a/packages/modernjs/package.json +++ b/packages/modernjs/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/modern-js", - "version": "2.1.0", + "version": "2.2.0", "files": [ "dist/", "types.d.ts", diff --git a/packages/nextjs-mf/CHANGELOG.md b/packages/nextjs-mf/CHANGELOG.md index 5597e0f6ccb..07c717bc81b 100644 --- a/packages/nextjs-mf/CHANGELOG.md +++ b/packages/nextjs-mf/CHANGELOG.md @@ -1,5 +1,20 @@ # @module-federation/nextjs-mf +## 8.8.58 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] +- Updated dependencies [ec7ab53] + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/node@2.7.34 + - @module-federation/runtime@2.2.0 + - @module-federation/webpack-bundler-runtime@2.2.0 + ## 8.8.57 ### Patch Changes @@ -270,7 +285,6 @@ ### Patch Changes - 4ffefbe: refactor: rename container hooks for clarity and consistency - - Renamed `addContainerEntryModule` to `addContainerEntryDependency` - Renamed `addFederationRuntimeModule` to `addFederationRuntimeDependency` - Added new `addRemoteDependency` hook for remote module tracking @@ -278,7 +292,6 @@ - This is an internal refactoring with no breaking changes to external APIs - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files @@ -803,7 +816,6 @@ ### Patch Changes - d3e904b: Support Next 15 externals configuration - - Refactored external handling to dynamically find and replace the first function in the 'externals' array. - This change improves robustness by ensuring the system correctly overrides external functions regardless of their position in the list. - Maintained the existing logic to preserve intended behavior with conditions checking specific package prefixes and names. @@ -820,7 +832,6 @@ ### Minor Changes - 1478f50: Added the UniverseEntryChunkTrackerPlugin to track entry chunks in the server plugin. - - Applied UniverseEntryChunkTrackerPlugin in the applyServerPlugins function. - This change aims to enhance tracking of entry chunks in the server environment for hot reloading prod instances @@ -895,7 +906,6 @@ ### Minor Changes - 9e32644: Simplified InvertedContainerPlugin by removing configuration dependencies and improving runtime module integration. - - Refactored `InvertedContainerPlugin` to remove redundant configurations. - Deleted `EmbeddedContainerPlugin` and moved its logic into `InvertedContainerPlugin`. - Modified `InvertedContainerRuntimeModule` to dynamically locate and integrate container entry modules. diff --git a/packages/nextjs-mf/package.json b/packages/nextjs-mf/package.json index f328b33cc54..3e151b2597e 100644 --- a/packages/nextjs-mf/package.json +++ b/packages/nextjs-mf/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/nextjs-mf", - "version": "8.8.57", + "version": "8.8.58", "license": "MIT", "main": "dist/src/index.js", "module": "dist/src/index.mjs", diff --git a/packages/node/CHANGELOG.md b/packages/node/CHANGELOG.md index 16ba17758db..6d3010dadab 100644 --- a/packages/node/CHANGELOG.md +++ b/packages/node/CHANGELOG.md @@ -1,5 +1,18 @@ # @module-federation/node +## 2.7.34 + +### Patch Changes + +- ec7ab53: Fix node chunk parsing and align node webpack-path lint handling. +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.7.33 ### Patch Changes @@ -198,7 +211,6 @@ ### Patch Changes - 0bf3a3a: fix(node): prevent infinite recursion in module imports - - Add import cache to prevent infinite recursion when modules have circular dependencies - Cache import promises to ensure each module is only imported once - Clear cache on import errors to allow retry attempts @@ -687,7 +699,6 @@ ### Patch Changes - f1b8848: Improved error handling and cache clearing process in hot-reload utility. - - Added error handling with try-catch block to manage potential exceptions when clearing the path cache. - Replaced direct use of module with a reference to currentChunk for cache path operations. - Ensured compatibility with TypeScript by adding @ts-ignore annotations where necessary. @@ -704,7 +715,6 @@ ### Minor Changes - 1478f50: Enhanced hot-reload functionality with module decaching and improved type safety. - - Added `callsite` package for resolving module paths. - Implemented `decache` and `searchCache` functions to remove modules from cache safely. - Ensure proper handling of relative module paths. @@ -717,7 +727,6 @@ ### Patch Changes - 1478f50: Add global flag `moduleGraphDirty` to control forced revalidation in hot-reload. - - Introduced new global variable `moduleGraphDirty`. - Initialized `moduleGraphDirty` to `false` in the global scope. - Modified `revalidate` function to check `moduleGraphDirty` flag. diff --git a/packages/node/package.json b/packages/node/package.json index 17903641c76..8cf6ea68460 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -1,7 +1,7 @@ { "public": true, "name": "@module-federation/node", - "version": "2.7.33", + "version": "2.7.34", "type": "commonjs", "main": "./dist/src/index.js", "module": "./dist/src/index.mjs", diff --git a/packages/retry-plugin/CHANGELOG.md b/packages/retry-plugin/CHANGELOG.md index e566e0288d2..50740b148ff 100644 --- a/packages/retry-plugin/CHANGELOG.md +++ b/packages/retry-plugin/CHANGELOG.md @@ -1,5 +1,14 @@ # @module-federation/retry-plugin +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 2.1.0 ### Patch Changes @@ -161,7 +170,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/retry-plugin/package.json b/packages/retry-plugin/package.json index e39855b8475..73889493e6d 100644 --- a/packages/retry-plugin/package.json +++ b/packages/retry-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/retry-plugin", - "version": "2.1.0", + "version": "2.2.0", "author": "danpeen ", "main": "./dist/index.js", "module": "./dist/esm/index.js", diff --git a/packages/rsbuild-plugin/CHANGELOG.md b/packages/rsbuild-plugin/CHANGELOG.md index 524925bbfc7..b482c0d7de8 100644 --- a/packages/rsbuild-plugin/CHANGELOG.md +++ b/packages/rsbuild-plugin/CHANGELOG.md @@ -1,5 +1,18 @@ # @module-federation/rsbuild-plugin +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] +- Updated dependencies [ec7ab53] + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/node@2.7.34 + ## 2.1.0 ### Patch Changes @@ -211,7 +224,6 @@ ### Patch Changes - 0bf3a3a: fix(rsbuild-plugin): add build dependencies configuration to project.json - - Add dependsOn configuration to ensure dependencies are built before the plugin - Improves build reliability and fixes potential issues when dependencies haven't been built @@ -243,7 +255,6 @@ Fixes CI test failure by adding missing `describe`, `expect`, and `it` imports from vitest to the test file. This resolves the "ReferenceError: describe is not defined" error that was causing the rsbuild-plugin tests to fail. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -252,7 +263,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/rsbuild-plugin/package.json b/packages/rsbuild-plugin/package.json index b600d74938c..d082c9a6206 100644 --- a/packages/rsbuild-plugin/package.json +++ b/packages/rsbuild-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/rsbuild-plugin", - "version": "2.1.0", + "version": "2.2.0", "description": "Module Federation plugin for Rsbuild", "homepage": "https://module-federation.io", "bugs": { diff --git a/packages/rspack/CHANGELOG.md b/packages/rspack/CHANGELOG.md index 0eba782844d..ba3f97f086f 100644 --- a/packages/rspack/CHANGELOG.md +++ b/packages/rspack/CHANGELOG.md @@ -1,5 +1,22 @@ # @module-federation/rspack +## 2.2.0 + +### Patch Changes + +- 83662e3: fix(rspack): update condition for provideExternalRuntime error handling +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [079aecd] + - @module-federation/sdk@2.2.0 + - @module-federation/dts-plugin@2.2.0 + - @module-federation/bridge-react-webpack-plugin@2.2.0 + - @module-federation/managers@2.2.0 + - @module-federation/manifest@2.2.0 + - @module-federation/runtime-tools@2.2.0 + - @module-federation/inject-external-runtime-core-plugin@2.2.0 + ## 2.1.0 ### Patch Changes @@ -321,7 +338,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -423,7 +439,6 @@ ### Minor Changes - 82b8cac: Update Rspack ModuleFederationPlugin to support enhanced configuration capabilities and environment targeting. - - Injects `FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN` and `ENV_TARGET` as global constants using DefinePlugin, based on the new `experiments.optimization` options. - Ensures parity with the Webpack plugin for build-time optimizations and environment-specific code paths. - Enables tree-shaking and feature toggling in the runtime and SDK for both Rspack and Webpack builds. diff --git a/packages/rspack/package.json b/packages/rspack/package.json index 65593299b1a..215ca54adad 100644 --- a/packages/rspack/package.json +++ b/packages/rspack/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/rspack", - "version": "2.1.0", + "version": "2.2.0", "license": "MIT", "keywords": [ "Module Federation", diff --git a/packages/rspress-plugin/CHANGELOG.md b/packages/rspress-plugin/CHANGELOG.md index 95fb4dc2174..cd281eeff7c 100644 --- a/packages/rspress-plugin/CHANGELOG.md +++ b/packages/rspress-plugin/CHANGELOG.md @@ -1,5 +1,18 @@ # @module-federation/rspress-plugin +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + - @module-federation/rsbuild-plugin@2.2.0 + - @module-federation/error-codes@2.2.0 + ## 2.1.0 ### Patch Changes @@ -254,7 +267,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/rspress-plugin/package.json b/packages/rspress-plugin/package.json index 119c796953c..6c744690bea 100644 --- a/packages/rspress-plugin/package.json +++ b/packages/rspress-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/rspress-plugin", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "description": "Module Federation plugin for Rspress", "keywords": [ diff --git a/packages/runtime-core/CHANGELOG.md b/packages/runtime-core/CHANGELOG.md index b15baed8cf6..6448d666e6e 100644 --- a/packages/runtime-core/CHANGELOG.md +++ b/packages/runtime-core/CHANGELOG.md @@ -1,5 +1,25 @@ # @module-federation/runtime +## 2.2.0 + +### Minor Changes + +- c856ec1: Add `isBrowserEnvValue` as a tree-shakable ENV_TARGET-aware constant while + preserving the `isBrowserEnv()` function. Internal runtime and bridge callers + use the constant to enable bundler dead-code elimination without breaking the + public API. + +### Patch Changes + +- e5dd6ef: feat(runtime-core): enhance error handling for script loading and execution +- 5c746e3: fix(runtime-core): change log to error for remote removal failure and remove redundant log function +- 0ff97d6: fix(runtime-core): improve error messages clarity and fix preload resourceCategory bug +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/error-codes@2.2.0 + ## 2.1.0 ### Patch Changes @@ -203,7 +223,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -214,7 +233,6 @@ - cc44d97: fix: prevent duplicate error prefix in Module Federation Runtime errors This change fixes an issue where the `[ Federation Runtime ]` prefix was being added multiple times to error messages when errors were re-thrown or already contained the prefix. The fix includes: - - Check if error message already starts with the log category prefix before adding it - Properly handle Error objects to avoid mutating original errors in warn function - Add comprehensive tests to ensure prefix duplication is prevented @@ -274,7 +292,6 @@ ### Minor Changes - 82b8cac: Add conditional functionality for snapshots and optimize entry loading. - - Introduced FEDERATION_OPTIMIZE_NO_SNAPSHOT_PLUGIN constant to control snapshot functionality. - Default to include snapshot functionality if constant is not defined. - Simplified plugin loading logic to check USE_SNAPSHOT flag. @@ -460,7 +477,6 @@ ### Patch Changes - ea6d417: Replaced dynamic module import using `new Function` with a safer direct `import` call. - - Removed usage of `new Function` to execute dynamic import - Implemented a direct async import with `/* webpackIgnore: true */` for proper bundler handling @@ -496,7 +512,6 @@ ### Patch Changes - 9e32644: Added comprehensive integration tests for the API synchronization and enhanced the embedded module proxy implementation. - - Added detailed integration tests for API consistency between embedded and index modules. - Tests include export comparison and method consistency for `ModuleFederation` and `Module` classes. - Introduced and updated the `embedded.ts` file to dynamically access the runtime modules at runtime. diff --git a/packages/runtime-core/package.json b/packages/runtime-core/package.json index 8645f0c9b27..0bf37b8aef6 100644 --- a/packages/runtime-core/package.json +++ b/packages/runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/runtime-core", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "author": "zhouxiao ", "main": "./dist/index.cjs", diff --git a/packages/runtime-plugins/inject-external-runtime-core-plugin/CHANGELOG.md b/packages/runtime-plugins/inject-external-runtime-core-plugin/CHANGELOG.md index dd430e91e7b..7869f107ed0 100644 --- a/packages/runtime-plugins/inject-external-runtime-core-plugin/CHANGELOG.md +++ b/packages/runtime-plugins/inject-external-runtime-core-plugin/CHANGELOG.md @@ -1,5 +1,11 @@ # @module-federation/inject-external-runtime-core-plugin +## 2.2.0 + +### Patch Changes + +- @module-federation/runtime-tools@2.2.0 + ## 2.1.0 ### Patch Changes @@ -149,7 +155,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/runtime-plugins/inject-external-runtime-core-plugin/package.json b/packages/runtime-plugins/inject-external-runtime-core-plugin/package.json index 3e81c5c01bd..e90a4c26ee8 100644 --- a/packages/runtime-plugins/inject-external-runtime-core-plugin/package.json +++ b/packages/runtime-plugins/inject-external-runtime-core-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/inject-external-runtime-core-plugin", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "license": "MIT", "description": "A sdk for support module federation", diff --git a/packages/runtime-tools/CHANGELOG.md b/packages/runtime-tools/CHANGELOG.md index f2050197977..846f17d02c9 100644 --- a/packages/runtime-tools/CHANGELOG.md +++ b/packages/runtime-tools/CHANGELOG.md @@ -1,5 +1,12 @@ # @module-federation/runtime-tools +## 2.2.0 + +### Patch Changes + +- @module-federation/runtime@2.2.0 +- @module-federation/webpack-bundler-runtime@2.2.0 + ## 2.1.0 ### Patch Changes @@ -183,7 +190,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/runtime-tools/package.json b/packages/runtime-tools/package.json index 9fefed09662..9c1451cffa1 100644 --- a/packages/runtime-tools/package.json +++ b/packages/runtime-tools/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/runtime-tools", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "author": "zhanghang ", "main": "./dist/index.cjs", diff --git a/packages/runtime/CHANGELOG.md b/packages/runtime/CHANGELOG.md index 05233656bb5..d54182ac6f4 100644 --- a/packages/runtime/CHANGELOG.md +++ b/packages/runtime/CHANGELOG.md @@ -1,5 +1,18 @@ # @module-federation/runtime +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [5c746e3] +- Updated dependencies [0ff97d6] + - @module-federation/sdk@2.2.0 + - @module-federation/runtime-core@2.2.0 + - @module-federation/error-codes@2.2.0 + ## 2.1.0 ### Patch Changes @@ -220,7 +233,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -638,7 +650,6 @@ ### Patch Changes - ea6d417: Replaced dynamic module import using `new Function` with a safer direct `import` call. - - Removed usage of `new Function` to execute dynamic import - Implemented a direct async import with `/* webpackIgnore: true */` for proper bundler handling @@ -674,7 +685,6 @@ ### Patch Changes - 9e32644: Added comprehensive integration tests for the API synchronization and enhanced the embedded module proxy implementation. - - Added detailed integration tests for API consistency between embedded and index modules. - Tests include export comparison and method consistency for `ModuleFederation` and `Module` classes. - Introduced and updated the `embedded.ts` file to dynamically access the runtime modules at runtime. diff --git a/packages/runtime/package.json b/packages/runtime/package.json index e72daba102f..2520b431b5c 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/runtime", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "author": "zhouxiao ", "main": "./dist/index.cjs", diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index dba0faa04c7..2d3a57931a4 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,21 @@ # @module-federation/sdk +## 2.2.0 + +### Minor Changes + +- c856ec1: Add `isBrowserEnvValue` as a tree-shakable ENV_TARGET-aware constant while + preserving the `isBrowserEnv()` function. Internal runtime and bridge callers + use the constant to enable bundler dead-code elimination without breaking the + public API. +- 12240bb: feat(dts-plugin): support custom outputDir for DTS type emission + + Expose the `outputDir` option in `DtsRemoteOptions` so users can configure where `@mf-types.zip` and `@mf-types.d.ts` are emitted. Fix `GenerateTypesPlugin` to use `path.relative()` for correct asset placement in subdirectories. + +### Patch Changes + +- e5dd6ef: feat(runtime-core): enhance error handling for script loading and execution + ## 2.1.0 ### Patch Changes @@ -76,7 +92,6 @@ ### Patch Changes - 0bf3a3a: fix(node): prevent infinite recursion in module imports - - Add import cache to prevent infinite recursion when modules have circular dependencies - Cache import promises to ensure each module is only imported once - Clear cache on import errors to allow retry attempts @@ -93,7 +108,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -122,7 +136,6 @@ ### Minor Changes - 82b8cac: Introduced environment-specific handling for `createScriptNode` and `loadScriptNode` functions and added build optimization options. - - Declared `ENV_TARGET` constant to differentiate between 'web' and 'node' environments. - Modified `createScriptNode` and `loadScriptNode` to execute only in Node.js environment. - Throws an error if attempted in a non-Node.js environment. @@ -304,7 +317,6 @@ ### Patch Changes - 9e32644: Added experimental option for federation runtime in ContainerPluginOptions. - - Extended `ContainerPluginOptions` to include an `experiments` property. - Within `experiments`, added a `federationRuntime` option. - `federationRuntime` can be either `false` or `'hoisted'`. diff --git a/packages/sdk/package.json b/packages/sdk/package.json index fe84b2d3a0e..0d83f025ee3 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/sdk", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "license": "MIT", "description": "A sdk for support module federation", diff --git a/packages/storybook-addon/CHANGELOG.md b/packages/storybook-addon/CHANGELOG.md index 7c048912237..265c8510f89 100644 --- a/packages/storybook-addon/CHANGELOG.md +++ b/packages/storybook-addon/CHANGELOG.md @@ -1,5 +1,16 @@ # @module-federation/storybook-addon +## 6.0.3 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] +- Updated dependencies [90758e9] + - @module-federation/sdk@2.2.0 + - @module-federation/enhanced@2.2.0 + ## 6.0.2 ### Patch Changes diff --git a/packages/storybook-addon/package.json b/packages/storybook-addon/package.json index 8497fece97c..3989cb653ff 100644 --- a/packages/storybook-addon/package.json +++ b/packages/storybook-addon/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/storybook-addon", - "version": "6.0.2", + "version": "6.0.3", "description": "Storybook addon to consume remote module federated apps/components", "type": "module", "license": "MIT", @@ -64,7 +64,7 @@ }, "peerDependencies": { "@rsbuild/core": "^1.0.1 || ^2.0.0-0", - "@module-federation/sdk": "^2.1.0", + "@module-federation/sdk": "^2.2.0", "@nx/react": ">= 16.0.0", "@nx/webpack": ">= 16.0.0", "@nx/module-federation": ">= 16.0.0", diff --git a/packages/third-party-dts-extractor/CHANGELOG.md b/packages/third-party-dts-extractor/CHANGELOG.md index dbc84fe02e0..a5ad83af7e9 100644 --- a/packages/third-party-dts-extractor/CHANGELOG.md +++ b/packages/third-party-dts-extractor/CHANGELOG.md @@ -1,5 +1,7 @@ # @module-federation/third-party-dts-extractor +## 2.2.0 + ## 2.1.0 ## 2.0.1 @@ -51,7 +53,6 @@ ### Patch Changes - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes @@ -60,7 +61,6 @@ - Updated build configurations and dependencies to support latest versions - d31a326: refactor: sink React packages from root to individual packages - - Removed React dependencies from root package.json and moved them to packages that actually need them - Fixed rsbuild-plugin configuration to match workspace patterns - Updated tests to handle platform-specific files diff --git a/packages/third-party-dts-extractor/package.json b/packages/third-party-dts-extractor/package.json index 380dc26c4e2..8b3e9ce6177 100644 --- a/packages/third-party-dts-extractor/package.json +++ b/packages/third-party-dts-extractor/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/third-party-dts-extractor", - "version": "2.1.0", + "version": "2.2.0", "files": [ "dist/", "README.md" diff --git a/packages/treeshake-frontend/CHANGELOG.md b/packages/treeshake-frontend/CHANGELOG.md index 0eac0c39da6..f9a7d7d3c60 100644 --- a/packages/treeshake-frontend/CHANGELOG.md +++ b/packages/treeshake-frontend/CHANGELOG.md @@ -1,5 +1,7 @@ # @module-federation/treeshake-frontend +## 2.2.0 + ## 2.1.0 ## 2.0.1 diff --git a/packages/treeshake-frontend/package.json b/packages/treeshake-frontend/package.json index 491ebaf1800..d8829fdcc1b 100644 --- a/packages/treeshake-frontend/package.json +++ b/packages/treeshake-frontend/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/treeshake-frontend", - "version": "2.1.0", + "version": "2.2.0", "scripts": { "dev": "rsbuild dev", "build": "rsbuild build && rslib build", diff --git a/packages/treeshake-server/CHANGELOG.md b/packages/treeshake-server/CHANGELOG.md index 4a54d1067d9..5b2bc9adc19 100644 --- a/packages/treeshake-server/CHANGELOG.md +++ b/packages/treeshake-server/CHANGELOG.md @@ -1,5 +1,7 @@ # @module-federation/treeshake-server +## 2.2.0 + ## 2.1.0 ## 2.0.1 diff --git a/packages/treeshake-server/package.json b/packages/treeshake-server/package.json index 604cd235037..bf1afba9deb 100644 --- a/packages/treeshake-server/package.json +++ b/packages/treeshake-server/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/treeshake-server", - "version": "2.1.0", + "version": "2.2.0", "description": "Build service powered by Hono that installs dependencies, builds with Rspack, and uploads artifacts.", "main": "dist/index.js", "module": "dist/index.mjs", diff --git a/packages/utilities/CHANGELOG.md b/packages/utilities/CHANGELOG.md index f732c07bf19..68be5fe9120 100644 --- a/packages/utilities/CHANGELOG.md +++ b/packages/utilities/CHANGELOG.md @@ -1,5 +1,14 @@ # @module-federation/utilities +## 3.1.86 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + ## 3.1.85 ### Patch Changes diff --git a/packages/utilities/package.json b/packages/utilities/package.json index 14753acf146..a1ee57ce089 100644 --- a/packages/utilities/package.json +++ b/packages/utilities/package.json @@ -1,6 +1,6 @@ { "name": "@module-federation/utilities", - "version": "3.1.85", + "version": "3.1.86", "main": "./dist/cjs/index.js", "module": "./dist/esm/index.mjs", "types": "./dist/types/index.d.ts", diff --git a/packages/webpack-bundler-runtime/CHANGELOG.md b/packages/webpack-bundler-runtime/CHANGELOG.md index 3a4cc54241a..fb5ebe82908 100644 --- a/packages/webpack-bundler-runtime/CHANGELOG.md +++ b/packages/webpack-bundler-runtime/CHANGELOG.md @@ -1,5 +1,15 @@ # @module-federation/webpack-bundler-runtime +## 2.2.0 + +### Patch Changes + +- Updated dependencies [c856ec1] +- Updated dependencies [12240bb] +- Updated dependencies [e5dd6ef] + - @module-federation/sdk@2.2.0 + - @module-federation/runtime@2.2.0 + ## 2.1.0 ### Minor Changes @@ -193,7 +203,6 @@ Add `useLegacyTypescriptPlugin: false` to all rollup-based packages to use the official `@rollup/plugin-typescript` instead of the deprecated `rollup-plugin-typescript2`. This resolves TypeScript compilation errors during build and modernizes the build toolchain. - a7cf276: chore: upgrade NX to 21.2.3, Storybook to 9.0.9, and TypeScript to 5.8.3 - - Upgraded NX from 21.0.3 to 21.2.3 with workspace configuration updates - Migrated Storybook from 8.3.5 to 9.0.9 with updated configurations and automigrations - Upgraded TypeScript from 5.7.3 to 5.8.3 with compatibility fixes diff --git a/packages/webpack-bundler-runtime/package.json b/packages/webpack-bundler-runtime/package.json index dd693105901..d9b3ddb2dc0 100644 --- a/packages/webpack-bundler-runtime/package.json +++ b/packages/webpack-bundler-runtime/package.json @@ -1,7 +1,7 @@ { "public": true, "name": "@module-federation/webpack-bundler-runtime", - "version": "2.1.0", + "version": "2.2.0", "type": "module", "license": "MIT", "description": "Module Federation Runtime for webpack",