@nx/react 22.7.0-pr.35019.f500fd7 → 22.7.0-rc.0

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/migrations.json CHANGED
@@ -195,6 +195,47 @@
195
195
  "alwaysAddToPackageJson": false
196
196
  }
197
197
  }
198
+ },
199
+ "22.7.0": {
200
+ "version": "22.7.0-beta.18",
201
+ "packages": {
202
+ "react-router": {
203
+ "version": "7.14.2",
204
+ "alwaysAddToPackageJson": false
205
+ },
206
+ "@react-router/dev": {
207
+ "version": "7.14.2",
208
+ "alwaysAddToPackageJson": false
209
+ },
210
+ "@react-router/node": {
211
+ "version": "7.14.2",
212
+ "alwaysAddToPackageJson": false
213
+ },
214
+ "@react-router/serve": {
215
+ "version": "7.14.2",
216
+ "alwaysAddToPackageJson": false
217
+ },
218
+ "@react-router/express": {
219
+ "version": "7.14.2",
220
+ "alwaysAddToPackageJson": false
221
+ },
222
+ "@react-router/fs-routes": {
223
+ "version": "7.14.2",
224
+ "alwaysAddToPackageJson": false
225
+ },
226
+ "@react-router/cloudflare": {
227
+ "version": "7.14.2",
228
+ "alwaysAddToPackageJson": false
229
+ },
230
+ "@react-router/architect": {
231
+ "version": "7.14.2",
232
+ "alwaysAddToPackageJson": false
233
+ },
234
+ "@react-router/remix-routes-option-adapter": {
235
+ "version": "7.14.2",
236
+ "alwaysAddToPackageJson": false
237
+ }
238
+ }
198
239
  }
199
240
  }
200
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/react",
3
- "version": "22.7.0-pr.35019.f500fd7",
3
+ "version": "22.7.0-rc.0",
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": {
@@ -18,7 +18,8 @@
18
18
  "Front-end"
19
19
  ],
20
20
  "main": "./index.js",
21
- "typings": "./index.d.ts",
21
+ "type": "commonjs",
22
+ "types": "./index.d.ts",
22
23
  "author": "Victor Savkin",
23
24
  "license": "MIT",
24
25
  "bugs": {
@@ -37,28 +38,28 @@
37
38
  "minimatch": "10.2.4",
38
39
  "picocolors": "^1.1.0",
39
40
  "tslib": "^2.3.0",
40
- "@nx/devkit": "22.7.0-pr.35019.f500fd7",
41
- "@nx/js": "22.7.0-pr.35019.f500fd7",
42
- "@nx/eslint": "22.7.0-pr.35019.f500fd7",
43
- "@nx/web": "22.7.0-pr.35019.f500fd7",
44
- "@nx/module-federation": "22.7.0-pr.35019.f500fd7",
45
- "@nx/rollup": "22.7.0-pr.35019.f500fd7",
41
+ "@nx/devkit": "22.7.0-rc.0",
42
+ "@nx/js": "22.7.0-rc.0",
43
+ "@nx/eslint": "22.7.0-rc.0",
44
+ "@nx/web": "22.7.0-rc.0",
45
+ "@nx/module-federation": "22.7.0-rc.0",
46
+ "@nx/rollup": "22.7.0-rc.0",
46
47
  "express": "^4.21.2",
47
48
  "http-proxy-middleware": "^3.0.5",
48
49
  "semver": "^7.6.3"
49
50
  },
50
51
  "devDependencies": {
51
- "@nx/cypress": "22.7.0-pr.35019.f500fd7",
52
- "@nx/playwright": "22.7.0-pr.35019.f500fd7",
53
- "@nx/rsbuild": "22.7.0-pr.35019.f500fd7",
54
- "@nx/vite": "22.7.0-pr.35019.f500fd7",
55
- "@nx/vitest": "22.7.0-pr.35019.f500fd7",
56
- "@nx/webpack": "22.7.0-pr.35019.f500fd7",
57
- "@nx/storybook": "22.7.0-pr.35019.f500fd7",
58
- "nx": "22.7.0-pr.35019.f500fd7"
52
+ "@nx/cypress": "22.7.0-rc.0",
53
+ "@nx/playwright": "22.7.0-rc.0",
54
+ "@nx/rsbuild": "22.7.0-rc.0",
55
+ "@nx/vite": "22.7.0-rc.0",
56
+ "@nx/vitest": "22.7.0-rc.0",
57
+ "@nx/webpack": "22.7.0-rc.0",
58
+ "@nx/storybook": "22.7.0-rc.0",
59
+ "nx": "22.7.0-rc.0"
59
60
  },
