@swc/core 1.2.124 → 1.2.125
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 +77 -0
- package/binding.js +5 -11
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,80 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/compat)** Visit all private class methods (#3150) ([35b6461](https://github.com/swc-project/swc/commit/35b64613bb1f6de52d7362e66d28c50513dbbe12))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat)** Fix length of async functions (#3136) ([f78d005](https://github.com/swc-project/swc/commit/f78d005a9587d2ea44741c4cef80fa711e8a1d26))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/compat)** Fix `new.target` in class properties (#3156) ([e112103](https://github.com/swc-project/swc/commit/e11210309cf2aab4aae77a76e4cdfba0bf9efa40))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Fix for modules (#3170) ([790c506](https://github.com/swc-project/swc/commit/790c50631ba1daa124e62bcee299f89031a4ec3d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/typescript)** Fix handling of references in a TypeScript enum (#3163) ([e02307d](https://github.com/swc-project/swc/commit/e02307d4c82e043079131b414198ee5b4b7560e5))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/typescript)** Declare the exported variables in a namespace (#3162) ([366dc0e](https://github.com/swc-project/swc/commit/366dc0eec3e19b4e608dc4df8eb728f6d710f9b7))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/utils)** Fix handling of `new.target` (#3145) ([356082a](https://github.com/swc-project/swc/commit/356082ad84fa69cf09b5627598a2576bd1b27c36))
|
|
27
|
+
|
|
28
|
+
### Documentation
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/ast)** Improve rustdoc (#3142) ([333acb5](https://github.com/swc-project/swc/commit/333acb56223139817c1df0c8b3763190b55a6295))- **general**: Update discord link (#3161) ([fb20480](https://github.com/swc-project/swc/commit/fb2048035f0aa67761aa213c58795accfde7a6d0))
|
|
33
|
+
|
|
34
|
+
### Features
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/ast)** Add `rkyv` support (#3166) ([bf751cb](https://github.com/swc-project/swc/commit/bf751cb6905c7520f0846b9f0a6f4f44edecbdb3))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(es/codegen)** Make the output for empty objects and empty statements pretty (#3171) ([5296180](https://github.com/swc-project/swc/commit/52961804d19c413c09ff4e08c327647ffc3d0bea))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(es/diff)** Add a internal CLI program for debugging minifier (#3168) ([1aa55e6](https://github.com/swc-project/swc/commit/1aa55e616a7bc2ffa791600e908ddb10a4009e7b))
|
|
45
|
+
|
|
46
|
+
### Miscellaneous Tasks
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(ci)** Update `github-action-benchmark` (#3148) ([5a3bdc9](https://github.com/swc-project/swc/commit/5a3bdc9ed37ba39a0591c66bd89eddb95f6df850))- **general**: Add `enhancement` label to `feature_request` template (#3164) ([360ad7b](https://github.com/swc-project/swc/commit/360ad7b41c6fa35ce3afc81c2237d9acdae9a549))
|
|
51
|
+
|
|
52
|
+
### Performance
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/ast/serde)** Make deserialization faster (#3160) ([7a83c0c](https://github.com/swc-project/swc/commit/7a83c0cb575b0ec6510d8dff6d1bd44d9c97fdb9))
|
|
57
|
+
|
|
58
|
+
### Refactor
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(*)** Drop unused dependencies (#3138) ([72c9636](https://github.com/swc-project/swc/commit/72c963662d63338235378d71ee856c782cdeddfe))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(*)** Use 2021 edition (#3151) ([194b3e9](https://github.com/swc-project/swc/commit/194b3e9b67fb096dee8dbd12fff9167e4217174b))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(bundler)** Improve test suite (#3144) ([8a1016f](https://github.com/swc-project/swc/commit/8a1016fb406dd04dcf432ccf4e07036f81d4c9c6))
|
|
69
|
+
|
|
70
|
+
### Testing
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/parser)** Add tests about null escape (#3147) ([a4e8e53](https://github.com/swc-project/swc/commit/a4e8e53c1958f842206916eade24a269d582d69c))
|
|
75
|
+
|
|
76
|
+
## [1.2.124] - 2021-12-29
|
|
77
|
+
|
|
78
|
+
### Bug Fixes
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
8
82
|
- **(es)** Handle import assertions correctly (#3113) ([c9adf03](https://github.com/swc-project/swc/commit/c9adf0333811b2830fe3f3c06d6fd9706f7bb9ae))
|
|
9
83
|
|
|
10
84
|
|
|
@@ -23,6 +97,9 @@
|
|
|
23
97
|
- **(es/parser)** Support import assertions in specifier-less imports (#3134) ([2f3ca22](https://github.com/swc-project/swc/commit/2f3ca22ecf7f567256695c39a904f02ff75e2c85))
|
|
24
98
|
|
|
25
99
|
|
|
100
|
+
- **(es/renamer)** Fix renamer (#3139) ([43c8cda](https://github.com/swc-project/swc/commit/43c8cda31a89bfc027ea3948bd9653d97d3fc29c))
|
|
101
|
+
|
|
102
|
+
|
|
26
103
|
- **(es/utils)** Fix `is_valid_ident` (#3133) ([ec7e0ae](https://github.com/swc-project/swc/commit/ec7e0aee256cc7cc13f81ef22164c29f42bb43be))
|
|
27
104
|
|
|
28
105
|
|
package/binding.js
CHANGED
|
@@ -4,16 +4,8 @@ const { join } = require('path');
|
|
|
4
4
|
const { platform, arch } = process;
|
|
5
5
|
let nativeBinding = null;
|
|
6
6
|
let localFileExisted = false;
|
|
7
|
+
let isMusl = false;
|
|
7
8
|
let loadError = null;
|
|
8
|
-
const isMusl = () => {
|
|
9
|
-
try {
|
|
10
|
-
const isMusl = readFileSync('/usr/bin/ldd', 'utf8').includes('musl');
|
|
11
|
-
return isMusl;
|
|
12
|
-
}
|
|
13
|
-
catch (e) {
|
|
14
|
-
return false;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
9
|
switch (platform) {
|
|
18
10
|
case 'android':
|
|
19
11
|
if (arch !== 'arm64') {
|
|
@@ -134,7 +126,8 @@ switch (platform) {
|
|
|
134
126
|
case 'linux':
|
|
135
127
|
switch (arch) {
|
|
136
128
|
case 'x64':
|
|
137
|
-
|
|
129
|
+
isMusl = readFileSync('/usr/bin/ldd', 'utf8').includes('musl');
|
|
130
|
+
if (isMusl) {
|
|
138
131
|
localFileExisted = existsSync(join(__dirname, 'swc.linux-x64-musl.node'));
|
|
139
132
|
try {
|
|
140
133
|
if (localFileExisted) {
|
|
@@ -164,7 +157,8 @@ switch (platform) {
|
|
|
164
157
|
}
|
|
165
158
|
break;
|
|
166
159
|
case 'arm64':
|
|
167
|
-
|
|
160
|
+
isMusl = readFileSync('/usr/bin/ldd', 'utf8').includes('musl');
|
|
161
|
+
if (isMusl) {
|
|
168
162
|
localFileExisted = existsSync(join(__dirname, 'swc.linux-arm64-musl.node'));
|
|
169
163
|
try {
|
|
170
164
|
if (localFileExisted) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.125",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"@node-rs/helper": "^1.0.0"
|
|
52
52
|
},
|
|
53
53
|
"optionalDependencies": {
|
|
54
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
55
|
-
"@swc/core-darwin-x64": "1.2.
|
|
56
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
57
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
58
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
59
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
60
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
61
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
62
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
63
|
-
"@swc/core-android-arm64": "1.2.
|
|
64
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
65
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
66
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
54
|
+
"@swc/core-win32-x64-msvc": "1.2.125",
|
|
55
|
+
"@swc/core-darwin-x64": "1.2.125",
|
|
56
|
+
"@swc/core-linux-x64-gnu": "1.2.125",
|
|
57
|
+
"@swc/core-linux-x64-musl": "1.2.125",
|
|
58
|
+
"@swc/core-freebsd-x64": "1.2.125",
|
|
59
|
+
"@swc/core-win32-ia32-msvc": "1.2.125",
|
|
60
|
+
"@swc/core-linux-arm64-gnu": "1.2.125",
|
|
61
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.125",
|
|
62
|
+
"@swc/core-darwin-arm64": "1.2.125",
|
|
63
|
+
"@swc/core-android-arm64": "1.2.125",
|
|
64
|
+
"@swc/core-linux-arm64-musl": "1.2.125",
|
|
65
|
+
"@swc/core-win32-arm64-msvc": "1.2.125",
|
|
66
|
+
"@swc/core-android-arm-eabi": "1.2.125"
|
|
67
67
|
},
|
|
68
68
|
"types": "./index.d.ts",
|
|
69
69
|
"scripts": {
|