@modern-js/runtime 1.1.0 → 1.1.3
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 +37 -70
- package/dist/js/modern/exports/request.js +1 -0
- package/dist/js/node/exports/request.js +13 -0
- package/dist/js/treeshaking/exports/request.js +1 -0
- package/dist/types/exports/request.d.ts +1 -0
- package/package.json +38 -15
- package/src/exports/request.ts +1 -0
- package/tsconfig.json +1 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,85 +1,52 @@
|
|
|
1
1
|
# @modern-js/runtime
|
|
2
2
|
|
|
3
|
-
## 1.1.
|
|
4
|
-
|
|
5
|
-
### Minor Changes
|
|
6
|
-
|
|
7
|
-
- 96119db2: Relese v1.1.0
|
|
8
|
-
|
|
9
|
-
1. 全面支持 Windows 平台
|
|
10
|
-
|
|
11
|
-
ISSUE:
|
|
12
|
-
|
|
13
|
-
- [182](https://github.com/modern-js-dev/modern.js/issues/182)
|
|
14
|
-
- [236](https://github.com/modern-js-dev/modern.js/issues/236)
|
|
15
|
-
|
|
16
|
-
PR
|
|
17
|
-
|
|
18
|
-
- [219](https://github.com/modern-js-dev/modern.js/pull/219)
|
|
19
|
-
- [247](https://github.com/modern-js-dev/modern.js/pull/247)
|
|
20
|
-
- [249](https://github.com/modern-js-dev/modern.js/pull/249)
|
|
21
|
-
- [253](https://github.com/modern-js-dev/modern.js/pull/253)
|
|
22
|
-
- [268](https://github.com/modern-js-dev/modern.js/pull/268)
|
|
23
|
-
- [270](https://github.com/modern-js-dev/modern.js/pull/270)
|
|
24
|
-
- [273](https://github.com/modern-js-dev/modern.js/pull/273)
|
|
25
|
-
- [276](https://github.com/modern-js-dev/modern.js/pull/276)
|
|
26
|
-
|
|
27
|
-
2. 修复 Unbundled 模式启用问题
|
|
28
|
-
|
|
29
|
-
ISSUE
|
|
30
|
-
|
|
31
|
-
- [186](https://github.com/modern-js-dev/modern.js/issues/186)
|
|
32
|
-
- [224](https://github.com/modern-js-dev/modern.js/issues/224)
|
|
33
|
-
- [225](https://github.com/modern-js-dev/modern.js/issues/225)
|
|
34
|
-
- [238](https://github.com/modern-js-dev/modern.js/issues/238)
|
|
35
|
-
|
|
36
|
-
PR
|
|
37
|
-
|
|
38
|
-
- [226](https://github.com/modern-js-dev/modern.js/pull/226)
|
|
39
|
-
- [264](https://github.com/modern-js-dev/modern.js/pull/264)
|
|
40
|
-
- [codesmith-12](https://github.com/modern-js-dev/codesmith/pull/12)
|
|
41
|
-
|
|
42
|
-
3. 修复模块工程方案 .npmignore 文件初始化未生成
|
|
3
|
+
## 1.1.3
|
|
43
4
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- [198](https://github.com/modern-js-dev/modern.js/issues/198)
|
|
47
|
-
|
|
48
|
-
PR
|
|
49
|
-
|
|
50
|
-
- [209](https://github.com/modern-js-dev/modern.js/pull/209)
|
|
51
|
-
|
|
52
|
-
4. 修复 Storybook 使用时浏览器打开页面报错
|
|
53
|
-
|
|
54
|
-
ISSUE
|
|
55
|
-
|
|
56
|
-
- [228](https://github.com/modern-js-dev/modern.js/issues/228)
|
|
57
|
-
|
|
58
|
-
PR
|
|
59
|
-
|
|
60
|
-
- [254](https://github.com/modern-js-dev/modern.js/pull/254)
|
|
61
|
-
|
|
62
|
-
5. 修复 BFF 一体化开发不支持 unbundle 模式
|
|
5
|
+
### Patch Changes
|
|
63
6
|
|
|
64
|
-
|
|
7
|
+
- b8deff8b: feat: add isBrowser in runtime context
|
|
8
|
+
- Updated dependencies [e63591cc]
|
|
9
|
+
- @modern-js/plugin-router@1.1.3
|
|
10
|
+
- @modern-js/runtime-core@1.1.4
|
|
65
11
|
|
|
66
|
-
|
|
67
|
-
- [257](https://github.com/modern-js-dev/modern.js/issues/257)
|
|
12
|
+
## 1.1.2
|
|
68
13
|
|
|
69
|
-
|
|
14
|
+
### Patch Changes
|
|
70
15
|
|
|
71
|
-
|
|
72
|
-
|
|
16
|
+
- e51b1db3: feat: support custom sdk, interceptor, headers for bff request
|
|
17
|
+
- Updated dependencies [e51b1db3]
|
|
18
|
+
- Updated dependencies [4a281912]
|
|
19
|
+
- Updated dependencies [4a281912]
|
|
20
|
+
- Updated dependencies [b7fb82ec]
|
|
21
|
+
- Updated dependencies [eb026119]
|
|
22
|
+
- @modern-js/plugin-ssr@1.1.3
|
|
23
|
+
- @modern-js/create-request@1.1.2
|
|
24
|
+
- @modern-js/runtime-core@1.1.3
|
|
25
|
+
- @modern-js/plugin-router@1.1.2
|
|
26
|
+
- @modern-js/plugin-state@1.1.4
|
|
27
|
+
- @modern-js/utils@1.1.6
|
|
28
|
+
|
|
29
|
+
## 1.1.1
|
|
73
30
|
|
|
74
|
-
|
|
31
|
+
### Patch Changes
|
|
75
32
|
|
|
76
|
-
|
|
33
|
+
- 0fa83663: support more .env files
|
|
34
|
+
- Updated dependencies [6f7fe574]
|
|
35
|
+
- Updated dependencies [0fa83663]
|
|
36
|
+
- Updated dependencies [f594fbc8]
|
|
37
|
+
- @modern-js/core@1.1.2
|
|
38
|
+
- @modern-js/plugin-state@1.1.2
|
|
39
|
+
- @modern-js/runtime-core@1.1.1
|
|
40
|
+
- @modern-js/bff-runtime@1.1.1
|
|
41
|
+
- @modern-js/utils@1.1.2
|
|
42
|
+
- @modern-js/plugin-router@1.1.1
|
|
43
|
+
- @modern-js/plugin-ssr@1.1.1
|
|
77
44
|
|
|
78
|
-
|
|
45
|
+
## 1.1.0
|
|
79
46
|
|
|
80
|
-
|
|
47
|
+
### Minor Changes
|
|
81
48
|
|
|
82
|
-
|
|
49
|
+
- 96119db2: Relese v1.1.0
|
|
83
50
|
|
|
84
51
|
### Patch Changes
|
|
85
52
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configure } from '@modern-js/create-request';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
Object.defineProperty(exports, "configure", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _createRequest.configure;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
var _createRequest = require("@modern-js/create-request");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configure } from '@modern-js/create-request';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configure } from '@modern-js/create-request';
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.1.
|
|
14
|
+
"version": "1.1.3",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./type.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -19,38 +19,56 @@
|
|
|
19
19
|
"jsnext:modern": "./dist/js/modern/index.js",
|
|
20
20
|
"exports": {
|
|
21
21
|
".": {
|
|
22
|
-
"node":
|
|
22
|
+
"node": {
|
|
23
|
+
"jsnext:source": "./src/index.ts",
|
|
24
|
+
"default": "./dist/js/node/index.js"
|
|
25
|
+
},
|
|
23
26
|
"default": "./dist/js/treeshaking/index.js"
|
|
24
27
|
},
|
|
25
28
|
"./loadable": {
|
|
29
|
+
"jsnext:source": "./src/exports/loadable.ts",
|
|
26
30
|
"node": "./dist/js/node/exports/loadable.js",
|
|
27
31
|
"default": "./dist/js/treeshaking/exports/loadable.js"
|
|
28
32
|
},
|
|
29
33
|
"./head": {
|
|
34
|
+
"jsnext:source": "./src/exports/head.ts",
|
|
30
35
|
"node": "./dist/js/node/exports/head.js",
|
|
31
36
|
"default": "./dist/js/treeshaking/exports/head.js"
|
|
32
37
|
},
|
|
33
38
|
"./styled": {
|
|
39
|
+
"jsnext:source": "./src/exports/styled.ts",
|
|
34
40
|
"node": "./dist/js/node/exports/styled.js",
|
|
35
41
|
"default": "./dist/js/treeshaking/exports/styled.js"
|
|
36
42
|
},
|
|
37
43
|
"./server": {
|
|
44
|
+
"jsnext:source": "./src/exports/server.ts",
|
|
38
45
|
"node": "./dist/js/node/exports/server.js",
|
|
39
46
|
"default": "./dist/js/treeshaking/exports/server.js"
|
|
40
47
|
},
|
|
41
48
|
"./router": {
|
|
49
|
+
"jsnext:source": "./src/exports/router.ts",
|
|
42
50
|
"node": "./dist/js/node/exports/router.js",
|
|
43
51
|
"default": "./dist/js/treeshaking/exports/router.js"
|
|
44
52
|
},
|
|
45
53
|
"./ssr": {
|
|
54
|
+
"jsnext:source": "./src/exports/ssr.ts",
|
|
46
55
|
"node": "./dist/js/node/exports/ssr.js",
|
|
47
56
|
"default": "./dist/js/treeshaking/exports/ssr.js"
|
|
48
57
|
},
|
|
49
58
|
"./model": {
|
|
59
|
+
"jsnext:source": "./src/exports/model.ts",
|
|
50
60
|
"node": "./dist/js/node/exports/model.js",
|
|
51
61
|
"default": "./dist/js/treeshaking/exports/model.js"
|
|
52
62
|
},
|
|
53
|
-
"./
|
|
63
|
+
"./request": {
|
|
64
|
+
"jsnext:source": "./src/exports/request.ts",
|
|
65
|
+
"node": "./dist/js/node/exports/request.js",
|
|
66
|
+
"default": "./dist/js/treeshaking/exports/request.js"
|
|
67
|
+
},
|
|
68
|
+
"./cli": {
|
|
69
|
+
"jsnext:source": "./src/cli/index.ts",
|
|
70
|
+
"default": "./dist/js/node/cli/index.js"
|
|
71
|
+
}
|
|
54
72
|
},
|
|
55
73
|
"typesVersions": {
|
|
56
74
|
"*": {
|
|
@@ -75,6 +93,9 @@
|
|
|
75
93
|
"router": [
|
|
76
94
|
"./dist/types/exports/router.d.ts"
|
|
77
95
|
],
|
|
96
|
+
"request": [
|
|
97
|
+
"./dist/types/exports/request.d.ts"
|
|
98
|
+
],
|
|
78
99
|
"model": [
|
|
79
100
|
"./types/model.d.ts"
|
|
80
101
|
]
|
|
@@ -83,12 +104,13 @@
|
|
|
83
104
|
"dependencies": {
|
|
84
105
|
"@babel/runtime": "^7",
|
|
85
106
|
"@loadable/component": "^5.15.0",
|
|
86
|
-
"@modern-js/bff-runtime": "^1.1.
|
|
87
|
-
"@modern-js/
|
|
88
|
-
"@modern-js/plugin-
|
|
89
|
-
"@modern-js/plugin-
|
|
90
|
-
"@modern-js/
|
|
91
|
-
"@modern-js/
|
|
107
|
+
"@modern-js/bff-runtime": "^1.1.1",
|
|
108
|
+
"@modern-js/create-request": "^1.1.2",
|
|
109
|
+
"@modern-js/plugin-router": "^1.1.3",
|
|
110
|
+
"@modern-js/plugin-ssr": "^1.1.3",
|
|
111
|
+
"@modern-js/plugin-state": "^1.1.4",
|
|
112
|
+
"@modern-js/runtime-core": "^1.1.4",
|
|
113
|
+
"@modern-js/utils": "^1.1.6",
|
|
92
114
|
"@types/loadable__component": "^5.13.4",
|
|
93
115
|
"@types/react-helmet": "^6.1.2",
|
|
94
116
|
"@types/styled-components": "^5.1.13",
|
|
@@ -96,17 +118,17 @@
|
|
|
96
118
|
"styled-components": "^5.3.1"
|
|
97
119
|
},
|
|
98
120
|
"devDependencies": {
|
|
121
|
+
"@modern-js/core": "^1.1.2",
|
|
122
|
+
"@modern-js/module-tools": "^1.1.5",
|
|
123
|
+
"@modern-js/plugin-testing": "^1.2.2",
|
|
99
124
|
"@types/jest": "^26",
|
|
100
125
|
"@types/node": "^14",
|
|
101
126
|
"@types/react": "^17",
|
|
102
127
|
"@types/react-dom": "^17",
|
|
103
|
-
"typescript": "^4"
|
|
104
|
-
"@modern-js/core": "^1.1.0",
|
|
105
|
-
"@modern-js/plugin-testing": "^1.0.2",
|
|
106
|
-
"@modern-js/module-tools": "^1.0.2"
|
|
128
|
+
"typescript": "^4"
|
|
107
129
|
},
|
|
108
130
|
"peerDependencies": {
|
|
109
|
-
"@modern-js/core": "^1.1.
|
|
131
|
+
"@modern-js/core": "^1.1.2"
|
|
110
132
|
},
|
|
111
133
|
"sideEffects": false,
|
|
112
134
|
"modernConfig": {},
|
|
@@ -118,5 +140,6 @@
|
|
|
118
140
|
"new": "modern new",
|
|
119
141
|
"build": "modern build",
|
|
120
142
|
"test": "modern test --passWithNoTests"
|
|
121
|
-
}
|
|
143
|
+
},
|
|
144
|
+
"readme": "\n<p align=\"center\">\n <a href=\"https://modernjs.dev\" target=\"blank\"><img src=\"https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png\" width=\"300\" alt=\"Modern.js Logo\" /></a>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
|
|
122
145
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { configure } from '@modern-js/create-request';
|