@modern-js/utils 1.7.10 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +25 -0
- package/dist/compiled.d.ts +1 -0
- package/dist/constants.d.ts +0 -35
- package/dist/constants.js +1 -30
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,30 @@
|
|
1
1
|
# @modern-js/utils
|
2
2
|
|
3
|
+
## 1.8.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- 4fc801f: chore(utils): remove unused code
|
8
|
+
|
9
|
+
chore(utils): 移除无用代码
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- c8614b8: fix: using typeof window to determine the browser environment is not accurate
|
14
|
+
fix: 使用 typeof windows 判断浏览器环境不够准确
|
15
|
+
|
16
|
+
## 1.7.12
|
17
|
+
|
18
|
+
### Patch Changes
|
19
|
+
|
20
|
+
- dc4676b: chore(webpack): refactor webpack config, split modules
|
21
|
+
|
22
|
+
## 1.7.11
|
23
|
+
|
24
|
+
### Patch Changes
|
25
|
+
|
26
|
+
- nothing happen, only bump
|
27
|
+
|
3
28
|
## 1.7.10
|
4
29
|
|
5
30
|
### Patch Changes
|
package/dist/compiled.d.ts
CHANGED
@@ -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.
|
package/dist/constants.d.ts
CHANGED
@@ -134,35 +134,6 @@ 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
|
-
})[];
|
166
137
|
'@modern-js/plugin-ssg': {
|
167
138
|
target: string;
|
168
139
|
schema: {
|
@@ -175,12 +146,6 @@ export declare const PLUGIN_SCHEMAS: {
|
|
175
146
|
})[];
|
176
147
|
};
|
177
148
|
}[];
|
178
|
-
'@modern-js/plugin-ssr': {
|
179
|
-
target: string;
|
180
|
-
schema: {
|
181
|
-
type: string[];
|
182
|
-
};
|
183
|
-
}[];
|
184
149
|
'@modern-js/plugin-state': {
|
185
150
|
target: string;
|
186
151
|
schema: {
|
package/dist/constants.js
CHANGED
@@ -89,8 +89,6 @@ exports.INTERNAL_PLUGINS = {
|
|
89
89
|
cli: '@modern-js/plugin-nest/cli',
|
90
90
|
server: '@modern-js/plugin-nest/server',
|
91
91
|
},
|
92
|
-
'@modern-js/plugin-unbundle': { cli: '@modern-js/plugin-unbundle' },
|
93
|
-
'@modern-js/plugin-server-build': { cli: '@modern-js/plugin-server-build' },
|
94
92
|
'@modern-js/plugin-server': {
|
95
93
|
cli: '@modern-js/plugin-server/cli',
|
96
94
|
server: '@modern-js/plugin-server/server',
|
@@ -98,7 +96,6 @@ exports.INTERNAL_PLUGINS = {
|
|
98
96
|
'@modern-js/plugin-garfish': {
|
99
97
|
cli: '@modern-js/plugin-garfish/cli',
|
100
98
|
},
|
101
|
-
'@modern-js/plugin-jarvis': { cli: '@modern-js/plugin-jarvis/cli' },
|
102
99
|
'@modern-js/plugin-tailwindcss': { cli: '@modern-js/plugin-tailwindcss/cli' },
|
103
100
|
'@modern-js/plugin-lambda-fc': { cli: '@modern-js/plugin-lambda-fc/cli' },
|
104
101
|
'@modern-js/plugin-lambda-scf': { cli: '@modern-js/plugin-lambda-scf/cli' },
|
@@ -114,6 +111,7 @@ exports.INTERNAL_PLUGINS = {
|
|
114
111
|
'@modern-js/plugin-multiprocess': {
|
115
112
|
cli: '@modern-js/plugin-multiprocess/cli',
|
116
113
|
},
|
114
|
+
// TODO: Maybe can remove it
|
117
115
|
'@modern-js/plugin-nocode': { cli: '@modern-js/plugin-nocode/cli' },
|
118
116
|
'@modern-js/plugin-design-token': {
|
119
117
|
cli: '@modern-js/plugin-design-token/cli',
|
@@ -187,27 +185,6 @@ exports.PLUGIN_SCHEMAS = {
|
|
187
185
|
schema: { typeof: ['string', 'object'] },
|
188
186
|
},
|
189
187
|
],
|
190
|
-
'@modern-js/plugin-unbundle': [
|
191
|
-
{
|
192
|
-
target: 'output.disableAutoImportStyle',
|
193
|
-
schema: { type: 'boolean' },
|
194
|
-
},
|
195
|
-
{
|
196
|
-
target: 'dev.unbundle',
|
197
|
-
schema: {
|
198
|
-
type: 'object',
|
199
|
-
properties: {
|
200
|
-
ignore: {
|
201
|
-
type: ['string', 'array'],
|
202
|
-
items: { type: 'string' },
|
203
|
-
},
|
204
|
-
ignoreModuleCache: { type: 'boolean' },
|
205
|
-
clearPdnCache: { type: 'boolean' },
|
206
|
-
pdnHost: { type: 'string' },
|
207
|
-
},
|
208
|
-
},
|
209
|
-
},
|
210
|
-
],
|
211
188
|
'@modern-js/plugin-ssg': [
|
212
189
|
{
|
213
190
|
target: 'output.ssg',
|
@@ -220,12 +197,6 @@ exports.PLUGIN_SCHEMAS = {
|
|
220
197
|
},
|
221
198
|
},
|
222
199
|
],
|
223
|
-
'@modern-js/plugin-ssr': [
|
224
|
-
{
|
225
|
-
target: 'runtime.ssr',
|
226
|
-
schema: { type: ['boolean', 'object'] },
|
227
|
-
},
|
228
|
-
],
|
229
200
|
'@modern-js/plugin-state': [
|
230
201
|
{
|
231
202
|
target: 'runtime.state',
|
package/package.json
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
"modern",
|
12
12
|
"modern.js"
|
13
13
|
],
|
14
|
-
"version": "1.
|
14
|
+
"version": "1.8.0",
|
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.
|
101
|
+
"@modern-js/types": "1.6.0",
|
102
102
|
"@scripts/build": "0.0.0",
|
103
103
|
"@scripts/jest-config": "0.0.0",
|
104
104
|
"@types/jest": "^27",
|