@swc/core 1.2.136 → 1.2.140
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 +15 -0
- package/CHANGELOG.md +374 -0
- package/package.json +15 -14
- package/types.d.ts +1 -1
package/.kodiak.toml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# .kodiak.toml
|
|
2
|
+
version = 1
|
|
3
|
+
|
|
4
|
+
# We can't use automerge because of version bumping.
|
|
5
|
+
# But to make merging faster, we auto-update PRs.
|
|
6
|
+
[merge]
|
|
7
|
+
do_not_merge = true
|
|
8
|
+
|
|
9
|
+
[update]
|
|
10
|
+
autoupdate_label = "S-approved"
|
|
11
|
+
require_automerge_label = false
|
|
12
|
+
|
|
13
|
+
# I want to use auto-merge feature of github
|
|
14
|
+
[approve]
|
|
15
|
+
auto_approve_usernames = ["kdy1"]
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,380 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/compat)** Allow destructuring assignment to an object property (#3544) ([5802b62](https://github.com/swc-project/swc/commit/5802b62e3486b0fba176533fcd2998f47c60910d))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat)** Fix destructing of `const` (#3545) ([342c320](https://github.com/swc-project/swc/commit/342c320bfa1f43f25262c0ba403a51df8228c655))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/compat)** Apply `new.target` before `classes` (#3555) ([f1c7394](https://github.com/swc-project/swc/commit/f1c7394d10d624009549ec24de8c79b08594cfd4))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/compat)** Handle arrow parameters in class fields (#3556) ([45b44b0](https://github.com/swc-project/swc/commit/45b44b088cf0c0964232b66bb4b7b5f9e539623d))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/compat)** Fix handling of constructor in `classes` (#3505) ([0b16210](https://github.com/swc-project/swc/commit/0b162102fad75a364121b51a94fc36a7f8872259))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/minifier)** Fix analyzer (#3557) ([ac1d405](https://github.com/swc-project/swc/commit/ac1d4058f276693f52d5ccec5ccbb4c04f62bc9f))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/minifier)** Disable name mangler if `eval` is used (#3526) ([bfc9897](https://github.com/swc-project/swc/commit/bfc9897e347e2adc6efb5bd66151abdb9cbaa4fa))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/utils)** Keep arguments to `super` call (#3570) ([f67796a](https://github.com/swc-project/swc/commit/f67796a962cfd1e5c33206622c325dfbdd3b4ee2))
|
|
30
|
+
|
|
31
|
+
### Documentation
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(plugin)** Fix typo (#3547) ([3fc16cd](https://github.com/swc-project/swc/commit/3fc16cdc1c69a5ee0ecb506e3a3c496c51e52756))
|
|
36
|
+
|
|
37
|
+
### Features
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(css/ast)** Add `;` to delimiters (#3551) ([da36e90](https://github.com/swc-project/swc/commit/da36e90d1ee6ca479826ef379fbf0562cdc02ee5))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(css/ast)** Use correct type for `calc` (#3549) ([b311ace](https://github.com/swc-project/swc/commit/b311aced89dbbcb1605312e3ad5b0715e437bcd8))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/ast)** Use `SimpleBlock` for `@document` at-rule (#3564) ([3399702](https://github.com/swc-project/swc/commit/3399702b735cebcf19855b01c5b884cb44e06653))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/compat)** Add loose mode for `classes` (#3474) ([0f7a997](https://github.com/swc-project/swc/commit/0f7a99787f78a1b010a20fc042c4c565959557ad))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(es/lints)** Add this handling support to `no-alert` rule (#3515) ([af82006](https://github.com/swc-project/swc/commit/af8200647bb5f96525bcf3333c7c6889fe69dd5d))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/lints)** Add `allow` config for `no-console` rule (#3517) ([286b6c8](https://github.com/swc-project/swc/commit/286b6c804fc9f4b12065eb848be56d0a58230cf2))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(es/lints)** Implement `eqeqeq` rule (#3513) ([8d92050](https://github.com/swc-project/swc/commit/8d92050f557690bca6f695bbae173876fd9e53a2))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/lints)** Implement `no-empty-pattern` rule (#3550) ([f9fda27](https://github.com/swc-project/swc/commit/f9fda2743cb549d1af6b9bbb92155da3f60536c2))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(plugin)** Add `PluginContext` (#3568) ([a96217f](https://github.com/swc-project/swc/commit/a96217feaa9fea72cf828f2ec02f0639b5dd1561))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(plugin/runner)** Improve resolver support for npm (#3566) ([d6477a7](https://github.com/swc-project/swc/commit/d6477a76cf088072f5355335f48413fbbc9310c7))
|
|
69
|
+
|
|
70
|
+
### Miscellaneous Tasks
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(ci)** Add a bot for auto-rebasing (#3560) ([b1fc7a9](https://github.com/swc-project/swc/commit/b1fc7a9e3446240e4615a50517e4a13c50c05f4e))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(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))
|
|
78
|
+
|
|
79
|
+
### Performance
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- **(es/optimization)** Replace `map_with_mut` with proper implementation (#3539) ([6d132ca](https://github.com/swc-project/swc/commit/6d132ca0765a46b39a6844b7de2e7f2655f7dd1b))
|
|
84
|
+
|
|
85
|
+
### Refactor
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(css/ast)** Rename tokens to match spec (#3553) ([aed622b](https://github.com/swc-project/swc/commit/aed622be2f8f73581ce72f5263ad2b61a7b04ea7))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- **(css/parser)** Remove `parse_values`, which is not used (#3552) ([d5aee47](https://github.com/swc-project/swc/commit/d5aee470cb6ea1e25057a5a36f0a19274c1f42b3))
|
|
93
|
+
|
|
94
|
+
### Testing
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- **(css/codegen)** Add tests (#3563) ([08dd695](https://github.com/swc-project/swc/commit/08dd695c67012fe8d58828ab047cb902b0a7d53c))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **(css/parser)** Add a test for a custom function name (#3554) ([f252dfb](https://github.com/swc-project/swc/commit/f252dfb885b904ef8386f2004c359a1a2f43b63e))
|
|
102
|
+
|
|
103
|
+
### Build
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
- **(*)** Dedupe `once_cell` (#3567) ([ad6f24a](https://github.com/swc-project/swc/commit/ad6f24ad83ed0086ab7f4e260800df598212be25))
|
|
108
|
+
|
|
109
|
+
## [1.2.139] - 2022-02-12
|
|
110
|
+
|
|
111
|
+
### Bug Fixes
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
- **(cli)** Update the plugin template for pinned dependencies (#3538) ([05cf2e9](https://github.com/swc-project/swc/commit/05cf2e92e690c72ca6d49fee1dd33c9e776ba304))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **(css/ast)** Use `SimpleBlock` in more types (#3535) ([cfb2248](https://github.com/swc-project/swc/commit/cfb2248a2e7bf19d3bafb345c5c227d4615ee197))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(es/modules)** Use correct `StrKind` after rewriting import path (#3489) ([ff6eb27](https://github.com/swc-project/swc/commit/ff6eb272a00f0c11c9e916eb898e1b309bcb686c))
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
- **(es/modules)** Hoist named exports (#3479) ([fa0216d](https://github.com/swc-project/swc/commit/fa0216d908118ba008f4be2505590bbb09b7be46))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(node/helpers)** Fix `isNativeReflectConstruct` (#3530) ([d14d3eb](https://github.com/swc-project/swc/commit/d14d3ebbc8f24a6bed61ce9e534ab06b32c08e34))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(plugin)** Allow testing (#3542) ([fbe9196](https://github.com/swc-project/swc/commit/fbe91963bfb80976eebadc9f0e94e080ed81d624))
|
|
131
|
+
|
|
132
|
+
### Documentation
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
- **(plugin)** Fix install command (#3541) ([72b3197](https://github.com/swc-project/swc/commit/72b31977e49417cf9e4c95ad1365e2e212cac4d4))
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- **(cli)** Add a command for scaffolding a new plugin (#3536) ([6ed089e](https://github.com/swc-project/swc/commit/6ed089e1cff8d1e3edbe67cfe5945e3ff121f5d2))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
- **(css)** Support urange syntax (#3491) ([cbe302b](https://github.com/swc-project/swc/commit/cbe302b99d762a72d8522196cc05159791515e49))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- **(css/minifier)** Implement more rules (#3522) ([69cfe39](https://github.com/swc-project/swc/commit/69cfe395c7cc0de8ea5eb4bdf605f5c56b7cf69b))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- **(css/parser)** Improve error recovery (#3486) ([48e5b90](https://github.com/swc-project/swc/commit/48e5b903e2b82e8fc741d125662bbac825d5b0d0))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
- **(css/parser)** Implement more parser logic for nth selectors (#3532) ([fcbc2ff](https://github.com/swc-project/swc/commit/fcbc2ff03f9eebbb5fed95dd082504a6b1a49af9))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
- **(css/parser)** Implement more error recovery (#3534) ([547eba5](https://github.com/swc-project/swc/commit/547eba5e31745877be425ad14722adf6134caca7))
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
- **(es/lints)** Implement `dot-notation` rule (#3481) ([5bb6bd7](https://github.com/swc-project/swc/commit/5bb6bd71b6aa5dbdde62842c34e9ef6742968650))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
- **(es/lints)** Implement `no-use-before-define` rule (#3456) ([205b76e](https://github.com/swc-project/swc/commit/205b76e78d238de3a5cb8ab64aa5c61799b77bd2))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
- **(es/minifier)** Implement `reserved` mangle option (#3476) ([5488159](https://github.com/swc-project/swc/commit/5488159ba5dd124878ebdc50c390a51ab3b07f16))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- **(es/minifier)** Drop useless assignments (#3528) ([a7f0e84](https://github.com/swc-project/swc/commit/a7f0e84bbf986df0afc39f18ea7553f4a8c445f1))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
- **(plugin)** Implement proxy for `Mark` and `SyntaxContext` (#3511) ([bc25026](https://github.com/swc-project/swc/commit/bc250262f2af38086eeed59e4d42d14ff44d5b83))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
- **(swc/plugin)** Implement proxy for `Mark::fresh` (#3492) ([494b4c8](https://github.com/swc-project/swc/commit/494b4c8203514dd9f21b2bc3804ba8c44d46a4a1))
|
|
176
|
+
|
|
177
|
+
### Miscellaneous Tasks
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
- **(build)** Disable LTO for local builds (#3514) ([80ed69d](https://github.com/swc-project/swc/commit/80ed69d67dfae44986c19c04ddff758fee98f8ff))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
- **(build)** Remove version pinning of `parking_lot_core` (#3537) ([a4d914d](https://github.com/swc-project/swc/commit/a4d914dab5a4263a9f2ac396decd11b64dfc0714))
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
- **(ci)** Remove `cargo-uttil` from dependency (#3543) ([068a408](https://github.com/swc-project/swc/commit/068a4087caa12f2c28ec62b5e194a85efcc907a1))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
- **(crates)** Use bot account for publishing commits ([c10cbc4](https://github.com/swc-project/swc/commit/c10cbc4ecaaca8f5795de70c8bcf7feee455aaa4))
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
- **(crates)** Use bot account for commiitter ([edc46cc](https://github.com/swc-project/swc/commit/edc46ccf939f8fd3ac49300085daf3b42d4ce841))
|
|
194
|
+
|
|
195
|
+
### Performance
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
- **(es/minifier)** Remove useless operations like eager call to `.span()` (#3512) ([8dab3d9](https://github.com/swc-project/swc/commit/8dab3d92b178b3ee1e1cb6a7288ce33b91793145))
|
|
200
|
+
|
|
201
|
+
### Refactor
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
- **(common)** Cleanup & rustfmt (#3495) ([9b76783](https://github.com/swc-project/swc/commit/9b76783281af7c6b92e8185b44ebefae41648d3f))
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
- **(css/ast)** Rename types to match specification (#3484) ([460f846](https://github.com/swc-project/swc/commit/460f84693414c58d4aa116f9d4e630b1e32bffa4))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
- **(css/ast)** Remove `Tokens` in favor of `Vec<TokenAndSpan>` (#3507) ([92a3cb9](https://github.com/swc-project/swc/commit/92a3cb9609b68e73a6a1f439186f09c15da8d570))
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
- **(css/ast)** Unify `SimpleBlock` and `Block` (#3519) ([57f6a58](https://github.com/swc-project/swc/commit/57f6a581fa730ae6763dc9db712514d1a72c764e))
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
- **(css/ast)** Unify `SimpleBlock` and `Block` completely (#3531) ([37c49e8](https://github.com/swc-project/swc/commit/37c49e876c123f4ee98a0499729998b3793037b2))
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
- **(css/parser)** Refactor codes related to simple blocks (#3506) ([4e124c7](https://github.com/swc-project/swc/commit/4e124c7bca85d70b6e4836038ea1aaa25b9ea663))
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
- **(css/parser)** Refactor code for error recovery (#3508) ([2d997b3](https://github.com/swc-project/swc/commit/2d997b38066ff01e2e84284ae3a1f79f8df8bb6b))
|
|
224
|
+
|
|
225
|
+
### Testing
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
- **(css/codegen)** Add tests for multiple keyframe selectors (#3509) ([ebd71d5](https://github.com/swc-project/swc/commit/ebd71d565d0ac29d38cda195085be78dfdf3eaf0))
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
- **(css/parser)** Add tests from `postcss` (#3488) ([04782ae](https://github.com/swc-project/swc/commit/04782ae9f73193ec6cd15f7e7059c97143289169))
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
- **(css/parser)** Add some tests from `postcss` (#3501) ([8b438ea](https://github.com/swc-project/swc/commit/8b438ea024661f344cb4af1160c3102a5d880ae6))
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
- **(es/minifier)** Add snapshot testing for the analyzer (#3529) ([73e9185](https://github.com/swc-project/swc/commit/73e9185bbafa45f00d9222a9ad8a34229e079130))
|
|
239
|
+
|
|
240
|
+
## [1.2.138] - 2022-02-08
|
|
241
|
+
|
|
242
|
+
### Bug Fixes
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
- **(es/minifier)** Make `sequences` less aggressive (#3480) ([292add7](https://github.com/swc-project/swc/commit/292add7d26a079a1da09ff94444124faea8e39fc))
|
|
247
|
+
|
|
248
|
+
### Features
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
- **(css)** Add support for `@property` at-rule (#3470) ([fd5668c](https://github.com/swc-project/swc/commit/fd5668c32fa002698e387df6bc6a927c0d562e06))
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
- **(css/ast)** Add types for `@counter-style` at-rule (#3469) ([e6f4fbf](https://github.com/swc-project/swc/commit/e6f4fbf056767344776afbb6bd3b2f5dfe83dcf3))
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
- **(css/ast)** Add types for all dimensions (#3477) ([dc939c6](https://github.com/swc-project/swc/commit/dc939c65afa3b3b09101128f5801f532170bdea2))
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
- **(es/parser)** Disallow assignment to optional chaining expressions (#3483) ([26565b1](https://github.com/swc-project/swc/commit/26565b1ae9c0ab93b425c97fc40aaf49576e4b90))
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
- **(plugin)** Support global `HANDLER` in the plugin context (#3478) ([d473a65](https://github.com/swc-project/swc/commit/d473a6597653e59fc485ffb9cb116d23b4b55e70))
|
|
265
|
+
|
|
266
|
+
### Miscellaneous Tasks
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
- **(es)** Fix clippy warnings (#3482) ([8bf5cf4](https://github.com/swc-project/swc/commit/8bf5cf4d030ec5ab615924b938c8c027c600e3e1))
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
- **(repo)** Configure kodiak (#3485) ([cf8aa05](https://github.com/swc-project/swc/commit/cf8aa05d9ce5b60936c53c42d70ca934a09c373e))
|
|
274
|
+
|
|
275
|
+
## [1.2.137] - 2022-02-07
|
|
276
|
+
|
|
277
|
+
### Bug Fixes
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
- **(css)** Fix parsing of `@page` at-rule (#3356) ([4853821](https://github.com/swc-project/swc/commit/4853821d004f366c89c1b9122786e26ff923df05))
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
- **(css/ast)** Fix type definitions for `@document` at-rule (#3468) ([df08e4c](https://github.com/swc-project/swc/commit/df08e4cfd7ed76fcfd00cc8245b13cc328513938))
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
- **(css/parser)** Report errors of at-rules (#3461) ([e732250](https://github.com/swc-project/swc/commit/e732250cdf74c47faf5321b650a9cea6bd1ab4d4))
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
- **(es/compat)** Handle private fields in nested classes (#3431) ([01500a5](https://github.com/swc-project/swc/commit/01500a54e04b88d08edff09f218166c862763657))
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
- **(es/compat)** Handle initializer hole in array patterns (#3442) ([3bb2a6c](https://github.com/swc-project/swc/commit/3bb2a6ccca4e78412f80aea4fe6c22d04d345a00))
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
- **(es/compat)** Fix legacy decorator pass (#3459) ([4f5e87b](https://github.com/swc-project/swc/commit/4f5e87b66b42a5672e00edcfa22234f1cde79580))
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
- **(es/fixer)** Handle more expressions in the super class position (#3452) ([032f397](https://github.com/swc-project/swc/commit/032f397b52415378ede985be35713a3482093958))
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
- **(es/minifier)** Fix `codemirror` (#3462) ([5812c3c](https://github.com/swc-project/swc/commit/5812c3c10fc224fbb33a17302491c5f7c2bd0a0b))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
- **(es/minifier)** Fix `mapbox` (#3463) ([0371c41](https://github.com/swc-project/swc/commit/0371c41b7cb9d505705a956b84b8e4dbe626a17c))
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
- **(es/modules)** Allow using a dynamic import with an expression from another import (#3450) ([745604b](https://github.com/swc-project/swc/commit/745604b26d9151732d2572307dbeb22b2d10ca66))
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
- **(es/parser)** Fix parsing of decorators (#3449) ([5a806c5](https://github.com/swc-project/swc/commit/5a806c5b817c63b7c4f7730b538831b1cea62711))
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
- **(es/resolver)** Fix handling of for statements (#3446) ([2af5096](https://github.com/swc-project/swc/commit/2af5096e83229df1e5ccfe62659360c0392ef0ba))
|
|
315
|
+
|
|
316
|
+
### Features
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
- **(css/ast)** Improve types related to `url` tokens (#3444) ([49564d9](https://github.com/swc-project/swc/commit/49564d9b5d627b38b2faa63b55076cb55ba8d1a7))
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
- **(css/codegen)** Implement minification of hex colors (#3453) ([eeedd71](https://github.com/swc-project/swc/commit/eeedd71705dc9b94363ec4e002ec647a3addba2d))
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
- **(css/codegen)** Implement minification of identifiers (#3466) ([81850c2](https://github.com/swc-project/swc/commit/81850c2b30693061428569c9a6ebd4a3f07d7683))
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
- **(css/codegen)** Improve minification for page rules (#3467) ([0ca036a](https://github.com/swc-project/swc/commit/0ca036a962042727e362b91748aa10547c87fc63))
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
- **(css/lexer)** Implement error recovery for functions (#3445) ([f1410fc](https://github.com/swc-project/swc/commit/f1410fc09b4838fa8113c9b2041f58d7d752c519))
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
- **(es/lints)** Implement `prefer-regex-literals` (#3399) ([8166275](https://github.com/swc-project/swc/commit/81662751666b5d49458ab8dad15f3c73e89ef2f6))
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
- **(es/lints)** Implement linter for quotes of string literals (#3443) ([5d6143a](https://github.com/swc-project/swc/commit/5d6143a53c03d0caefc76ea54d6975126984d84d))
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
- **(es/parser)** Add an option to allow `super` outside of class methods (#3427) ([cc185f0](https://github.com/swc-project/swc/commit/cc185f01cb249634d144830db702a281674f48da))
|
|
342
|
+
|
|
343
|
+
### Miscellaneous Tasks
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
- **(es/lints)** Fix CI ([b06a5ab](https://github.com/swc-project/swc/commit/b06a5abe5868c3652fe89927acd3a56ea437b113))
|
|
348
|
+
|
|
349
|
+
### Refactor
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
- **(css/ast)** Refactor types related to `@keyframes` at-rule (#3441) ([5c1b021](https://github.com/swc-project/swc/commit/5c1b02182df9ee2f59b8b83f58b5d0b1ae04af35))
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
- **(css/ast)** Change AST for `!important` (#3440) ([38879de](https://github.com/swc-project/swc/commit/38879de8deec6a45882252104fdcbb33cc3116a9))
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
- **(css/ast)** Refactor types related to selectors (#3460) ([cd87d96](https://github.com/swc-project/swc/commit/cd87d965f35155748ec0e3b22deae3d8a5ebdb5b))
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
- **(css/ast)** Remove unused types (#3465) ([69660fd](https://github.com/swc-project/swc/commit/69660fd161e0cce5eca7b7f5d436d4bb67dea64f))
|
|
363
|
+
|
|
364
|
+
### Testing
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
- **(css/parser)** Add more tests for the selector parser (#3455) ([479b509](https://github.com/swc-project/swc/commit/479b50984513296439af2814f990eb88486b82d5))
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
- **(es)** Update tsc test suite (#3448) ([8b7c38c](https://github.com/swc-project/swc/commit/8b7c38c80ceeb8fc41ad4c60eb427dab9c06ba6e))
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
- **(es/parser)** Fix crlf (#3451) ([397a96a](https://github.com/swc-project/swc/commit/397a96a1cf4a0d540db6e766890ed874f7818a65))
|
|
375
|
+
|
|
376
|
+
## [1.2.136] - 2022-02-03
|
|
377
|
+
|
|
378
|
+
### Bug Fixes
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
8
382
|
- **(css)** Allow empty `@media` at-rule (#3404) ([75a14f9](https://github.com/swc-project/swc/commit/75a14f98b7370226115ee24eec6eb8c802bd4837))
|
|
9
383
|
|
|
10
384
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.140",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -49,19 +49,19 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
53
|
-
"@swc/core-darwin-x64": "1.2.
|
|
54
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
55
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
56
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
57
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
58
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
59
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
60
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
61
|
-
"@swc/core-android-arm64": "1.2.
|
|
62
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
63
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
64
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
52
|
+
"@swc/core-win32-x64-msvc": "1.2.140",
|
|
53
|
+
"@swc/core-darwin-x64": "1.2.140",
|
|
54
|
+
"@swc/core-linux-x64-gnu": "1.2.140",
|
|
55
|
+
"@swc/core-linux-x64-musl": "1.2.140",
|
|
56
|
+
"@swc/core-freebsd-x64": "1.2.140",
|
|
57
|
+
"@swc/core-win32-ia32-msvc": "1.2.140",
|
|
58
|
+
"@swc/core-linux-arm64-gnu": "1.2.140",
|
|
59
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.140",
|
|
60
|
+
"@swc/core-darwin-arm64": "1.2.140",
|
|
61
|
+
"@swc/core-android-arm64": "1.2.140",
|
|
62
|
+
"@swc/core-linux-arm64-musl": "1.2.140",
|
|
63
|
+
"@swc/core-win32-arm64-msvc": "1.2.140",
|
|
64
|
+
"@swc/core-android-arm-eabi": "1.2.140"
|
|
65
65
|
},
|
|
66
66
|
"types": "./index.d.ts",
|
|
67
67
|
"scripts": {
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"source-map-support": "^0.5.19",
|
|
113
113
|
"sourcemap-validator": "^2.1.0",
|
|
114
114
|
"terser": "^5.7.1",
|
|
115
|
+
"ts-node": "^10.5.0",
|
|
115
116
|
"typescript": "^4.5.2"
|
|
116
117
|
},
|
|
117
118
|
"funding": {
|