@nx/react 21.3.0-canary.20250624-0ef8857 → 21.3.0-canary.20250626-8b6ad42
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.
- package/mf/dynamic-federation.js +2 -10
- package/package.json +6 -6
- package/src/utils/versions.d.ts +1 -1
- package/src/utils/versions.js +1 -1
package/mf/dynamic-federation.js
CHANGED
@@ -4,7 +4,7 @@ exports.setRemoteUrlResolver = setRemoteUrlResolver;
|
|
4
4
|
exports.setRemoteDefinitions = setRemoteDefinitions;
|
5
5
|
exports.setRemoteDefinition = setRemoteDefinition;
|
6
6
|
exports.loadRemoteModule = loadRemoteModule;
|
7
|
-
const
|
7
|
+
const url_helpers_1 = require("@nx/module-federation/url-helpers");
|
8
8
|
let remoteUrlDefinitions = {};
|
9
9
|
let resolveRemoteUrl;
|
10
10
|
const remoteModuleMap = new Map();
|
@@ -132,15 +132,7 @@ async function loadRemoteContainer(remoteName) {
|
|
132
132
|
const remoteUrl = remoteUrlDefinitions
|
133
133
|
? remoteUrlDefinitions[remoteName]
|
134
134
|
: await resolveRemoteUrl(remoteName);
|
135
|
-
const
|
136
|
-
const ext = (0, node_path_1.extname)(url.pathname);
|
137
|
-
const needsRemoteEntry = !['.js', '.mjs', '.json'].includes(ext);
|
138
|
-
if (needsRemoteEntry) {
|
139
|
-
url.pathname = url.pathname.endsWith('/')
|
140
|
-
? `${url.pathname}remoteEntry.mjs`
|
141
|
-
: `${url.pathname}/remoteEntry.mjs`;
|
142
|
-
}
|
143
|
-
const containerUrl = url.href;
|
135
|
+
const containerUrl = (0, url_helpers_1.processRuntimeRemoteUrl)(remoteUrl, 'mjs');
|
144
136
|
const container = await fetchRemoteModule(containerUrl, remoteName);
|
145
137
|
await container.init(__webpack_share_scopes__.default);
|
146
138
|
remoteContainerMap.set(remoteName, container);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/react",
|
3
|
-
"version": "21.3.0-canary.
|
3
|
+
"version": "21.3.0-canary.20250626-8b6ad42",
|
4
4
|
"private": false,
|
5
5
|
"description": "The React plugin for Nx contains executors and generators for managing React applications and libraries within an Nx workspace. It provides:\n\n\n- Integration with libraries such as Jest, Vitest, Playwright, Cypress, and Storybook.\n\n- Generators for applications, libraries, components, hooks, and more.\n\n- Library build support for publishing packages to npm or other registries.\n\n- Utilities for automatic workspace refactoring.",
|
6
6
|
"repository": {
|
@@ -38,11 +38,11 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "21.3.0-canary.
|
42
|
-
"@nx/js": "21.3.0-canary.
|
43
|
-
"@nx/eslint": "21.3.0-canary.
|
44
|
-
"@nx/web": "21.3.0-canary.
|
45
|
-
"@nx/module-federation": "21.3.0-canary.
|
41
|
+
"@nx/devkit": "21.3.0-canary.20250626-8b6ad42",
|
42
|
+
"@nx/js": "21.3.0-canary.20250626-8b6ad42",
|
43
|
+
"@nx/eslint": "21.3.0-canary.20250626-8b6ad42",
|
44
|
+
"@nx/web": "21.3.0-canary.20250626-8b6ad42",
|
45
|
+
"@nx/module-federation": "21.3.0-canary.20250626-8b6ad42",
|
46
46
|
"express": "^4.21.2",
|
47
47
|
"http-proxy-middleware": "^3.0.3",
|
48
48
|
"semver": "^7.6.3"
|
package/src/utils/versions.d.ts
CHANGED
@@ -45,7 +45,7 @@ export declare const isbotVersion = "^3.6.5";
|
|
45
45
|
export declare const corsVersion = "~2.8.5";
|
46
46
|
export declare const typesCorsVersion = "~2.8.12";
|
47
47
|
export declare const moduleFederationNodeVersion = "^2.6.26";
|
48
|
-
export declare const moduleFederationEnhancedVersion = "^0.
|
48
|
+
export declare const moduleFederationEnhancedVersion = "^0.15.0";
|
49
49
|
export declare const lessVersion = "3.12.2";
|
50
50
|
export declare const sassVersion = "^1.55.0";
|
51
51
|
export declare const rollupPluginUrlVersion = "^8.0.2";
|
package/src/utils/versions.js
CHANGED
@@ -52,7 +52,7 @@ exports.isbotVersion = '^3.6.5';
|
|
52
52
|
exports.corsVersion = '~2.8.5';
|
53
53
|
exports.typesCorsVersion = '~2.8.12';
|
54
54
|
exports.moduleFederationNodeVersion = '^2.6.26';
|
55
|
-
exports.moduleFederationEnhancedVersion = '^0.
|
55
|
+
exports.moduleFederationEnhancedVersion = '^0.15.0';
|
56
56
|
// style preprocessors
|
57
57
|
exports.lessVersion = '3.12.2';
|
58
58
|
exports.sassVersion = '^1.55.0';
|