@nrwl/react 13.10.0-beta.7 → 13.10.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
@@ -29,6 +29,12 @@
29
29
  "version": "13.0.0-beta.0",
30
30
  "description": "Migrate Storybook to use webpack 5",
31
31
  "factory": "./src/migrations/update-13-0-0/migrate-storybook-to-webpack-5"
32
+ },
33
+ "update-react-18-13.10.0": {
34
+ "cli": "nx",
35
+ "version": "13.10.0-beta.0",
36
+ "description": "Update to React 18",
37
+ "factory": "./src/migrations/update-13-10-0/update-13-10-0"
32
38
  }
33
39
  },
34
40
  "packageJsonUpdates": {
@@ -268,12 +274,16 @@
268
274
  "version": "5.3.5",
269
275
  "alwaysAddToPackageJson": false
270
276
  },
277
+ "eslint-plugin-react": {
278
+ "version": "7.29.4",
279
+ "alwaysAddToPackageJson": false
280
+ },
271
281
  "styled-jsx": {
272
- "version": "5.0.1",
282
+ "version": "5.0.2",
273
283
  "alwaysAddToPackageJson": false
274
284
  },
275
- "eslint-plugin-react": {
276
- "version": "7.29.4",
285
+ "eslint-plugin-react-hooks": {
286
+ "version": "4.4.0",
277
287
  "alwaysAddToPackageJson": false
278
288
  }
279
289
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/react",
3
- "version": "13.10.0-beta.7",
3
+ "version": "13.10.0-rc.0",
4
4
  "description": "The React plugin 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, 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.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -31,14 +31,14 @@
31
31
  "dependencies": {
32
32
  "@babel/core": "^7.15.0",
33
33
  "@babel/preset-react": "^7.14.5",
34
- "@nrwl/cypress": "13.10.0-beta.7",
35
- "@nrwl/devkit": "13.10.0-beta.7",
36
- "@nrwl/jest": "13.10.0-beta.7",
37
- "@nrwl/js": "13.10.0-beta.7",
38
- "@nrwl/linter": "13.10.0-beta.7",
39
- "@nrwl/storybook": "13.10.0-beta.7",
40
- "@nrwl/web": "13.10.0-beta.7",
41
- "@nrwl/workspace": "13.10.0-beta.7",
34
+ "@nrwl/cypress": "13.10.0-rc.0",
35
+ "@nrwl/devkit": "13.10.0-rc.0",
36
+ "@nrwl/jest": "13.10.0-rc.0",
37
+ "@nrwl/js": "13.10.0-rc.0",
38
+ "@nrwl/linter": "13.10.0-rc.0",
39
+ "@nrwl/storybook": "13.10.0-rc.0",
40
+ "@nrwl/web": "13.10.0-rc.0",
41
+ "@nrwl/workspace": "13.10.0-rc.0",
42
42
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.1",
43
43
  "@svgr/webpack": "^6.1.2",
44
44
  "chalk": "4.1.0",
@@ -17,7 +17,7 @@ const babelDefault = () => {
17
17
  // Add babel plugin for styled-components or emotion.
18
18
  // We don't have a good way to know when a project uses one or the other, so
19
19
  // add the plugin only if the other style package isn't used.
20
- const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.appRootPath, 'package.json'));
20
+ const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.workspaceRoot, 'package.json'));
21
21
  const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
22
22
  const hasStyledComponents = !!deps['styled-components'];
23
23
  const plugins = [];
@@ -61,7 +61,7 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
61
61
  // doesn't work with `@emotion/*` >= v11
62
62
  // this is a workaround to fix that
63
63
  let resolvedEmotionAliases = {};
64
- const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.appRootPath, 'package.json'));
64
+ const packageJson = (0, devkit_1.readJsonFile)((0, path_1.join)(devkit_2.workspaceRoot, 'package.json'));
65
65
  const deps = Object.assign(Object.assign({}, packageJson.dependencies), packageJson.devDependencies);
66
66
  const emotionReactVersion = deps['@emotion/react'];
