@modern-js/plugin-testing 2.19.1 → 2.20.1-alpha.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (143) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/base/config/resolver.js +2 -6
  3. package/dist/cjs/base/config/testConfigOperator.js +5 -17
  4. package/dist/cjs/base/config/transformer/babelTransformer.js +2 -6
  5. package/dist/cjs/base/index.js +2 -14
  6. package/dist/cjs/base/runJest.js +2 -6
  7. package/dist/cjs/base/utils.js +3 -7
  8. package/dist/cjs/cli/bff/index.js +5 -6
  9. package/dist/cjs/cli/bff/mockAPI.js +3 -42
  10. package/dist/cjs/cli/bff/setup.js +3 -7
  11. package/dist/cjs/cli/bff/utils/index.js +2 -6
  12. package/dist/cjs/cli/index.js +4 -8
  13. package/dist/cjs/cli/test.js +2 -6
  14. package/dist/cjs/index.js +2 -14
  15. package/dist/cjs/runtime-testing/app.js +5 -21
  16. package/dist/cjs/runtime-testing/base.js +4 -20
  17. package/dist/cjs/runtime-testing/customRender.js +3 -7
  18. package/dist/cjs/runtime-testing/index.js +3 -15
  19. package/dist/cjs/runtime-testing/reduck.js +4 -8
  20. package/dist/cjs/runtime-testing/request.js +2 -6
  21. package/dist/esm/base/config/index.js +3 -132
  22. package/dist/esm/base/config/patches/index.js +4 -133
  23. package/dist/esm/base/config/testConfigOperator.js +4 -50
  24. package/dist/esm/base/runJest.js +5 -134
  25. package/dist/esm/base/utils.js +1 -28
  26. package/dist/esm/cli/bff/app.js +4 -133
  27. package/dist/esm/cli/bff/index.js +9 -161
  28. package/dist/esm/cli/bff/mockAPI.js +4 -100
  29. package/dist/esm/cli/bff/setup.js +4 -133
  30. package/dist/esm/cli/bff/utils/index.js +1 -28
  31. package/dist/esm/cli/index.js +5 -146
  32. package/dist/esm/cli/test.js +3 -132
  33. package/dist/esm/runtime-testing/app.js +4 -50
  34. package/dist/esm/runtime-testing/customRender.js +1 -28
  35. package/dist/esm/runtime-testing/reduck.js +2 -52
  36. package/dist/esm/runtime-testing/request.js +2 -44
  37. package/dist/esm/runtime-testing/resolvePlugins.js +1 -28
  38. package/dist/esm-node/base/config/testConfigOperator.js +1 -13
  39. package/dist/esm-node/cli/bff/index.js +3 -0
  40. package/dist/esm-node/runtime-testing/app.js +1 -13
  41. package/dist/js/modern/base/config/index.js +36 -0
  42. package/dist/js/modern/base/config/patches/assetsModule.js +11 -0
  43. package/dist/js/modern/base/config/patches/filemock.js +4 -0
  44. package/dist/js/modern/base/config/patches/index.js +34 -0
  45. package/dist/js/modern/base/config/patches/transformer.js +38 -0
  46. package/dist/js/modern/base/config/resolver.js +21 -0
  47. package/dist/js/modern/base/config/testConfigOperator.js +69 -0
  48. package/dist/js/modern/base/config/transformer/babelTransformer.js +19 -0
  49. package/dist/js/modern/base/hook.js +12 -0
  50. package/dist/js/modern/base/index.js +14 -0
  51. package/dist/js/modern/base/runJest.js +102 -0
  52. package/dist/js/modern/base/types/index.js +0 -0
  53. package/dist/js/modern/base/utils.js +66 -0
  54. package/dist/js/modern/cli/bff/app.js +58 -0
  55. package/dist/js/modern/cli/bff/constant.js +4 -0
  56. package/dist/js/modern/cli/bff/index.js +149 -0
  57. package/dist/js/modern/cli/bff/mockAPI.js +109 -0
  58. package/dist/js/modern/cli/bff/setup.js +75 -0
  59. package/dist/js/modern/cli/bff/utils/index.js +37 -0
  60. package/dist/js/modern/cli/index.js +115 -0
  61. package/dist/js/modern/cli/test.js +61 -0
  62. package/dist/js/modern/constant.js +4 -0
  63. package/dist/js/modern/index.js +3 -0
  64. package/dist/js/modern/runtime-testing/app.js +48 -0
  65. package/dist/js/modern/runtime-testing/base.js +7 -0
  66. package/dist/js/modern/runtime-testing/customRender.js +25 -0
  67. package/dist/js/modern/runtime-testing/index.js +2 -0
  68. package/dist/js/modern/runtime-testing/reduck.js +55 -0
  69. package/dist/js/modern/runtime-testing/request.js +16 -0
  70. package/dist/js/modern/runtime-testing/resolvePlugins.js +33 -0
  71. package/dist/js/node/base/config/index.js +67 -0
  72. package/dist/js/node/base/config/patches/assetsModule.js +40 -0
  73. package/dist/js/node/base/config/patches/filemock.js +25 -0
  74. package/dist/js/node/base/config/patches/index.js +57 -0
  75. package/dist/js/node/base/config/patches/transformer.js +67 -0
  76. package/dist/js/node/base/config/resolver.js +30 -0
  77. package/dist/js/node/base/config/testConfigOperator.js +90 -0
  78. package/dist/js/node/base/config/transformer/babelTransformer.js +46 -0
  79. package/dist/js/node/base/hook.js +37 -0
  80. package/dist/js/node/base/index.js +43 -0
  81. package/dist/js/node/base/runJest.js +132 -0
  82. package/dist/js/node/base/types/index.js +15 -0
  83. package/dist/js/node/base/utils.js +95 -0
  84. package/dist/js/node/cli/bff/app.js +84 -0
  85. package/dist/js/node/cli/bff/constant.js +27 -0
  86. package/dist/js/node/cli/bff/index.js +173 -0
  87. package/dist/js/node/cli/bff/mockAPI.js +134 -0
  88. package/dist/js/node/cli/bff/setup.js +84 -0
  89. package/dist/js/node/cli/bff/utils/index.js +64 -0
  90. package/dist/js/node/cli/index.js +135 -0
  91. package/dist/js/node/cli/test.js +88 -0
  92. package/dist/js/node/constant.js +27 -0
  93. package/dist/js/node/index.js +19 -0
  94. package/dist/js/node/runtime-testing/app.js +73 -0
  95. package/dist/js/node/runtime-testing/base.js +38 -0
  96. package/dist/js/node/runtime-testing/customRender.js +50 -0
  97. package/dist/js/node/runtime-testing/index.js +18 -0
  98. package/dist/js/node/runtime-testing/reduck.js +85 -0
  99. package/dist/js/node/runtime-testing/request.js +45 -0
  100. package/dist/js/node/runtime-testing/resolvePlugins.js +52 -0
  101. package/dist/js/treeshaking/base/config/index.js +154 -0
  102. package/dist/js/treeshaking/base/config/patches/assetsModule.js +9 -0
  103. package/dist/js/treeshaking/base/config/patches/filemock.js +2 -0
  104. package/dist/js/treeshaking/base/config/patches/index.js +225 -0
  105. package/dist/js/treeshaking/base/config/patches/transformer.js +36 -0
  106. package/dist/js/treeshaking/base/config/resolver.js +37 -0
  107. package/dist/js/treeshaking/base/config/testConfigOperator.js +127 -0
  108. package/dist/js/treeshaking/base/config/transformer/babelTransformer.js +17 -0
  109. package/dist/js/treeshaking/base/hook.js +8 -0
  110. package/dist/js/treeshaking/base/index.js +7 -0
  111. package/dist/js/treeshaking/base/runJest.js +292 -0
  112. package/dist/js/treeshaking/base/types/index.js +1 -0
  113. package/dist/js/treeshaking/base/utils.js +76 -0
  114. package/dist/js/treeshaking/cli/bff/app.js +200 -0
  115. package/dist/js/treeshaking/cli/bff/constant.js +2 -0
  116. package/dist/js/treeshaking/cli/bff/index.js +297 -0
  117. package/dist/js/treeshaking/cli/bff/mockAPI.js +188 -0
  118. package/dist/js/treeshaking/cli/bff/setup.js +192 -0
  119. package/dist/js/treeshaking/cli/bff/utils/index.js +47 -0
  120. package/dist/js/treeshaking/cli/index.js +255 -0
  121. package/dist/js/treeshaking/cli/test.js +180 -0
  122. package/dist/js/treeshaking/constant.js +2 -0
  123. package/dist/js/treeshaking/index.js +3 -0
  124. package/dist/js/treeshaking/runtime-testing/app.js +90 -0
  125. package/dist/js/treeshaking/runtime-testing/base.js +4 -0
  126. package/dist/js/treeshaking/runtime-testing/customRender.js +41 -0
  127. package/dist/js/treeshaking/runtime-testing/index.js +2 -0
  128. package/dist/js/treeshaking/runtime-testing/reduck.js +89 -0
  129. package/dist/js/treeshaking/runtime-testing/request.js +51 -0
  130. package/dist/js/treeshaking/runtime-testing/resolvePlugins.js +46 -0
  131. package/dist/types/base/config/index.d.ts +0 -1
  132. package/dist/types/base/config/patches/assetsModule.d.ts +0 -1
  133. package/dist/types/base/config/patches/filemock.d.ts +0 -1
  134. package/dist/types/base/config/patches/transformer.d.ts +0 -1
  135. package/dist/types/base/config/testConfigOperator.d.ts +0 -2
  136. package/dist/types/base/runJest.d.ts +0 -2
  137. package/dist/types/base/utils.d.ts +0 -1
  138. package/dist/types/cli/bff/index.d.ts +0 -2
  139. package/dist/types/cli/bff/mockAPI.d.ts +0 -1
  140. package/dist/types/cli/index.d.ts +0 -2
  141. package/dist/types/runtime-testing/app.d.ts +0 -3
  142. package/dist/types/runtime-testing/customRender.d.ts +0 -2
  143. package/package.json +18 -18
