@nx/react 22.0.0-canary.20251010-bfaa91b → 22.0.0-canary.20251014-82acc84
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.d.ts.map +1 -1
- package/mf/dynamic-federation.js +2 -1
- package/package.json +12 -11
- package/src/generators/application/lib/bundlers/add-rsbuild.d.ts.map +1 -1
- package/src/generators/application/lib/bundlers/add-rsbuild.js +4 -1
- package/src/utils/versions.d.ts +7 -7
- package/src/utils/versions.d.ts.map +1 -1
- package/src/utils/versions.js +7 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"dynamic-federation.d.ts","sourceRoot":"","sources":["../../../../packages/react/mf/dynamic-federation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,wBAAwB,GAAG,CACrC,UAAU,EAAE,MAAM,KACf,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAqB9B;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,wBAAwB,QAG5C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAEvE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"dynamic-federation.d.ts","sourceRoot":"","sources":["../../../../packages/react/mf/dynamic-federation.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,wBAAwB,GAAG,CACrC,UAAU,EAAE,MAAM,KACf,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAqB9B;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,iBAAiB,EAAE,wBAAwB,QAG5C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,QAEvE;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,QAGxE;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,gBAgB5E"}
|
package/mf/dynamic-federation.js
CHANGED
@@ -5,7 +5,7 @@ exports.setRemoteDefinitions = setRemoteDefinitions;
|
|
5
5
|
exports.setRemoteDefinition = setRemoteDefinition;
|
6
6
|
exports.loadRemoteModule = loadRemoteModule;
|
7
7
|
const url_helpers_1 = require("@nx/module-federation/url-helpers");
|
8
|
-
let remoteUrlDefinitions
|
8
|
+
let remoteUrlDefinitions;
|
9
9
|
let resolveRemoteUrl;
|
10
10
|
const remoteModuleMap = new Map();
|
11
11
|
const remoteContainerMap = new Map();
|
@@ -66,6 +66,7 @@ function setRemoteDefinitions(definitions) {
|
|
66
66
|
* ```
|
67
67
|
*/
|
68
68
|
function setRemoteDefinition(remoteName, remoteUrl) {
|
69
|
+
remoteUrlDefinitions ??= {};
|
69
70
|
remoteUrlDefinitions[remoteName] = remoteUrl;
|
70
71
|
}
|
71
72
|
/**
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/react",
|
3
|
-
"version": "22.0.0-canary.
|
3
|
+
"version": "22.0.0-canary.20251014-82acc84",
|
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,21 +38,22 @@
|
|
38
38
|
"minimatch": "9.0.3",
|
39
39
|
"picocolors": "^1.1.0",
|
40
40
|
"tslib": "^2.3.0",
|
41
|
-
"@nx/devkit": "22.0.0-canary.
|
42
|
-
"@nx/js": "22.0.0-canary.
|
43
|
-
"@nx/eslint": "22.0.0-canary.
|
44
|
-
"@nx/web": "22.0.0-canary.
|
45
|
-
"@nx/vite": "22.0.0-canary.
|
46
|
-
"@nx/module-federation": "22.0.0-canary.
|
47
|
-
"@nx/rollup": "22.0.0-canary.
|
41
|
+
"@nx/devkit": "22.0.0-canary.20251014-82acc84",
|
42
|
+
"@nx/js": "22.0.0-canary.20251014-82acc84",
|
43
|
+
"@nx/eslint": "22.0.0-canary.20251014-82acc84",
|
44
|
+
"@nx/web": "22.0.0-canary.20251014-82acc84",
|
45
|
+
"@nx/vite": "22.0.0-canary.20251014-82acc84",
|
46
|
+
"@nx/module-federation": "22.0.0-canary.20251014-82acc84",
|
47
|
+
"@nx/rollup": "22.0.0-canary.20251014-82acc84",
|
48
48
|
"express": "^4.21.2",
|
49
49
|
"http-proxy-middleware": "^3.0.5",
|
50
50
|
"semver": "^7.6.3"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@nx/cypress": "22.0.0-canary.
|
54
|
-
"@nx/playwright": "22.0.0-canary.
|
55
|
-
"nx": "22.0.0-canary.
|
53
|
+
"@nx/cypress": "22.0.0-canary.20251014-82acc84",
|
54
|
+
"@nx/playwright": "22.0.0-canary.20251014-82acc84",
|
55
|
+
"@nx/rsbuild": "22.0.0-canary.20251014-82acc84",
|
56
|
+
"nx": "22.0.0-canary.20251014-82acc84"
|
56
57
|
},
|
57
58
|
"publishConfig": {
|
58
59
|
"access": "public"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"add-rsbuild.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-rsbuild.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIV,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,WAAW,CAC/B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAUb;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"add-rsbuild.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-rsbuild.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAIV,MAAM,YAAY,CAAC;AAGpB,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,WAAW,CAC/B,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAUb;AAED,wBAAsB,yBAAyB,CAC7C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAqFb"}
|
@@ -18,7 +18,7 @@ async function initRsbuild(tree, options, tasks) {
|
|
18
18
|
async function setupRsbuildConfiguration(tree, options, tasks) {
|
19
19
|
(0, devkit_1.ensurePackage)('@nx/rsbuild', versions_1.nxVersion);
|
20
20
|
const { configurationGenerator } = await Promise.resolve().then(() => require('@nx/rsbuild/generators'));
|
21
|
-
const { addBuildPlugin, addCopyAssets, addHtmlTemplatePath, addExperimentalSwcPlugin, versions, } = await Promise.resolve().then(() => require('@nx/rsbuild/config-utils'));
|
21
|
+
const { addBuildPlugin, addCopyAssets, addHtmlTemplatePath, addExperimentalSwcPlugin, addSourceDefine, versions, } = await Promise.resolve().then(() => require('@nx/rsbuild/config-utils'));
|
22
22
|
const rsbuildTask = await configurationGenerator(tree, {
|
23
23
|
project: options.projectName,
|
24
24
|
entry: (0, maybe_js_1.maybeJs)({
|
@@ -31,6 +31,9 @@ async function setupRsbuildConfiguration(tree, options, tasks) {
|
|
31
31
|
});
|
32
32
|
tasks.push(rsbuildTask);
|
33
33
|
const pathToConfigFile = (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'rsbuild.config.ts');
|
34
|
+
if (options.inSourceTests && options.unitTestRunner === 'vitest') {
|
35
|
+
addSourceDefine(tree, pathToConfigFile, 'import.meta.vitest', 'undefined');
|
36
|
+
}
|
34
37
|
const deps = { '@rsbuild/plugin-react': versions.rsbuildPluginReactVersion };
|
35
38
|
addBuildPlugin(tree, pathToConfigFile, '@rsbuild/plugin-react', 'pluginReact', options.style === '@emotion/styled'
|
36
39
|
? `swcReactOptions: {\n\timportSource: '@emotion/react',\n}`
|
package/src/utils/versions.d.ts
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
export declare const nxVersion: any;
|
2
|
-
export declare const reactVersion = "19.0.0";
|
2
|
+
export declare const reactVersion = "^19.0.0";
|
3
3
|
export declare const reactV18Version = "18.3.1";
|
4
|
-
export declare const reactDomVersion = "19.0.0";
|
4
|
+
export declare const reactDomVersion = "^19.0.0";
|
5
5
|
export declare const reactDomV18Version = "18.3.1";
|
6
|
-
export declare const reactIsVersion = "19.0.0";
|
6
|
+
export declare const reactIsVersion = "^19.0.0";
|
7
7
|
export declare const reactIsV18Version = "18.3.1";
|
8
8
|
export declare const swcLoaderVersion = "0.1.15";
|
9
9
|
export declare const babelLoaderVersion = "^9.1.2";
|
10
10
|
export declare const typesReactV18Version = "18.3.1";
|
11
|
-
export declare const typesReactVersion = "19.0.0";
|
11
|
+
export declare const typesReactVersion = "^19.0.0";
|
12
12
|
export declare const typesReactDomV18Version = "18.3.0";
|
13
|
-
export declare const typesReactDomVersion = "19.0.0";
|
13
|
+
export declare const typesReactDomVersion = "^19.0.0";
|
14
14
|
export declare const typesReactIsV18Version = "18.3.0";
|
15
|
-
export declare const typesReactIsVersion = "19.0.0";
|
15
|
+
export declare const typesReactIsVersion = "^19.0.0";
|
16
16
|
export declare const reactViteVersion = "^4.2.0";
|
17
17
|
export declare const typesNodeVersion = "^20.0.0";
|
18
18
|
export declare const babelPresetReactVersion = "^7.14.5";
|
@@ -26,7 +26,7 @@ export declare const styledJsxVersion = "5.1.2";
|
|
26
26
|
export declare const reactRouterDomVersion = "6.29.0";
|
27
27
|
export declare const reactRouterVersion = "^7.2.0";
|
28
28
|
export declare const reactRouterIsBotVersion = "^4.4.0";
|
29
|
-
export declare const testingLibraryReactVersion = "16.
|
29
|
+
export declare const testingLibraryReactVersion = "16.3.0";
|
30
30
|
export declare const testingLibraryDomVersion = "10.4.0";
|
31
31
|
export declare const reduxjsToolkitVersion = "1.9.3";
|
32
32
|
export declare const reactReduxVersion = "8.0.5";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,
|
1
|
+
{"version":3,"file":"versions.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/versions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,KAAwC,CAAC;AAE/D,eAAO,MAAM,YAAY,YAAY,CAAC;AACtC,eAAO,MAAM,eAAe,WAAW,CAAC;AACxC,eAAO,MAAM,eAAe,YAAY,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAC1C,eAAO,MAAM,gBAAgB,WAAW,CAAC;AACzC,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,oBAAoB,WAAW,CAAC;AAC7C,eAAO,MAAM,iBAAiB,YAAY,CAAC;AAC3C,eAAO,MAAM,uBAAuB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AO,MAAM,YAAY,WAAW,CAAC;AACrC,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,gBAAgB,YAAY,CAAC;AAC1C,eAAO,MAAM,2BAA2B,YAAY,CAAC;AACrD,eAAO,MAAM,+BAA+B,YAAY,CAAC;AAGzD,eAAO,MAAM,WAAW,WAAW,CAAC;AACpC,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAC/C,eAAO,MAAM,iBAAiB,WAAW,CAAC;AAE1C,eAAO,MAAM,yBAAyB,YAAY,CAAC;AACnD,eAAO,MAAM,uBAAuB,YAAY,CAAC;AACjD,eAAO,MAAM,gCAAgC,YAAY,CAAC"}
|
package/src/utils/versions.js
CHANGED
@@ -3,20 +3,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sassVersion = exports.lessVersion = exports.moduleFederationEnhancedVersion = exports.moduleFederationNodeVersion = exports.typesCorsVersion = exports.corsVersion = exports.isbotVersion = exports.typesExpressVersion = exports.expressVersion = exports.autoprefixerVersion = exports.tailwindcssVersion = exports.postcssVersion = exports.tsLibVersion = exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryDomVersion = exports.testingLibraryReactVersion = exports.reactRouterIsBotVersion = exports.reactRouterVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.babelCoreVersion = exports.babelPresetReactVersion = exports.typesNodeVersion = exports.reactViteVersion = exports.typesReactIsVersion = exports.typesReactIsV18Version = exports.typesReactDomVersion = exports.typesReactDomV18Version = exports.typesReactVersion = exports.typesReactV18Version = exports.babelLoaderVersion = exports.swcLoaderVersion = exports.reactIsV18Version = exports.reactIsVersion = exports.reactDomV18Version = exports.reactDomVersion = exports.reactV18Version = exports.reactVersion = exports.nxVersion = void 0;
|
4
4
|
exports.swcPluginStyledComponentsVersion = exports.swcPluginEmotionVersion = exports.swcPluginStyledJsxVersion = exports.svgrRollupVersion = exports.rollupPluginUrlVersion = void 0;
|
5
5
|
exports.nxVersion = require('../../package.json').version;
|
6
|
-
exports.reactVersion = '19.0.0';
|
6
|
+
exports.reactVersion = '^19.0.0';
|
7
7
|
exports.reactV18Version = '18.3.1';
|
8
|
-
exports.reactDomVersion = '19.0.0';
|
8
|
+
exports.reactDomVersion = '^19.0.0';
|
9
9
|
exports.reactDomV18Version = '18.3.1';
|
10
|
-
exports.reactIsVersion = '19.0.0';
|
10
|
+
exports.reactIsVersion = '^19.0.0';
|
11
11
|
exports.reactIsV18Version = '18.3.1';
|
12
12
|
exports.swcLoaderVersion = '0.1.15';
|
13
13
|
exports.babelLoaderVersion = '^9.1.2';
|
14
14
|
exports.typesReactV18Version = '18.3.1';
|
15
|
-
exports.typesReactVersion = '19.0.0';
|
15
|
+
exports.typesReactVersion = '^19.0.0';
|
16
16
|
exports.typesReactDomV18Version = '18.3.0';
|
17
|
-
exports.typesReactDomVersion = '19.0.0';
|
17
|
+
exports.typesReactDomVersion = '^19.0.0';
|
18
18
|
exports.typesReactIsV18Version = '18.3.0';
|
19
|
-
exports.typesReactIsVersion = '19.0.0';
|
19
|
+
exports.typesReactIsVersion = '^19.0.0';
|
20
20
|
exports.reactViteVersion = '^4.2.0';
|
21
21
|
// Needed for React-Router
|
22
22
|
exports.typesNodeVersion = '^20.0.0';
|
@@ -32,7 +32,7 @@ exports.styledJsxVersion = '5.1.2';
|
|
32
32
|
exports.reactRouterDomVersion = '6.29.0';
|
33
33
|
exports.reactRouterVersion = '^7.2.0';
|
34
34
|
exports.reactRouterIsBotVersion = '^4.4.0';
|
35
|
-
exports.testingLibraryReactVersion = '16.
|
35
|
+
exports.testingLibraryReactVersion = '16.3.0';
|
36
36
|
exports.testingLibraryDomVersion = '10.4.0';
|
37
37
|
exports.reduxjsToolkitVersion = '1.9.3';
|
38
38
|
exports.reactReduxVersion = '8.0.5';
|