@swc/core 1.3.49 → 1.3.50
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 +62 -0
- package/package.json +12 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,68 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
## [unreleased]
|
|
3
3
|
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- **(es)** Fix a crash related to an empty source map (#7229) ([c665918](https://github.com/swc-project/swc/commit/c6659183a616725b61733e584bbb6e540b9cbbde))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/codegen)** Respect `ascii_only` for identifiers (#7247) ([e35097f](https://github.com/swc-project/swc/commit/e35097fd8c036dfab9fcf923f01db562b003720b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/compat)** Handle export function in `reserved_word` (#7251) ([2e947e7](https://github.com/swc-project/swc/commit/2e947e7aeb1fd2989a10fb49a2ffa2ea35bc9941))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Fix handling of optional chaining when `hoist_props` is enabled (#7246) ([a44fea1](https://github.com/swc-project/swc/commit/a44fea1ec8f19a822d84c744b9e39c122026fd9d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/parser)** Use a hard error for missing r-paren in an if stmt (#7223) ([b1c40a4](https://github.com/swc-project/swc/commit/b1c40a411f01792f9b9f4bc9d5f08782fc6d6a1c))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/parser)** Reset ctx for cond while parsing a stmt (#7232) ([01db30f](https://github.com/swc-project/swc/commit/01db30f91ec91d5dffe4c2ac1934965cc9c73cf8))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/parser)** Parse `const` type parameters in arrow function expressions (#7242) ([6614886](https://github.com/swc-project/swc/commit/66148861926a8e70cb75ff20cb2f0ff171c2e630))
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es)** Provide more information when loading of input source map failed (#7249) ([f0e3b1d](https://github.com/swc-project/swc/commit/f0e3b1d09a69c3eb3035e2dbc00d537576b48a08))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es)** Use `minify.format.ascii_only` if `output.charset` is not specified (#7258) ([1fe5c3a](https://github.com/swc-project/swc/commit/1fe5c3a803daf247709ac51f8c637ba7e56181bc))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/minifier)** Support `PURE` comment of seq exprs (#7245) ([559d120](https://github.com/swc-project/swc/commit/559d1202bc9a25c06eae01c6e033a44bb31aab62))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(plugin)** Enable validation (#7250) ([efad714](https://github.com/swc-project/swc/commit/efad714983459393639f4b026da7793807c1b401))
|
|
42
|
+
|
|
43
|
+
### Refactor
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(plugin)** Remove `bytecheck` flag (#7256) ([6bd58cb](https://github.com/swc-project/swc/commit/6bd58cbcfdef99604470a106853628e1cdb36cda))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(plugin/runner)** Fix clippy warnings (#7244) ([70b86db](https://github.com/swc-project/swc/commit/70b86dbe371fafc2dffde0573bc091860aa529b3))
|
|
51
|
+
|
|
52
|
+
### Testing
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/plugin)** Enable E2E test again (#7236) ([695ce06](https://github.com/swc-project/swc/commit/695ce060e95ccdda50334468dc669da2df76c026))
|
|
57
|
+
|
|
58
|
+
### Build
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(plugin)** Update `rkyv` (#7257) ([ff3decc](https://github.com/swc-project/swc/commit/ff3decc7dbf7965085261b16efa1a7b251aec696))
|
|
63
|
+
|
|
64
|
+
## [1.3.49] - 2023-04-10
|
|
65
|
+
|
|
4
66
|
### Features
|
|
5
67
|
|
|
6
68
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.50",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
|
|
57
57
|
"build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
|
|
58
58
|
"build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
|
|
59
|
-
"build:bytecheck": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings --features swc_v1,plugin_bytecheck -p binding_core_node --cargo-flags=--no-default-features --release",
|
|
60
59
|
"test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
|
|
61
60
|
"version": "napi version -p scripts/npm"
|
|
62
61
|
},
|
|
@@ -94,7 +93,7 @@
|
|
|
94
93
|
"@napi-rs/cli": "^2.14.1",
|
|
95
94
|
"@swc/core": "=1.2.220",
|
|
96
95
|
"@swc/helpers": "^0.5.0",
|
|
97
|
-
"@swc/plugin-jest": "1.5.
|
|
96
|
+
"@swc/plugin-jest": "1.5.59",
|
|
98
97
|
"@taplo/cli": "^0.3.2",
|
|
99
98
|
"@types/jest": "^28.1.4",
|
|
100
99
|
"@types/node": "^14.14.41",
|
|
@@ -146,16 +145,16 @@
|
|
|
146
145
|
"url": "https://opencollective.com/swc"
|
|
147
146
|
},
|
|
148
147
|
"optionalDependencies": {
|
|
149
|
-
"@swc/core-win32-x64-msvc": "1.3.
|
|
150
|
-
"@swc/core-darwin-x64": "1.3.
|
|
151
|
-
"@swc/core-linux-x64-gnu": "1.3.
|
|
152
|
-
"@swc/core-linux-x64-musl": "1.3.
|
|
153
|
-
"@swc/core-win32-ia32-msvc": "1.3.
|
|
154
|
-
"@swc/core-linux-arm64-gnu": "1.3.
|
|
155
|
-
"@swc/core-linux-arm-gnueabihf": "1.3.
|
|
156
|
-
"@swc/core-darwin-arm64": "1.3.
|
|
157
|
-
"@swc/core-linux-arm64-musl": "1.3.
|
|
158
|
-
"@swc/core-win32-arm64-msvc": "1.3.
|
|
148
|
+
"@swc/core-win32-x64-msvc": "1.3.50",
|
|
149
|
+
"@swc/core-darwin-x64": "1.3.50",
|
|
150
|
+
"@swc/core-linux-x64-gnu": "1.3.50",
|
|
151
|
+
"@swc/core-linux-x64-musl": "1.3.50",
|
|
152
|
+
"@swc/core-win32-ia32-msvc": "1.3.50",
|
|
153
|
+
"@swc/core-linux-arm64-gnu": "1.3.50",
|
|
154
|
+
"@swc/core-linux-arm-gnueabihf": "1.3.50",
|
|
155
|
+
"@swc/core-darwin-arm64": "1.3.50",
|
|
156
|
+
"@swc/core-linux-arm64-musl": "1.3.50",
|
|
157
|
+
"@swc/core-win32-arm64-msvc": "1.3.50"
|
|
159
158
|
},
|
|
160
159
|
"files": [
|
|
161
160
|
"CHANGELOG.md",
|