@modern-js/utils 1.7.11 → 1.8.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/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @modern-js/utils
2
2
 
3
+ ## 1.8.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 4f1889d: fix(utils): revert schema of unbundle plugin
8
+
9
+ fix(utils): 恢复 unbundle 插件相关的 schema 配置
10
+
11
+ ## 1.8.0
12
+
13
+ ### Minor Changes
14
+
15
+ - 4fc801f: chore(utils): remove unused code
16
+
17
+ chore(utils): 移除无用代码
18
+
19
+ ### Patch Changes
20
+
21
+ - c8614b8: fix: using typeof window to determine the browser environment is not accurate
22
+ fix: 使用 typeof windows 判断浏览器环境不够准确
23
+
24
+ ## 1.7.12
25
+
26
+ ### Patch Changes
27
+
28
+ - dc4676b: chore(webpack): refactor webpack config, split modules
29
+
3
30
  ## 1.7.11
4
31
 
5
32
  ### Patch Changes
@@ -32,6 +32,7 @@ export type { IOptions as GlobOptions } from '../compiled/glob';
32
32
  export type { GlobbyOptions } from '../compiled/globby';
33
33
  export type { FSWatcher, WatchOptions } from '../compiled/chokidar';
34
34
  export type { ExecaError } from '../compiled/execa';
35
+ export type { default as WebpackChain } from '../compiled/webpack-chain';
35
36
  /**
36
37
  * Lazy import some expensive modules that will slow down startup speed.
37
38
  * Notice that `csmith-tools build` can not bundle lazy imported modules.
@@ -175,12 +175,6 @@ export declare const PLUGIN_SCHEMAS: {
175
175
  })[];
176
176
  };
177
177
  }[];
178
- '@modern-js/plugin-ssr': {
179
- target: string;
180
- schema: {
181
- type: string[];
182
- };
183
- }[];
184
178
  '@modern-js/plugin-state': {
185
179
  target: string;
186
180
  schema: {
package/dist/constants.js CHANGED
@@ -89,8 +89,8 @@ exports.INTERNAL_PLUGINS = {
89
89
  cli: '@modern-js/plugin-nest/cli',
90
90
  server: '@modern-js/plugin-nest/server',
91
91
  },
92
+ // TODO: remove unbundle configs after we completely deprecate it.
92
93
  '@modern-js/plugin-unbundle': { cli: '@modern-js/plugin-unbundle' },
93
- '@modern-js/plugin-server-build': { cli: '@modern-js/plugin-server-build' },
94
94
  '@modern-js/plugin-server': {
95
95
  cli: '@modern-js/plugin-server/cli',
96
96
  server: '@modern-js/plugin-server/server',
@@ -98,7 +98,6 @@ exports.INTERNAL_PLUGINS = {
98
98
  '@modern-js/plugin-garfish': {
99
99
  cli: '@modern-js/plugin-garfish/cli',
100
100
  },
101
- '@modern-js/plugin-jarvis': { cli: '@modern-js/plugin-jarvis/cli' },
102
101
  '@modern-js/plugin-tailwindcss': { cli: '@modern-js/plugin-tailwindcss/cli' },
103
102
  '@modern-js/plugin-lambda-fc': { cli: '@modern-js/plugin-lambda-fc/cli' },
104
103
  '@modern-js/plugin-lambda-scf': { cli: '@modern-js/plugin-lambda-scf/cli' },
@@ -114,6 +113,7 @@ exports.INTERNAL_PLUGINS = {
114
113
  '@modern-js/plugin-multiprocess': {
115
114
  cli: '@modern-js/plugin-multiprocess/cli',
116
115
  },
116
+ // TODO: Maybe can remove it
117
117
  '@modern-js/plugin-nocode': { cli: '@modern-js/plugin-nocode/cli' },
118
118
  '@modern-js/plugin-design-token': {
119
119
  cli: '@modern-js/plugin-design-token/cli',
@@ -187,6 +187,7 @@ exports.PLUGIN_SCHEMAS = {
187
187
  schema: { typeof: ['string', 'object'] },
188
188
  },
189
189
  ],
190
+ // TODO: remove unbundle configs after we completely deprecate it.
190
191
  '@modern-js/plugin-unbundle': [
191
192
  {
192
193
  target: 'output.disableAutoImportStyle',
@@ -220,12 +221,6 @@ exports.PLUGIN_SCHEMAS = {
220
221
  },
221
222
  },
222
223
  ],
223
- '@modern-js/plugin-ssr': [
224
- {
225
- target: 'runtime.ssr',
226
- schema: { type: ['boolean', 'object'] },
227
- },
228
- ],
229
224
  '@modern-js/plugin-state': [
230
225
  {
231
226
  target: 'runtime.state',
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.7.11",
14
+ "version": "1.8.1",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/index.d.ts",
17
17
  "main": "./dist/index.js",
@@ -98,7 +98,7 @@
98
98
  "lodash": "^4.17.21"
99
99
  },
100
100
  "devDependencies": {
101
- "@modern-js/types": "1.5.5",
101
+ "@modern-js/types": "1.6.2",
102
102
  "@scripts/build": "0.0.0",
103
103
  "@scripts/jest-config": "0.0.0",
104
104
  "@types/jest": "^27",