@@ -0,0 +1,89 @@
1
+ function _defineProperty(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _objectSpread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _defineProperty(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ function ownKeys(object, enumerableOnly) {
30
+ var keys = Object.keys(object);
31
+ if (Object.getOwnPropertySymbols) {
32
+ var symbols = Object.getOwnPropertySymbols(object);
33
+ if (enumerableOnly) {
34
+ symbols = symbols.filter(function(sym) {
35
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
+ });
37
+ }
38
+ keys.push.apply(keys, symbols);
39
+ }
40
+ return keys;
41
+ }
42
+ function _objectSpreadProps(target, source) {
43
+ source = source != null ? source : {};
44
+ if (Object.getOwnPropertyDescriptors) {
45
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
+ } else {
47
+ ownKeys(Object(source)).forEach(function(key) {
48
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
+ });
50
+ }
51
+ return target;
52
+ }
53
+ import { createStore as originCreateStore } from "@modern-js-reduck/store";
54
+ import effectsPlugin from "@modern-js-reduck/plugin-effects";
55
+ import autoActionsPlugin from "@modern-js-reduck/plugin-auto-actions";
56
+ import immerPlugin from "@modern-js-reduck/plugin-immutable";
57
+ import { MODERNJS_CONFIG_KEY } from "../constant";
58
+ var effects = function() {
59
+ return effectsPlugin;
60
+ };
61
+ var immer = function() {
62
+ return immerPlugin;
63
+ };
64
+ var autoActions = function() {
65
+ return autoActionsPlugin;
66
+ };
67
+ var createStore = function(props) {
68
+ var createStatePlugins = function() {
69
+ var ref;
70
+ var modernConfig = global[MODERNJS_CONFIG_KEY];
71
+ var stateConfig = modernConfig === null || modernConfig === void 0 ? void 0 : (ref = modernConfig.runtime) === null || ref === void 0 ? void 0 : ref.state;
72
+ var plugins = [];
73
+ if ((stateConfig === null || stateConfig === void 0 ? void 0 : stateConfig.effects) !== false) {
74
+ plugins.push(effects());
75
+ }
76
+ if ((stateConfig === null || stateConfig === void 0 ? void 0 : stateConfig.autoActions) !== false) {
77
+ plugins.push(autoActions());
78
+ }
79
+ if ((stateConfig === null || stateConfig === void 0 ? void 0 : stateConfig.immer) !== false) {
80
+ plugins.push(immer());
81
+ }
82
+ return ((props === null || props === void 0 ? void 0 : props.plugins) || []).concat(plugins);
83
+ };
84
+ var config = _objectSpreadProps(_objectSpread({}, props || {}), {
85
+ plugins: createStatePlugins()
86
+ });
87
+ return originCreateStore(config);
88
+ };
89
+ export { autoActions, createStore, effects, immer };
@@ -0,0 +1,51 @@
1
+ function _arrayLikeToArray(arr, len) {
2
+ if (len == null || len > arr.length) len = arr.length;
3
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
4
+ return arr2;
5
+ }
6
+ function _arrayWithHoles(arr) {
7
+ if (Array.isArray(arr)) return arr;
8
+ }
9
+ function _arrayWithoutHoles(arr) {
10
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
11
+ }
12
+ function _iterableToArray(iter) {
13
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
14
+ }
15
+ function _nonIterableRest() {
16
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
17
+ }
18
+ function _nonIterableSpread() {
19
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20
+ }
21
+ function _toArray(arr) {
22
+ return _arrayWithHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableRest();
23
+ }
24
+ function _toConsumableArray(arr) {
25
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
26
+ }
27
+ function _unsupportedIterableToArray(o, minLen) {
28
+ if (!o) return;
29
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
30
+ var n = Object.prototype.toString.call(o).slice(8, -1);
31
+ if (n === "Object" && o.constructor) n = o.constructor.name;
32
+ if (n === "Map" || n === "Set") return Array.from(n);
33
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
34
+ }
35
+ import supertest from "supertest";
36
+ import { getApp } from "../cli/bff/app";
37
+ function request() {
38
+ for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
39
+ args[_key] = arguments[_key];
40
+ }
41
+ var _args = _toArray(args), fn = _args[0], extraArgs = _args.slice(1);
42
+ var app = getApp();
43
+ if (!fn) {
44
+ return supertest(app);
45
+ }
46
+ fn.returnHttp = true;
47
+ var res = fn.apply(void 0, _toConsumableArray(extraArgs));
48
+ fn.returnHttp = false;
49
+ return res;
50
+ }
51
+ export { request };
@@ -0,0 +1,46 @@
1
+ function _defineProperty(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+ return obj;
13
+ }
14
+ function _objectSpread(target) {
15
+ for(var i = 1; i < arguments.length; i++){
16
+ var source = arguments[i] != null ? arguments[i] : {};
17
+ var ownKeys = Object.keys(source);
18
+ if (typeof Object.getOwnPropertySymbols === "function") {
19
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
+ }));
22
+ }
23
+ ownKeys.forEach(function(key) {
24
+ _defineProperty(target, key, source[key]);
25
+ });
26
+ }
27
+ return target;
28
+ }
29
+ var allowedFeatures = [
30
+ "router",
31
+ "state"
32
+ ];
33
+ function resolvePlugins(features) {
34
+ var plugins = [];
35
+ if (!features) {
36
+ return plugins;
37
+ }
38
+ Object.keys(features).forEach(function(feature) {
39
+ if (allowedFeatures.includes(feature)) {
40
+ var curPluginRes = require("@modern-js/runtime/plugins")[feature](_objectSpread({}, features[feature]));
41
+ plugins.push(curPluginRes);
42
+ }
43
+ });
44
+ return plugins;
45
+ }
46
+ export { resolvePlugins as default };
@@ -5,7 +5,6 @@ import { TestConfigOperator } from './testConfigOperator';
5
5
  /**
6
6
  * Parse jest config
7
7
  */