60
61
  "optionalDependencies": {
61
- "@nx/vite": "22.7.0-pr.35019.f500fd7"
62
+ "@nx/vite": "22.7.0-rc.0"
62
63
  },
63
64
  "publishConfig": {
64
65
  "access": "public"
@@ -216,7 +217,5 @@
216
217
  "types": "./mf/*.d.ts"
217
218
  },
218
219
  "./typings/*.d.ts": "./typings/*.d.ts"
219
- },
220
- "types": "./index.d.ts",
221
- "type": "commonjs"
220
+ }
222
221
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAsB5C,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAkIA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,yBAAyB,EAC1B,MAAM,oCAAoC,CAAC;AAsB5C,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC;CAClB,CAAC;AAEF,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,SAAS,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,wBAAwB,CACtC,YAAY,EAAE,MAAM,EACpB,OAAO,CAAC,EAAE,yBAAyB,GAClC;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,aAAa,GAAG,gBAAgB,CAAC;IAC5C,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAmIA"}
@@ -45,6 +45,9 @@ function nxComponentTestingPreset(pathToConfig, options) {
45
45
  ...{ framework: 'react', bundler: 'vite' },
46
46
  viteConfig: async () => {
47
47
  const viteConfigPath = findViteConfig(normalizedProjectRootPath);
48
+ // TODO(jack): Remove this cast when @nx/react switches to
49
+ // moduleResolution: "nodenext". Vite 8 ships ESM-only type
50
+ // declarations (.d.mts) not resolvable under moduleResolution: "node".
48
51
  const { mergeConfig, loadConfigFromFile, searchForWorkspaceRoot } = await Function('return import("vite")')();
49
52
  const resolved = await loadConfigFromFile({
50
53
  mode: 'watch',
@@ -1 +1 @@
1
- {"version":3,"file":"webpack-fallback.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/webpack-fallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAGxC,wBAAgB,sBAAsB,CAAC,EACrC,YAAiC,EACjC,QAAkB,GACnB,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,GAAG,OAAO,CAAC;CAC3B,GAAG,aAAa,CAsEhB"}
1
+ {"version":3,"file":"webpack-fallback.d.ts","sourceRoot":"","sources":["../../../../../packages/react/plugins/component-testing/webpack-fallback.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAIxC,wBAAgB,sBAAsB,CAAC,EACrC,YAAiC,EACjC,QAAkB,GACnB,EAAE;IACD,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,KAAK,GAAG,OAAO,CAAC;CAC3B,GAAG,aAAa,CAuEhB"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.buildBaseWebpackConfig = buildBaseWebpackConfig;
4
4
  const tsconfig_paths_webpack_plugin_1 = require("tsconfig-paths-webpack-plugin");
5
5
  const webpack_1 = require("@nx/webpack");
6
+ const ts_config_1 = require("@nx/js/src/utils/typescript/ts-config");
6
7
  function buildBaseWebpackConfig({ tsConfigPath = 'tsconfig.cy.json', compiler = 'babel', }) {
7
8
  const extensions = ['.ts', '.tsx', '.mjs', '.js', '.jsx'];
8
9
  const config = {
@@ -12,6 +13,7 @@ function buildBaseWebpackConfig({ tsConfigPath = 'tsconfig.cy.json', compiler =
12
13
  plugins: [
13
14
  new tsconfig_paths_webpack_plugin_1.TsconfigPathsPlugin({
14
15
  configFile: tsConfigPath,
16
+ baseUrl: (0, ts_config_1.resolvePathsBaseUrl)(tsConfigPath),
15
17
  extensions,
16
18
  }),
17
19
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBAyDb;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBA0Cb"}
1
+ {"version":3,"file":"add-vite.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/react/src/generators/application/lib/bundlers/add-vite.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,EAAoC,MAAM,YAAY,CAAC;AAGzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAExD,wBAAsB,sBAAsB,CAC1C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBA8Db;AAED,wBAAsB,wBAAwB,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,CAAC,MAAM,CAAC,EACjC,KAAK,EAAE,GAAG,EAAE,iBA0Cb"}
@@ -37,6 +37,7 @@ exports.setupViteConfiguration = setupViteConfiguration;
37
37
  exports.setupVitestConfiguration = setupVitestConfiguration;
38
38
  const devkit_1 = require("@nx/devkit");
39
39
  const versions_1 = require("../../../../utils/versions");
40
+ const version_utils_1 = require("../../../../utils/version-utils");
40
41
  async function setupViteConfiguration(tree, options, tasks) {
41
42
  const { createOrEditViteConfig, viteConfigurationGenerator } = (0, devkit_1.ensurePackage)('@nx/vite', versions_1.nxVersion);
42
43
  // We recommend users use `import.meta.env.MODE` and other variables in their code to differentiate between production and development.
@@ -56,6 +57,9 @@ async function setupViteConfiguration(tree, options, tasks) {
56
57
  ],
57
58
  plugins: ['react()'],
58
59
  };
60
+ // @react-router/dev < 7.14.0 caps its Vite peer dep at ^7, so fall back to
61
+ // Vite 7 when an older version is already installed in the workspace.
62
+ const forceViteV7 = options.useReactRouter && !(0, version_utils_1.reactRouterSupportsVite8)(tree);
59
63
  const viteTask = await viteConfigurationGenerator(tree, {
60
64
  uiFramework: 'react',
61
65
  project: options.projectName,
@@ -67,6 +71,7 @@ async function setupViteConfiguration(tree, options, tasks) {
67
71
  addPlugin: options.addPlugin,
68
72
  projectType: 'application',
69
73
  port: options.port,
74
+ ...(forceViteV7 ? { useViteV7: true } : {}),
70
75
  });
71
76
  tasks.push(viteTask);
72
77
  createOrEditViteConfig(tree, {
@@ -1 +1 @@
1
- {"version":3,"file":"update-module-federation-tsconfig.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/host/lib/update-module-federation-tsconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,QAyC1B"}
1
+ {"version":3,"file":"update-module-federation-tsconfig.d.ts","sourceRoot":"","sources":["../../../../../../../packages/react/src/generators/host/lib/update-module-federation-tsconfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,IAAI,EAAc,MAAM,YAAY,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAG7C,wBAAgB,8BAA8B,CAC5C,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,gBAAgB,QAmC1B"}
@@ -8,12 +8,7 @@ function updateModuleFederationTsconfig(host, options) {
8
8
  const tsconfigRuntimePath = (0, devkit_1.joinPathFragments)(options.appProjectRoot, 'tsconfig.app.json');
9
9
  if (!host.exists(tsconfigPath) || !host.exists(tsconfigRuntimePath))
10
10
  return;
11
- // Not setting `baseUrl` does not work with MF.
12
11
  if ((0, ts_solution_setup_1.isUsingTsSolutionSetup)(host)) {
13
- (0, devkit_1.updateJson)(host, 'tsconfig.base.json', (json) => {
14
- json.compilerOptions.baseUrl = '.';
15
- return json;
16
- });
17
12
  // Update references to match what `nx sync` does.
18
13
  if (options.remotes?.length) {
19
14
  (0, devkit_1.updateJson)(host, tsconfigPath, (json) => {
@@ -11,27 +11,5 @@ export declare const extraEslintDependencies: {
11
11
  /**
12
12
  * @deprecated Use `addExtendsToLintConfig` from `@nx/eslint` instead.
13
13
  */
14
- export declare const extendReactEslintJson: (json: Linter.Config) => {
15
- ignorePatterns?: string | string[] | undefined;
16
- root?: boolean | undefined;
17
- $schema?: string | undefined;
18
- env?: {
19
- [name: string]: boolean;
20
- } | undefined;
21
- globals?: {
22
- [name: string]: boolean | "off" | "readonly" | "readable" | "writable" | "writeable";
23
- } | undefined;
24
- noInlineConfig?: boolean | undefined;
25
- overrides?: Linter.ConfigOverride<Linter.RulesRecord>[];
26
- parser?: string | undefined;
27
- parserOptions?: Linter.ParserOptions | undefined;
28
- plugins?: string[] | undefined;
29
- processor?: string | undefined;
30
- reportUnusedDisableDirectives?: boolean | undefined;
31
- settings?: {
32
- [name: string]: any;
33
- } | undefined;
34
- rules?: Partial<Linter.RulesRecord>;
35
- extends: string[];
36
- };
14
+ export declare const extendReactEslintJson: (json: Linter.LegacyConfig) => Linter.LegacyConfig;
37
15
  //# sourceMappingURL=lint.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQhC,eAAO,MAAM,uBAAuB;;;;;;;;CAQnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAAI,MAAM,MAAM,CAAC,MAAM;;;;;;;;;;;;;;;;;;;;;;CAOxD,CAAC"}
1
+ {"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQhC,eAAO,MAAM,uBAAuB;;;;;;;;CAQnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,GAChC,MAAM,MAAM,CAAC,YAAY,KACxB,MAAM,CAAC,YAOT,CAAC"}
@@ -11,5 +11,7 @@ export declare function getReactDependenciesVersionsToInstall(tree: Tree): Promi
11
11
  export declare function isReact18(tree: Tree): Promise<boolean>;
12
12
  export declare function getInstalledReactVersion(tree: Tree): string;
13
13
  export declare function getInstalledReactVersionFromGraph(): Promise<string>;
14
+ export declare function getInstalledReactRouterDevVersion(tree: Tree): string | undefined;
15
+ export declare function reactRouterSupportsVite8(tree: Tree): boolean;
14
16
  export {};
15
17
  //# sourceMappingURL=version-utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/version-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,YAAY,CAAC;AAiBpB,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,yBAAyB,CAAC,CAoBpC;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,oBAMzC;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAe3D;AAED,wBAAsB,iCAAiC,oBAOtD"}
1
+ {"version":3,"file":"version-utils.d.ts","sourceRoot":"","sources":["../../../../../packages/react/src/utils/version-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,IAAI,EAGV,MAAM,YAAY,CAAC;AAiBpB,KAAK,yBAAyB,GAAG;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,wBAAsB,qCAAqC,CACzD,IAAI,EAAE,IAAI,GACT,OAAO,CAAC,yBAAyB,CAAC,CAoBpC;AAED,wBAAsB,SAAS,CAAC,IAAI,EAAE,IAAI,oBAMzC;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,MAAM,CAe3D;AAED,wBAAsB,iCAAiC,oBAOtD;AAED,wBAAgB,iCAAiC,CAC/C,IAAI,EAAE,IAAI,GACT,MAAM,GAAG,SAAS,CAWpB;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAU5D"}
@@ -4,6 +4,8 @@ exports.getReactDependenciesVersionsToInstall = getReactDependenciesVersionsToIn
4
4
  exports.isReact18 = isReact18;
5
5
  exports.getInstalledReactVersion = getInstalledReactVersion;
6
6
  exports.getInstalledReactVersionFromGraph = getInstalledReactVersionFromGraph;
7
+ exports.getInstalledReactRouterDevVersion = getInstalledReactRouterDevVersion;
8
+ exports.reactRouterSupportsVite8 = reactRouterSupportsVite8;
7
9
  const devkit_1 = require("@nx/devkit");
8
10
  const semver_1 = require("semver");
9
11
  const versions_1 = require("./versions");
@@ -53,3 +55,21 @@ async function getInstalledReactVersionFromGraph() {
53
55
  }
54
56
  return (0, semver_1.clean)(reactDep.data.version) ?? (0, semver_1.coerce)(reactDep.data.version).version;
55
57
  }
58
+ function getInstalledReactRouterDevVersion(tree) {
59
+ const installed = (0, devkit_1.getDependencyVersionFromPackageJson)(tree, '@react-router/dev');
60
+ if (!installed || installed === 'latest' || installed === 'next') {
61
+ return undefined;
62
+ }
63
+ return (0, semver_1.clean)(installed) ?? (0, semver_1.coerce)(installed)?.version;
64
+ }
65
+ function reactRouterSupportsVite8(tree) {
66
+ const installed = getInstalledReactRouterDevVersion(tree);
67
+ if (!installed) {
68
+ return true;
69
+ }
70
+ const coerced = (0, semver_1.coerce)(installed);
71
+ if (!coerced) {
72
+ return true;
73
+ }
74
+ return coerced.major > 7 || (coerced.major === 7 && coerced.minor >= 14);
75
+ }
@@ -24,7 +24,7 @@ export declare const emotionReactVersion = "11.14.0";
24
24
  export declare const emotionBabelPlugin = "11.13.5";
25
25
  export declare const styledJsxVersion = "5.1.2";
26
26
  export declare const reactRouterDomVersion = "6.30.3";
27
- export declare const reactRouterVersion = "^7.12.0";
27
+ export declare const reactRouterVersion = "^7.14.2";
28
28
  export declare const reactRouterIsBotVersion = "^4.4.0";
29
29
  export declare const testingLibraryReactVersion = "16.3.0";
30
30
  export declare const testingLibraryDomVersion = "10.4.0";
@@ -30,7 +30,7 @@ exports.emotionBabelPlugin = '11.13.5';
30
30
  // WARNING: This needs to be in sync with Next.js' dependency or else there might be issues.
31
31
  exports.styledJsxVersion = '5.1.2';
32
32
  exports.reactRouterDomVersion = '6.30.3';
33
- exports.reactRouterVersion = '^7.12.0';
33
+ exports.reactRouterVersion = '^7.14.2';
34
34
  exports.reactRouterIsBotVersion = '^4.4.0';
35
35
  exports.testingLibraryReactVersion = '16.3.0';
36
36
  exports.testingLibraryDomVersion = '10.4.0';
package/project.json DELETED
@@ -1,62 +0,0 @@
1
- {
2
- "name": "react",
3
- "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
- "sourceRoot": "packages/react",
5
- "projectType": "library",
6
- "targets": {
7
- "build": {
8
- "command": "node ./scripts/copy-readme.js react",
9
- "outputs": ["{workspaceRoot}/dist/packages/react/README.md"]
10
- },
11
- "legacy-post-build": {
12
- "executor": "@nx/workspace-plugin:legacy-post-build",
13
- "options": {
14
- "tsConfig": "./tsconfig.lib.json",
15
- "assets": [
16
- {
17
- "input": "packages/react",
18
- "glob": "**/files/**",
19
- "output": "/"
20
- },
21
- {
22
- "input": "packages/react",
23
- "glob": "**/files/**/.gitkeep",
24
- "output": "/"
25
- },
26
- {
27
- "input": "packages/react",
28
- "glob": "**/files/**/.babelrc__tmpl__",
29
- "output": "/"
30
- },
31
- {
32
- "input": "packages/react",
33
- "glob": "**/files/**/.browserslistrc__tmpl__",
34
- "output": "/"
35
- },
36
- {
37
- "input": "packages/react",
38
- "glob": "**/*.json",
39
- "ignore": ["**/tsconfig*.json", "project.json", ".eslintrc.json"],
40
- "output": "/"
41
- },
42
- {
43
- "input": "packages/react",
44
- "glob": "**/*.d.ts",
45
- "output": "/"
46
- },
47
- {
48
- "input": "packages/react",
49
- "glob": "**/*.js",
50
- "ignore": ["**/jest.config.js"],
51
- "output": "/"
52
- },
53
- {
54
- "input": "",
55
- "glob": "LICENSE",
56
- "output": "/"
57
- }
58
- ]
59
- }
60
- }
61
- }
62
- }