feat(es/preset-env): Update compat data (#7630)

This commit is contained in:
Donny/강동윤 2023-07-07 11:57:48 +09:00 committed by GitHub
parent 1fe263903d
commit 7e9e84e230
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 56 additions and 11 deletions

View File

@ -0,0 +1,24 @@
{
"jsc": {
"parser": {
"syntax": "typescript",
"tsx": false
},
"target": "es2018",
"loose": false,
"minify": {
"compress": false,
"mangle": false
},
"externalHelpers": false
},
"module": {
"type": "es6"
},
"minify": false,
"isModule": true,
"env": {
"mode": "usage",
"coreJs": "3.29"
}
}

View File

@ -0,0 +1 @@
Symbol.asyncDispose

View File

@ -0,0 +1,4 @@
import "core-js/modules/es.object.to-string.js";
import "core-js/modules/es.symbol.description.js";
import "core-js/modules/es.symbol.js";
Symbol.asyncDispose;

View File

@ -768,7 +768,7 @@ pub static STATIC_PROPERTIES: DataMap<DataMap<&[&str]>> = data_map!(Map {
}, },
Symbol: Map { Symbol: Map {
asyncDispose: ["es.symbol.async-dispose"], asyncDispose: ["esnext.symbol.async-dispose"],
asyncIterator: ["es.symbol.async-iterator"], asyncIterator: ["es.symbol.async-iterator"],
dispose: ["esnext.symbol.dispose"], dispose: ["esnext.symbol.dispose"],
for: ["es.symbol"], for: ["es.symbol"],

View File

@ -80,7 +80,7 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@babel/compat-data": "^7.17.0", "@babel/compat-data": "^7.22.6",
"@babel/core": "^7.13.16", "@babel/core": "^7.13.16",
"@babel/generator": "^7.18.13", "@babel/generator": "^7.18.13",
"@babel/plugin-proposal-class-properties": "^7.13.0", "@babel/plugin-proposal-class-properties": "^7.13.0",
@ -106,7 +106,7 @@
"bootstrap": "^5.2.1", "bootstrap": "^5.2.1",
"class-validator": "^0.13.1", "class-validator": "^0.13.1",
"core-js": "^2.6.11", "core-js": "^2.6.11",
"core-js-compat": "^3.21.1", "core-js-compat": "^3.31.0",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"cspell": "^5.12.3", "cspell": "^5.12.3",
"expect": "^27.4.2", "expect": "^27.4.2",

View File

@ -24,13 +24,20 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/compat-data@npm:^7.17.0, @babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.20.5, @babel/compat-data@npm:^7.22.0, @babel/compat-data@npm:^7.22.3": "@babel/compat-data@npm:^7.17.7, @babel/compat-data@npm:^7.20.5, @babel/compat-data@npm:^7.22.0, @babel/compat-data@npm:^7.22.3":
version: 7.22.3 version: 7.22.3
resolution: "@babel/compat-data@npm:7.22.3" resolution: "@babel/compat-data@npm:7.22.3"
checksum: eb001646f41459f42ccb0d39ee8bb3c3c495bc297234817044c0002689c625e3159a6678c53fd31bd98cf21f31472b73506f350fc6906e3bdfa49cb706e2af8d checksum: eb001646f41459f42ccb0d39ee8bb3c3c495bc297234817044c0002689c625e3159a6678c53fd31bd98cf21f31472b73506f350fc6906e3bdfa49cb706e2af8d
languageName: node languageName: node
linkType: hard linkType: hard
"@babel/compat-data@npm:^7.22.6":
version: 7.22.6
resolution: "@babel/compat-data@npm:7.22.6"
checksum: b88631143a2ebdb75e5bac47984e950983294f1739c2133f32569c6f2fcee85f83634bb6cf4378afb44fa8eb7877d11e48811d1e6a52afa161f82276ffdc3fb4
languageName: node
linkType: hard
"@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16": "@babel/core@npm:^7.11.6, @babel/core@npm:^7.12.3, @babel/core@npm:^7.13.16":
version: 7.22.1 version: 7.22.1
resolution: "@babel/core@npm:7.22.1" resolution: "@babel/core@npm:7.22.1"
@ -2533,7 +2540,7 @@ __metadata:
version: 0.0.0-use.local version: 0.0.0-use.local
resolution: "@swc/core@workspace:." resolution: "@swc/core@workspace:."
dependencies: dependencies:
"@babel/compat-data": ^7.17.0 "@babel/compat-data": ^7.22.6
"@babel/core": ^7.13.16 "@babel/core": ^7.13.16
"@babel/generator": ^7.18.13 "@babel/generator": ^7.18.13
"@babel/plugin-proposal-class-properties": ^7.13.0 "@babel/plugin-proposal-class-properties": ^7.13.0
@ -2569,7 +2576,7 @@ __metadata:
bootstrap: ^5.2.1 bootstrap: ^5.2.1
class-validator: ^0.13.1 class-validator: ^0.13.1
core-js: ^2.6.11 core-js: ^2.6.11
core-js-compat: ^3.21.1 core-js-compat: ^3.31.0
cross-env: ^7.0.3 cross-env: ^7.0.3
cspell: ^5.12.3 cspell: ^5.12.3
expect: ^27.4.2 expect: ^27.4.2
@ -3629,7 +3636,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"core-js-compat@npm:^3.21.1, core-js-compat@npm:^3.30.1, core-js-compat@npm:^3.30.2": "core-js-compat@npm:^3.30.1, core-js-compat@npm:^3.30.2":
version: 3.30.2 version: 3.30.2
resolution: "core-js-compat@npm:3.30.2" resolution: "core-js-compat@npm:3.30.2"
dependencies: dependencies:
@ -3638,6 +3645,15 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"core-js-compat@npm:^3.31.0":
version: 3.31.0
resolution: "core-js-compat@npm:3.31.0"
dependencies:
browserslist: ^4.21.5
checksum: 5c76ac5e4ab39480391f93a5aef14a2cfa188cda7bd6a7b8532de1f8bc5d89099a5025b2640d2ef70a2928614792363dcbcf8bd254aa7b2e11b85aeed7ac460f
languageName: node
linkType: hard
"core-js@npm:^2.6.11": "core-js@npm:^2.6.11":
version: 2.6.12 version: 2.6.12
resolution: "core-js@npm:2.6.12" resolution: "core-js@npm:2.6.12"
@ -4325,7 +4341,7 @@ __metadata:
"fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>": "fsevents@patch:fsevents@^2.3.2#~builtin<compat/fsevents>, fsevents@patch:fsevents@~2.3.2#~builtin<compat/fsevents>":
version: 2.3.2 version: 2.3.2
resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=df0bf1" resolution: "fsevents@patch:fsevents@npm%3A2.3.2#~builtin<compat/fsevents>::version=2.3.2&hash=18f3a7"
dependencies: dependencies:
node-gyp: latest node-gyp: latest
conditions: os=darwin conditions: os=darwin
@ -6861,7 +6877,7 @@ __metadata:
"resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>": "resolve@patch:resolve@^1.10.0#~builtin<compat/resolve>, resolve@patch:resolve@^1.14.2#~builtin<compat/resolve>, resolve@patch:resolve@^1.20.0#~builtin<compat/resolve>":
version: 1.22.2 version: 1.22.2
resolution: "resolve@patch:resolve@npm%3A1.22.2#~builtin<compat/resolve>::version=1.22.2&hash=c3c19d" resolution: "resolve@patch:resolve@npm%3A1.22.2#~builtin<compat/resolve>::version=1.22.2&hash=07638b"
dependencies: dependencies:
is-core-module: ^2.11.0 is-core-module: ^2.11.0
path-parse: ^1.0.7 path-parse: ^1.0.7
@ -7627,11 +7643,11 @@ __metadata:
"typescript@patch:typescript@^4.5.2#~builtin<compat/typescript>": "typescript@patch:typescript@^4.5.2#~builtin<compat/typescript>":
version: 4.9.5 version: 4.9.5
resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=23ec76" resolution: "typescript@patch:typescript@npm%3A4.9.5#~builtin<compat/typescript>::version=4.9.5&hash=a1c5e5"
bin: bin:
tsc: bin/tsc tsc: bin/tsc
tsserver: bin/tsserver tsserver: bin/tsserver
checksum: ab417a2f398380c90a6cf5a5f74badd17866adf57f1165617d6a551f059c3ba0a3e4da0d147b3ac5681db9ac76a303c5876394b13b3de75fdd5b1eaa06181c9d checksum: 2eee5c37cad4390385db5db5a8e81470e42e8f1401b0358d7390095d6f681b410f2c4a0c496c6ff9ebd775423c7785cdace7bcdad76c7bee283df3d9718c0f20
languageName: node languageName: node
linkType: hard linkType: hard