8
-
9
8
  declare const getJestUtils: (testConfig: TestConfig) => TestConfigOperator;
10
9
  declare const patchConfig: (testOperator: TestConfigOperator) => Promise<JestConfigTypes.InitialOptions>;
11
10
  export declare const DEFAULT_RESOLVER_PATH: string;
@@ -2,5 +2,4 @@ import { TestConfigOperator } from '../testConfigOperator';
2
2
  /**
3
3
  * Merge config from testConfig.jest
4
4
  */
5
-
6
5
  export declare const patchAssetsModule: (testOperator: TestConfigOperator) => void;
@@ -1,3 +1,2 @@
1
1
  declare const _default: "test-file-stub";
2
-
3
2
  export default _default;
@@ -2,5 +2,4 @@ import { TestConfigOperator } from '../testConfigOperator';
2
2
  /**
3
3
  * Map `TestConfig.transformer` to jest config
4
4
  */
5
-
6
5
  export declare const patchTransformer: (testOperator: TestConfigOperator) => void;
@@ -1,5 +1,4 @@
1
1
  import { JestConfig, TestConfig } from '../types';
2
-
3
2
  declare class TestConfigOperator {
4
3
  private _testConfig;
5
4
  private _jestConfig;
@@ -16,5 +15,4 @@ declare class TestConfigOperator {
16
15
  }): void;
