@swc/core 1.3.0 → 1.3.2
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 +199 -0
- package/README.md +3 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,205 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/codegen)** Drop the last comma in an array literal (#5877) ([7d6d04b](https://github.com/swc-project/swc/commit/7d6d04b4215c5c1ec368a8ccdabdda187cfa647e))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat)** Fix handling of objects in generator (#5861) ([006c7fb](https://github.com/swc-project/swc/commit/006c7fb56e0b8d4955f848c6af8c83bcd87515ab))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/minifier)** Remove `fake_block` while calculating next scope (#5869) ([991a34e](https://github.com/swc-project/swc/commit/991a34e0c2b50f81dfdf44ae892ebc118a808c58))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Fix handling of `.toFixed` call without an argument (#5868) ([90d311c](https://github.com/swc-project/swc/commit/90d311c042952c8b0d6381791c9f504fc54551ae))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/minifier)** Fix unicode handling (#5875) ([c3fa96b](https://github.com/swc-project/swc/commit/c3fa96b21b1545be62fdfd359ca5762a1bd4a473))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(html/parser)** Reflect the fix for a bug in spec (#5779) ([57e9f9c](https://github.com/swc-project/swc/commit/57e9f9c88ed4c8f29a26e500fd1f00cb1befab9f))
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/minifier)** Move assign with seq init into seq (#5847) ([63fb0c4](https://github.com/swc-project/swc/commit/63fb0c4ad34698d4d3f0c49ff5a78f6e446e64f9))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/minifier)** Drop variable from the sequential inliner (#5896) ([4e656af](https://github.com/swc-project/swc/commit/4e656af1ecddadc4fa96e79aaf7338b7f22a672c))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/plugin)** Enable plugin for bytecheck flags (#5885) ([2d4d04d](https://github.com/swc-project/swc/commit/2d4d04d06beec5c88e8515c95298a0bf5d961d8c))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(preset-env/base)** Implement more traits for `BrowserData` and `Version` (#5879) ([73c48a8](https://github.com/swc-project/swc/commit/73c48a8e6eb3d002ca0c575d253f32ae1aa6e5ea))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(swc_core)** Enable `bytecheck` for plugin (#5878) ([1ba151f](https://github.com/swc-project/swc/commit/1ba151fe9540a8595f9ac9f286917fdec9db5264))
|
|
42
|
+
|
|
43
|
+
### Miscellaneous Tasks
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(ci)** Reduce CI time (#5870) ([9ca3966](https://github.com/swc-project/swc/commit/9ca3966686ea2e62dc7225352cdc2ae66b970b8b))- **general**: Update MSRV (#5856) ([f3e0267](https://github.com/swc-project/swc/commit/f3e02675ad74013b82ef911bfcf75e39bc7b4967))- **general**: Fix publish script ([720b3e0](https://github.com/swc-project/swc/commit/720b3e05c1e5fa9ab5bdae5f6d1268d6f6bce885))- **general**: Remove `.prettierrc.json` (#5895) ([89f0a4c](https://github.com/swc-project/swc/commit/89f0a4c5ac66d30ac2b9bf51db488a9946acea65))
|
|
48
|
+
|
|
49
|
+
### Performance
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(html)** Reduce memory usage (#5867) ([7f62fa6](https://github.com/swc-project/swc/commit/7f62fa62277621bc0787eca1e5e0df9dd575b5cd))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(html/parser)** Improve performance (#5884) ([5645e81](https://github.com/swc-project/swc/commit/5645e810df36e7954dc1249634e1a92e34f8172c))
|
|
57
|
+
|
|
58
|
+
### Refactor
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/ast)** Apply rkyv-bytecheck flag (#5866) ([092b728](https://github.com/swc-project/swc/commit/092b7281d0929a77ddfa3d09018445b94b0dc1cf))- **general**: Refactor code using clippy (#5863) ([dfb01bd](https://github.com/swc-project/swc/commit/dfb01bde71c73ea398b7e3d8428a3c3015366d4e))
|
|
63
|
+
|
|
64
|
+
### Testing
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(es/minifier)** Add a test for a fixed issue (#5897) ([0bbcfe1](https://github.com/swc-project/swc/commit/0bbcfe15ee25e6debfb3dbed2d97fbf65bbb885a))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **(es/modules)** Add tests for `jsc.paths` (#5876) ([0d492bf](https://github.com/swc-project/swc/commit/0d492bfce1681dbbdbe8701f6e928002cc6ce6cd))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/plugin)** Add a noop plugin (#5892) ([20d071b](https://github.com/swc-project/swc/commit/20d071bdc771e9b863a9f8d38a11485539eda0d0))
|
|
75
|
+
|
|
76
|
+
### Build
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(bindings)** Remove cargo patch (#5874) ([355bb41](https://github.com/swc-project/swc/commit/355bb41a1f0c9920c16d620f3b8099e910cedbad))
|
|
81
|
+
|
|
82
|
+
## [1.3.1] - 2022-09-14
|
|
83
|
+
|
|
84
|
+
### Bug Fixes
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- **(cli)** Update the plugin template (#5824) ([969ecde](https://github.com/swc-project/swc/commit/969ecdee3d63b2f4b9ffc7f854d25ceb5bff32f4))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- **(css/minifier)** Compress alpha (#5825) ([b531410](https://github.com/swc-project/swc/commit/b531410ea90f38da7e491862097cf7a2dea51fe9))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
- **(css/minifier)** Fix minification of universal selectors (#5826) ([1803874](https://github.com/swc-project/swc/commit/1803874f1484ab2a3c7b23b5e027e72f99740fba))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
- **(es/ast)** Revert #5798 (#5798) (#5855) ([4cde553](https://github.com/swc-project/swc/commit/4cde5538119ccafee8e4d324c4fa4ffdf1ca4f12))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
- **(es/codegen)** Remove redundant `;` after export default decl (#5851) ([2b24642](https://github.com/swc-project/swc/commit/2b2464271aa938968986287fa03e2ef06dcd3fd7))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **(es/minifier)** Don't replace parameters of IIFE if it's recursive (#5852) ([a5f7b69](https://github.com/swc-project/swc/commit/a5f7b6946fcf020b4669ac301b944ba5c0adbbba))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(es/minifier)** Preserve more side effects (#5853) ([32f1806](https://github.com/swc-project/swc/commit/32f18068ad90ba2bfc7cf34b82245f9db2473077))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- **(es/modules)** Improve compatibility with `cjs-module-lexer` (#5835) ([bf75981](https://github.com/swc-project/swc/commit/bf759819e4ad577e89c2605e80e80c928017029d))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(es/parser)** Keep comments of the RHS of a binary expression (#5812) ([8adbe16](https://github.com/swc-project/swc/commit/8adbe1675e6e86b0d1eb2f67ecdba3eb4ed5ee96))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
- **(es/parser)** Handle more `TS1185` (#5834) ([10637b0](https://github.com/swc-project/swc/commit/10637b006fb5c66b9bf7b9fef417ee04924f2845))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **(swc_core)** Fix reexport of `testing` (#5848) ([c0da2e9](https://github.com/swc-project/swc/commit/c0da2e998ada947563de83ba19feed789f1a1aea))
|
|
119
|
+
|
|
120
|
+
### Features
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
- **(css/minifier)** Compress `@media` and `@supports` (#5828) ([211b0a9](https://github.com/swc-project/swc/commit/211b0a93fd994084e20dca47aad42d2e9e66e63f))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(es/minifier)** Extend inlining of identifiers to multi-usage (#5832) ([8567a38](https://github.com/swc-project/swc/commit/8567a38c4a9363c41d0cab1c8adec02ee2e9b202))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(es/parser)** Improve jsx lexer (#5805) ([97729e5](https://github.com/swc-project/swc/commit/97729e5d2bc74841ac2907902ddbd413d5645f9a))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
- **(swc_core)** Export `swc_common/sourcemap` (#5818) ([2819be5](https://github.com/swc-project/swc/commit/2819be5aac9d341bfb57335b5c9f96c267f9883d))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
- **(swc_core)** Export testing utilities (#5839) ([856d741](https://github.com/swc-project/swc/commit/856d741ec77f46eb04be8489a3a18340269dbe4d))
|
|
137
|
+
|
|
138
|
+
### Miscellaneous Tasks
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- **(ci)** FIx publish action (#5857) ([c2f25c9](https://github.com/swc-project/swc/commit/c2f25c9998776366a5df8da77d94b0a85e4869fe))
|
|
143
|
+
|
|
144
|
+
### Performance
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- **(atoms)** Reduce size of `Atom` (#5831) ([2400427](https://github.com/swc-project/swc/commit/24004270d949f0e8fb87151b1fce342fe39360ef))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- **(css)** Optimize memory layout of ast types (#5823) ([4f119b2](https://github.com/swc-project/swc/commit/4f119b26935aeb06fb16a116c4f96783f6edfdae))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
- **(css/minifier)** Merge passes (#5820) ([f523502](https://github.com/swc-project/swc/commit/f523502f4cf03b238bd7b859930f344169302907))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
- **(css/minifier)** Merge more passes into the compressor (#5821) ([4fa5a27](https://github.com/swc-project/swc/commit/4fa5a2778b3fd8627f52f3040041bdcb9b86467c))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
- **(css/minifier)** Merge passes and reduce clone (#5822) ([9e81c26](https://github.com/swc-project/swc/commit/9e81c2639b4182ebbc5ec87b77b4b6ba052cab72))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
- **(es/minifier)** Optimize usage of `IndexSet` (#5814) ([704ea3d](https://github.com/swc-project/swc/commit/704ea3d48d8c98b7a3f7400621ef93d041c27860))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
- **(es/minifier)** Make expression simplifier stateless and parallel (#5819) ([cfe575e](https://github.com/swc-project/swc/commit/cfe575e35a47c8a0d0550df9fc8dd0db932b6c41))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- **(es/minifier)** Make the expression simplifier more parallel (#5841) ([b6cf975](https://github.com/swc-project/swc/commit/b6cf9750ecda6d4a7b1f1c9c7c26a801dc40c213))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
- **(es/minifier)** Reduce type sizes (#5843) ([fe3072b](https://github.com/swc-project/swc/commit/fe3072b12a32cbae3b4f9e904add8ad2ab6cc7f3))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
- **(es/parser)** Optimize memory layout (#5833) ([10484ed](https://github.com/swc-project/swc/commit/10484edbf768dcf96a99960a53cfb5968750b0c2))
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
- **(html/minifier)** Improve performance (#5840) ([b691fec](https://github.com/swc-project/swc/commit/b691fec7b7949c4fff016e53b32b7f001403773a))
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
- **(html/minifier)** Improve performance (#5838) ([ccd618c](https://github.com/swc-project/swc/commit/ccd618ce54cc21dbdeecd766f91816b395629678))
|
|
182
|
+
|
|
183
|
+
### Refactor
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
- **(es/ast)** Apply rkyv-bytecheck flag (#5798) ([37f42df](https://github.com/swc-project/swc/commit/37f42df877b63479c3c6ed0f2d7fb24791da6589))
|
|
188
|
+
|
|
189
|
+
### Testing
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
- **(es/transforms)** Enable tests for fixed issues (#5845) ([0284c1b](https://github.com/swc-project/swc/commit/0284c1bf40de7d199733ee8f93c189d9658fe6b0))
|
|
194
|
+
|
|
195
|
+
### Build
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
- **(bindings)** Use new llvm pass manager (#5816) ([bb427c4](https://github.com/swc-project/swc/commit/bb427c4267d005f77e3aca4bd6c8c65b2c508ee8))
|
|
200
|
+
|
|
201
|
+
## [1.3.0] - 2022-09-10
|
|
202
|
+
|
|
203
|
+
### Bug Fixes
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
8
207
|
- **(es)** Use `paren_remover` pass (#5753) ([9c998d4](https://github.com/swc-project/swc/commit/9c998d4406fe641198092074d3ee3a859fc7b97e))
|
|
9
208
|
|
|
10
209
|
|
package/README.md
CHANGED
|
@@ -38,7 +38,9 @@ Also, SWC tries to ensure that
|
|
|
38
38
|
|
|
39
39
|
> If you select the latest version of each crates, it will work
|
|
40
40
|
|
|
41
|
-
for rust users.
|
|
41
|
+
for rust users.
|
|
42
|
+
|
|
43
|
+
MSRV of crates named `swc_ecma_*` is the current stable, and nightly for others.
|
|
42
44
|
|
|
43
45
|
---
|
|
44
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.2",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
"url": "https://opencollective.com/swc"
|
|
144
144
|
},
|
|
145
145
|
"optionalDependencies": {
|
|
146
|
-
"@swc/core-win32-x64-msvc": "1.3.
|
|
147
|
-
"@swc/core-darwin-x64": "1.3.
|
|
148
|
-
"@swc/core-linux-x64-gnu": "1.3.
|
|
149
|
-
"@swc/core-linux-x64-musl": "1.3.
|
|
150
|
-
"@swc/core-freebsd-x64": "1.3.
|
|
151
|
-
"@swc/core-win32-ia32-msvc": "1.3.
|
|
152
|
-
"@swc/core-linux-arm64-gnu": "1.3.
|
|
153
|
-
"@swc/core-linux-arm-gnueabihf": "1.3.
|
|
154
|
-
"@swc/core-darwin-arm64": "1.3.
|
|
155
|
-
"@swc/core-android-arm64": "1.3.
|
|
156
|
-
"@swc/core-linux-arm64-musl": "1.3.
|
|
157
|
-
"@swc/core-win32-arm64-msvc": "1.3.
|
|
158
|
-
"@swc/core-android-arm-eabi": "1.3.
|
|
146
|
+
"@swc/core-win32-x64-msvc": "1.3.2",
|
|
147
|
+
"@swc/core-darwin-x64": "1.3.2",
|
|
148
|
+
"@swc/core-linux-x64-gnu": "1.3.2",
|
|
149
|
+
"@swc/core-linux-x64-musl": "1.3.2",
|
|
150
|
+
"@swc/core-freebsd-x64": "1.3.2",
|
|
151
|
+
"@swc/core-win32-ia32-msvc": "1.3.2",
|
|
152
|
+
"@swc/core-linux-arm64-gnu": "1.3.2",
|
|
153
|
+
"@swc/core-linux-arm-gnueabihf": "1.3.2",
|
|
154
|
+
"@swc/core-darwin-arm64": "1.3.2",
|
|
155
|
+
"@swc/core-android-arm64": "1.3.2",
|
|
156
|
+
"@swc/core-linux-arm64-musl": "1.3.2",
|
|
157
|
+
"@swc/core-win32-arm64-msvc": "1.3.2",
|
|
158
|
+
"@swc/core-android-arm-eabi": "1.3.2"
|
|
159
159
|
},
|
|
160
160
|
"files": [
|
|
161
161
|
"CHANGELOG.md",
|