@modern-js/utils 1.7.12 → 1.8.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
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
+
3
16
  ## 1.7.12
4
17
 
5
18
  ### Patch Changes
@@ -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: {
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',
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.7.12",
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.5.6",
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",