17
16
  getFinalConfig(): any;
18
17
  }
19
-
20
18
  export { TestConfigOperator };
@@ -14,12 +14,10 @@ type Argv = Omit<Config.Argv, '_' | '$0'>;
14
14
  /**
15
15
  * Node API: execute jest
16
16
  */
17
-
18
17
  export declare function runJest(config: Argv, pwd?: string): Promise<void>;
19
18
  /**
20
19
  * Node API: run test
21
20
  */
22
-
23
21
  export declare function runTest(api: PluginAPI<{
24
22
  hooks: Hooks;
25
23
  userConfig: UserConfig;
@@ -6,7 +6,6 @@ interface TSConfig {
6
6
  /**
7
7
  * Read `compilerOptions` in the current pwd's tsconfig.json file
8
8
  */
9
-
10
9
  export declare const readCompilerOptions: (pwd?: string, filename?: string) => TSConfig['compilerOptions'];
11
10
  export declare const getModuleNameMapper: (alias: any) => any;
12
11
  export {};
@@ -16,11 +16,9 @@ export declare const setJestConfigForBFF: ({
16
16
  routes: any[];
17
17
  utils: TestConfigOperator;
18
18
  }) => Promise<void>;
19
-
20
19
  declare const _default: () => CliPlugin<{
21
20
  hooks: Hooks;
22
21
  userConfig: UserConfig;
23
22
  normalizedConfig: Required<UserConfig>;
24
23
  }>;
25
-
26
24
  export default _default;
@@ -1,3 +1,2 @@
1
1
  declare const _default: (mockApiInfosByFile: Record<string, any[]>) => void;
2
-
3
2
  export default _default;
@@ -3,11 +3,9 @@ import { TestConfigOperator } from '../base';
3
3
  import type { Hooks } from '../base/hook';
4
4
  import type { UserConfig } from '../base/config';
5
5
  export declare const mergeUserJestConfig: (testUtils: TestConfigOperator) => void;
6
-
7
6
  declare const _default: () => CliPlugin<{
8
7
  hooks: Hooks;
9
8
  userConfig: UserConfig;
10
9
  normalizedConfig: Required<UserConfig>;
11
10
  }>;
12
-
13
11
  export default _default;
@@ -4,7 +4,6 @@ interface CreateAppProps {
4
4
  entry?: string;
5
5
  children?: React.ReactElement;
6
6
  }
7
-
8
7
  declare class ModernRuntime {
9
8
  private options;
10
9
  constructor(options: UserConfig<{
@@ -21,7 +20,5 @@ declare class ModernRuntime {
21
20
  }>): void;
22
21
  createApp(props?: CreateAppProps): React.ComponentType<any>;
23
22
  }
24
-
25
23
  declare const _default: ModernRuntime;
26
-
27
24
  export default _default;
@@ -1,5 +1,3 @@
1
1
  import { render } from '@testing-library/react';
2
-
3
2
  declare const _default: typeof render;
4
-
5
3
  export default _default;
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.19.1",
18
+ "version": "2.20.1-alpha.0",
19
19
  "jsnext:source": "./src/cli/index.ts",
20
20
  "types": "./dist/types/cli/index.d.ts",
21
21
  "main": "./dist/cjs/cli/index.js",
@@ -97,9 +97,8 @@
97
97
  }
98
98
  },
99
99
  "dependencies": {
100
- "@babel/core": "^7.18.0",
101
- "@babel/preset-env": "^7.18.0",
102
- "@babel/runtime": "^7.18.0",
100
+ "@babel/core": "^7.21.8",
101
+ "@babel/preset-env": "^7.21.5",
103
102
  "@modern-js-reduck/plugin-auto-actions": "^1.0.2",
104
103
  "@modern-js-reduck/plugin-effects": "^1.0.2",
105
104
  "@modern-js-reduck/plugin-immutable": "^1.0.1",
@@ -115,18 +114,19 @@
115
114
  "jest": "^29.5.0",
116
115
  "jest-environment-jsdom": "^29.5.0",
117
116
  "@jest/types": "^29.5.0",
118
- "ts-jest": "^29.0.5",
117
+ "ts-jest": "^29.1.0",
119
118
  "yargs": "^17.0.1",
120
- "@modern-js/babel-compiler": "2.19.1",
121
- "@modern-js/utils": "2.19.1",
122
- "@modern-js/babel-preset-app": "2.19.1",
123
- "@modern-js/plugin": "2.19.1",
124
- "@modern-js/prod-server": "2.19.1"
119
+ "@swc/helpers": "0.5.1",
120
+ "@modern-js/babel-compiler": "2.20.0",
121
+ "@modern-js/utils": "2.20.0",
122
+ "@modern-js/plugin": "2.20.0",
123
+ "@modern-js/babel-preset-app": "2.20.0",
124
+ "@modern-js/prod-server": "2.20.0"
125
125
  },
126
126
  "peerDependencies": {
127
127
  "react": ">=17",
128
128
  "react-dom": ">=17",
129
- "@modern-js/runtime": "^2.19.1"
129
+ "@modern-js/runtime": "^2.20.0"
130
130
  },
131
131
  "peerDependenciesMeta": {
132
132
  "@modern-js/runtime": {
@@ -140,13 +140,13 @@
140
140
  "@types/supertest": "^2.0.11",
141
141
  "@types/node": "^14",
142
142
  "@types/yargs": "^17.0.2",
143
- "typescript": "^4",
144
- "@modern-js/core": "2.19.1",
145
- "@modern-js/types": "2.19.1",
146
- "@modern-js/runtime": "2.19.1",
147
- "@modern-js/bff-core": "2.19.1",
148
- "@scripts/build": "2.19.1",
149
- "@scripts/jest-config": "2.19.1"
143
+ "typescript": "^5",
144
+ "@modern-js/core": "2.20.0",
145
+ "@modern-js/types": "2.20.0",
146
+ "@modern-js/runtime": "2.20.0",
147
+ "@scripts/build": "2.20.0",
148
+ "@scripts/jest-config": "2.20.0",
149
+ "@modern-js/bff-core": "2.20.0"
150
150
  },
151
151
  "sideEffects": false,
152
152
  "modernConfig": {},