@swc/core 1.2.138 → 1.2.142

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/.kodiak.toml CHANGED
@@ -8,6 +8,7 @@ do_not_merge = true
8
8
 
9
9
  [update]
10
10
  autoupdate_label = "S-approved"
11
+ require_automerge_label = false
11
12
 
12
13
  # I want to use auto-merge feature of github
13
14
  [approve]
package/CHANGELOG.md CHANGED
@@ -5,6 +5,410 @@
5
5
 
6
6
 
7
7
 
8
+ - **(css)** Fix recovery mode for functions (#3600) ([5420bcc](https://github.com/swc-project/swc/commit/5420bccc595b7088a8092ebebc589e5532cec55a))
9
+
10
+
11
+ - **(css/parser)** Fix parsing of component values (#3611) ([b7dcccc](https://github.com/swc-project/swc/commit/b7dcccc74811c2a56cf6c137176de519c0737a28))
12
+
13
+
14
+ - **(es)** Pass `FileName::Custom` to plugins (#3578) ([df69930](https://github.com/swc-project/swc/commit/df69930c7f27127bc4e8268ee14e6cc28c157748))
15
+
16
+
17
+ - **(es/compat)** Handle `super` and `new.target` in class properties (#3594) ([3191741](https://github.com/swc-project/swc/commit/31917417e929ab2137143b44c15b95d7c642e71e))
18
+
19
+
20
+ - **(es/lints)** Use `kebab-case` for configuration (#3590) ([71a94b1](https://github.com/swc-project/swc/commit/71a94b143ed881eca9097e724f5dd4986241a9b1))
21
+
22
+
23
+ - **(node-swc/types)** Fix experimental config options (#3603) ([2b5eba1](https://github.com/swc-project/swc/commit/2b5eba16c3a5e3621b6e66d92db1e0d6c400c9f2))
24
+
25
+
26
+ - **(plugin)** Fix caching of wasm modulee (#3616) ([05aecf5](https://github.com/swc-project/swc/commit/05aecf507e9bf46002e0629b159245ff9c0f7b2c))
27
+
28
+
29
+ - **(swc_common)** Fix names of proxied functions (#3608) ([e863f9d](https://github.com/swc-project/swc/commit/e863f9dd0486a53c835e9cd08cfa7ab7c31dd087))
30
+
31
+ ### Documentation
32
+
33
+
34
+
35
+ - **(api/rust)** Fix rustdoc (#3620) ([4d5ba55](https://github.com/swc-project/swc/commit/4d5ba55e8a220155c2bae82d843309ae5731f8a1))
36
+
37
+
38
+ - **(swc_common)** Document error reporting using `HANDLER` (#3605) ([9df0d7c](https://github.com/swc-project/swc/commit/9df0d7c854b1ebceb955a0cfe3fc7edb5891c0d0))
39
+
40
+ ### Features
41
+
42
+
43
+
44
+ - **(api/rust)** Improve error messages for wrong usages of scoped thread-local variables (#3606) ([798ef13](https://github.com/swc-project/swc/commit/798ef137069ebb4a5998938bc99866c5b2050437))
45
+
46
+
47
+ - **(cli)** Initialize compile command (#3602) ([5ed3f3a](https://github.com/swc-project/swc/commit/5ed3f3a503ef01d162b45e0671a85f69b92f360c))
48
+
49
+
50
+ - **(css/ast)** Use `SimpleBlock` for `@keyframe`s (#3577) ([a20ed34](https://github.com/swc-project/swc/commit/a20ed34e6b7ebb9b63d51a3e04d5c6e28b013daa))
51
+
52
+
53
+ - **(css/codegen)** Improve minification of selectors (#3624) ([8271566](https://github.com/swc-project/swc/commit/8271566d21a6e33ccad40f4f30c50454a723e0f5))
54
+
55
+
56
+ - **(css/minifier)** Remove empty qualified rules and at-rules (#3597) ([8c9b154](https://github.com/swc-project/swc/commit/8c9b154e13624110053a14365321c49fc2eec434))
57
+
58
+
59
+ - **(css/minifier)** Implement the rule for easing functions (#3615) ([8e06b2a](https://github.com/swc-project/swc/commit/8e06b2a42c7ba349ddbf957a6e62916c82f94b1a))
60
+
61
+
62
+ - **(es/compat)** Check for duplicate private names and undefined private names (#3613) ([5c03551](https://github.com/swc-project/swc/commit/5c035513410326a0d5d0dfa61f7440e9d0987632))
63
+
64
+
65
+ - **(es/lints)** Implement `no-dupe-args` rule (#3574) ([3e29b73](https://github.com/swc-project/swc/commit/3e29b73a2a46b146c735e3ce1e01c0cadd906323))
66
+
67
+
68
+ - **(es/lints)** Allow using number as an error level (#3593) ([08c343b](https://github.com/swc-project/swc/commit/08c343b18634ce9cc2af9ff1b2ff1921520fb0dd))
69
+
70
+
71
+ - **(swc)** Add `$schema` and utf8-bom support for `.swcrc` (#3622) ([3615f41](https://github.com/swc-project/swc/commit/3615f41c7907e74aa3f0321e4577bc78bbdc8f25))
72
+
73
+ ### Miscellaneous Tasks
74
+
75
+
76
+
77
+ - **(ci)** Fix the script for `CHANGELOG.md` ([cbe87db](https://github.com/swc-project/swc/commit/cbe87db4dfd82a5800c880b86702ad8ac15993fe))
78
+
79
+ ### Refactor
80
+
81
+
82
+
83
+ - **(node-swc/types)** Provide typed configuration for plugins (#3584) ([07485d3](https://github.com/swc-project/swc/commit/07485d372ec4aaf4d58a58410dbac40311989b61))
84
+
85
+ ### Testing
86
+
87
+
88
+
89
+ - **(css/codegen)** Add tests for custom properties in at-rules (#3596) ([b019165](https://github.com/swc-project/swc/commit/b01916531fe889d1559e0bf6a87777454467ab7a))
90
+
91
+
92
+ - **(es/modules)** Add a test for a fixed issue (#3586) ([038e7f8](https://github.com/swc-project/swc/commit/038e7f86698adfbbc2b04d8662e877401d7cf2ea))
93
+
94
+
95
+ - **(es/parser)** Add a test for #2417 (#3588) ([a2f9c88](https://github.com/swc-project/swc/commit/a2f9c88b629b83532c2bd644fbba0e1f50b61b73))
96
+
97
+
98
+ - **(es/typescript)** Add a test for #2670 (#3589) ([f469e65](https://github.com/swc-project/swc/commit/f469e653f861e5ca8789ba1baa4b29f507d0c737))
99
+
100
+ ### Build
101
+
102
+
103
+
104
+ - **(swc)** Bump the version of `parking_lot` (#3604) ([5061101](https://github.com/swc-project/swc/commit/50611019992618b0d0a2783ddca4e21bc6e1af69))
105
+
106
+ ## [1.2.141] - 2022-02-16
107
+
108
+ ### Bug Fixes
109
+
110
+
111
+
112
+ - **(es/lints)** Fix `duplicate-bindings` for typescript (#3583) ([786d016](https://github.com/swc-project/swc/commit/786d016174bf0aaea0783d4a1644349437d8cd3b))
113
+
114
+
115
+ - **(node-swc/types)** Change `StringLiteral.has_escape` to `StringLiteral.hasEscape` (#3581) ([bf68155](https://github.com/swc-project/swc/commit/bf68155e56dd32884ac880010dba519ea3a35746))
116
+
117
+ ### Features
118
+
119
+
120
+
121
+ - **(css/ast)** Use `SimpleBlock` in more places (#3575) ([e97074b](https://github.com/swc-project/swc/commit/e97074b6c37a326095a4aa6cb04be0c26d5bbb42))
122
+
123
+
124
+ - **(css/minifier)** Compress contents of `@keyframes` at-rule (#3579) ([803499c](https://github.com/swc-project/swc/commit/803499c5bee0b7b092c2b872f546f329fda83130))
125
+
126
+ ### Miscellaneous Tasks
127
+
128
+
129
+
130
+ - **(ci)** Don't run pr check for pushes ([1bce557](https://github.com/swc-project/swc/commit/1bce5578516a934b920297931ffdd480f0ade624))
131
+
132
+
133
+ - **(ci)** Make CI faster ([55250e4](https://github.com/swc-project/swc/commit/55250e442872ec0bcc20f9b82008fe9d6d14d34e))
134
+
135
+
136
+ - **(ci)** Fix the auto-bump scripts ([2d9735b](https://github.com/swc-project/swc/commit/2d9735b9a9c2e74412c307645f59b3b0ac0d9696))
137
+
138
+
139
+ - **(ci)** Fix the auto-bump scripts ([7ddd588](https://github.com/swc-project/swc/commit/7ddd5886f3be72d34828678c2ceeb6335f2032ae))
140
+
141
+
142
+ - **(ci)** Fix the auto-bump scripts ([c775674](https://github.com/swc-project/swc/commit/c775674ec035618cc8cc569e9122e9064e2335ce))
143
+
144
+
145
+ - **(ci)** Fix version of git-cliff ([32bc17f](https://github.com/swc-project/swc/commit/32bc17ff1a75cdc78544dd4242173244d5691bc4))
146
+
147
+
148
+ - **(ci)** Don't mark as a failure ([6173bb8](https://github.com/swc-project/swc/commit/6173bb88fd6bff9f191b99d841266a70fd211a0e))
149
+
150
+
151
+ - **(ci)** Fix the condition for cancel action ([d66f701](https://github.com/swc-project/swc/commit/d66f701a4a106f431b4199cb611f6fd5bf657c41))
152
+
153
+
154
+ - **(ci)** Skip instead of cancel ([85caf29](https://github.com/swc-project/swc/commit/85caf291e2314bf25997148b09c6babbe80c88e1))
155
+
156
+ ### Refactor
157
+
158
+
159
+
160
+ - **(plugin)** Remove direct dependency to `once_cell` (#3582) ([88e07b2](https://github.com/swc-project/swc/commit/88e07b21d1f8a6439335134747e3da3bc1da646d))
161
+
162
+ ## [1.2.140] - 2022-02-15
163
+
164
+ ### Bug Fixes
165
+
166
+
167
+
168
+ - **(es/compat)** Allow destructuring assignment to an object property (#3544) ([5802b62](https://github.com/swc-project/swc/commit/5802b62e3486b0fba176533fcd2998f47c60910d))
169
+
170
+
171
+ - **(es/compat)** Fix destructing of `const` (#3545) ([342c320](https://github.com/swc-project/swc/commit/342c320bfa1f43f25262c0ba403a51df8228c655))
172
+
173
+
174
+ - **(es/compat)** Apply `new.target` before `classes` (#3555) ([f1c7394](https://github.com/swc-project/swc/commit/f1c7394d10d624009549ec24de8c79b08594cfd4))
175
+
176
+
177
+ - **(es/compat)** Handle arrow parameters in class fields (#3556) ([45b44b0](https://github.com/swc-project/swc/commit/45b44b088cf0c0964232b66bb4b7b5f9e539623d))
178
+
179
+
180
+ - **(es/compat)** Fix handling of constructor in `classes` (#3505) ([0b16210](https://github.com/swc-project/swc/commit/0b162102fad75a364121b51a94fc36a7f8872259))
181
+
182
+
183
+ - **(es/minifier)** Fix analyzer (#3557) ([ac1d405](https://github.com/swc-project/swc/commit/ac1d4058f276693f52d5ccec5ccbb4c04f62bc9f))
184
+
185
+
186
+ - **(es/minifier)** Disable name mangler if `eval` is used (#3526) ([bfc9897](https://github.com/swc-project/swc/commit/bfc9897e347e2adc6efb5bd66151abdb9cbaa4fa))
187
+
188
+
189
+ - **(es/utils)** Keep arguments to `super` call (#3570) ([f67796a](https://github.com/swc-project/swc/commit/f67796a962cfd1e5c33206622c325dfbdd3b4ee2))
190
+
191
+ ### Documentation
192
+
193
+
194
+
195
+ - **(plugin)** Fix typo (#3547) ([3fc16cd](https://github.com/swc-project/swc/commit/3fc16cdc1c69a5ee0ecb506e3a3c496c51e52756))
196
+
197
+ ### Features
198
+
199
+
200
+
201
+ - **(bot)** Add auto-bump script (#3573) ([a1e45c4](https://github.com/swc-project/swc/commit/a1e45c4b863cd9119fd8ca8cd24439ec1bff1bfc))
202
+
203
+
204
+ - **(css/ast)** Add `;` to delimiters (#3551) ([da36e90](https://github.com/swc-project/swc/commit/da36e90d1ee6ca479826ef379fbf0562cdc02ee5))
205
+
206
+
207
+ - **(css/ast)** Use correct type for `calc` (#3549) ([b311ace](https://github.com/swc-project/swc/commit/b311aced89dbbcb1605312e3ad5b0715e437bcd8))
208
+
209
+
210
+ - **(css/ast)** Use `SimpleBlock` for `@document` at-rule (#3564) ([3399702](https://github.com/swc-project/swc/commit/3399702b735cebcf19855b01c5b884cb44e06653))
211
+
212
+
213
+ - **(es/compat)** Add loose mode for `classes` (#3474) ([0f7a997](https://github.com/swc-project/swc/commit/0f7a99787f78a1b010a20fc042c4c565959557ad))
214
+
215
+
216
+ - **(es/lints)** Add this handling support to `no-alert` rule (#3515) ([af82006](https://github.com/swc-project/swc/commit/af8200647bb5f96525bcf3333c7c6889fe69dd5d))
217
+
218
+
219
+ - **(es/lints)** Add `allow` config for `no-console` rule (#3517) ([286b6c8](https://github.com/swc-project/swc/commit/286b6c804fc9f4b12065eb848be56d0a58230cf2))
220
+
221
+
222
+ - **(es/lints)** Implement `eqeqeq` rule (#3513) ([8d92050](https://github.com/swc-project/swc/commit/8d92050f557690bca6f695bbae173876fd9e53a2))
223
+
224
+
225
+ - **(es/lints)** Implement `no-empty-pattern` rule (#3550) ([f9fda27](https://github.com/swc-project/swc/commit/f9fda2743cb549d1af6b9bbb92155da3f60536c2))
226
+
227
+
228
+ - **(plugin)** Add `PluginContext` (#3568) ([a96217f](https://github.com/swc-project/swc/commit/a96217feaa9fea72cf828f2ec02f0639b5dd1561))
229
+
230
+
231
+ - **(plugin/runner)** Improve resolver support for npm (#3566) ([d6477a7](https://github.com/swc-project/swc/commit/d6477a76cf088072f5355335f48413fbbc9310c7))
232
+
233
+ ### Miscellaneous Tasks
234
+
235
+
236
+
237
+ - **(bot)** Fix permission issue ([bfb51f3](https://github.com/swc-project/swc/commit/bfb51f382eb1dbd1086eddbab8cfbd285d3b7edf))
238
+
239
+
240
+ - **(ci)** Add a bot for auto-rebasing (#3560) ([b1fc7a9](https://github.com/swc-project/swc/commit/b1fc7a9e3446240e4615a50517e4a13c50c05f4e))
241
+
242
+
243
+ - **(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))
244
+
245
+ ### Performance
246
+
247
+
248
+
249
+ - **(es/optimization)** Replace `map_with_mut` with proper implementation (#3539) ([6d132ca](https://github.com/swc-project/swc/commit/6d132ca0765a46b39a6844b7de2e7f2655f7dd1b))
250
+
251
+ ### Refactor
252
+
253
+
254
+
255
+ - **(css/ast)** Rename tokens to match spec (#3553) ([aed622b](https://github.com/swc-project/swc/commit/aed622be2f8f73581ce72f5263ad2b61a7b04ea7))
256
+
257
+
258
+ - **(css/parser)** Remove `parse_values`, which is not used (#3552) ([d5aee47](https://github.com/swc-project/swc/commit/d5aee470cb6ea1e25057a5a36f0a19274c1f42b3))
259
+
260
+ ### Testing
261
+
262
+
263
+
264
+ - **(css/codegen)** Add tests (#3563) ([08dd695](https://github.com/swc-project/swc/commit/08dd695c67012fe8d58828ab047cb902b0a7d53c))
265
+
266
+
267
+ - **(css/parser)** Add a test for a custom function name (#3554) ([f252dfb](https://github.com/swc-project/swc/commit/f252dfb885b904ef8386f2004c359a1a2f43b63e))
268
+
269
+ ### Build
270
+
271
+
272
+
273
+ - **(*)** Dedupe `once_cell` (#3567) ([ad6f24a](https://github.com/swc-project/swc/commit/ad6f24ad83ed0086ab7f4e260800df598212be25))
274
+
275
+ ## [1.2.139] - 2022-02-12
276
+
277
+ ### Bug Fixes
278
+
279
+
280
+
281
+ - **(cli)** Update the plugin template for pinned dependencies (#3538) ([05cf2e9](https://github.com/swc-project/swc/commit/05cf2e92e690c72ca6d49fee1dd33c9e776ba304))
282
+
283
+
284
+ - **(css/ast)** Use `SimpleBlock` in more types (#3535) ([cfb2248](https://github.com/swc-project/swc/commit/cfb2248a2e7bf19d3bafb345c5c227d4615ee197))
285
+
286
+
287
+ - **(es/modules)** Use correct `StrKind` after rewriting import path (#3489) ([ff6eb27](https://github.com/swc-project/swc/commit/ff6eb272a00f0c11c9e916eb898e1b309bcb686c))
288
+
289
+
290
+ - **(es/modules)** Hoist named exports (#3479) ([fa0216d](https://github.com/swc-project/swc/commit/fa0216d908118ba008f4be2505590bbb09b7be46))
291
+
292
+
293
+ - **(node/helpers)** Fix `isNativeReflectConstruct` (#3530) ([d14d3eb](https://github.com/swc-project/swc/commit/d14d3ebbc8f24a6bed61ce9e534ab06b32c08e34))
294
+
295
+
296
+ - **(plugin)** Allow testing (#3542) ([fbe9196](https://github.com/swc-project/swc/commit/fbe91963bfb80976eebadc9f0e94e080ed81d624))
297
+
298
+ ### Documentation
299
+
300
+
301
+
302
+ - **(plugin)** Fix install command (#3541) ([72b3197](https://github.com/swc-project/swc/commit/72b31977e49417cf9e4c95ad1365e2e212cac4d4))
303
+
304
+ ### Features
305
+
306
+
307
+
308
+ - **(cli)** Add a command for scaffolding a new plugin (#3536) ([6ed089e](https://github.com/swc-project/swc/commit/6ed089e1cff8d1e3edbe67cfe5945e3ff121f5d2))
309
+
310
+
311
+ - **(css)** Support urange syntax (#3491) ([cbe302b](https://github.com/swc-project/swc/commit/cbe302b99d762a72d8522196cc05159791515e49))
312
+
313
+
314
+ - **(css/minifier)** Implement more rules (#3522) ([69cfe39](https://github.com/swc-project/swc/commit/69cfe395c7cc0de8ea5eb4bdf605f5c56b7cf69b))
315
+
316
+
317
+ - **(css/parser)** Improve error recovery (#3486) ([48e5b90](https://github.com/swc-project/swc/commit/48e5b903e2b82e8fc741d125662bbac825d5b0d0))
318
+
319
+
320
+ - **(css/parser)** Implement more parser logic for nth selectors (#3532) ([fcbc2ff](https://github.com/swc-project/swc/commit/fcbc2ff03f9eebbb5fed95dd082504a6b1a49af9))
321
+
322
+
323
+ - **(css/parser)** Implement more error recovery (#3534) ([547eba5](https://github.com/swc-project/swc/commit/547eba5e31745877be425ad14722adf6134caca7))
324
+
325
+
326
+ - **(es/lints)** Implement `dot-notation` rule (#3481) ([5bb6bd7](https://github.com/swc-project/swc/commit/5bb6bd71b6aa5dbdde62842c34e9ef6742968650))
327
+
328
+
329
+ - **(es/lints)** Implement `no-use-before-define` rule (#3456) ([205b76e](https://github.com/swc-project/swc/commit/205b76e78d238de3a5cb8ab64aa5c61799b77bd2))
330
+
331
+
332
+ - **(es/minifier)** Implement `reserved` mangle option (#3476) ([5488159](https://github.com/swc-project/swc/commit/5488159ba5dd124878ebdc50c390a51ab3b07f16))
333
+
334
+
335
+ - **(es/minifier)** Drop useless assignments (#3528) ([a7f0e84](https://github.com/swc-project/swc/commit/a7f0e84bbf986df0afc39f18ea7553f4a8c445f1))
336
+
337
+
338
+ - **(plugin)** Implement proxy for `Mark` and `SyntaxContext` (#3511) ([bc25026](https://github.com/swc-project/swc/commit/bc250262f2af38086eeed59e4d42d14ff44d5b83))
339
+
340
+
341
+ - **(swc/plugin)** Implement proxy for `Mark::fresh` (#3492) ([494b4c8](https://github.com/swc-project/swc/commit/494b4c8203514dd9f21b2bc3804ba8c44d46a4a1))
342
+
343
+ ### Miscellaneous Tasks
344
+
345
+
346
+
347
+ - **(build)** Disable LTO for local builds (#3514) ([80ed69d](https://github.com/swc-project/swc/commit/80ed69d67dfae44986c19c04ddff758fee98f8ff))
348
+
349
+
350
+ - **(build)** Remove version pinning of `parking_lot_core` (#3537) ([a4d914d](https://github.com/swc-project/swc/commit/a4d914dab5a4263a9f2ac396decd11b64dfc0714))
351
+
352
+
353
+ - **(ci)** Remove `cargo-uttil` from dependency (#3543) ([068a408](https://github.com/swc-project/swc/commit/068a4087caa12f2c28ec62b5e194a85efcc907a1))
354
+
355
+
356
+ - **(crates)** Use bot account for publishing commits ([c10cbc4](https://github.com/swc-project/swc/commit/c10cbc4ecaaca8f5795de70c8bcf7feee455aaa4))
357
+
358
+
359
+ - **(crates)** Use bot account for commiitter ([edc46cc](https://github.com/swc-project/swc/commit/edc46ccf939f8fd3ac49300085daf3b42d4ce841))
360
+
361
+ ### Performance
362
+
363
+
364
+
365
+ - **(es/minifier)** Remove useless operations like eager call to `.span()` (#3512) ([8dab3d9](https://github.com/swc-project/swc/commit/8dab3d92b178b3ee1e1cb6a7288ce33b91793145))
366
+
367
+ ### Refactor
368
+
369
+
370
+
371
+ - **(common)** Cleanup & rustfmt (#3495) ([9b76783](https://github.com/swc-project/swc/commit/9b76783281af7c6b92e8185b44ebefae41648d3f))
372
+
373
+
374
+ - **(css/ast)** Rename types to match specification (#3484) ([460f846](https://github.com/swc-project/swc/commit/460f84693414c58d4aa116f9d4e630b1e32bffa4))
375
+
376
+
377
+ - **(css/ast)** Remove `Tokens` in favor of `Vec<TokenAndSpan>` (#3507) ([92a3cb9](https://github.com/swc-project/swc/commit/92a3cb9609b68e73a6a1f439186f09c15da8d570))
378
+
379
+
380
+ - **(css/ast)** Unify `SimpleBlock` and `Block` (#3519) ([57f6a58](https://github.com/swc-project/swc/commit/57f6a581fa730ae6763dc9db712514d1a72c764e))
381
+
382
+
383
+ - **(css/ast)** Unify `SimpleBlock` and `Block` completely (#3531) ([37c49e8](https://github.com/swc-project/swc/commit/37c49e876c123f4ee98a0499729998b3793037b2))
384
+
385
+
386
+ - **(css/parser)** Refactor codes related to simple blocks (#3506) ([4e124c7](https://github.com/swc-project/swc/commit/4e124c7bca85d70b6e4836038ea1aaa25b9ea663))
387
+
388
+
389
+ - **(css/parser)** Refactor code for error recovery (#3508) ([2d997b3](https://github.com/swc-project/swc/commit/2d997b38066ff01e2e84284ae3a1f79f8df8bb6b))
390
+
391
+ ### Testing
392
+
393
+
394
+
395
+ - **(css/codegen)** Add tests for multiple keyframe selectors (#3509) ([ebd71d5](https://github.com/swc-project/swc/commit/ebd71d565d0ac29d38cda195085be78dfdf3eaf0))
396
+
397
+
398
+ - **(css/parser)** Add tests from `postcss` (#3488) ([04782ae](https://github.com/swc-project/swc/commit/04782ae9f73193ec6cd15f7e7059c97143289169))
399
+
400
+
401
+ - **(css/parser)** Add some tests from `postcss` (#3501) ([8b438ea](https://github.com/swc-project/swc/commit/8b438ea024661f344cb4af1160c3102a5d880ae6))
402
+
403
+
404
+ - **(es/minifier)** Add snapshot testing for the analyzer (#3529) ([73e9185](https://github.com/swc-project/swc/commit/73e9185bbafa45f00d9222a9ad8a34229e079130))
405
+
406
+ ## [1.2.138] - 2022-02-08
407
+
408
+ ### Bug Fixes
409
+
410
+
411
+
8
412
  - **(es/minifier)** Make `sequences` less aggressive (#3480) ([292add7](https://github.com/swc-project/swc/commit/292add7d26a079a1da09ff94444124faea8e39fc))
9
413
 
10
414
  ### Features
@@ -4061,6 +4465,8 @@
4061
4465
  ### Miscellaneous Tasks
4062
4466
  - **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))
4063
4467
 
4468
+ ## [1.2.43] - 2020-12-30
4469
+
4064
4470
  ## [1.2.42] - 2020-12-29
4065
4471
 
4066
4472
  ### Bug Fixes
@@ -4212,6 +4618,8 @@
4212
4618
  ### Bundler
4213
4619
  - **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))
4214
4620
 
4621
+ ## [1.2.34] - 2020-09-24
4622
+
4215
4623
  ## [1.2.33] - 2020-09-24
4216
4624
 
4217
4625
  ### Bug Fixes
@@ -4239,6 +4647,8 @@
4239
4647
  ### Wasm
4240
4648
  - **general**: Automatic deployment (#1084) ([7905b0d](https://github.com/swc-project/swc/commit/7905b0dcf5afaf9a465e54b6dbae211627a48ad0))
4241
4649
 
4650
+ ## [1.2.30] - 2020-09-18
4651
+
4242
4652
  ## [1.2.29] - 2020-09-18
4243
4653
 
4244
4654
  ### Bundler
@@ -4247,6 +4657,8 @@
4247
4657
  ### Typescript_strip
4248
4658
  - **general**: Option to remove completely unused imports (#1060) ([bc82b55](https://github.com/swc-project/swc/commit/bc82b5567e2abb9c56aa3b537354b021f4b04a6e))
4249
4659
 
4660
+ ## [1.2.28] - 2020-09-13
4661
+
4250
4662
  ## [1.2.27-alpha.1] - 2020-09-13
4251
4663
 
4252
4664
  ### Cjs
@@ -4258,6 +4670,8 @@
4258
4670
  ### Resolver
4259
4671
  - **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))
4260
4672
 
4673
+ ## [1.2.26] - 2020-09-11
4674
+
4261
4675
  ## [1.2.25] - 2020-09-11
4262
4676
 
4263
4677
  ### Bug Fixes
@@ -4275,6 +4689,10 @@
4275
4689
  ### Resolver
4276
4690
  - **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))
4277
4691
 
4692
+ ## [1.2.24] - 2020-09-08
4693
+
4694
+ ## [1.2.23] - 2020-09-07
4695
+
4278
4696
  ## [1.2.23-alpha.1] - 2020-09-07
4279
4697
 
4280
4698
  ### Bug Fixes
@@ -4283,6 +4701,14 @@
4283
4701
 
4284
4702
  - **(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))
4285
4703
 
4704
+ ## [1.2.22] - 2020-08-30
4705
+
4706
+ ## [1.2.22-alpha.2] - 2020-08-30
4707
+
4708
+ ## [1.2.22-alpha.1] - 2020-08-30
4709
+
4710
+ ## [1.2.21] - 2020-08-24
4711
+
4286
4712
  ## [1.2.20] - 2020-08-15
4287
4713
 
4288
4714
  ### Hygiene
@@ -4291,6 +4717,20 @@
4291
4717
  ### Spack
4292
4718
  - **general**: Allow using jsx (#971) ([7387872](https://github.com/swc-project/swc/commit/73878728aa919234f8219c912fe34981c993be13))
4293
4719
 
4720
+ ## [1.2.19] - 2020-08-13
4721
+
4722
+ ## [1.2.17] - 2020-08-10
4723
+
4724
+ ## [1.2.15] - 2020-08-09
4725
+
4726
+ ## [1.2.14] - 2020-08-08
4727
+
4728
+ ## [1.2.13] - 2020-08-07
4729
+
4730
+ ## [1.2.12] - 2020-08-06
4731
+
4732
+ ## [1.2.11] - 2020-08-02
4733
+
4294
4734
  ## [1.2.10] - 2020-07-31
4295
4735
 
4296
4736
  ### Bug Fixes
@@ -4307,11 +4747,15 @@
4307
4747
  ### Spack
4308
4748
  - **general**: Remove_item is deprecated (#881) ([053f81c](https://github.com/swc-project/swc/commit/053f81c7613a3c49e42435790a8a047e4df2e68e))
4309
4749
 
4750
+ ## [1.2.8] - 2020-07-05
4751
+
4310
4752
  ## [1.2.7] - 2020-07-01
4311
4753
 
4312
4754
  ### Spack
4313
4755
  - **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))
4314
4756
 
4757
+ ## [1.2.1] - 2020-06-14
4758
+
4315
4759
  ## [1.2.0] - 2020-06-14
4316
4760
 
4317
4761
  ### Spack
@@ -4322,6 +4766,18 @@
4322
4766
  ### Regenerator
4323
4767
  - **general**: Handle yield* correctly (#833) ([5022999](https://github.com/swc-project/swc/commit/5022999600bf443cd29ebff2b9c7bb3497da0449))
4324
4768
 
4769
+ ## [1.1.56] - 2020-06-10
4770
+
4771
+ ## [1.1.53] - 2020-06-03
4772
+
4773
+ ## [1.1.52] - 2020-06-02
4774
+
4775
+ ## [1.1.51] - 2020-05-28
4776
+
4777
+ ## [1.1.50] - 2020-05-28
4778
+
4779
+ ## [1.1.49] - 2020-05-28
4780
+
4325
4781
  ## [1.1.48] - 2020-05-23
4326
4782
 
4327
4783
  ### Typescript_strip
@@ -4332,21 +4788,69 @@
4332
4788
  ### Resolver
4333
4789
  - **general**: Handle body of arrow functions correctly (#790) ([5cc3efa](https://github.com/swc-project/swc/commit/5cc3efa851652235d10b6fbb4258c645a4edeb7c))
4334
4790
 
4791
+ ## [1.1.45] - 2020-05-19
4792
+
4793
+ ## [1.1.44] - 2020-05-18
4794
+
4335
4795
  ## [1.1.42] - 2020-05-09
4336
4796
 
4337
4797
  ### Dce
4338
4798
  - **general**: Separate phase for dropping imports (#764) ([ddc5ace](https://github.com/swc-project/swc/commit/ddc5ace570d0e860901816c68d6b55c2ce8834ec))
4339
4799
 
4800
+ ## [1.1.41] - 2020-05-05
4801
+
4802
+ ## [1.1.40] - 2020-04-30
4803
+
4804
+ ## [1.1.39] - 2020-04-10
4805
+
4806
+ ## [1.1.38] - 2020-04-05
4807
+
4808
+ ## [1.1.37] - 2020-03-28
4809
+
4810
+ ## [1.1.36] - 2020-03-26
4811
+
4812
+ ## [1.1.35] - 2020-03-13
4813
+
4814
+ ## [1.1.34] - 2020-03-09
4815
+
4816
+ ## [1.1.33] - 2020-03-05
4817
+
4818
+ ## [1.1.32] - 2020-03-04
4819
+
4820
+ ## [1.1.31] - 2020-03-01
4821
+
4822
+ ## [1.1.30] - 2020-02-29
4823
+
4340
4824
  ## [1.1.29] - 2020-02-25
4341
4825
 
4342
4826
  ### Resolver
4343
4827
  - **general**: Handle hoisting correctly (#689) ([363b835](https://github.com/swc-project/swc/commit/363b8353cf274bb134a0cbbc67ece27a63313a8b))
4344
4828
 
4829
+ ## [1.1.28] - 2020-02-22
4830
+
4831
+ ## [1.1.27] - 2020-02-20
4832
+
4345
4833
  ## [1.1.26] - 2020-02-19
4346
4834
 
4347
4835
  ### Resolver
4348
4836
  - **general**: Handle method property correctly (#679) ([f79223e](https://github.com/swc-project/swc/commit/f79223e98c6a133457305d39baf53ff51c2009f9))
4349
4837
 
4838
+ ## [1.1.25] - 2020-02-17
4839
+
4840
+ ## [1.1.24] - 2020-02-15
4841
+
4842
+ ## [1.1.23] - 2020-02-13
4843
+
4844
+ ## [1.1.22] - 2020-02-13
4845
+
4846
+ ## [1.1.21] - 2020-02-11
4847
+
4848
+ ## [1.1.19] - 2020-02-07
4849
+
4850
+ ## [1.1.18] - 2020-02-06
4851
+
4852
+ ## [1.1.17] - 2020-01-30
4853
+
4350
4854
  ## [1.1.16] - 2020-01-24
4351
4855
 
4352
4856
  ### Block_scoping
@@ -4359,6 +4863,11 @@
4359
4863
 
4360
4864
  ## [1.1.14] - 2020-01-23
4361
4865
 
4866
+ ### Bug Fixes
4867
+ - **general**: Fix as_bool treating bitor like bitand (#596)
4868
+
4869
+ ([08ce8d0](https://github.com/swc-project/swc/commit/08ce8d029323c8c7685739d188c27c7d5d965b64))
4870
+
4362
4871
  ### Hygiene
4363
4872
  - **general**: Handle use-use conflict (#599) ([8ecbe14](https://github.com/swc-project/swc/commit/8ecbe14207156c2fc34b29c63bb52f8ba303afce))
4364
4873
 
@@ -4375,11 +4884,41 @@
4375
4884
  ### Dce
4376
4885
  - **general**: Preserve nested if statement (#565) ([3e0f4a5](https://github.com/swc-project/swc/commit/3e0f4a5bd7d247d9ac69ac8bb537a33eadc85f53))
4377
4886
 
4887
+ ## [1.1.11] - 2020-01-02
4888
+
4889
+ ## [1.1.10] - 2019-12-28
4890
+
4891
+ ## [1.1.9] - 2019-12-25
4892
+
4893
+ ## [1.1.8] - 2019-12-24
4894
+
4895
+ ## [1.1.7] - 2019-12-21
4896
+
4378
4897
  ## [1.1.6] - 2019-12-14
4379
4898
 
4899
+ ### Bug Fixes
4900
+ - **general**: Fixup! Add a test for #503
4901
+ ([5076249](https://github.com/swc-project/swc/commit/5076249c907f53235778d6b44d6b83d433b88829))
4902
+
4380
4903
  ### Parser
4381
4904
  - **general**: Respect jsc.target (#507) ([332061f](https://github.com/swc-project/swc/commit/332061f44dcad267a4d011ef7fc6cd35159586dd))
4382
4905
 
4906
+ ## [1.1.5] - 2019-12-11
4907
+
4908
+ ## [1.1.4] - 2019-12-09
4909
+
4910
+ ## [1.1.2] - 2019-12-02
4911
+
4912
+ ## [1.1.1] - 2019-12-01
4913
+
4914
+ ## [1.1.0] - 2019-11-30
4915
+
4916
+ ### Bug Fixes
4917
+ - **general**: Fixup! Don't omit empty values while serializing
4918
+ ([41c6941](https://github.com/swc-project/swc/commit/41c6941dc5b30b701eb1e536983892d8862fe26e))
4919
+
4920
+ ## [1.0.54] - 2019-11-24
4921
+
4383
4922
  ## [1.0.53] - 2019-11-23
4384
4923
 
4385
4924
  ### Resolver
@@ -4395,8 +4934,35 @@
4395
4934
  ### Parser
4396
4935
  - **general**: Error recovery (#449) ([d074063](https://github.com/swc-project/swc/commit/d0740638671d6572d753324a6abec8340037af6d))
4397
4936
 
4937
+ ## [1.0.49] - 2019-11-15
4938
+
4398
4939
  ## [1.0.48] - 2019-11-10
4399
4940
 
4941
+ ### Bug Fixes
4942
+ - **general**: Fix typo
4943
+ ([d73de6c](https://github.com/swc-project/swc/commit/d73de6c5d807946e37df7575f546088d8575b8dc))- **general**: Fix typo
4944
+ ([06d2be4](https://github.com/swc-project/swc/commit/06d2be43c385d6ac7f1e9390b861a9a00b9e3a11))- **general**: Fix links and use sudo
4945
+ ([9ec8856](https://github.com/swc-project/swc/commit/9ec8856136d9264cd71159f300bf37bc17cf2786))- **general**: Fix tests
4946
+ ([92c7def](https://github.com/swc-project/swc/commit/92c7defc2e726fa2485bd545f596e33890b7627d))- **general**: Fixup! fix tests
4947
+ ([59f11a8](https://github.com/swc-project/swc/commit/59f11a83d16a82b1861a5bd6720ab264896028c4))- **general**: Fix
4948
+
4949
+ It's not rust code..
4950
+ ([f8ea0bd](https://github.com/swc-project/swc/commit/f8ea0bdfea5d9ae732e7f56f2dc0127685f07598))- **general**: Fix parser tests
4951
+ ([dc8e178](https://github.com/swc-project/swc/commit/dc8e178088ae0d0dfacbc35419b7a61c4d0c1d5e))- **general**: Fix link
4952
+ ([ed6ba04](https://github.com/swc-project/swc/commit/ed6ba04cf37c1c4f4b989f75beec2647d5c8381f))- **general**: Fix swc_ecma_codegen
4953
+ ([fd79f4e](https://github.com/swc-project/swc/commit/fd79f4eb78e182b289d13051e93a840d8738331f))- **general**: Fix a link in README.md
4954
+ ([d4ef56e](https://github.com/swc-project/swc/commit/d4ef56eb5b66c043e5b8cc5a84a8275cda04bd7c))- **general**: Fix a bug
4955
+ ([90135ed](https://github.com/swc-project/swc/commit/90135ede1ebffd6328929ac82aedd1716a03f7ef))- **general**: Fix test imports for latest nightly (#355)
4956
+
4957
+ ([6f97012](https://github.com/swc-project/swc/commit/6f970128219af125f839bf11785d5eb351dd06cb))- **general**: Fix lints
4958
+ ([fbbafc5](https://github.com/swc-project/swc/commit/fbbafc5712356135e9714f1f281c93d3530a17c1))- **general**: Fix `this` in async generator (#425)
4959
+
4960
+ swc_ecma_transforms:
4961
+ - Don't delete test file when an execution test fails
4962
+ - fix #400
4963
+ ([3a637d4](https://github.com/swc-project/swc/commit/3a637d422944b5e983fd4befb21586034efb2552))- **general**: Fixup! Bump versions
4964
+ ([2add7a0](https://github.com/swc-project/swc/commit/2add7a08ef422e06b3b7bb9bb1c6d657a44278a7))
4965
+
4400
4966
  ### Miscellaneous Tasks
4401
4967
  - **general**: Cleanup for docs; no email from travis ([056a11d](https://github.com/swc-project/swc/commit/056a11dd06c35dff6a6531890124876ba7c811bf))
4402
4968
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.138",
3
+ "version": "1.2.142",
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.138",
53
- "@swc/core-darwin-x64": "1.2.138",
54
- "@swc/core-linux-x64-gnu": "1.2.138",
55
- "@swc/core-linux-x64-musl": "1.2.138",
56
- "@swc/core-freebsd-x64": "1.2.138",
57
- "@swc/core-win32-ia32-msvc": "1.2.138",
58
- "@swc/core-linux-arm64-gnu": "1.2.138",
59
- "@swc/core-linux-arm-gnueabihf": "1.2.138",
60
- "@swc/core-darwin-arm64": "1.2.138",
61
- "@swc/core-android-arm64": "1.2.138",
62
- "@swc/core-linux-arm64-musl": "1.2.138",
63
- "@swc/core-win32-arm64-msvc": "1.2.138",
64
- "@swc/core-android-arm-eabi": "1.2.138"
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.142",
108
+ "@swc/core-darwin-x64": "1.2.142",
109
+ "@swc/core-linux-x64-gnu": "1.2.142",
110
+ "@swc/core-linux-x64-musl": "1.2.142",
111
+ "@swc/core-freebsd-x64": "1.2.142",
112
+ "@swc/core-win32-ia32-msvc": "1.2.142",
113
+ "@swc/core-linux-arm64-gnu": "1.2.142",
114
+ "@swc/core-linux-arm-gnueabihf": "1.2.142",
115
+ "@swc/core-darwin-arm64": "1.2.142",
116
+ "@swc/core-android-arm64": "1.2.142",
117
+ "@swc/core-linux-arm64-musl": "1.2.142",
118
+ "@swc/core-win32-arm64-msvc": "1.2.142",
119
+ "@swc/core-android-arm-eabi": "1.2.142"
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 trasnform.
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
- has_escape: boolean;
977
+ hasEscape: boolean;
964
978
  }
965
979
  export interface BooleanLiteral extends Node, HasSpan {
966
980
  type: "BooleanLiteral";