@swc/core 1.2.139 → 1.2.143
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 +455 -0
- package/package.json +16 -17
- package/types.d.ts +16 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,296 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
## [unreleased]
|
|
3
3
|
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- **(es/lints)** Implement `no-restricted-syntax` rule (#3607) ([72343ba](https://github.com/swc-project/swc/commit/72343baf5be311809fe786ee8bbea52515197286))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/minifier)** Treat `!0` as a literal while inlining (#3631) ([d2c9441](https://github.com/swc-project/swc/commit/d2c94416a8735715f37fc680c7b5178bc88239ce))
|
|
12
|
+
|
|
13
|
+
### Performance
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Fix performance bug of the mangler (#3633) ([fd0e952](https://github.com/swc-project/swc/commit/fd0e952aec427e86d276b51e8f6659de8f9eac94))
|
|
18
|
+
|
|
19
|
+
## [1.2.142] - 2022-02-18
|
|
20
|
+
|
|
21
|
+
### Bug Fixes
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
- **(css)** Fix recovery mode for functions (#3600) ([5420bcc](https://github.com/swc-project/swc/commit/5420bccc595b7088a8092ebebc589e5532cec55a))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
- **(css/parser)** Fix parsing of component values (#3611) ([b7dcccc](https://github.com/swc-project/swc/commit/b7dcccc74811c2a56cf6c137176de519c0737a28))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
- **(es)** Pass `FileName::Custom` to plugins (#3578) ([df69930](https://github.com/swc-project/swc/commit/df69930c7f27127bc4e8268ee14e6cc28c157748))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
- **(es/compat)** Handle `super` and `new.target` in class properties (#3594) ([3191741](https://github.com/swc-project/swc/commit/31917417e929ab2137143b44c15b95d7c642e71e))
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
- **(es/lints)** Use `kebab-case` for configuration (#3590) ([71a94b1](https://github.com/swc-project/swc/commit/71a94b143ed881eca9097e724f5dd4986241a9b1))
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
- **(node-swc/types)** Fix experimental config options (#3603) ([2b5eba1](https://github.com/swc-project/swc/commit/2b5eba16c3a5e3621b6e66d92db1e0d6c400c9f2))
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
- **(plugin)** Fix caching of wasm modulee (#3616) ([05aecf5](https://github.com/swc-project/swc/commit/05aecf507e9bf46002e0629b159245ff9c0f7b2c))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
- **(swc_common)** Fix names of proxied functions (#3608) ([e863f9d](https://github.com/swc-project/swc/commit/e863f9dd0486a53c835e9cd08cfa7ab7c31dd087))
|
|
47
|
+
|
|
48
|
+
### Documentation
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
- **(api/rust)** Fix rustdoc (#3620) ([4d5ba55](https://github.com/swc-project/swc/commit/4d5ba55e8a220155c2bae82d843309ae5731f8a1))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- **(swc_common)** Document error reporting using `HANDLER` (#3605) ([9df0d7c](https://github.com/swc-project/swc/commit/9df0d7c854b1ebceb955a0cfe3fc7edb5891c0d0))
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- **(api/rust)** Improve error messages for wrong usages of scoped thread-local variables (#3606) ([798ef13](https://github.com/swc-project/swc/commit/798ef137069ebb4a5998938bc99866c5b2050437))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(cli)** Initialize compile command (#3602) ([5ed3f3a](https://github.com/swc-project/swc/commit/5ed3f3a503ef01d162b45e0671a85f69b92f360c))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- **(css/ast)** Use `SimpleBlock` for `@keyframe`s (#3577) ([a20ed34](https://github.com/swc-project/swc/commit/a20ed34e6b7ebb9b63d51a3e04d5c6e28b013daa))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(css/codegen)** Improve minification of selectors (#3624) ([8271566](https://github.com/swc-project/swc/commit/8271566d21a6e33ccad40f4f30c50454a723e0f5))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- **(css/minifier)** Remove empty qualified rules and at-rules (#3597) ([8c9b154](https://github.com/swc-project/swc/commit/8c9b154e13624110053a14365321c49fc2eec434))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
- **(css/minifier)** Implement the rule for easing functions (#3615) ([8e06b2a](https://github.com/swc-project/swc/commit/8e06b2a42c7ba349ddbf957a6e62916c82f94b1a))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
- **(es/compat)** Check for duplicate private names and undefined private names (#3613) ([5c03551](https://github.com/swc-project/swc/commit/5c035513410326a0d5d0dfa61f7440e9d0987632))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- **(es/lints)** Implement `no-dupe-args` rule (#3574) ([3e29b73](https://github.com/swc-project/swc/commit/3e29b73a2a46b146c735e3ce1e01c0cadd906323))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
- **(es/lints)** Allow using number as an error level (#3593) ([08c343b](https://github.com/swc-project/swc/commit/08c343b18634ce9cc2af9ff1b2ff1921520fb0dd))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- **(swc)** Add `$schema` and utf8-bom support for `.swcrc` (#3622) ([3615f41](https://github.com/swc-project/swc/commit/3615f41c7907e74aa3f0321e4577bc78bbdc8f25))
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Tasks
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
- **(ci)** Fix the script for `CHANGELOG.md` ([cbe87db](https://github.com/swc-project/swc/commit/cbe87db4dfd82a5800c880b86702ad8ac15993fe))
|
|
95
|
+
|
|
96
|
+
### Refactor
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
- **(node-swc/types)** Provide typed configuration for plugins (#3584) ([07485d3](https://github.com/swc-project/swc/commit/07485d372ec4aaf4d58a58410dbac40311989b61))
|
|
101
|
+
|
|
102
|
+
### Testing
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(css/codegen)** Add tests for custom properties in at-rules (#3596) ([b019165](https://github.com/swc-project/swc/commit/b01916531fe889d1559e0bf6a87777454467ab7a))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- **(es/modules)** Add a test for a fixed issue (#3586) ([038e7f8](https://github.com/swc-project/swc/commit/038e7f86698adfbbc2b04d8662e877401d7cf2ea))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(es/parser)** Add a test for #2417 (#3588) ([a2f9c88](https://github.com/swc-project/swc/commit/a2f9c88b629b83532c2bd644fbba0e1f50b61b73))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
- **(es/typescript)** Add a test for #2670 (#3589) ([f469e65](https://github.com/swc-project/swc/commit/f469e653f861e5ca8789ba1baa4b29f507d0c737))
|
|
116
|
+
|
|
117
|
+
### Build
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(swc)** Bump the version of `parking_lot` (#3604) ([5061101](https://github.com/swc-project/swc/commit/50611019992618b0d0a2783ddca4e21bc6e1af69))
|
|
122
|
+
|
|
123
|
+
## [1.2.141] - 2022-02-16
|
|
124
|
+
|
|
125
|
+
### Bug Fixes
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
- **(es/lints)** Fix `duplicate-bindings` for typescript (#3583) ([786d016](https://github.com/swc-project/swc/commit/786d016174bf0aaea0783d4a1644349437d8cd3b))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
- **(node-swc/types)** Change `StringLiteral.has_escape` to `StringLiteral.hasEscape` (#3581) ([bf68155](https://github.com/swc-project/swc/commit/bf68155e56dd32884ac880010dba519ea3a35746))
|
|
133
|
+
|
|
134
|
+
### Features
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **(css/ast)** Use `SimpleBlock` in more places (#3575) ([e97074b](https://github.com/swc-project/swc/commit/e97074b6c37a326095a4aa6cb04be0c26d5bbb42))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
- **(css/minifier)** Compress contents of `@keyframes` at-rule (#3579) ([803499c](https://github.com/swc-project/swc/commit/803499c5bee0b7b092c2b872f546f329fda83130))
|
|
142
|
+
|
|
143
|
+
### Miscellaneous Tasks
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
- **(ci)** Don't run pr check for pushes ([1bce557](https://github.com/swc-project/swc/commit/1bce5578516a934b920297931ffdd480f0ade624))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
- **(ci)** Make CI faster ([55250e4](https://github.com/swc-project/swc/commit/55250e442872ec0bcc20f9b82008fe9d6d14d34e))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
- **(ci)** Fix the auto-bump scripts ([2d9735b](https://github.com/swc-project/swc/commit/2d9735b9a9c2e74412c307645f59b3b0ac0d9696))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
- **(ci)** Fix the auto-bump scripts ([7ddd588](https://github.com/swc-project/swc/commit/7ddd5886f3be72d34828678c2ceeb6335f2032ae))
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
- **(ci)** Fix the auto-bump scripts ([c775674](https://github.com/swc-project/swc/commit/c775674ec035618cc8cc569e9122e9064e2335ce))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- **(ci)** Fix version of git-cliff ([32bc17f](https://github.com/swc-project/swc/commit/32bc17ff1a75cdc78544dd4242173244d5691bc4))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
- **(ci)** Don't mark as a failure ([6173bb8](https://github.com/swc-project/swc/commit/6173bb88fd6bff9f191b99d841266a70fd211a0e))
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
- **(ci)** Fix the condition for cancel action ([d66f701](https://github.com/swc-project/swc/commit/d66f701a4a106f431b4199cb611f6fd5bf657c41))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- **(ci)** Skip instead of cancel ([85caf29](https://github.com/swc-project/swc/commit/85caf291e2314bf25997148b09c6babbe80c88e1))
|
|
172
|
+
|
|
173
|
+
### Refactor
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
- **(plugin)** Remove direct dependency to `once_cell` (#3582) ([88e07b2](https://github.com/swc-project/swc/commit/88e07b21d1f8a6439335134747e3da3bc1da646d))
|
|
178
|
+
|
|
179
|
+
## [1.2.140] - 2022-02-15
|
|
180
|
+
|
|
181
|
+
### Bug Fixes
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
- **(es/compat)** Allow destructuring assignment to an object property (#3544) ([5802b62](https://github.com/swc-project/swc/commit/5802b62e3486b0fba176533fcd2998f47c60910d))
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
- **(es/compat)** Fix destructing of `const` (#3545) ([342c320](https://github.com/swc-project/swc/commit/342c320bfa1f43f25262c0ba403a51df8228c655))
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
- **(es/compat)** Apply `new.target` before `classes` (#3555) ([f1c7394](https://github.com/swc-project/swc/commit/f1c7394d10d624009549ec24de8c79b08594cfd4))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
- **(es/compat)** Handle arrow parameters in class fields (#3556) ([45b44b0](https://github.com/swc-project/swc/commit/45b44b088cf0c0964232b66bb4b7b5f9e539623d))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
- **(es/compat)** Fix handling of constructor in `classes` (#3505) ([0b16210](https://github.com/swc-project/swc/commit/0b162102fad75a364121b51a94fc36a7f8872259))
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
- **(es/minifier)** Fix analyzer (#3557) ([ac1d405](https://github.com/swc-project/swc/commit/ac1d4058f276693f52d5ccec5ccbb4c04f62bc9f))
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
- **(es/minifier)** Disable name mangler if `eval` is used (#3526) ([bfc9897](https://github.com/swc-project/swc/commit/bfc9897e347e2adc6efb5bd66151abdb9cbaa4fa))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
- **(es/utils)** Keep arguments to `super` call (#3570) ([f67796a](https://github.com/swc-project/swc/commit/f67796a962cfd1e5c33206622c325dfbdd3b4ee2))
|
|
207
|
+
|
|
208
|
+
### Documentation
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
- **(plugin)** Fix typo (#3547) ([3fc16cd](https://github.com/swc-project/swc/commit/3fc16cdc1c69a5ee0ecb506e3a3c496c51e52756))
|
|
213
|
+
|
|
214
|
+
### Features
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
- **(bot)** Add auto-bump script (#3573) ([a1e45c4](https://github.com/swc-project/swc/commit/a1e45c4b863cd9119fd8ca8cd24439ec1bff1bfc))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
- **(css/ast)** Add `;` to delimiters (#3551) ([da36e90](https://github.com/swc-project/swc/commit/da36e90d1ee6ca479826ef379fbf0562cdc02ee5))
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
- **(css/ast)** Use correct type for `calc` (#3549) ([b311ace](https://github.com/swc-project/swc/commit/b311aced89dbbcb1605312e3ad5b0715e437bcd8))
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
- **(css/ast)** Use `SimpleBlock` for `@document` at-rule (#3564) ([3399702](https://github.com/swc-project/swc/commit/3399702b735cebcf19855b01c5b884cb44e06653))
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
- **(es/compat)** Add loose mode for `classes` (#3474) ([0f7a997](https://github.com/swc-project/swc/commit/0f7a99787f78a1b010a20fc042c4c565959557ad))
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
- **(es/lints)** Add this handling support to `no-alert` rule (#3515) ([af82006](https://github.com/swc-project/swc/commit/af8200647bb5f96525bcf3333c7c6889fe69dd5d))
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
- **(es/lints)** Add `allow` config for `no-console` rule (#3517) ([286b6c8](https://github.com/swc-project/swc/commit/286b6c804fc9f4b12065eb848be56d0a58230cf2))
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
- **(es/lints)** Implement `eqeqeq` rule (#3513) ([8d92050](https://github.com/swc-project/swc/commit/8d92050f557690bca6f695bbae173876fd9e53a2))
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
- **(es/lints)** Implement `no-empty-pattern` rule (#3550) ([f9fda27](https://github.com/swc-project/swc/commit/f9fda2743cb549d1af6b9bbb92155da3f60536c2))
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
- **(plugin)** Add `PluginContext` (#3568) ([a96217f](https://github.com/swc-project/swc/commit/a96217feaa9fea72cf828f2ec02f0639b5dd1561))
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
- **(plugin/runner)** Improve resolver support for npm (#3566) ([d6477a7](https://github.com/swc-project/swc/commit/d6477a76cf088072f5355335f48413fbbc9310c7))
|
|
249
|
+
|
|
250
|
+
### Miscellaneous Tasks
|
|
251
|
+
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
- **(bot)** Fix permission issue ([bfb51f3](https://github.com/swc-project/swc/commit/bfb51f382eb1dbd1086eddbab8cfbd285d3b7edf))
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
- **(ci)** Add a bot for auto-rebasing (#3560) ([b1fc7a9](https://github.com/swc-project/swc/commit/b1fc7a9e3446240e4615a50517e4a13c50c05f4e))
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
- **(ci)** Remove useless tests from the matrix (#3561) ([47a81bd](https://github.com/swc-project/swc/commit/47a81bdb95e11e577afd35c854939151bb8bd668))- **general**: Fix auto-rebase script ([d055711](https://github.com/swc-project/swc/commit/d0557117ce62ea6a9294720689769c4b156c62eb))- **general**: Fix auto-rebase script again ([d3f1c4e](https://github.com/swc-project/swc/commit/d3f1c4e6025722dbf5dcb493e5a60067b4227341))- **general**: Use `GITHUB_TOKEN` for auto-rebasing ([1c6e9ef](https://github.com/swc-project/swc/commit/1c6e9efeb46251d99831aab56d8b3332af6167bd))- **general**: Fix CLA issue of auto-rebase script ([59233d5](https://github.com/swc-project/swc/commit/59233d5082af625816450691103f95ffd121bd16))
|
|
261
|
+
|
|
262
|
+
### Performance
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
- **(es/optimization)** Replace `map_with_mut` with proper implementation (#3539) ([6d132ca](https://github.com/swc-project/swc/commit/6d132ca0765a46b39a6844b7de2e7f2655f7dd1b))
|
|
267
|
+
|
|
268
|
+
### Refactor
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
- **(css/ast)** Rename tokens to match spec (#3553) ([aed622b](https://github.com/swc-project/swc/commit/aed622be2f8f73581ce72f5263ad2b61a7b04ea7))
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
- **(css/parser)** Remove `parse_values`, which is not used (#3552) ([d5aee47](https://github.com/swc-project/swc/commit/d5aee470cb6ea1e25057a5a36f0a19274c1f42b3))
|
|
276
|
+
|
|
277
|
+
### Testing
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
- **(css/codegen)** Add tests (#3563) ([08dd695](https://github.com/swc-project/swc/commit/08dd695c67012fe8d58828ab047cb902b0a7d53c))
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
- **(css/parser)** Add a test for a custom function name (#3554) ([f252dfb](https://github.com/swc-project/swc/commit/f252dfb885b904ef8386f2004c359a1a2f43b63e))
|
|
285
|
+
|
|
286
|
+
### Build
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
- **(*)** Dedupe `once_cell` (#3567) ([ad6f24a](https://github.com/swc-project/swc/commit/ad6f24ad83ed0086ab7f4e260800df598212be25))
|
|
291
|
+
|
|
292
|
+
## [1.2.139] - 2022-02-12
|
|
293
|
+
|
|
4
294
|
### Bug Fixes
|
|
5
295
|
|
|
6
296
|
|
|
@@ -77,6 +367,9 @@
|
|
|
77
367
|
- **(build)** Remove version pinning of `parking_lot_core` (#3537) ([a4d914d](https://github.com/swc-project/swc/commit/a4d914dab5a4263a9f2ac396decd11b64dfc0714))
|
|
78
368
|
|
|
79
369
|
|
|
370
|
+
- **(ci)** Remove `cargo-uttil` from dependency (#3543) ([068a408](https://github.com/swc-project/swc/commit/068a4087caa12f2c28ec62b5e194a85efcc907a1))
|
|
371
|
+
|
|
372
|
+
|
|
80
373
|
- **(crates)** Use bot account for publishing commits ([c10cbc4](https://github.com/swc-project/swc/commit/c10cbc4ecaaca8f5795de70c8bcf7feee455aaa4))
|
|
81
374
|
|
|
82
375
|
|
|
@@ -4189,6 +4482,8 @@
|
|
|
4189
4482
|
### Miscellaneous Tasks
|
|
4190
4483
|
- **general**: Fix website docs link (#1317) ([5d88e8b](https://github.com/swc-project/swc/commit/5d88e8ba5434bd059eb2ae91df295fb3f1fb707b))- **general**: Update actions/setup-node (#1315) ([78dc61a](https://github.com/swc-project/swc/commit/78dc61af332fe8ce796d9345a86ef7830294e135))
|
|
4191
4484
|
|
|
4485
|
+
## [1.2.43] - 2020-12-30
|
|
4486
|
+
|
|
4192
4487
|
## [1.2.42] - 2020-12-29
|
|
4193
4488
|
|
|
4194
4489
|
### Bug Fixes
|
|
@@ -4340,6 +4635,8 @@
|
|
|
4340
4635
|
### Bundler
|
|
4341
4636
|
- **general**: Fix bugs (#1105) ([9879fa5](https://github.com/swc-project/swc/commit/9879fa59c87d1f54bde7413a9ca49e40ffd65b38))- **general**: Fix extra bugs (#1127) ([205ce4e](https://github.com/swc-project/swc/commit/205ce4ebe2bc300f66bb4e82de7a128b91e0425c))
|
|
4342
4637
|
|
|
4638
|
+
## [1.2.34] - 2020-09-24
|
|
4639
|
+
|
|
4343
4640
|
## [1.2.33] - 2020-09-24
|
|
4344
4641
|
|
|
4345
4642
|
### Bug Fixes
|
|
@@ -4367,6 +4664,8 @@
|
|
|
4367
4664
|
### Wasm
|
|
4368
4665
|
- **general**: Automatic deployment (#1084) ([7905b0d](https://github.com/swc-project/swc/commit/7905b0dcf5afaf9a465e54b6dbae211627a48ad0))
|
|
4369
4666
|
|
|
4667
|
+
## [1.2.30] - 2020-09-18
|
|
4668
|
+
|
|
4370
4669
|
## [1.2.29] - 2020-09-18
|
|
4371
4670
|
|
|
4372
4671
|
### Bundler
|
|
@@ -4375,6 +4674,8 @@
|
|
|
4375
4674
|
### Typescript_strip
|
|
4376
4675
|
- **general**: Option to remove completely unused imports (#1060) ([bc82b55](https://github.com/swc-project/swc/commit/bc82b5567e2abb9c56aa3b537354b021f4b04a6e))
|
|
4377
4676
|
|
|
4677
|
+
## [1.2.28] - 2020-09-13
|
|
4678
|
+
|
|
4378
4679
|
## [1.2.27-alpha.1] - 2020-09-13
|
|
4379
4680
|
|
|
4380
4681
|
### Cjs
|
|
@@ -4386,6 +4687,8 @@
|
|
|
4386
4687
|
### Resolver
|
|
4387
4688
|
- **general**: No additional scope for function child (#1070) ([f029115](https://github.com/swc-project/swc/commit/f029115914969d3949f77322519d3030fdbe17d9))- **general**: Correctly set in_type (#1071) ([4d5a0da](https://github.com/swc-project/swc/commit/4d5a0dacec80b2e0fdba1781ffef80aeaaa9cc49))
|
|
4388
4689
|
|
|
4690
|
+
## [1.2.26] - 2020-09-11
|
|
4691
|
+
|
|
4389
4692
|
## [1.2.25] - 2020-09-11
|
|
4390
4693
|
|
|
4391
4694
|
### Bug Fixes
|
|
@@ -4403,6 +4706,10 @@
|
|
|
4403
4706
|
### Resolver
|
|
4404
4707
|
- **general**: Handle constructor properly (#1054) ([e2546e0](https://github.com/swc-project/swc/commit/e2546e0100683b13c51345bea80affbe6941476a))- **general**: Fix handling of constructor parameters (#1056) ([aec155b](https://github.com/swc-project/swc/commit/aec155b58fdc61928f0a4e25c3405932d751a3f9))
|
|
4405
4708
|
|
|
4709
|
+
## [1.2.24] - 2020-09-08
|
|
4710
|
+
|
|
4711
|
+
## [1.2.23] - 2020-09-07
|
|
4712
|
+
|
|
4406
4713
|
## [1.2.23-alpha.1] - 2020-09-07
|
|
4407
4714
|
|
|
4408
4715
|
### Bug Fixes
|
|
@@ -4411,6 +4718,14 @@
|
|
|
4411
4718
|
|
|
4412
4719
|
- **(dep_graph)** Top level dynamic import (#1024) ([c4cc433](https://github.com/swc-project/swc/commit/c4cc4334348a633ced02976c8ac584448253e63c))- **general**: Expose dep_graph crate (#1023) ([9a073f1](https://github.com/swc-project/swc/commit/9a073f10a58270d66b6fd745ca29f3400ea70797))- **general**: Handle binary expression in callee of new (#1030) ([6524802](https://github.com/swc-project/swc/commit/6524802ae526bf2437c7025d0ed2e79a92ad66eb))
|
|
4413
4720
|
|
|
4721
|
+
## [1.2.22] - 2020-08-30
|
|
4722
|
+
|
|
4723
|
+
## [1.2.22-alpha.2] - 2020-08-30
|
|
4724
|
+
|
|
4725
|
+
## [1.2.22-alpha.1] - 2020-08-30
|
|
4726
|
+
|
|
4727
|
+
## [1.2.21] - 2020-08-24
|
|
4728
|
+
|
|
4414
4729
|
## [1.2.20] - 2020-08-15
|
|
4415
4730
|
|
|
4416
4731
|
### Hygiene
|
|
@@ -4419,6 +4734,20 @@
|
|
|
4419
4734
|
### Spack
|
|
4420
4735
|
- **general**: Allow using jsx (#971) ([7387872](https://github.com/swc-project/swc/commit/73878728aa919234f8219c912fe34981c993be13))
|
|
4421
4736
|
|
|
4737
|
+
## [1.2.19] - 2020-08-13
|
|
4738
|
+
|
|
4739
|
+
## [1.2.17] - 2020-08-10
|
|
4740
|
+
|
|
4741
|
+
## [1.2.15] - 2020-08-09
|
|
4742
|
+
|
|
4743
|
+
## [1.2.14] - 2020-08-08
|
|
4744
|
+
|
|
4745
|
+
## [1.2.13] - 2020-08-07
|
|
4746
|
+
|
|
4747
|
+
## [1.2.12] - 2020-08-06
|
|
4748
|
+
|
|
4749
|
+
## [1.2.11] - 2020-08-02
|
|
4750
|
+
|
|
4422
4751
|
## [1.2.10] - 2020-07-31
|
|
4423
4752
|
|
|
4424
4753
|
### Bug Fixes
|
|
@@ -4435,11 +4764,15 @@
|
|
|
4435
4764
|
### Spack
|
|
4436
4765
|
- **general**: Remove_item is deprecated (#881) ([053f81c](https://github.com/swc-project/swc/commit/053f81c7613a3c49e42435790a8a047e4df2e68e))
|
|
4437
4766
|
|
|
4767
|
+
## [1.2.8] - 2020-07-05
|
|
4768
|
+
|
|
4438
4769
|
## [1.2.7] - 2020-07-01
|
|
4439
4770
|
|
|
4440
4771
|
### Spack
|
|
4441
4772
|
- **general**: More extensions for node resolver (#842) ([aea757d](https://github.com/swc-project/swc/commit/aea757d369898aac573454ada6074d03084e59e4))- **general**: Enhancement (#845) ([31020e4](https://github.com/swc-project/swc/commit/31020e46d8f87eaee4bb4100cb6b660c4998e8cc))- **general**: Modules (#848) ([66d42ad](https://github.com/swc-project/swc/commit/66d42adf7eddb9af4fb664c5297c2adb7fc0805c))
|
|
4442
4773
|
|
|
4774
|
+
## [1.2.1] - 2020-06-14
|
|
4775
|
+
|
|
4443
4776
|
## [1.2.0] - 2020-06-14
|
|
4444
4777
|
|
|
4445
4778
|
### Spack
|
|
@@ -4450,6 +4783,18 @@
|
|
|
4450
4783
|
### Regenerator
|
|
4451
4784
|
- **general**: Handle yield* correctly (#833) ([5022999](https://github.com/swc-project/swc/commit/5022999600bf443cd29ebff2b9c7bb3497da0449))
|
|
4452
4785
|
|
|
4786
|
+
## [1.1.56] - 2020-06-10
|
|
4787
|
+
|
|
4788
|
+
## [1.1.53] - 2020-06-03
|
|
4789
|
+
|
|
4790
|
+
## [1.1.52] - 2020-06-02
|
|
4791
|
+
|
|
4792
|
+
## [1.1.51] - 2020-05-28
|
|
4793
|
+
|
|
4794
|
+
## [1.1.50] - 2020-05-28
|
|
4795
|
+
|
|
4796
|
+
## [1.1.49] - 2020-05-28
|
|
4797
|
+
|
|
4453
4798
|
## [1.1.48] - 2020-05-23
|
|
4454
4799
|
|
|
4455
4800
|
### Typescript_strip
|
|
@@ -4460,21 +4805,69 @@
|
|
|
4460
4805
|
### Resolver
|
|
4461
4806
|
- **general**: Handle body of arrow functions correctly (#790) ([5cc3efa](https://github.com/swc-project/swc/commit/5cc3efa851652235d10b6fbb4258c645a4edeb7c))
|
|
4462
4807
|
|
|
4808
|
+
## [1.1.45] - 2020-05-19
|
|
4809
|
+
|
|
4810
|
+
## [1.1.44] - 2020-05-18
|
|
4811
|
+
|
|
4463
4812
|
## [1.1.42] - 2020-05-09
|
|
4464
4813
|
|
|
4465
4814
|
### Dce
|
|
4466
4815
|
- **general**: Separate phase for dropping imports (#764) ([ddc5ace](https://github.com/swc-project/swc/commit/ddc5ace570d0e860901816c68d6b55c2ce8834ec))
|
|
4467
4816
|
|
|
4817
|
+
## [1.1.41] - 2020-05-05
|
|
4818
|
+
|
|
4819
|
+
## [1.1.40] - 2020-04-30
|
|
4820
|
+
|
|
4821
|
+
## [1.1.39] - 2020-04-10
|
|
4822
|
+
|
|
4823
|
+
## [1.1.38] - 2020-04-05
|
|
4824
|
+
|
|
4825
|
+
## [1.1.37] - 2020-03-28
|
|
4826
|
+
|
|
4827
|
+
## [1.1.36] - 2020-03-26
|
|
4828
|
+
|
|
4829
|
+
## [1.1.35] - 2020-03-13
|
|
4830
|
+
|
|
4831
|
+
## [1.1.34] - 2020-03-09
|
|
4832
|
+
|
|
4833
|
+
## [1.1.33] - 2020-03-05
|
|
4834
|
+
|
|
4835
|
+
## [1.1.32] - 2020-03-04
|
|
4836
|
+
|
|
4837
|
+
## [1.1.31] - 2020-03-01
|
|
4838
|
+
|
|
4839
|
+
## [1.1.30] - 2020-02-29
|
|
4840
|
+
|
|
4468
4841
|
## [1.1.29] - 2020-02-25
|
|
4469
4842
|
|
|
4470
4843
|
### Resolver
|
|
4471
4844
|
- **general**: Handle hoisting correctly (#689) ([363b835](https://github.com/swc-project/swc/commit/363b8353cf274bb134a0cbbc67ece27a63313a8b))
|
|
4472
4845
|
|
|
4846
|
+
## [1.1.28] - 2020-02-22
|
|
4847
|
+
|
|
4848
|
+
## [1.1.27] - 2020-02-20
|
|
4849
|
+
|
|
4473
4850
|
## [1.1.26] - 2020-02-19
|
|
4474
4851
|
|
|
4475
4852
|
### Resolver
|
|
4476
4853
|
- **general**: Handle method property correctly (#679) ([f79223e](https://github.com/swc-project/swc/commit/f79223e98c6a133457305d39baf53ff51c2009f9))
|
|
4477
4854
|
|
|
4855
|
+
## [1.1.25] - 2020-02-17
|
|
4856
|
+
|
|
4857
|
+
## [1.1.24] - 2020-02-15
|
|
4858
|
+
|
|
4859
|
+
## [1.1.23] - 2020-02-13
|
|
4860
|
+
|
|
4861
|
+
## [1.1.22] - 2020-02-13
|
|
4862
|
+
|
|
4863
|
+
## [1.1.21] - 2020-02-11
|
|
4864
|
+
|
|
4865
|
+
## [1.1.19] - 2020-02-07
|
|
4866
|
+
|
|
4867
|
+
## [1.1.18] - 2020-02-06
|
|
4868
|
+
|
|
4869
|
+
## [1.1.17] - 2020-01-30
|
|
4870
|
+
|
|
4478
4871
|
## [1.1.16] - 2020-01-24
|
|
4479
4872
|
|
|
4480
4873
|
### Block_scoping
|
|
@@ -4487,6 +4880,11 @@
|
|
|
4487
4880
|
|
|
4488
4881
|
## [1.1.14] - 2020-01-23
|
|
4489
4882
|
|
|
4883
|
+
### Bug Fixes
|
|
4884
|
+
- **general**: Fix as_bool treating bitor like bitand (#596)
|
|
4885
|
+
|
|
4886
|
+
([08ce8d0](https://github.com/swc-project/swc/commit/08ce8d029323c8c7685739d188c27c7d5d965b64))
|
|
4887
|
+
|
|
4490
4888
|
### Hygiene
|
|
4491
4889
|
- **general**: Handle use-use conflict (#599) ([8ecbe14](https://github.com/swc-project/swc/commit/8ecbe14207156c2fc34b29c63bb52f8ba303afce))
|
|
4492
4890
|
|
|
@@ -4503,11 +4901,41 @@
|
|
|
4503
4901
|
### Dce
|
|
4504
4902
|
- **general**: Preserve nested if statement (#565) ([3e0f4a5](https://github.com/swc-project/swc/commit/3e0f4a5bd7d247d9ac69ac8bb537a33eadc85f53))
|
|
4505
4903
|
|
|
4904
|
+
## [1.1.11] - 2020-01-02
|
|
4905
|
+
|
|
4906
|
+
## [1.1.10] - 2019-12-28
|
|
4907
|
+
|
|
4908
|
+
## [1.1.9] - 2019-12-25
|
|
4909
|
+
|
|
4910
|
+
## [1.1.8] - 2019-12-24
|
|
4911
|
+
|
|
4912
|
+
## [1.1.7] - 2019-12-21
|
|
4913
|
+
|
|
4506
4914
|
## [1.1.6] - 2019-12-14
|
|
4507
4915
|
|
|
4916
|
+
### Bug Fixes
|
|
4917
|
+
- **general**: Fixup! Add a test for #503
|
|
4918
|
+
([5076249](https://github.com/swc-project/swc/commit/5076249c907f53235778d6b44d6b83d433b88829))
|
|
4919
|
+
|
|
4508
4920
|
### Parser
|
|
4509
4921
|
- **general**: Respect jsc.target (#507) ([332061f](https://github.com/swc-project/swc/commit/332061f44dcad267a4d011ef7fc6cd35159586dd))
|
|
4510
4922
|
|
|
4923
|
+
## [1.1.5] - 2019-12-11
|
|
4924
|
+
|
|
4925
|
+
## [1.1.4] - 2019-12-09
|
|
4926
|
+
|
|
4927
|
+
## [1.1.2] - 2019-12-02
|
|
4928
|
+
|
|
4929
|
+
## [1.1.1] - 2019-12-01
|
|
4930
|
+
|
|
4931
|
+
## [1.1.0] - 2019-11-30
|
|
4932
|
+
|
|
4933
|
+
### Bug Fixes
|
|
4934
|
+
- **general**: Fixup! Don't omit empty values while serializing
|
|
4935
|
+
([41c6941](https://github.com/swc-project/swc/commit/41c6941dc5b30b701eb1e536983892d8862fe26e))
|
|
4936
|
+
|
|
4937
|
+
## [1.0.54] - 2019-11-24
|
|
4938
|
+
|
|
4511
4939
|
## [1.0.53] - 2019-11-23
|
|
4512
4940
|
|
|
4513
4941
|
### Resolver
|
|
@@ -4523,8 +4951,35 @@
|
|
|
4523
4951
|
### Parser
|
|
4524
4952
|
- **general**: Error recovery (#449) ([d074063](https://github.com/swc-project/swc/commit/d0740638671d6572d753324a6abec8340037af6d))
|
|
4525
4953
|
|
|
4954
|
+
## [1.0.49] - 2019-11-15
|
|
4955
|
+
|
|
4526
4956
|
## [1.0.48] - 2019-11-10
|
|
4527
4957
|
|
|
4958
|
+
### Bug Fixes
|
|
4959
|
+
- **general**: Fix typo
|
|
4960
|
+
([d73de6c](https://github.com/swc-project/swc/commit/d73de6c5d807946e37df7575f546088d8575b8dc))- **general**: Fix typo
|
|
4961
|
+
([06d2be4](https://github.com/swc-project/swc/commit/06d2be43c385d6ac7f1e9390b861a9a00b9e3a11))- **general**: Fix links and use sudo
|
|
4962
|
+
([9ec8856](https://github.com/swc-project/swc/commit/9ec8856136d9264cd71159f300bf37bc17cf2786))- **general**: Fix tests
|
|
4963
|
+
([92c7def](https://github.com/swc-project/swc/commit/92c7defc2e726fa2485bd545f596e33890b7627d))- **general**: Fixup! fix tests
|
|
4964
|
+
([59f11a8](https://github.com/swc-project/swc/commit/59f11a83d16a82b1861a5bd6720ab264896028c4))- **general**: Fix
|
|
4965
|
+
|
|
4966
|
+
It's not rust code..
|
|
4967
|
+
([f8ea0bd](https://github.com/swc-project/swc/commit/f8ea0bdfea5d9ae732e7f56f2dc0127685f07598))- **general**: Fix parser tests
|
|
4968
|
+
([dc8e178](https://github.com/swc-project/swc/commit/dc8e178088ae0d0dfacbc35419b7a61c4d0c1d5e))- **general**: Fix link
|
|
4969
|
+
([ed6ba04](https://github.com/swc-project/swc/commit/ed6ba04cf37c1c4f4b989f75beec2647d5c8381f))- **general**: Fix swc_ecma_codegen
|
|
4970
|
+
([fd79f4e](https://github.com/swc-project/swc/commit/fd79f4eb78e182b289d13051e93a840d8738331f))- **general**: Fix a link in README.md
|
|
4971
|
+
([d4ef56e](https://github.com/swc-project/swc/commit/d4ef56eb5b66c043e5b8cc5a84a8275cda04bd7c))- **general**: Fix a bug
|
|
4972
|
+
([90135ed](https://github.com/swc-project/swc/commit/90135ede1ebffd6328929ac82aedd1716a03f7ef))- **general**: Fix test imports for latest nightly (#355)
|
|
4973
|
+
|
|
4974
|
+
([6f97012](https://github.com/swc-project/swc/commit/6f970128219af125f839bf11785d5eb351dd06cb))- **general**: Fix lints
|
|
4975
|
+
([fbbafc5](https://github.com/swc-project/swc/commit/fbbafc5712356135e9714f1f281c93d3530a17c1))- **general**: Fix `this` in async generator (#425)
|
|
4976
|
+
|
|
4977
|
+
swc_ecma_transforms:
|
|
4978
|
+
- Don't delete test file when an execution test fails
|
|
4979
|
+
- fix #400
|
|
4980
|
+
([3a637d4](https://github.com/swc-project/swc/commit/3a637d422944b5e983fd4befb21586034efb2552))- **general**: Fixup! Bump versions
|
|
4981
|
+
([2add7a0](https://github.com/swc-project/swc/commit/2add7a08ef422e06b3b7bb9bb1c6d657a44278a7))
|
|
4982
|
+
|
|
4528
4983
|
### Miscellaneous Tasks
|
|
4529
4984
|
- **general**: Cleanup for docs; no email from travis ([056a11d](https://github.com/swc-project/swc/commit/056a11dd06c35dff6a6531890124876ba7c811bf))
|
|
4530
4985
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.143",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -47,22 +47,6 @@
|
|
|
47
47
|
"registry": "https://registry.npmjs.org/",
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"dependencies": {},
|
|
51
|
-
"optionalDependencies": {
|
|
52
|
-
"@swc/core-win32-x64-msvc": "1.2.139",
|
|
53
|
-
"@swc/core-darwin-x64": "1.2.139",
|
|
54
|
-
"@swc/core-linux-x64-gnu": "1.2.139",
|
|
55
|
-
"@swc/core-linux-x64-musl": "1.2.139",
|
|
56
|
-
"@swc/core-freebsd-x64": "1.2.139",
|
|
57
|
-
"@swc/core-win32-ia32-msvc": "1.2.139",
|
|
58
|
-
"@swc/core-linux-arm64-gnu": "1.2.139",
|
|
59
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.139",
|
|
60
|
-
"@swc/core-darwin-arm64": "1.2.139",
|
|
61
|
-
"@swc/core-android-arm64": "1.2.139",
|
|
62
|
-
"@swc/core-linux-arm64-musl": "1.2.139",
|
|
63
|
-
"@swc/core-win32-arm64-msvc": "1.2.139",
|
|
64
|
-
"@swc/core-android-arm-eabi": "1.2.139"
|
|
65
|
-
},
|
|
66
50
|
"types": "./index.d.ts",
|
|
67
51
|
"scripts": {
|
|
68
52
|
"changelog": "git cliff --output CHANGELOG.md",
|
|
@@ -118,5 +102,20 @@
|
|
|
118
102
|
"funding": {
|
|
119
103
|
"type": "opencollective",
|
|
120
104
|
"url": "https://opencollective.com/swc"
|
|
105
|
+
},
|
|
106
|
+
"optionalDependencies": {
|
|
107
|
+
"@swc/core-win32-x64-msvc": "1.2.143",
|
|
108
|
+
"@swc/core-darwin-x64": "1.2.143",
|
|
109
|
+
"@swc/core-linux-x64-gnu": "1.2.143",
|
|
110
|
+
"@swc/core-linux-x64-musl": "1.2.143",
|
|
111
|
+
"@swc/core-freebsd-x64": "1.2.143",
|
|
112
|
+
"@swc/core-win32-ia32-msvc": "1.2.143",
|
|
113
|
+
"@swc/core-linux-arm64-gnu": "1.2.143",
|
|
114
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.143",
|
|
115
|
+
"@swc/core-darwin-arm64": "1.2.143",
|
|
116
|
+
"@swc/core-android-arm64": "1.2.143",
|
|
117
|
+
"@swc/core-linux-arm64-musl": "1.2.143",
|
|
118
|
+
"@swc/core-win32-arm64-msvc": "1.2.143",
|
|
119
|
+
"@swc/core-android-arm-eabi": "1.2.143"
|
|
121
120
|
}
|
|
122
121
|
}
|
package/types.d.ts
CHANGED
|
@@ -328,6 +328,20 @@ export interface JscConfig {
|
|
|
328
328
|
experimental?: {
|
|
329
329
|
optimizeHygiene?: boolean;
|
|
330
330
|
keepImportAssertions?: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Specify the location where SWC stores its intermidiate cache files.
|
|
333
|
+
* Currently only transform plugin uses this. If not specified, SWC will
|
|
334
|
+
* create `.swc` directories.
|
|
335
|
+
*/
|
|
336
|
+
cacheRoot?: string;
|
|
337
|
+
/**
|
|
338
|
+
* List of custom transform plugins written in WebAssembly.
|
|
339
|
+
* First parameter of tuple indicates the name of the plugin - it can be either
|
|
340
|
+
* a name of the npm package can be resolved, or absolute path to .wasm binary.
|
|
341
|
+
*
|
|
342
|
+
* Second parameter of tuple is JSON based configuration for the plugin.
|
|
343
|
+
*/
|
|
344
|
+
plugins?: Array<[string, Record<string, any>]>;
|
|
331
345
|
};
|
|
332
346
|
baseUrl?: string;
|
|
333
347
|
paths?: {
|
|
@@ -420,7 +434,7 @@ export interface EsParserConfig {
|
|
|
420
434
|
importAssertions?: boolean;
|
|
421
435
|
}
|
|
422
436
|
/**
|
|
423
|
-
* Options for
|
|
437
|
+
* Options for transform.
|
|
424
438
|
*/
|
|
425
439
|
export interface TransformConfig {
|
|
426
440
|
/**
|
|
@@ -960,7 +974,7 @@ export declare type Literal = StringLiteral | BooleanLiteral | NullLiteral | Num
|
|
|
960
974
|
export interface StringLiteral extends Node, HasSpan {
|
|
961
975
|
type: "StringLiteral";
|
|
962
976
|
value: string;
|
|
963
|
-
|
|
977
|
+
hasEscape: boolean;
|
|
964
978
|
}
|
|
965
979
|
export interface BooleanLiteral extends Node, HasSpan {
|
|
966
980
|
type: "BooleanLiteral";
|