Skip to content

Commit 28a2db4

Browse files
authored
Revert "release v2.0.1" (#4423)
1 parent 21c4d8a commit 28a2db4

File tree

91 files changed

+69
-384
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+69
-384
lines changed

.changeset/bright-owls-cheer.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@module-federation/dts-plugin": patch
3+
---
4+
5+
Fix Windows TypeScript type generation by invoking the compiler with
6+
`execFile` and properly quoted project paths.

.changeset/mean-dogs-accept.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
"@module-federation/runtime-core": patch
3+
---
4+
5+
Fix a race where concurrent `Module.init()` calls could run remote container initialization more than once.
6+
7+
`Module.init()` now deduplicates in-flight initialization with a shared promise so `beforeInitContainer`/`initContainer` logic executes once per module while preserving stable initialized state after completion.
8+
9+
Also adds regression coverage for concurrent initialization behavior.

.changeset/metro-083-compat.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@module-federation/metro": patch
3+
---
4+
5+
Add Metro 0.83 compatibility layer. Metro 0.83 introduced a restrictive `exports` field that only allows `metro/private/*` paths instead of direct `metro/src/*` imports. This adds a `metro-compat` utility that dynamically resolves the correct import path, ensuring compatibility with both Metro 0.82 and 0.83+.

.changeset/salty-icons-carry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@module-federation/treeshake-server': patch
3+
---
4+
5+
feat: add tree shaking server

.github/actions/android-e2e/action.yaml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,35 +42,6 @@ runs:
4242
run: pnpm install --frozen-lockfile
4343
shell: bash
4444

45-
- name: Ensure React Native Gradle plugin path
46-
shell: bash
47-
run: |
48-
if [ -d node_modules/@react-native/gradle-plugin ]; then
49-
exit 0
50-
fi
51-
52-
PLUGIN_DIR=$(node -e '
53-
const fs = require("fs");
54-
const path = require("path");
55-
const baseDir = path.join("node_modules", ".pnpm");
56-
if (!fs.existsSync(baseDir)) process.exit(1);
57-
const match = fs
58-
.readdirSync(baseDir)
59-
.find((name) => name.startsWith("@react-native+gradle-plugin@"));
60-
if (!match) process.exit(2);
61-
process.stdout.write(
62-
path.join(baseDir, match, "node_modules", "@react-native", "gradle-plugin"),
63-
);
64-
')
65-
66-
if [ -z "$PLUGIN_DIR" ] || [ ! -d "$PLUGIN_DIR" ]; then
67-
echo "Unable to locate @react-native/gradle-plugin in pnpm install output." >&2
68-
exit 1
69-
fi
70-
71-
mkdir -p node_modules/@react-native
72-
ln -sfn "$(pwd)/$PLUGIN_DIR" node_modules/@react-native/gradle-plugin
73-
7445
- name: Build metro packages
7546
run: npx nx run-many --targets=build --projects=tag:type:metro --parallel=3 --skip-nx-cache
7647
shell: bash

apps/router-demo/router-remote5-2005/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# remote5
22

3-
## 2.0.1
4-
5-
### Patch Changes
6-
7-
- @module-federation/bridge-react@2.0.1
8-
- @module-federation/rsbuild-plugin@2.0.1
9-
103
## 2.0.0
114

125
### Major Changes

apps/router-demo/router-remote5-2005/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "remote5",
33
"private": true,
4-
"version": "2.0.1",
4+
"version": "2.0.0",
55
"scripts": {
66
"dev": "rsbuild dev",
77
"build": "rsbuild build",

apps/router-demo/router-remote6-2006/CHANGELOG.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
# Changelog
22

3-
## 2.0.1
4-
5-
### Patch Changes
6-
7-
- @module-federation/bridge-react@2.0.1
8-
- @module-federation/rsbuild-plugin@2.0.1
9-
103
## 2.0.0
114

125
### Major Changes

apps/router-demo/router-remote6-2006/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "remote6",
33
"private": true,
4-
"version": "2.0.1",
4+
"version": "2.0.0",
55
"scripts": {
66
"dev": "rsbuild dev",
77
"build": "rsbuild build",

apps/shared-tree-shaking/no-server/host/CHANGELOG.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
# modernjs-ssr-nested-remote
22

3-
## 1.0.1
4-
5-
### Patch Changes
6-
7-
- @module-federation/enhanced@2.0.1
8-
93
## 1.0.0
104

115
### Major Changes

0 commit comments

Comments
 (0)