@modern-js/plugin-polyfill 2.3.0 → 2.4.1-beta.0
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 +15 -0
- package/README.md +14 -18
- package/dist/js/treeshaking/index.js +4 -4
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @modern-js/plugin-polyfill
|
|
2
2
|
|
|
3
|
+
## 2.4.1-beta.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [11c053b]
|
|
8
|
+
- @modern-js/utils@2.4.1-beta.0
|
|
9
|
+
|
|
10
|
+
## 2.4.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [98a2733]
|
|
15
|
+
- Updated dependencies [8c2db5f]
|
|
16
|
+
- @modern-js/utils@2.4.0
|
|
17
|
+
|
|
3
18
|
## 2.3.0
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
|
|
2
1
|
<p align="center">
|
|
3
2
|
<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>
|
|
4
3
|
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Modern.js</h1>
|
|
6
|
+
|
|
5
7
|
<p align="center">
|
|
6
|
-
|
|
7
|
-
<br/>
|
|
8
|
-
<a href="https://modernjs.dev" target="blank">
|
|
9
|
-
modernjs.dev
|
|
10
|
-
</a>
|
|
11
|
-
</p>
|
|
12
|
-
<p align="center">
|
|
13
|
-
The meta-framework suite designed from scratch for frontend-focused modern web development
|
|
8
|
+
A Progressive React Framework for modern web development.
|
|
14
9
|
</p>
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
> 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.
|
|
11
|
+
## Getting Started
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
|
|
21
14
|
|
|
22
|
-
##
|
|
15
|
+
## Documentation
|
|
23
16
|
|
|
24
|
-
- [
|
|
25
|
-
- [
|
|
26
|
-
- [API References](https://modernjs.dev/docs/apis)
|
|
17
|
+
- [English Documentation](https://modernjs.dev/en/)
|
|
18
|
+
- [中文文档](https://modernjs.dev)
|
|
27
19
|
|
|
28
20
|
## Contributing
|
|
29
21
|
|
|
30
|
-
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/modern-js-dev/modern.js/blob/main/LICENSE).
|
|
@@ -138,15 +138,15 @@ var src_default = function() {
|
|
|
138
138
|
var features = getDefaultFeatures();
|
|
139
139
|
var minify = process.env.NODE_ENV === "production";
|
|
140
140
|
var featureDig = Object.keys(features).map(function(name) {
|
|
141
|
-
var
|
|
141
|
+
var _features_name = features[name], _features_name_flags = _features_name.flags, flags = _features_name_flags === void 0 ? [
|
|
142
142
|
"gated"
|
|
143
|
-
] :
|
|
143
|
+
] : _features_name_flags;
|
|
144
144
|
var flagStr = flags.join(",");
|
|
145
145
|
return "".concat(name, "-").concat(flagStr);
|
|
146
146
|
}).join(",");
|
|
147
147
|
return function() {
|
|
148
148
|
var _ref = _asyncToGenerator(function(context, next) {
|
|
149
|
-
var parsedUA,
|
|
149
|
+
var parsedUA, _parsedUA_browser, _parsedUA_browser_name, name, _parsedUA_browser_version, version, cacheKey, matched, polyfill;
|
|
150
150
|
return __generator(this, function(_state) {
|
|
151
151
|
switch(_state.label){
|
|
152
152
|
case 0:
|
|
@@ -157,7 +157,7 @@ var src_default = function() {
|
|
|
157
157
|
];
|
|
158
158
|
}
|
|
159
159
|
parsedUA = Parser(context.headers["user-agent"]);
|
|
160
|
-
|
|
160
|
+
_parsedUA_browser = parsedUA.browser, _parsedUA_browser_name = _parsedUA_browser.name, name = _parsedUA_browser_name === void 0 ? "" : _parsedUA_browser_name, _parsedUA_browser_version = _parsedUA_browser.version, version = _parsedUA_browser_version === void 0 ? "" : _parsedUA_browser_version;
|
|
161
161
|
cacheKey = generateCacheKey({
|
|
162
162
|
name: name,
|
|
163
163
|
version: version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/plugin-polyfill",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
5
|
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
6
6
|
"repository": "modern-js-dev/modern.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.4.1-beta.0",
|
|
15
15
|
"jsnext:source": "./src/cli.ts",
|
|
16
16
|
"types": "./dist/types/cli.d.ts",
|
|
17
17
|
"main": "./dist/js/node/cli.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@modern-js/polyfill-lib": "^1.0.0",
|
|
49
49
|
"lru-cache": "^6.0.0",
|
|
50
50
|
"ua-parser-js": "^0.7.28",
|
|
51
|
-
"@modern-js/utils": "2.
|
|
51
|
+
"@modern-js/utils": "2.4.1-beta.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@types/jest": "^27",
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"@types/ua-parser-js": "^0.7.36",
|
|
58
58
|
"typescript": "^4",
|
|
59
59
|
"jest": "^27",
|
|
60
|
-
"@modern-js/server-core": "2.
|
|
61
|
-
"@modern-js/app-tools": "
|
|
62
|
-
"@modern-js/types": "2.
|
|
63
|
-
"@modern-js/core": "2.
|
|
64
|
-
"@scripts/
|
|
65
|
-
"@scripts/
|
|
60
|
+
"@modern-js/server-core": "2.4.1-beta.0",
|
|
61
|
+
"@modern-js/app-tools": "3.0.0-beta.0",
|
|
62
|
+
"@modern-js/types": "2.4.0",
|
|
63
|
+
"@modern-js/core": "2.4.1-beta.0",
|
|
64
|
+
"@scripts/build": "2.4.0",
|
|
65
|
+
"@scripts/jest-config": "2.4.0"
|
|
66
66
|
},
|
|
67
67
|
"sideEffects": false,
|
|
68
68
|
"publishConfig": {
|