@nx/module-federation 23.2.0-beta.0 → 23.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30,6 +30,9 @@ function startStaticRemotesFileServer(staticRemotesConfig, root, staticRemotesPo
30
30
  `-p=${staticRemotesPort}`,
31
31
  `-a=localhost`,
32
32
  `--cors`,
33
+ // disable http caching so a rebuilt static remote is not served stale
34
+ // from the browser cache (see #27005, which fixed this for the executor)
35
+ `-c-1`,
33
36
  ], {
34
37
  stdio: 'pipe',
35
38
  cwd: root,
@@ -21,7 +21,13 @@ function collectDependencies(projectGraph, name, dependencies = {
21
21
  seen.add(name);
22
22
  (projectGraph.dependencies[name] ?? []).forEach((dependency) => {
23
23
  if (dependency.target.startsWith('npm:')) {
24
- dependencies.npmPackages.add(dependency.target.replace('npm:', ''));
24
+ const npmPkg = dependency.target.replace('npm:', '');
25
+ // Strip version suffix for compatibility with bun's project graph format
26
+ // e.g. "@ngrx/store@21.0.1" -> "@ngrx/store"
27
+ const versionIndex = npmPkg.startsWith('@')
28
+ ? npmPkg.indexOf('@', 1)
29
+ : npmPkg.indexOf('@');
30
+ dependencies.npmPackages.add(versionIndex > 0 ? npmPkg.substring(0, versionIndex) : npmPkg);
25
31
  }
26
32
  else if (!dependency.target.includes(':')) {
27
33
  // Only process as workspace library if it's not an external node.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@nx/module-federation",
3
3
  "description": "The Nx Plugin for Module Federation contains executors and utilities that support building applications using Module Federation.",
4
- "version": "23.2.0-beta.0",
4
+ "version": "23.2.0-beta.2",
5
5
  "type": "commonjs",
6
6
  "files": [
7
7
  "dist",
@@ -130,9 +130,9 @@
130
130
  "picocolors": "^1.1.0",
131
131
  "tslib": "^2.3.0",
132
132
  "webpack": "5.105.2",
133
- "@nx/devkit": "23.2.0-beta.0",
134
- "@nx/js": "23.2.0-beta.0",
135
- "@nx/web": "23.2.0-beta.0"
133
+ "@nx/devkit": "23.2.0-beta.2",
134
+ "@nx/js": "23.2.0-beta.2",
135
+ "@nx/web": "23.2.0-beta.2"
136
136
  },
137
137
  "peerDependencies": {
138
138
  "@module-federation/enhanced": "^2.0.0",
@@ -147,7 +147,7 @@
147
147
  }
148
148
  },
149
149
  "devDependencies": {
150
- "nx": "23.2.0-beta.0"
150
+ "nx": "23.2.0-beta.2"
151
151
  },
152
152
  "nx-migrations": {
153
153
  "migrations": "./migrations.json",