67
67
  if (emotionReactVersion &&
@@ -71,9 +71,9 @@ const webpack = (storybookWebpackConfig = {}, options) => tslib_1.__awaiter(void
71
71
  resolvedEmotionAliases = {
72
72
  resolve: {
73
73
  alias: {
74
- '@emotion/core': (0, devkit_1.joinPathFragments)(devkit_2.appRootPath, 'node_modules', '@emotion/react'),
75
- '@emotion/styled': (0, devkit_1.joinPathFragments)(devkit_2.appRootPath, 'node_modules', '@emotion/styled'),
76
- 'emotion-theming': (0, devkit_1.joinPathFragments)(devkit_2.appRootPath, 'node_modules', '@emotion/react'),
74
+ '@emotion/core': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/react'),
75
+ '@emotion/styled': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/styled'),
76
+ 'emotion-theming': (0, devkit_1.joinPathFragments)(devkit_2.workspaceRoot, 'node_modules', '@emotion/react'),
77
77
  },
78
78
  },
79
79
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,yCAA+D;AAC/D,yCAA2C;AAC3C,uDAAmE;AACnE,+DAAkE;AAClE,+EAAsF;AACtF,wDAAgD;AAChD,+BAA4B;AAC5B,mCAA6B;AAE7B,8CAA8C;AAC9C,mDAA+C;AAE/C,MAAM,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,YAAY,GAAG,GAI1B,EAAE;IACF,qDAAqD;IACrD,4EAA4E;IAC5E,6DAA6D;IAC7D,MAAM,WAAW,GAAG,IAAA,qBAAY,EAAC,IAAA,WAAI,EAAC,oBAAW,EAAE,cAAc,CAAC,CAAC,CAAC;IACpE,MAAM,IAAI,mCAAQ,WAAW,CAAC,YAAY,GAAK,WAAW,CAAC,eAAe,CAAE,CAAC;IAC7E,MAAM,mBAAm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B,CAClB;wBACD,iBAAiB,EAAE,IAAA,0BAAiB,EAClC,oBAAW,EACX,cAAc,EACd,gBAAgB,CACjB;qBACF;iBACF;aACF,CAAC;SACH;KACF;IACD,OAAO,YAAY,CAAC,KAAK,iCAElB,sBAAsB,KACzB,MAAM,kCACD,sBAAsB,CAAC,MAAM,KAChC,KAAK,EAAE;gBACL,GAAG,sBAAsB,CAAC,MAAM,CAAC,KAAK;gBACtC,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK;aAC5B,KAEH,OAAO,kCACF,sBAAsB,CAAC,OAAO,KACjC,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAI,CAAC,MAAA,sBAAsB,CAAC,OAAO,CAAC,OAAO,mCACzC,EAAE,CAAwC,EAC5C,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,CAAC,OAAO,mCAAI,EAAE,CAAC,CACvC,KAEH,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAG,CAAC,MAAA,sBAAsB,CAAC,OAAO,mCAAI,EAAE,CAAC,EACzC,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,mCAAI,EAAE,CAAC,CAC/B,KAEH,sBAAsB,CACvB,CAAC;AACJ,CAAC,CAAA,CAAC;AArHW,QAAA,OAAO,WAqHlB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/react/plugins/storybook/index.ts"],"names":[],"mappings":";;;;AAAA,yCAA+D;AAC/D,yCAA6C;AAC7C,uDAAmE;AACnE,+DAAkE;AAClE,+EAAsF;AACtF,wDAAgD;AAChD,+BAA4B;AAC5B,mCAA6B;AAE7B,8CAA8C;AAC9C,mDAA+C;AAE/C,MAAM,kBAAkB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAE1C,MAAM,YAAY,GAAG,GAI1B,EAAE;IACF,qDAAqD;IACrD,4EAA4E;IAC5E,6DAA6D;IAC7D,MAAM,WAAW,GAAG,IAAA,qBAAY,EAAC,IAAA,WAAI,EAAC,sBAAa,EAA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AAA,0BAAiB,EAChC,sBAAa,EACb,cAAc,EACd,gBAAgB,CACjB;wBACD,iBAAiB,EAAE,IAAA,0BAAiB,EAClC,sBAAa,EACb,cAAc,EACd,iBAAiB,CAClB;wBACD,iBAAiB,EAAE,IAAA,0BAAiB,EAClC,sBAAa,EACb,cAAc,EACd,gBAAgB,CACjB;qBACF;iBACF;aACF,CAAC;SACH;KACF;IACD,OAAO,YAAY,CAAC,KAAK,iCAElB,sBAAsB,KACzB,MAAM,kCACD,sBAAsB,CAAC,MAAM,KAChC,KAAK,EAAE;gBACL,GAAG,sBAAsB,CAAC,MAAM,CAAC,KAAK;gBACtC,GAAG,WAAW,CAAC,MAAM,CAAC,KAAK;aAC5B,KAEH,OAAO,kCACF,sBAAsB,CAAC,OAAO,KACjC,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAI,CAAC,MAAA,sBAAsB,CAAC,OAAO,CAAC,OAAO,mCACzC,EAAE,CAAwC,EAC5C,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,CAAC,OAAO,mCAAI,EAAE,CAAC,CACvC,KAEH,OAAO,EAAE,IAAA,4BAAY,EACnB,GAAG,CAAC,MAAA,sBAAsB,CAAC,OAAO,mCAAI,EAAE,CAAC,EACzC,GAAG,CAAC,MAAA,WAAW,CAAC,OAAO,mCAAI,EAAE,CAAC,CAC/B,KAEH,sBAAsB,CACvB,CAAC;AACJ,CAAC,CAAA,CAAC;AArHW,QAAA,OAAO,WAqHlB"}
@@ -2,4 +2,4 @@ import { Schema } from './schema';
2
2
  import { GeneratorCallback, Tree } from '@nrwl/devkit';
3
3
  export declare function applicationGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default applicationGenerator;
5
- export declare const applicationSchematic: (options: Schema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const applicationSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { Schema } from './schema';
2
2
  import { GeneratorCallback, Tree } from '@nrwl/devkit';
3
3
  export declare function componentGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
4
4
  export default componentGenerator;
5
- export declare const componentSchematic: (options: Schema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const componentSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -10,4 +10,4 @@ export declare function componentCypressGenerator(host: Tree, schema: CreateComp
10
10
  export declare function getArgsDefaultValue(property: ts.SyntaxKind): string;
11
11
  export declare function createComponentSpecFile(tree: Tree, { project, componentPath, js, cypressProject }: CreateComponentSpecFileSchema): void;
12
12
  export default componentCypressGenerator;
13
- export declare const componentCypressSchematic: (options: CreateComponentSpecFileSchema) => (tree: any, context: any) => Promise<any>;
13
+ export declare const componentCypressSchematic: (generatorOptions: CreateComponentSpecFileSchema) => (tree: any, context: any) => Promise<any>;
@@ -8,4 +8,4 @@ export declare function getArgsDefaultValue(property: ts.SyntaxKind): string;
8
8
  export declare function createComponentStoriesFile(host: Tree, { project, componentPath }: CreateComponentStoriesFileSchema): void;
9
9
  export declare function componentStoryGenerator(host: Tree, schema: CreateComponentStoriesFileSchema): Promise<void>;
10
10
  export default componentStoryGenerator;
11
- export declare const componentStorySchematic: (options: CreateComponentStoriesFileSchema) => (tree: any, context: any) => Promise<any>;
11
+ export declare const componentStorySchematic: (generatorOptions: CreateComponentStoriesFileSchema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { Tree } from '@nrwl/devkit';
2
2
  import { Schema } from './schema';
3
3
  export declare function hookGenerator(host: Tree, schema: Schema): Promise<void>;
4
4
  export default hookGenerator;
5
- export declare const hookSchematic: (options: Schema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const hookSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { InitSchema } from './schema';
2
2
  import { GeneratorCallback, Tree } from '@nrwl/devkit';
3
3
  export declare function reactInitGenerator(host: Tree, schema: InitSchema): Promise<GeneratorCallback>;
4
4
  export default reactInitGenerator;
5
- export declare const reactInitSchematic: (options: InitSchema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const reactInitSchematic: (generatorOptions: InitSchema) => (tree: any, context: any) => Promise<any>;
@@ -12,4 +12,4 @@ export interface NormalizedSchema extends Schema {
12
12
  }
13
13
  export declare function libraryGenerator(host: Tree, schema: Schema): Promise<GeneratorCallback>;
14
14
  export default libraryGenerator;
15
- export declare const librarySchematic: (options: Schema) => (tree: any, context: any) => Promise<any>;
15
+ export declare const librarySchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { Schema } from './schema';
2
2
  import { Tree } from '@nrwl/devkit';
3
3
  export declare function reduxGenerator(host: Tree, schema: Schema): Promise<import("@nrwl/devkit").GeneratorCallback>;
4
4
  export default reduxGenerator;
5
- export declare const reduxSchematic: (options: Schema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const reduxSchematic: (generatorOptions: Schema) => (tree: any, context: any) => Promise<any>;
@@ -9,4 +9,4 @@ export declare function projectRootPath(tree: Tree, sourceRoot: string, projectT
9
9
  export declare function createAllStories(tree: Tree, projectName: string, generateCypressSpecs: boolean, js: boolean, cypressProject?: string): Promise<void>;
10
10
  export declare function storiesGenerator(host: Tree, schema: StorybookStoriesSchema): Promise<void>;
11
11
  export default storiesGenerator;
12
- export declare const storiesSchematic: (options: StorybookStoriesSchema) => (tree: any, context: any) => Promise<any>;
12
+ export declare const storiesSchematic: (generatorOptions: StorybookStoriesSchema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { StorybookConfigureSchema } from './schema';
2
2
  import { Tree } from '@nrwl/devkit';
3
3
  export declare function storybookConfigurationGenerator(host: Tree, schema: StorybookConfigureSchema): Promise<import("@nrwl/devkit").GeneratorCallback>;
4
4
  export default storybookConfigurationGenerator;
5
- export declare const storybookConfigurationSchematic: (options: StorybookConfigureSchema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const storybookConfigurationSchematic: (generatorOptions: StorybookConfigureSchema) => (tree: any, context: any) => Promise<any>;
@@ -2,4 +2,4 @@ import { StorybookMigrateDefault5to6Schema } from './schema';
2
2
  import { Tree } from '@nrwl/devkit';
3
3
  export declare function storybookMigration5to6Generator(host: Tree, schema: StorybookMigrateDefault5to6Schema): import("@nrwl/devkit").GeneratorCallback;
4
4
  export default storybookMigration5to6Generator;
5
- export declare const storybookMigration5to6Schematic: (options: StorybookMigrateDefault5to6Schema) => (tree: any, context: any) => Promise<any>;
5
+ export declare const storybookMigration5to6Schematic: (generatorOptions: StorybookMigrateDefault5to6Schema) => (tree: any, context: any) => Promise<any>;
@@ -0,0 +1,3 @@
1
+ import { Tree } from '@nrwl/devkit';
2
+ export declare function updateToReact18(host: Tree): Promise<import("@nrwl/devkit").GeneratorCallback>;
3
+ export default updateToReact18;
@@ -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"}
@@ -1,7 +1,7 @@
1
1
  export declare const nxVersion = "*";
2
- export declare const reactVersion = "17.0.2";
3
- export declare const reactDomVersion = "17.0.2";
4
- export declare const reactIsVersion = "17.0.2";
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.1";
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 = "17.0.2";
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.3.0";
24
+ export declare const eslintPluginReactHooksVersion = "4.4.0";
25
25
  export declare const babelPluginStyledComponentsVersion = "1.10.7";
@@ -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-beta.7';
5
- exports.reactVersion = '17.0.2';
6
- exports.reactDomVersion = '17.0.2';
7
- exports.reactIsVersion = '17.0.2';
4
+ exports.nxVersion = '13.10.0-rc.0';
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.1';
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 = '17.0.2';
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.3.0';
27
+ exports.eslintPluginReactHooksVersion = '4.4.0';
28
28
  exports.babelPluginStyledComponentsVersion = '1.10.7';
29
29
  //# sourceMappingURL=versions.js.map