@modern-js/utils 1.8.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.8.0
4
12
 
5
13
  ### Minor Changes
@@ -134,6 +134,35 @@ export declare const PLUGIN_SCHEMAS: {
134
134
  typeof: string[];
135
135
  };
136
136
  }[];
137
+ '@modern-js/plugin-unbundle': ({
138
+ target: string;
139
+ schema: {
140
+ type: string;
141
+ properties?: undefined;
142
+ };
143
+ } | {
144
+ target: string;
145
+ schema: {
146
+ type: string;
147
+ properties: {
148
+ ignore: {
149
+ type: string[];
150
+ items: {
151
+ type: string;
152
+ };
153
+ };
154
+ ignoreModuleCache: {
155
+ type: string;
156
+ };
157
+ clearPdnCache: {
158
+ type: string;
159
+ };
160
+ pdnHost: {
161
+ type: string;
162
+ };
163
+ };
164
+ };
165
+ })[];
137
166
  '@modern-js/plugin-ssg': {
138
167
  target: string;
139
168
  schema: {
package/dist/constants.js CHANGED
@@ -89,6 +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.
93
+ '@modern-js/plugin-unbundle': { cli: '@modern-js/plugin-unbundle' },
92
94
  '@modern-js/plugin-server': {
93
95
  cli: '@modern-js/plugin-server/cli',
94
96
  server: '@modern-js/plugin-server/server',
@@ -185,6 +187,28 @@ exports.PLUGIN_SCHEMAS = {
185
187
  schema: { typeof: ['string', 'object'] },
186
188
  },
187
189
  ],
190
+ // TODO: remove unbundle configs after we completely deprecate it.
191
+ '@modern-js/plugin-unbundle': [
192
+ {
193
+ target: 'output.disableAutoImportStyle',
194
+ schema: { type: 'boolean' },
195
+ },
196
+ {
197
+ target: 'dev.unbundle',
198
+ schema: {
199
+ type: 'object',
200
+ properties: {
201
+ ignore: {
202
+ type: ['string', 'array'],
203
+ items: { type: 'string' },
204
+ },
205
+ ignoreModuleCache: { type: 'boolean' },
206
+ clearPdnCache: { type: 'boolean' },
207
+ pdnHost: { type: 'string' },
208
+ },
209
+ },
210
+ },
211
+ ],
188
212
  '@modern-js/plugin-ssg': [
189
213
  {
190
214
  target: 'output.ssg',
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.8.0",
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.6.0",
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",