@swc/core 1.2.208 → 1.2.209
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 +68 -0
- package/README.md +8 -0
- package/package.json +14 -14
- package/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,74 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/codegen)** Emit numeric value for Binary and Octal literals (#5083) ([8df6e04](https://github.com/swc-project/swc/commit/8df6e047cc523088a26a3363fe33f1bc224738b0))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat)** Preserve spans in `object_rest_spread` (#5082) ([de66b64](https://github.com/swc-project/swc/commit/de66b64aed13166803ebdfb91d1c421eec064c25))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/compat)** Preserve class names (#5104) ([adbb0bf](https://github.com/swc-project/swc/commit/adbb0bf8d8391aa4f15d64c72be701c03de98617))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/lints)** Cover more `const-assign` cases (#5098) ([f7d857c](https://github.com/swc-project/swc/commit/f7d857c6b6c32ad228aa929d0301b22c9d34ff8b))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/modules)** Preserve orders of exports (#5081) ([2f2039c](https://github.com/swc-project/swc/commit/2f2039c693bd1e16b16dd1b1b32f3582fdadca4e))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/modules)** Create an indirect call for a lazy require (#5089) ([0a7ca2f](https://github.com/swc-project/swc/commit/0a7ca2f4bbfaa2573b4da6b25127064cbcfd755f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/modules)** Support lazy for `export from` (#5103) ([c531e67](https://github.com/swc-project/swc/commit/c531e67a3058bd6d567922d74fe51dc6e393761b))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/react)** Don't panic on invalid react pragma (#5101) ([cc555ef](https://github.com/swc-project/swc/commit/cc555ef225e3299bc17b6e21d67b3a42619abd5a))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/resolver)** Fix handling of block scoped functions (#5092) ([9519e80](https://github.com/swc-project/swc/commit/9519e801ea3bd9a0d7cc4f145323d0a734c83669))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(html/minifier)** Small fix (#5079) ([5ac5ae2](https://github.com/swc-project/swc/commit/5ac5ae200c3c896f205e7c4567a5a6281d16015b))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(html/minifier)** Fix bugs of the smart mode (#5093) ([5932a0a](https://github.com/swc-project/swc/commit/5932a0a2ef42ae67f1d2eceebe752b01160ca6fe))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(node/types)** Add `simplify` (#5105) ([2a29b50](https://github.com/swc-project/swc/commit/2a29b50c5eb7e1441c2735fec9686771c6050053))
|
|
42
|
+
|
|
43
|
+
### Features
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(es/modules)** Support `allowTopLevelThis` (#5086) ([9addef6](https://github.com/swc-project/swc/commit/9addef6fc8672854b52a1b71668795474a6f3fec))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/modules)** Add pure annotations to interop functions (#5087) ([4d5783d](https://github.com/swc-project/swc/commit/4d5783d9cd1f91f5b7cdcc5efaa7d83f35ee4fef))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(es/modules)** Support AMD triple slash directives (#5091) ([ddb31d1](https://github.com/swc-project/swc/commit/ddb31d1fd79250b14cbb873424f02c750f9c6ef6))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/parser)** Support labelled function from annex B (#5078) ([b62fd3e](https://github.com/swc-project/swc/commit/b62fd3e6cc371ad4f8cb9055b3fed70f1954afa2))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(html/minifier)** Remove empty metadata elements (#5085) ([cb845c9](https://github.com/swc-project/swc/commit/cb845c9bf903136b074af269b96a685027599284))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(visit)** Add path-aware variants (#5073) ([204d742](https://github.com/swc-project/swc/commit/204d742ed6ed5f91612245604b4e9037470bc97a))
|
|
63
|
+
|
|
64
|
+
### Testing
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(es/modules)** Add test for string-names (#5088) ([52bfb18](https://github.com/swc-project/swc/commit/52bfb18113895d20bc952e84302e8591c1fdf407))
|
|
69
|
+
|
|
70
|
+
## [1.2.208] - 2022-07-01
|
|
71
|
+
|
|
72
|
+
### Bug Fixes
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
8
76
|
- **(es/compat)** Preserve this in function with block scoped vars (#5056) ([18ea2b5](https://github.com/swc-project/swc/commit/18ea2b577011d610fbb06bb6728a86be8366703a))
|
|
9
77
|
|
|
10
78
|
|
package/README.md
CHANGED
|
@@ -34,6 +34,14 @@
|
|
|
34
34
|
|
|
35
35
|
SWC (stands for `Speedy Web Compiler`) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see [rustdoc](https://rustdoc.swc.rs/swc/) and for most users, your entry point for using the library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/).
|
|
36
36
|
|
|
37
|
+
Also, SWC tries to ensure that
|
|
38
|
+
|
|
39
|
+
> If you select the latest version of each crates, it will work
|
|
40
|
+
|
|
41
|
+
for rust users. Without such guarantee, using SWC would be too hard as SWC is a large, modular project and typically you have to use many modules.
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
37
45
|
If you are using SWC from JavaScript, please refer to [docs on the website](https://swc.rs/docs/installation/).
|
|
38
46
|
|
|
39
47
|
# Documentation
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.209",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -135,18 +135,18 @@
|
|
|
135
135
|
"url": "https://opencollective.com/swc"
|
|
136
136
|
},
|
|
137
137
|
"optionalDependencies": {
|
|
138
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
139
|
-
"@swc/core-darwin-x64": "1.2.
|
|
140
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
141
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
142
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
143
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
144
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
145
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
146
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
147
|
-
"@swc/core-android-arm64": "1.2.
|
|
148
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
149
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
150
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
138
|
+
"@swc/core-win32-x64-msvc": "1.2.209",
|
|
139
|
+
"@swc/core-darwin-x64": "1.2.209",
|
|
140
|
+
"@swc/core-linux-x64-gnu": "1.2.209",
|
|
141
|
+
"@swc/core-linux-x64-musl": "1.2.209",
|
|
142
|
+
"@swc/core-freebsd-x64": "1.2.209",
|
|
143
|
+
"@swc/core-win32-ia32-msvc": "1.2.209",
|
|
144
|
+
"@swc/core-linux-arm64-gnu": "1.2.209",
|
|
145
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.209",
|
|
146
|
+
"@swc/core-darwin-arm64": "1.2.209",
|
|
147
|
+
"@swc/core-android-arm64": "1.2.209",
|
|
148
|
+
"@swc/core-linux-arm64-musl": "1.2.209",
|
|
149
|
+
"@swc/core-win32-arm64-msvc": "1.2.209",
|
|
150
|
+
"@swc/core-android-arm-eabi": "1.2.209"
|
|
151
151
|
}
|
|
152
152
|
}
|