@modern-js/types 2.20.0 → 2.21.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 +16 -0
- package/package.json +4 -4
- package/server/context.d.ts +2 -0
- package/server/devServer.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @modern-js/types
|
|
2
2
|
|
|
3
|
+
## 2.21.1
|
|
4
|
+
|
|
5
|
+
## 2.21.0
|
|
6
|
+
|
|
7
|
+
### Patch Changes
|
|
8
|
+
|
|
9
|
+
- 1ef03dc: feat(dev-server): enable gzip compression, add devServer.compress config
|
|
10
|
+
|
|
11
|
+
feat(dev-server): 默认启用 gzip 压缩,新增 devServer.compress 配置项
|
|
12
|
+
|
|
13
|
+
- 43b4e83: feat: support security.nonce for add nonce attribute on script tag
|
|
14
|
+
feat: 支持 security.nonce 配置,为 script 标签添加 nonce 属性
|
|
15
|
+
- ad78387: chore(deps): bump babel-related dependencies to latest version
|
|
16
|
+
|
|
17
|
+
chore(deps): 升级 babel 相关依赖到最新版本
|
|
18
|
+
|
|
3
19
|
## 2.20.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"modern",
|
|
16
16
|
"modern.js"
|
|
17
17
|
],
|
|
18
|
-
"version": "2.
|
|
18
|
+
"version": "2.21.1",
|
|
19
19
|
"types": "./index.d.ts",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@types/babel__core": "^7.
|
|
42
|
+
"@types/babel__core": "^7.20.0",
|
|
43
43
|
"@types/jest": "^29",
|
|
44
44
|
"@types/node": "^14",
|
|
45
45
|
"http-proxy-middleware": "^2.0.4",
|
|
46
46
|
"jest": "^29",
|
|
47
47
|
"type-fest": "2.15.0",
|
|
48
|
-
"@scripts/build": "2.
|
|
49
|
-
"@scripts/jest-config": "2.
|
|
48
|
+
"@scripts/build": "2.21.1",
|
|
49
|
+
"@scripts/jest-config": "2.21.1"
|
|
50
50
|
},
|
|
51
51
|
"sideEffects": false,
|
|
52
52
|
"publishConfig": {
|
package/server/context.d.ts
CHANGED
package/server/devServer.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ export type DevServerOptions = {
|
|
|
24
24
|
host?: string;
|
|
25
25
|
protocol?: string;
|
|
26
26
|
};
|
|
27
|
+
/** Whether to enable gzip compression */
|
|
28
|
+
compress?: boolean;
|
|
27
29
|
devMiddleware?: {
|
|
28
30
|
writeToDisk?: boolean | ((filename: string) => boolean);
|
|
29
31
|
outputFileSystem?: Record<string, any>;
|