@nrwl/react 13.10.0-beta.8 → 13.10.0-rc.1
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/executors.json +16 -0
- package/generators.json +14 -0
- package/index.d.ts +1 -0
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/migrations.json +13 -3
- package/module-federation.d.ts +4 -0
- package/module-federation.js +10 -0
- package/module-federation.js.map +1 -0
- package/package.json +10 -9
- package/plugins/storybook/index.js +5 -5
- package/plugins/storybook/index.js.map +1 -1
- package/plugins/webpack.d.ts +2 -1
- package/plugins/webpack.js +2 -0
- package/plugins/webpack.js.map +1 -1
- package/src/executors/mfe-dev-server/compat.d.ts +2 -0
- package/src/executors/mfe-dev-server/compat.js +6 -0
- package/src/executors/mfe-dev-server/compat.js.map +1 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.d.ts +11 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.js +86 -0
- package/src/executors/mfe-dev-server/mfe-dev-server.impl.js.map +1 -0
- package/src/executors/mfe-dev-server/schema.json +82 -0
- package/src/generators/application/application.d.ts +1 -1
- package/src/generators/application/files/common/src/app/__fileName__.spec.tsx__tmpl__ +1 -1
- package/src/generators/application/lib/normalize-options.js +2 -2
- package/src/generators/application/lib/normalize-options.js.map +1 -1
- package/src/generators/application/schema.d.ts +2 -0
- package/src/generators/component/component.d.ts +1 -1
- package/src/generators/component-cypress-spec/component-cypress-spec.d.ts +1 -1
- package/src/generators/component-story/component-story.d.ts +1 -1
- package/src/generators/hook/hook.d.ts +1 -1
- package/src/generators/init/init.d.ts +1 -1
- package/src/generators/library/library.d.ts +1 -1
- package/src/generators/mfe-host/files/common/src/app/__fileName__.tsx__tmpl__ +29 -0
- package/src/generators/mfe-host/files/mfe/mfe.config.js__tmpl__ +6 -0
- package/src/generators/mfe-host/files/mfe/src/main.ts__tmpl__ +1 -0
- package/src/generators/mfe-host/files/mfe/src/remotes.d.ts__tmpl__ +4 -0
- package/src/generators/mfe-host/files/mfe/webpack.config.js__tmpl__ +6 -0
- package/src/generators/mfe-host/files/mfe/webpack.config.prod.js__tmpl__ +1 -0
- package/src/generators/mfe-host/lib/add-mfe.d.ts +2 -0
- package/src/generators/mfe-host/lib/add-mfe.js +17 -0
- package/src/generators/mfe-host/lib/add-mfe.js.map +1 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.js +10 -0
- package/src/generators/mfe-host/lib/update-host-with-remote.js.map +1 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.js +17 -0
- package/src/generators/mfe-host/lib/update-mfe-e2e-project.js.map +1 -0
- package/src/generators/mfe-host/lib/update-mfe-project.d.ts +3 -0
- package/src/generators/mfe-host/lib/update-mfe-project.js +13 -0
- package/src/generators/mfe-host/lib/update-mfe-project.js.map +1 -0
- package/src/generators/mfe-host/mfe-host.d.ts +3 -0
- package/src/generators/mfe-host/mfe-host.js +43 -0
- package/src/generators/mfe-host/mfe-host.js.map +1 -0
- package/src/generators/mfe-host/schema.d.ts +28 -0
- package/src/generators/mfe-host/schema.json +155 -0
- package/src/generators/mfe-remote/files/mfe/mfe.config.js__tmpl__ +6 -0
- package/src/generators/mfe-remote/files/mfe/src/main.ts__tmpl__ +1 -0
- package/src/generators/mfe-remote/files/mfe/src/remote-entry.ts__tmpl__ +1 -0
- package/src/generators/mfe-remote/files/mfe/webpack.config.js__tmpl__ +6 -0
- package/src/generators/mfe-remote/files/mfe/webpack.config.prod.js__tmpl__ +1 -0
- package/src/generators/mfe-remote/mfe-remote.d.ts +5 -0
- package/src/generators/mfe-remote/mfe-remote.js +41 -0
- package/src/generators/mfe-remote/mfe-remote.js.map +1 -0
- package/src/generators/mfe-remote/schema.d.ts +30 -0
- package/src/generators/mfe-remote/schema.json +159 -0
- package/src/generators/redux/redux.d.ts +1 -1
- package/src/generators/stories/stories.d.ts +1 -1
- package/src/generators/storybook-configuration/configuration.d.ts +1 -1
- package/src/generators/storybook-migrate-defaults-5-to-6/migrate-defaults-5-to-6.d.ts +1 -1
- package/src/mfe/webpack-utils.d.ts +17 -0
- package/src/mfe/webpack-utils.js +66 -0
- package/src/mfe/webpack-utils.js.map +1 -0
- package/src/mfe/with-module-federation.d.ts +14 -0
- package/src/mfe/with-module-federation.js +167 -0
- package/src/mfe/with-module-federation.js.map +1 -0
- package/src/migrations/update-13-10-0/update-13-10-0.d.ts +3 -0
- package/src/migrations/update-13-10-0/update-13-10-0.js +28 -0
- package/src/migrations/update-13-10-0/update-13-10-0.js.map +1 -0
- package/src/utils/versions.d.ts +6 -6
- package/src/utils/versions.js +7 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { NormalModuleReplacementPlugin } from 'webpack';
|
|
2
|
+
export interface SharedLibraryConfig {
|
|
3
|
+
singleton: boolean;
|
|
4
|
+
strictVersion: boolean;
|
|
5
|
+
requiredVersion: string;
|
|
6
|
+
eager: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function shareWorkspaceLibraries(libraries: string[], tsConfigPath?: string): {
|
|
9
|
+
getAliases: () => any[];
|
|
10
|
+
getLibraries: () => void;
|
|
11
|
+
getReplacementPlugin: () => NormalModuleReplacementPlugin;
|
|
12
|
+
} | {
|
|
13
|
+
getAliases: () => {};
|
|
14
|
+
getLibraries: (eager?: boolean) => Record<string, SharedLibraryConfig>;
|
|
15
|
+
getReplacementPlugin: () => NormalModuleReplacementPlugin;
|
|
16
|
+
};
|
|
17
|
+
export declare function sharePackages(packages: string[]): Record<string, SharedLibraryConfig>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sharePackages = exports.shareWorkspaceLibraries = void 0;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const webpack_1 = require("webpack");
|
|
6
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const typescript_1 = require("@nrwl/workspace/src/utilities/typescript");
|
|
9
|
+
function shareWorkspaceLibraries(libraries, tsConfigPath) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
if (tsConfigPath === void 0) { tsConfigPath = (_a = process.env.NX_TSCONFIG_PATH) !== null && _a !== void 0 ? _a : (0, typescript_1.getRootTsConfigPath)(); }
|
|
12
|
+
if (!(0, fs_1.existsSync)(tsConfigPath)) {
|
|
13
|
+
throw new Error(`NX MFE: TsConfig Path for workspace libraries does not exist! (${tsConfigPath})`);
|
|
14
|
+
}
|
|
15
|
+
const tsConfig = (0, typescript_1.readTsConfig)(tsConfigPath);
|
|
16
|
+
const tsconfigPathAliases = (_b = tsConfig.options) === null || _b === void 0 ? void 0 : _b.paths;
|
|
17
|
+
if (!tsconfigPathAliases) {
|
|
18
|
+
return {
|
|
19
|
+
getAliases: () => [],
|
|
20
|
+
getLibraries: () => { },
|
|
21
|
+
getReplacementPlugin: () => new webpack_1.NormalModuleReplacementPlugin(/./, () => { }),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
const pathMappings = [];
|
|
25
|
+
for (const [key, paths] of Object.entries(tsconfigPathAliases)) {
|
|
26
|
+
if (libraries && libraries.includes(key)) {
|
|
27
|
+
const pathToLib = (0, devkit_1.normalizePath)((0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, paths[0]));
|
|
28
|
+
pathMappings.push({
|
|
29
|
+
name: key,
|
|
30
|
+
path: pathToLib,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
getAliases: () => pathMappings.reduce((aliases, library) => (Object.assign(Object.assign({}, aliases), { [library.name]: library.path })), {}),
|
|
36
|
+
getLibraries: (eager) => pathMappings.reduce((libraries, library) => (Object.assign(Object.assign({}, libraries), { [library.name]: { requiredVersion: false, eager } })), {}),
|
|
37
|
+
getReplacementPlugin: () => new webpack_1.NormalModuleReplacementPlugin(/./, (req) => {
|
|
38
|
+
if (!req.request.startsWith('.')) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const from = req.context;
|
|
42
|
+
const to = (0, devkit_1.normalizePath)((0, devkit_1.joinPathFragments)(req.context, req.request));
|
|
43
|
+
for (const library of pathMappings) {
|
|
44
|
+
const libFolder = (0, devkit_1.normalizePath)((0, path_1.dirname)(library.path));
|
|
45
|
+
if (!from.startsWith(libFolder) && to.startsWith(libFolder)) {
|
|
46
|
+
req.request = library.name;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}),
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.shareWorkspaceLibraries = shareWorkspaceLibraries;
|
|
53
|
+
function sharePackages(packages) {
|
|
54
|
+
const pkgJsonPath = (0, devkit_1.joinPathFragments)(devkit_1.workspaceRoot, 'package.json');
|
|
55
|
+
if (!(0, fs_1.existsSync)(pkgJsonPath)) {
|
|
56
|
+
throw new Error('NX MFE: Could not find root package.json to determine dependency versions.');
|
|
57
|
+
}
|
|
58
|
+
const pkgJson = JSON.parse((0, fs_1.readFileSync)(pkgJsonPath, 'utf-8'));
|
|
59
|
+
return packages.reduce((shared, pkgName) => (Object.assign(Object.assign({}, shared), { [pkgName]: {
|
|
60
|
+
singleton: true,
|
|
61
|
+
strictVersion: true,
|
|
62
|
+
requiredVersion: pkgJson.dependencies[pkgName],
|
|
63
|
+
} })), {});
|
|
64
|
+
}
|
|
65
|
+
exports.sharePackages = sharePackages;
|
|
66
|
+
//# sourceMappingURL=webpack-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack-utils.js","sourceRoot":"","sources":["../../../../../packages/react/src/mfe/webpack-utils.ts"],"names":[],"mappings":";;;AAAA,2BAA8C;AAC9C,qCAAwD;AACxD,yCAA+E;AAC/E,+BAA+B;AAE/B,yEAGkD;AASlD,SAAgB,uBAAuB,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,KAAK,CAAC,IAAA,iBAAY,EAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;IAE/D,OAAO,QAAQ,CAAC,MAAM,CACpB,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,iCAChB,MAAM,KACT,CAAC,OAAO,CAAC,EAAE;YACT,SAAS,EAAE,IAAI;YACf,aAAa,EAAE,IAAI;YACnB,eAAe,EAAE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC;SAC/C,IACD,EACF,EAAE,CACH,CAAC;AACJ,CAAC;AAvBD,sCAuBC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SharedLibraryConfig } from './webpack-utils';
|
|
2
|
+
export declare type MFELibrary = {
|
|
3
|
+
type: string;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type MFERemotes = string[] | [remoteName: string, remoteUrl: string][];
|
|
7
|
+
export interface MFEConfig {
|
|
8
|
+
name: string;
|
|
9
|
+
remotes?: string[];
|
|
10
|
+
library?: MFELibrary;
|
|
11
|
+
exposes?: Record<string, string>;
|
|
12
|
+
shared?: (libraryName: string, library: SharedLibraryConfig) => undefined | false | SharedLibraryConfig;
|
|
13
|
+
}
|
|
14
|
+
export declare function withModuleFederation(options: MFEConfig): Promise<(config: any) => any>;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withModuleFederation = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const webpack_utils_1 = require("./webpack-utils");
|
|
6
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
7
|
+
const typescript_1 = require("@nrwl/workspace/src/utilities/typescript");
|
|
8
|
+
const file_utils_1 = require("nx/src/project-graph/file-utils");
|
|
9
|
+
const ModuleFederationPlugin = require("webpack/lib/container/ModuleFederationPlugin");
|
|
10
|
+
function recursivelyResolveWorkspaceDependents(projectGraph, target, seenTargets = new Set()) {
|
|
11
|
+
var _a;
|
|
12
|
+
if (seenTargets.has(target)) {
|
|
13
|
+
return [];
|
|
14
|
+
}
|
|
15
|
+
let dependencies = [target];
|
|
16
|
+
seenTargets.add(target);
|
|
17
|
+
const workspaceDependencies = ((_a = projectGraph.dependencies[target]) !== null && _a !== void 0 ? _a : []).filter((dep) => !dep.target.startsWith('npm:'));
|
|
18
|
+
if (workspaceDependencies.length > 0) {
|
|
19
|
+
for (const dep of workspaceDependencies) {
|
|
20
|
+
dependencies = [
|
|
21
|
+
...dependencies,
|
|
22
|
+
...recursivelyResolveWorkspaceDependents(projectGraph, dep.target, seenTargets),
|
|
23
|
+
];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return dependencies;
|
|
27
|
+
}
|
|
28
|
+
function mapWorkspaceLibrariesToTsConfigImport(workspaceLibraries) {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const { projects } = new devkit_1.Workspaces(devkit_1.workspaceRoot).readWorkspaceConfiguration();
|
|
31
|
+
const tsConfigPath = (_a = process.env.NX_TSCONFIG_PATH) !== null && _a !== void 0 ? _a : (0, typescript_1.getRootTsConfigPath)();
|
|
32
|
+
const tsConfig = (0, typescript_1.readTsConfig)(tsConfigPath);
|
|
33
|
+
const tsconfigPathAliases = (_b = tsConfig.options) === null || _b === void 0 ? void 0 : _b.paths;
|
|
34
|
+
if (!tsconfigPathAliases) {
|
|
35
|
+
return workspaceLibraries;
|
|
36
|
+
}
|
|
37
|
+
const mappedLibraries = [];
|
|
38
|
+
for (const lib of workspaceLibraries) {
|
|
39
|
+
const sourceRoot = projects[lib].sourceRoot;
|
|
40
|
+
let found = false;
|
|
41
|
+
for (const [key, value] of Object.entries(tsconfigPathAliases)) {
|
|
42
|
+
if (value.find((p) => p.startsWith(sourceRoot))) {
|
|
43
|
+
mappedLibraries.push(key);
|
|
44
|
+
found = true;
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
if (!found) {
|
|
49
|
+
mappedLibraries.push(lib);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return mappedLibraries;
|
|
53
|
+
}
|
|
54
|
+
function getDependentPackagesForProject(name) {
|
|
55
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
let projectGraph;
|
|
57
|
+
try {
|
|
58
|
+
projectGraph = (0, devkit_1.readCachedProjectGraph)();
|
|
59
|
+
}
|
|
60
|
+
catch (e) {
|
|
61
|
+
projectGraph = yield (0, devkit_1.createProjectGraphAsync)();
|
|
62
|
+
}
|
|
63
|
+
const deps = projectGraph.dependencies[name].reduce((dependencies, dependency) => {
|
|
64
|
+
const workspaceLibraries = new Set(dependencies.workspaceLibraries);
|
|
65
|
+
const npmPackages = new Set(dependencies.npmPackages);
|
|
66
|
+
if (dependency.target.startsWith('npm:')) {
|
|
67
|
+
npmPackages.add(dependency.target.replace('npm:', ''));
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
workspaceLibraries.add(dependency.target);
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
workspaceLibraries: [...workspaceLibraries],
|
|
74
|
+
npmPackages: [...npmPackages],
|
|
75
|
+
};
|
|
76
|
+
}, { workspaceLibraries: [], npmPackages: [] });
|
|
77
|
+
const seenWorkspaceLibraries = new Set();
|
|
78
|
+
deps.workspaceLibraries = deps.workspaceLibraries.reduce((workspaceLibraryDeps, workspaceLibrary) => [
|
|
79
|
+
...workspaceLibraryDeps,
|
|
80
|
+
...recursivelyResolveWorkspaceDependents(projectGraph, workspaceLibrary, seenWorkspaceLibraries),
|
|
81
|
+
], []);
|
|
82
|
+
deps.workspaceLibraries = mapWorkspaceLibrariesToTsConfigImport(deps.workspaceLibraries);
|
|
83
|
+
return deps;
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function determineRemoteUrl(remote) {
|
|
87
|
+
var _a, _b, _c, _d, _e, _f;
|
|
88
|
+
const workspace = (0, file_utils_1.readWorkspaceJson)();
|
|
89
|
+
const serveTarget = (_b = (_a = workspace.projects[remote]) === null || _a === void 0 ? void 0 : _a.targets) === null || _b === void 0 ? void 0 : _b.serve;
|
|
90
|
+
if (!serveTarget) {
|
|
91
|
+
throw new Error(`Cannot automatically determine URL of remote (${remote}). Looked for property "host" in the project's "serve" target.\n
|
|
92
|
+
You can also use the tuple syntax in your webpack config to configure your remotes. e.g. \`remotes: [['remote1', '//localhost:4201']]\``);
|
|
93
|
+
}
|
|
94
|
+
const host = (_d = (_c = serveTarget.options) === null || _c === void 0 ? void 0 : _c.host) !== null && _d !== void 0 ? _d : '//localhost';
|
|
95
|
+
const port = (_f = (_e = serveTarget.options) === null || _e === void 0 ? void 0 : _e.port) !== null && _f !== void 0 ? _f : 4201;
|
|
96
|
+
return `${remote}@${host.endsWith('/') ? host.slice(0, -1) : host}:${port}/remoteEntry.js`;
|
|
97
|
+
}
|
|
98
|
+
function mapRemotes(remotes) {
|
|
99
|
+
const mappedRemotes = {};
|
|
100
|
+
for (const remote of remotes) {
|
|
101
|
+
if (Array.isArray(remote)) {
|
|
102
|
+
let [remoteName, remoteLocation] = remote;
|
|
103
|
+
if (!remoteLocation.includes('@')) {
|
|
104
|
+
remoteLocation = `${remoteName}@${remoteLocation}`;
|
|
105
|
+
}
|
|
106
|
+
if (!remoteLocation.match(/remoteEntry\.(js|mjs)$/)) {
|
|
107
|
+
remoteLocation = `${remoteLocation.endsWith('/')
|
|
108
|
+
? remoteLocation.slice(0, -1)
|
|
109
|
+
: remoteLocation}/remoteEntry.js`;
|
|
110
|
+
}
|
|
111
|
+
mappedRemotes[remoteName] = remoteLocation;
|
|
112
|
+
}
|
|
113
|
+
else if (typeof remote === 'string') {
|
|
114
|
+
mappedRemotes[remote] = determineRemoteUrl(remote);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return mappedRemotes;
|
|
118
|
+
}
|
|
119
|
+
function withModuleFederation(options) {
|
|
120
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
121
|
+
const reactWebpackConfig = require('../../plugins/webpack');
|
|
122
|
+
const ws = (0, file_utils_1.readWorkspaceJson)();
|
|
123
|
+
const project = ws.projects[options.name];
|
|
124
|
+
if (!project) {
|
|
125
|
+
throw Error(`Cannot find project "${options.name}". Check that the name is correct in mfe.config.js`);
|
|
126
|
+
}
|
|
127
|
+
const dependencies = yield getDependentPackagesForProject(options.name);
|
|
128
|
+
const sharedLibraries = (0, webpack_utils_1.shareWorkspaceLibraries)(dependencies.workspaceLibraries);
|
|
129
|
+
const npmPackages = (0, webpack_utils_1.sharePackages)(dependencies.npmPackages);
|
|
130
|
+
const sharedDependencies = Object.assign(Object.assign({}, sharedLibraries.getLibraries()), npmPackages);
|
|
131
|
+
if (options.shared) {
|
|
132
|
+
for (const [libraryName, library] of Object.entries(sharedDependencies)) {
|
|
133
|
+
const mappedDependency = options.shared(libraryName, library);
|
|
134
|
+
if (mappedDependency === false) {
|
|
135
|
+
delete sharedDependencies[libraryName];
|
|
136
|
+
continue;
|
|
137
|
+
}
|
|
138
|
+
else if (!mappedDependency) {
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
sharedDependencies[libraryName] = mappedDependency;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
return (config) => {
|
|
145
|
+
config = reactWebpackConfig(config);
|
|
146
|
+
config.output.uniqueName = options.name;
|
|
147
|
+
config.output.publicPath = 'auto';
|
|
148
|
+
config.optimization = {
|
|
149
|
+
runtimeChunk: false,
|
|
150
|
+
minimize: false,
|
|
151
|
+
};
|
|
152
|
+
const mappedRemotes = !options.remotes || options.remotes.length === 0
|
|
153
|
+
? {}
|
|
154
|
+
: mapRemotes(options.remotes);
|
|
155
|
+
config.plugins.push(new ModuleFederationPlugin({
|
|
156
|
+
name: options.name,
|
|
157
|
+
filename: 'remoteEntry.js',
|
|
158
|
+
exposes: options.exposes,
|
|
159
|
+
remotes: mappedRemotes,
|
|
160
|
+
shared: Object.assign({}, sharedDependencies),
|
|
161
|
+
}), sharedLibraries.getReplacementPlugin());
|
|
162
|
+
return config;
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
exports.withModuleFederation = withModuleFederation;
|
|
167
|
+
//# sourceMappingURL=with-module-federation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-module-federation.js","sourceRoot":"","sources":["../../../../../packages/react/src/mfe/with-module-federation.ts"],"names":[],"mappings":";;;;AAAA,mDAIyB;AACzB,yCAMsB;AACtB,yEAGkD;AAElD,gEAAoE;AACpE,uFAAwF;AAiBxF,SAAS,qCAAqC,CAC5C,YAA+B,EAC/B,MAAc,EACd,cAA2B,IAAI,GAAG,EAAE;;IAEpC,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QAC3B,OAAO,EAAE,CAAC;KACX;IACD,IAAI,YAAY,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAExB,MAAM,qBAAqB,GAAG,CAC5B,MAAA,YAAY,CAAC,YAAY,CAAC,MAAM,CAAC,mCAAI,EAAE,CACxC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAClD,IAAI,qBAAqB,CAAC,MAAM,GAAG,CAAC,EAAE;QACpC,KAAK,MAAM,GAAG,IAAI,qBAAqB,EAAE;YACvC,YAAY,GAAG;gBACb,GAAG,YAAY;gBACf,GAAG,qCAAqC,CACtC,YAAY,EACZ,GAAG,CAAC,MAAM,EACV,WAAW,CACZ;aACF,CAAC;SACH;KACF;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,qCAAqC,CAAC,kBAA4B;;IACzE,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,mBAAU,CACjC,sBAAa,CACd,CAAC,0BAA0B,EAAE,CAAC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AO,CAAC,IAAI,CAAC;YACxC,MAAM,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC;YAElC,MAAM,CAAC,YAAY,GAAG;gBACpB,YAAY,EAAE,KAAK;gBACnB,QAAQ,EAAE,KAAK;aAChB,CAAC;YAEF,MAAM,aAAa,GACjB,CAAC,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC;gBAC9C,CAAC,CAAC,EAAE;gBACJ,CAAC,CAAC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAElC,MAAM,CAAC,OAAO,CAAC,IAAI,CACjB,IAAI,sBAAsB,CAAC;gBACzB,IAAI,EAAE,OAAO,CAAC,IAAI;gBAClB,QAAQ,EAAE,gBAAgB;gBAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;gBACxB,OAAO,EAAE,aAAa;gBACtB,MAAM,oBACD,kBAAkB,CACtB;aACF,CAAC,EACF,eAAe,CAAC,oBAAoB,EAAE,CACvC,CAAC;YAEF,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;CAAA;AAnED,oDAmEC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updateToReact18 = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const devkit_1 = require("@nrwl/devkit");
|
|
6
|
+
// Putting this here because React Native 0.67 is incompatible with React 18.
|
|
7
|
+
// Waiting for 0.68 to come out with support for React 18.
|
|
8
|
+
// TODO(jack): For Nx 14 let's add another migration for React 18 in migrations.json because by then React Native 0.68.0 should be released.
|
|
9
|
+
function updateToReact18(host) {
|
|
10
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
+
const { dependencies } = (0, devkit_1.readJson)(host, 'package.json');
|
|
12
|
+
if (dependencies['react-native'] &&
|
|
13
|
+
!dependencies['react-native'].match(/[\^~]?0.68/)) {
|
|
14
|
+
devkit_1.logger.info(`React Native ${dependencies['react-native']} is incompatible with React 18. Skipping update until React Native 0.68.0 is released.`);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
return (0, devkit_1.addDependenciesToPackageJson)(host, {
|
|
18
|
+
react: '18.0.0',
|
|
19
|
+
'react-dom': '18.0.0',
|
|
20
|
+
'react-is': '18.0.0',
|
|
21
|
+
'react-test-renderer': '18.0.0',
|
|
22
|
+
}, {});
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
exports.updateToReact18 = updateToReact18;
|
|
27
|
+
exports.default = updateToReact18;
|
|
28
|
+
//# sourceMappingURL=update-13-10-0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-13-10-0.js","sourceRoot":"","sources":["../../../../../../packages/react/src/migrations/update-13-10-0/update-13-10-0.ts"],"names":[],"mappings":";;;;AAAA,yCAKsB;AAEtB,6EAA6E;AAC7E,0DAA0D;AAC1D,4IAA4I;AAC5I,SAAsB,eAAe,CAAC,IAAU;;QAC9C,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,iBAAQ,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QACxD,IACE,YAAY,CAAC,cAAc,CAAC;YAC5B,CAAC,YAAY,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,EACjD;YACA,eAAM,CAAC,IAAI,CACT,gBAAgB,YAAY,CAAC,cAAc,CAAC,wFAAwF,CACrI,CAAC;SACH;aAAM;YACL,OAAO,IAAA,qCAA4B,EACjC,IAAI,EACJ;gBACE,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,QAAQ;gBACrB,UAAU,EAAE,QAAQ;gBACpB,qBAAqB,EAAE,QAAQ;aAChC,EACD,EAAE,CACH,CAAC;SACH;IACH,CAAC;CAAA;AArBD,0CAqBC;AAED,kBAAe,eAAe,CAAC"}
|
package/src/utils/versions.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const nxVersion = "*";
|
|
2
|
-
export declare const reactVersion = "
|
|
3
|
-
export declare const reactDomVersion = "
|
|
4
|
-
export declare const reactIsVersion = "
|
|
2
|
+
export declare const reactVersion = "18.0.0";
|
|
3
|
+
export declare const reactDomVersion = "18.0.0";
|
|
4
|
+
export declare const reactIsVersion = "18.0.0";
|
|
5
5
|
export declare const typesReactVersion = "17.0.43";
|
|
6
6
|
export declare const typesReactDomVersion = "17.0.14";
|
|
7
7
|
export declare const typesReactIsVersion = "17.0.3";
|
|
@@ -10,16 +10,16 @@ export declare const typesStyledComponentsVersion = "5.1.24";
|
|
|
10
10
|
export declare const emotionStyledVersion = "11.8.1";
|
|
11
11
|
export declare const emotionReactVersion = "11.8.2";
|
|
12
12
|
export declare const emotionBabelPlugin = "11.7.2";
|
|
13
|
-
export declare const styledJsxVersion = "5.0.
|
|
13
|
+
export declare const styledJsxVersion = "5.0.2";
|
|
14
14
|
export declare const reactRouterDomVersion = "5.3.0";
|
|
15
15
|
export declare const typesReactRouterDomVersion = "5.3.3";
|
|
16
16
|
export declare const testingLibraryReactVersion = "12.1.4";
|
|
17
17
|
export declare const testingLibraryReactHooksVersion = "7.0.2";
|
|
18
18
|
export declare const reduxjsToolkitVersion = "1.8.0";
|
|
19
19
|
export declare const reactReduxVersion = "7.2.6";
|
|
20
|
-
export declare const reactTestRendererVersion = "
|
|
20
|
+
export declare const reactTestRendererVersion = "18.0.0";
|
|
21
21
|
export declare const eslintPluginImportVersion = "2.25.4";
|
|
22
22
|
export declare const eslintPluginJsxA11yVersion = "6.5.1";
|
|
23
23
|
export declare const eslintPluginReactVersion = "7.29.4";
|
|
24
|
-
export declare const eslintPluginReactHooksVersion = "4.
|
|
24
|
+
export declare const eslintPluginReactHooksVersion = "4.4.0";
|
|
25
25
|
export declare const babelPluginStyledComponentsVersion = "1.10.7";
|
package/src/utils/versions.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.babelPluginStyledComponentsVersion = exports.eslintPluginReactHooksVersion = exports.eslintPluginReactVersion = exports.eslintPluginJsxA11yVersion = exports.eslintPluginImportVersion = exports.reactTestRendererVersion = exports.reactReduxVersion = exports.reduxjsToolkitVersion = exports.testingLibraryReactHooksVersion = exports.testingLibraryReactVersion = exports.typesReactRouterDomVersion = exports.reactRouterDomVersion = exports.styledJsxVersion = exports.emotionBabelPlugin = exports.emotionReactVersion = exports.emotionStyledVersion = exports.typesStyledComponentsVersion = exports.styledComponentsVersion = exports.typesReactIsVersion = exports.typesReactDomVersion = exports.typesReactVersion = exports.reactIsVersion = exports.reactDomVersion = exports.reactVersion = exports.nxVersion = void 0;
|
|
4
|
-
exports.nxVersion = '13.10.0-
|
|
5
|
-
exports.reactVersion = '
|
|
6
|
-
exports.reactDomVersion = '
|
|
7
|
-
exports.reactIsVersion = '
|
|
4
|
+
exports.nxVersion = '13.10.0-rc.1';
|
|
5
|
+
exports.reactVersion = '18.0.0';
|
|
6
|
+
exports.reactDomVersion = '18.0.0';
|
|
7
|
+
exports.reactIsVersion = '18.0.0';
|
|
8
8
|
exports.typesReactVersion = '17.0.43';
|
|
9
9
|
exports.typesReactDomVersion = '17.0.14';
|
|
10
10
|
exports.typesReactIsVersion = '17.0.3';
|
|
@@ -13,17 +13,17 @@ exports.typesStyledComponentsVersion = '5.1.24';
|
|
|
13
13
|
exports.emotionStyledVersion = '11.8.1';
|
|
14
14
|
exports.emotionReactVersion = '11.8.2';
|
|
15
15
|
exports.emotionBabelPlugin = '11.7.2';
|
|
16
|
-
exports.styledJsxVersion = '5.0.
|
|
16
|
+
exports.styledJsxVersion = '5.0.2';
|
|
17
17
|
exports.reactRouterDomVersion = '5.3.0';
|
|
18
18
|
exports.typesReactRouterDomVersion = '5.3.3';
|
|
19
19
|
exports.testingLibraryReactVersion = '12.1.4';
|
|
20
20
|
exports.testingLibraryReactHooksVersion = '7.0.2';
|
|
21
21
|
exports.reduxjsToolkitVersion = '1.8.0';
|
|
22
22
|
exports.reactReduxVersion = '7.2.6';
|
|
23
|
-
exports.reactTestRendererVersion = '
|
|
23
|
+
exports.reactTestRendererVersion = '18.0.0';
|
|
24
24
|
exports.eslintPluginImportVersion = '2.25.4';
|
|
25
25
|
exports.eslintPluginJsxA11yVersion = '6.5.1';
|
|
26
26
|
exports.eslintPluginReactVersion = '7.29.4';
|
|
27
|
-
exports.eslintPluginReactHooksVersion = '4.
|
|
27
|
+
exports.eslintPluginReactHooksVersion = '4.4.0';
|
|
28
28
|
exports.babelPluginStyledComponentsVersion = '1.10.7';
|
|
29
29
|
//# sourceMappingURL=versions.js.map
|