@swc/core 1.2.153 → 1.2.154

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +68 -0
  2. package/package.json +18 -17
package/CHANGELOG.md CHANGED
@@ -5,6 +5,74 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es)** Change error message as it can be misleading (#3982) ([48f2fd8](https://github.com/swc-project/swc/commit/48f2fd8e1b723e3dfa1d54c25aa9f3c391c5ee74))
9
+
10
+
11
+ - **(es/preset-env)** Fix compilation issue (#3972) ([7ebfcfa](https://github.com/swc-project/swc/commit/7ebfcfa70f1456e627f6cf30f65c00e2b0b17476))
12
+
13
+
14
+ - **(es/preset-env)** Publish `builtin.json` (#3973) ([858372f](https://github.com/swc-project/swc/commit/858372ffada23f0f36c1161d2ec36b6da93d973c))
15
+
16
+
17
+ - **(es/preset-env)** Move out finished proposals (#3970) ([502f934](https://github.com/swc-project/swc/commit/502f934ce5397526db3a26554293841c3c5821ae))
18
+
19
+
20
+ - **(preset-env)** Use `core-js-compat` and `@babel/compat-data` directly (#3968) ([487273f](https://github.com/swc-project/swc/commit/487273fc5b5f964c159ea23d409b0f66e1d74229))
21
+
22
+ ### Features
23
+
24
+
25
+
26
+ - **(*)** Update dependencies (#3964) ([1206c84](https://github.com/swc-project/swc/commit/1206c84e19eca2711670e96407c47062c22a4d04))
27
+
28
+
29
+ - **(css/codegen)** Fix source maps and ast defs (#3974) ([516dbc6](https://github.com/swc-project/swc/commit/516dbc65dc769b21411989f4397dc97cf97571ed))
30
+
31
+
32
+ - **(css/prefixer)** Prefix more properties (#3976) ([4a9a5ff](https://github.com/swc-project/swc/commit/4a9a5ffa4b128c706f9a73a8465a317240c4babf))
33
+
34
+
35
+ - **(es/lints)** Mark catch params as binding patterns while checking duplicates (#3981) ([f28134f](https://github.com/swc-project/swc/commit/f28134fe774173b6e12c8571c92fe1c015f8b53b))
36
+
37
+ ### Miscellaneous Tasks
38
+
39
+
40
+
41
+ - **(ci)** Skip unnecessary package for the benchmark (#3980) ([485dc54](https://github.com/swc-project/swc/commit/485dc54d299c6f48752841401d2bfaf716f64f06))
42
+
43
+
44
+ - **(es/parser)** Add some inline attributes (#3969) ([6a6c322](https://github.com/swc-project/swc/commit/6a6c32203b8f2fde61279320cca505052f969da3))
45
+
46
+
47
+ - **(es/preset-env)** Use js script for copying files (#3986) ([83722df](https://github.com/swc-project/swc/commit/83722df21a54d29caffb6fe8eb1261763a085830))
48
+
49
+ ### Performance
50
+
51
+
52
+
53
+ - **(common)** Use `fxhash` everywhere (#3985) ([db60291](https://github.com/swc-project/swc/commit/db602911647360e0a26139d93882c353ba4d9330))
54
+
55
+
56
+ - **(es/minifier)** Make mangler faster by merging hash sets into one (#3983) ([107c91d](https://github.com/swc-project/swc/commit/107c91dd206e31c221df98446f71e8f18020c060))
57
+
58
+
59
+ - **(es/minifier)** Use fxhash for integers (#3984) ([67e6154](https://github.com/swc-project/swc/commit/67e615421f85aee2919016a5d01e4ebb1b9b08c4))
60
+
61
+
62
+ - **(es/minifier)** Merge hashmap for scoping before checking (#3988) ([1beecce](https://github.com/swc-project/swc/commit/1beecceead16765abd1b698d3a255e647a2adcc7))
63
+
64
+ ### Testing
65
+
66
+
67
+
68
+ - **(es)** Add tests for fixed issues (#3987) ([073d847](https://github.com/swc-project/swc/commit/073d847a33fe9902428633292efa8a606fe208f1))
69
+
70
+ ## [1.2.153] - 2022-03-11
71
+
72
+ ### Bug Fixes
73
+
74
+
75
+
8
76
  - **(api/rust)** Fix transform comment api (#3962) ([fcbd3c5](https://github.com/swc-project/swc/commit/fcbd3c5c5849418b911d87d3a0b36eb84bef1a68))
9
77
 
10
78
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.153",
3
+ "version": "1.2.154",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -53,7 +53,7 @@
53
53
  "types": "./index.d.ts",
54
54
  "scripts": {
55
55
  "changelog": "git cliff --output CHANGELOG.md",
56
- "prepare": "husky install && git config feature.manyFiles true",
56
+ "prepare": "husky install && git config feature.manyFiles true && node ./crates/swc_ecma_preset_env/scripts/copy-data.js",
57
57
  "artifacts": "napi artifacts --dist scripts/npm",
58
58
  "prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
59
59
  "build": "tsc -d && napi build --platform --cargo-name node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts -p node --release",
@@ -63,7 +63,7 @@
63
63
  "version": "napi version -p scripts/npm"
64
64
  },
65
65
  "devDependencies": {
66
- "@babel/compat-data": "^7.16.4",
66
+ "@babel/compat-data": "^7.17.0",
67
67
  "@babel/core": "^7.13.16",
68
68
  "@babel/plugin-proposal-class-properties": "^7.13.0",
69
69
  "@babel/plugin-proposal-decorators": "^7.13.15",
@@ -72,7 +72,7 @@
72
72
  "@babel/preset-react": "^7.13.13",
73
73
  "@babel/preset-typescript": "^7.13.0",
74
74
  "@babel/types": "^7.14.0",
75
- "@napi-rs/cli": "^2.4.2",
75
+ "@napi-rs/cli": "^2.4.5",
76
76
  "@swc/helpers": "^0.2.10",
77
77
  "@types/jest": "^26.0.23",
78
78
  "@types/node": "^14.14.41",
@@ -83,6 +83,7 @@
83
83
  "benchmark": "^2.1.4",
84
84
  "class-validator": "^0.13.1",
85
85
  "core-js": "^2.6.11",
86
+ "core-js-compat": "^3.21.1",
86
87
  "cross-env": "^7.0.3",
87
88
  "cspell": "^5.12.3",
88
89
  "expect": "^27.4.2",
@@ -107,18 +108,18 @@
107
108
  "url": "https://opencollective.com/swc"
108
109
  },
109
110
  "optionalDependencies": {
110
- "@swc/core-win32-x64-msvc": "1.2.153",
111
- "@swc/core-darwin-x64": "1.2.153",
112
- "@swc/core-linux-x64-gnu": "1.2.153",
113
- "@swc/core-linux-x64-musl": "1.2.153",
114
- "@swc/core-freebsd-x64": "1.2.153",
115
- "@swc/core-win32-ia32-msvc": "1.2.153",
116
- "@swc/core-linux-arm64-gnu": "1.2.153",
117
- "@swc/core-linux-arm-gnueabihf": "1.2.153",
118
- "@swc/core-darwin-arm64": "1.2.153",
119
- "@swc/core-android-arm64": "1.2.153",
120
- "@swc/core-linux-arm64-musl": "1.2.153",
121
- "@swc/core-win32-arm64-msvc": "1.2.153",
122
- "@swc/core-android-arm-eabi": "1.2.153"
111
+ "@swc/core-win32-x64-msvc": "1.2.154",
112
+ "@swc/core-darwin-x64": "1.2.154",
113
+ "@swc/core-linux-x64-gnu": "1.2.154",
114
+ "@swc/core-linux-x64-musl": "1.2.154",
115
+ "@swc/core-freebsd-x64": "1.2.154",
116
+ "@swc/core-win32-ia32-msvc": "1.2.154",
117
+ "@swc/core-linux-arm64-gnu": "1.2.154",
118
+ "@swc/core-linux-arm-gnueabihf": "1.2.154",
119
+ "@swc/core-darwin-arm64": "1.2.154",
120
+ "@swc/core-android-arm64": "1.2.154",
121
+ "@swc/core-linux-arm64-musl": "1.2.154",
122
+ "@swc/core-win32-arm64-msvc": "1.2.154",
123
+ "@swc/core-android-arm-eabi": "1.2.154"
123
124
  }
124
125
  }