@swc/core 1.2.135 → 1.2.139
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 +380 -0
- package/package.json +15 -14
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
|
+
- **(cli)** Update the plugin template for pinned dependencies (#3538) ([05cf2e9](https://github.com/swc-project/swc/commit/05cf2e92e690c72ca6d49fee1dd33c9e776ba304))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(css/ast)** Use `SimpleBlock` in more types (#3535) ([cfb2248](https://github.com/swc-project/swc/commit/cfb2248a2e7bf19d3bafb345c5c227d4615ee197))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/modules)** Use correct `StrKind` after rewriting import path (#3489) ([ff6eb27](https://github.com/swc-project/swc/commit/ff6eb272a00f0c11c9e916eb898e1b309bcb686c))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/modules)** Hoist named exports (#3479) ([fa0216d](https://github.com/swc-project/swc/commit/fa0216d908118ba008f4be2505590bbb09b7be46))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(node/helpers)** Fix `isNativeReflectConstruct` (#3530) ([d14d3eb](https://github.com/swc-project/swc/commit/d14d3ebbc8f24a6bed61ce9e534ab06b32c08e34))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(plugin)** Allow testing (#3542) ([fbe9196](https://github.com/swc-project/swc/commit/fbe91963bfb80976eebadc9f0e94e080ed81d624))
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(plugin)** Fix install command (#3541) ([72b3197](https://github.com/swc-project/swc/commit/72b31977e49417cf9e4c95ad1365e2e212cac4d4))
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(cli)** Add a command for scaffolding a new plugin (#3536) ([6ed089e](https://github.com/swc-project/swc/commit/6ed089e1cff8d1e3edbe67cfe5945e3ff121f5d2))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(css)** Support urange syntax (#3491) ([cbe302b](https://github.com/swc-project/swc/commit/cbe302b99d762a72d8522196cc05159791515e49))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(css/minifier)** Implement more rules (#3522) ([69cfe39](https://github.com/swc-project/swc/commit/69cfe395c7cc0de8ea5eb4bdf605f5c56b7cf69b))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(css/parser)** Improve error recovery (#3486) ([48e5b90](https://github.com/swc-project/swc/commit/48e5b903e2b82e8fc741d125662bbac825d5b0d0))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/parser)** Implement more parser logic for nth selectors (#3532) ([fcbc2ff](https://github.com/swc-project/swc/commit/fcbc2ff03f9eebbb5fed95dd082504a6b1a49af9))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(css/parser)** Implement more error recovery (#3534) ([547eba5](https://github.com/swc-project/swc/commit/547eba5e31745877be425ad14722adf6134caca7))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(es/lints)** Implement `dot-notation` rule (#3481) ([5bb6bd7](https://github.com/swc-project/swc/commit/5bb6bd71b6aa5dbdde62842c34e9ef6742968650))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/lints)** Implement `no-use-before-define` rule (#3456) ([205b76e](https://github.com/swc-project/swc/commit/205b76e78d238de3a5cb8ab64aa5c61799b77bd2))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(es/minifier)** Implement `reserved` mangle option (#3476) ([5488159](https://github.com/swc-project/swc/commit/5488159ba5dd124878ebdc50c390a51ab3b07f16))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/minifier)** Drop useless assignments (#3528) ([a7f0e84](https://github.com/swc-project/swc/commit/a7f0e84bbf986df0afc39f18ea7553f4a8c445f1))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(plugin)** Implement proxy for `Mark` and `SyntaxContext` (#3511) ([bc25026](https://github.com/swc-project/swc/commit/bc250262f2af38086eeed59e4d42d14ff44d5b83))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(swc/plugin)** Implement proxy for `Mark::fresh` (#3492) ([494b4c8](https://github.com/swc-project/swc/commit/494b4c8203514dd9f21b2bc3804ba8c44d46a4a1))
|
|
69
|
+
|
|
70
|
+
### Miscellaneous Tasks
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(build)** Disable LTO for local builds (#3514) ([80ed69d](https://github.com/swc-project/swc/commit/80ed69d67dfae44986c19c04ddff758fee98f8ff))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(build)** Remove version pinning of `parking_lot_core` (#3537) ([a4d914d](https://github.com/swc-project/swc/commit/a4d914dab5a4263a9f2ac396decd11b64dfc0714))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(crates)** Use bot account for publishing commits ([c10cbc4](https://github.com/swc-project/swc/commit/c10cbc4ecaaca8f5795de70c8bcf7feee455aaa4))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- **(crates)** Use bot account for commiitter ([edc46cc](https://github.com/swc-project/swc/commit/edc46ccf939f8fd3ac49300085daf3b42d4ce841))
|
|
84
|
+
|
|
85
|
+
### Performance
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(es/minifier)** Remove useless operations like eager call to `.span()` (#3512) ([8dab3d9](https://github.com/swc-project/swc/commit/8dab3d92b178b3ee1e1cb6a7288ce33b91793145))
|
|
90
|
+
|
|
91
|
+
### Refactor
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(common)** Cleanup & rustfmt (#3495) ([9b76783](https://github.com/swc-project/swc/commit/9b76783281af7c6b92e8185b44ebefae41648d3f))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- **(css/ast)** Rename types to match specification (#3484) ([460f846](https://github.com/swc-project/swc/commit/460f84693414c58d4aa116f9d4e630b1e32bffa4))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **(css/ast)** Remove `Tokens` in favor of `Vec<TokenAndSpan>` (#3507) ([92a3cb9](https://github.com/swc-project/swc/commit/92a3cb9609b68e73a6a1f439186f09c15da8d570))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
- **(css/ast)** Unify `SimpleBlock` and `Block` (#3519) ([57f6a58](https://github.com/swc-project/swc/commit/57f6a581fa730ae6763dc9db712514d1a72c764e))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
- **(css/ast)** Unify `SimpleBlock` and `Block` completely (#3531) ([37c49e8](https://github.com/swc-project/swc/commit/37c49e876c123f4ee98a0499729998b3793037b2))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
- **(css/parser)** Refactor codes related to simple blocks (#3506) ([4e124c7](https://github.com/swc-project/swc/commit/4e124c7bca85d70b6e4836038ea1aaa25b9ea663))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
- **(css/parser)** Refactor code for error recovery (#3508) ([2d997b3](https://github.com/swc-project/swc/commit/2d997b38066ff01e2e84284ae3a1f79f8df8bb6b))
|
|
114
|
+
|
|
115
|
+
### Testing
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
- **(css/codegen)** Add tests for multiple keyframe selectors (#3509) ([ebd71d5](https://github.com/swc-project/swc/commit/ebd71d565d0ac29d38cda195085be78dfdf3eaf0))
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
- **(css/parser)** Add tests from `postcss` (#3488) ([04782ae](https://github.com/swc-project/swc/commit/04782ae9f73193ec6cd15f7e7059c97143289169))
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
- **(css/parser)** Add some tests from `postcss` (#3501) ([8b438ea](https://github.com/swc-project/swc/commit/8b438ea024661f344cb4af1160c3102a5d880ae6))
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
- **(es/minifier)** Add snapshot testing for the analyzer (#3529) ([73e9185](https://github.com/swc-project/swc/commit/73e9185bbafa45f00d9222a9ad8a34229e079130))
|
|
129
|
+
|
|
130
|
+
## [1.2.138] - 2022-02-08
|
|
131
|
+
|
|
132
|
+
### Bug Fixes
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
- **(es/minifier)** Make `sequences` less aggressive (#3480) ([292add7](https://github.com/swc-project/swc/commit/292add7d26a079a1da09ff94444124faea8e39fc))
|
|
137
|
+
|
|
138
|
+
### Features
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- **(css)** Add support for `@property` at-rule (#3470) ([fd5668c](https://github.com/swc-project/swc/commit/fd5668c32fa002698e387df6bc6a927c0d562e06))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
- **(css/ast)** Add types for `@counter-style` at-rule (#3469) ([e6f4fbf](https://github.com/swc-project/swc/commit/e6f4fbf056767344776afbb6bd3b2f5dfe83dcf3))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- **(css/ast)** Add types for all dimensions (#3477) ([dc939c6](https://github.com/swc-project/swc/commit/dc939c65afa3b3b09101128f5801f532170bdea2))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- **(es/parser)** Disallow assignment to optional chaining expressions (#3483) ([26565b1](https://github.com/swc-project/swc/commit/26565b1ae9c0ab93b425c97fc40aaf49576e4b90))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
- **(plugin)** Support global `HANDLER` in the plugin context (#3478) ([d473a65](https://github.com/swc-project/swc/commit/d473a6597653e59fc485ffb9cb116d23b4b55e70))
|
|
155
|
+
|
|
156
|
+
### Miscellaneous Tasks
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
- **(es)** Fix clippy warnings (#3482) ([8bf5cf4](https://github.com/swc-project/swc/commit/8bf5cf4d030ec5ab615924b938c8c027c600e3e1))
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
- **(repo)** Configure kodiak (#3485) ([cf8aa05](https://github.com/swc-project/swc/commit/cf8aa05d9ce5b60936c53c42d70ca934a09c373e))
|
|
164
|
+
|
|
165
|
+
## [1.2.137] - 2022-02-07
|
|
166
|
+
|
|
167
|
+
### Bug Fixes
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- **(css)** Fix parsing of `@page` at-rule (#3356) ([4853821](https://github.com/swc-project/swc/commit/4853821d004f366c89c1b9122786e26ff923df05))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
- **(css/ast)** Fix type definitions for `@document` at-rule (#3468) ([df08e4c](https://github.com/swc-project/swc/commit/df08e4cfd7ed76fcfd00cc8245b13cc328513938))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
- **(css/parser)** Report errors of at-rules (#3461) ([e732250](https://github.com/swc-project/swc/commit/e732250cdf74c47faf5321b650a9cea6bd1ab4d4))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
- **(es/compat)** Handle private fields in nested classes (#3431) ([01500a5](https://github.com/swc-project/swc/commit/01500a54e04b88d08edff09f218166c862763657))
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
- **(es/compat)** Handle initializer hole in array patterns (#3442) ([3bb2a6c](https://github.com/swc-project/swc/commit/3bb2a6ccca4e78412f80aea4fe6c22d04d345a00))
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
- **(es/compat)** Fix legacy decorator pass (#3459) ([4f5e87b](https://github.com/swc-project/swc/commit/4f5e87b66b42a5672e00edcfa22234f1cde79580))
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
- **(es/fixer)** Handle more expressions in the super class position (#3452) ([032f397](https://github.com/swc-project/swc/commit/032f397b52415378ede985be35713a3482093958))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
- **(es/minifier)** Fix `codemirror` (#3462) ([5812c3c](https://github.com/swc-project/swc/commit/5812c3c10fc224fbb33a17302491c5f7c2bd0a0b))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
- **(es/minifier)** Fix `mapbox` (#3463) ([0371c41](https://github.com/swc-project/swc/commit/0371c41b7cb9d505705a956b84b8e4dbe626a17c))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
- **(es/modules)** Allow using a dynamic import with an expression from another import (#3450) ([745604b](https://github.com/swc-project/swc/commit/745604b26d9151732d2572307dbeb22b2d10ca66))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
- **(es/parser)** Fix parsing of decorators (#3449) ([5a806c5](https://github.com/swc-project/swc/commit/5a806c5b817c63b7c4f7730b538831b1cea62711))
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
- **(es/resolver)** Fix handling of for statements (#3446) ([2af5096](https://github.com/swc-project/swc/commit/2af5096e83229df1e5ccfe62659360c0392ef0ba))
|
|
205
|
+
|
|
206
|
+
### Features
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
- **(css/ast)** Improve types related to `url` tokens (#3444) ([49564d9](https://github.com/swc-project/swc/commit/49564d9b5d627b38b2faa63b55076cb55ba8d1a7))
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
- **(css/codegen)** Implement minification of hex colors (#3453) ([eeedd71](https://github.com/swc-project/swc/commit/eeedd71705dc9b94363ec4e002ec647a3addba2d))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
- **(css/codegen)** Implement minification of identifiers (#3466) ([81850c2](https://github.com/swc-project/swc/commit/81850c2b30693061428569c9a6ebd4a3f07d7683))
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
- **(css/codegen)** Improve minification for page rules (#3467) ([0ca036a](https://github.com/swc-project/swc/commit/0ca036a962042727e362b91748aa10547c87fc63))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
- **(css/lexer)** Implement error recovery for functions (#3445) ([f1410fc](https://github.com/swc-project/swc/commit/f1410fc09b4838fa8113c9b2041f58d7d752c519))
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
- **(es/lints)** Implement `prefer-regex-literals` (#3399) ([8166275](https://github.com/swc-project/swc/commit/81662751666b5d49458ab8dad15f3c73e89ef2f6))
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
- **(es/lints)** Implement linter for quotes of string literals (#3443) ([5d6143a](https://github.com/swc-project/swc/commit/5d6143a53c03d0caefc76ea54d6975126984d84d))
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
- **(es/parser)** Add an option to allow `super` outside of class methods (#3427) ([cc185f0](https://github.com/swc-project/swc/commit/cc185f01cb249634d144830db702a281674f48da))
|
|
232
|
+
|
|
233
|
+
### Miscellaneous Tasks
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
- **(es/lints)** Fix CI ([b06a5ab](https://github.com/swc-project/swc/commit/b06a5abe5868c3652fe89927acd3a56ea437b113))
|
|
238
|
+
|
|
239
|
+
### Refactor
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
|
|
243
|
+
- **(css/ast)** Refactor types related to `@keyframes` at-rule (#3441) ([5c1b021](https://github.com/swc-project/swc/commit/5c1b02182df9ee2f59b8b83f58b5d0b1ae04af35))
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
- **(css/ast)** Change AST for `!important` (#3440) ([38879de](https://github.com/swc-project/swc/commit/38879de8deec6a45882252104fdcbb33cc3116a9))
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
- **(css/ast)** Refactor types related to selectors (#3460) ([cd87d96](https://github.com/swc-project/swc/commit/cd87d965f35155748ec0e3b22deae3d8a5ebdb5b))
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
- **(css/ast)** Remove unused types (#3465) ([69660fd](https://github.com/swc-project/swc/commit/69660fd161e0cce5eca7b7f5d436d4bb67dea64f))
|
|
253
|
+
|
|
254
|
+
### Testing
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
- **(css/parser)** Add more tests for the selector parser (#3455) ([479b509](https://github.com/swc-project/swc/commit/479b50984513296439af2814f990eb88486b82d5))
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
- **(es)** Update tsc test suite (#3448) ([8b7c38c](https://github.com/swc-project/swc/commit/8b7c38c80ceeb8fc41ad4c60eb427dab9c06ba6e))
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
- **(es/parser)** Fix crlf (#3451) ([397a96a](https://github.com/swc-project/swc/commit/397a96a1cf4a0d540db6e766890ed874f7818a65))
|
|
265
|
+
|
|
266
|
+
## [1.2.136] - 2022-02-03
|
|
267
|
+
|
|
268
|
+
### Bug Fixes
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
- **(css)** Allow empty `@media` at-rule (#3404) ([75a14f9](https://github.com/swc-project/swc/commit/75a14f98b7370226115ee24eec6eb8c802bd4837))
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
- **(css/parser)** Fix parser logic related to case insensivity (#3382) ([3ded88b](https://github.com/swc-project/swc/commit/3ded88bffca4abd0bb77a52b0dfb32d8c8520581))
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
- **(css/parser)** Fix bugs related to `url` (#3403) ([3c8d985](https://github.com/swc-project/swc/commit/3c8d985a07baf5a52f40221fcc73344b3ca48d15))
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
- **(es/codegen)** Fix bugs (#3436) ([ea8dfd8](https://github.com/swc-project/swc/commit/ea8dfd872ced8e264ad3d6da7f07c0043dacfb27))
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
- **(es/compat)** Add the missing span in `optional_chaining` (#3384) ([9eb7773](https://github.com/swc-project/swc/commit/9eb77738fd1049022693f52843483623553856dd))
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
- **(es/minifier)** Fix evaluator (#3391) ([38c2499](https://github.com/swc-project/swc/commit/38c2499358e2dc4df5b6acee25da54fe411f6e8a))
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
- **(es/modules)** Allow using dynamic import with a name from another import (#3390) ([1dcc188](https://github.com/swc-project/swc/commit/1dcc188dd8230954e2801f7c6e3034b0c0215bc4))
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
- **(es/modules)** Fix span of imports (#3418) ([2c99ca1](https://github.com/swc-project/swc/commit/2c99ca1bab353668f5c475ab6cb223186701927a))
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
- **(swc)** Run `resolver` before everything (#3400) ([cebc5dc](https://github.com/swc-project/swc/commit/cebc5dc148fa4c03a536a841a106955de18b010b))
|
|
297
|
+
|
|
298
|
+
### Features
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
- **(css)** Improve codegen where `minify: true` (#3414) ([30c29a3](https://github.com/swc-project/swc/commit/30c29a30cfbcc9f41adb83a8fe7d277084dd8053))
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
- **(css/ast)** Add `/` to the delimiters (#3402) ([2dc31d9](https://github.com/swc-project/swc/commit/2dc31d9d142a4e76529507596bc476590b4a26e9))
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
- **(css/codegen)** Implement `minify: true` (#3369) ([0537ef1](https://github.com/swc-project/swc/commit/0537ef1a1170da5c693a36cd20fd2b089a8a3618))
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
- **(css/codegen)** Improve minification of numbers (#3423) ([340844a](https://github.com/swc-project/swc/commit/340844ae6eb2617d8bec07e7c27ade9f320184b8))
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
- **(css/parser)** Improve selector parser (#3386) ([c73835b](https://github.com/swc-project/swc/commit/c73835bfebe56518e107a3666fe95ca649d33a24))
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
- **(css/parser)** Improve parsing of math functions (#3415) ([1b1cae0](https://github.com/swc-project/swc/commit/1b1cae037279be2e1f66788f0cb1539b7b8d6721))
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
- **(es/codegen)** Improve compression of numbers (#3425) ([e8b64a9](https://github.com/swc-project/swc/commit/e8b64a9871ccfda5f5fb1f03662650f3500e6634))
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
- **(es/lints)** Implement `no-debugger` rule (#3398) ([9dec923](https://github.com/swc-project/swc/commit/9dec9236f7b3c95c803571404d7abae71e173936))
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
- **(es/lints)** Add `no-alert` and a feature gate (#3394) ([5cbe4fe](https://github.com/swc-project/swc/commit/5cbe4fe512c67dd6017e0142b12465e20a2153a5))
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
- **(es/minifier)** Implement `drop_console` (#3392) ([91d7800](https://github.com/swc-project/swc/commit/91d78000ea445575f9ac30d0f36299ab4f0cbf5c))
|
|
330
|
+
|
|
331
|
+
### Miscellaneous Tasks
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
- **(repo)** Add `clippy` to git push hook (#3383) ([78e83a3](https://github.com/swc-project/swc/commit/78e83a386b62abaf9b38b58b5dd942de2333e3a6))
|
|
336
|
+
|
|
337
|
+
### Performance
|
|
338
|
+
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
- **(node-swc)** Speed up `parse` and `parseFile` (#3380) ([0359deb](https://github.com/swc-project/swc/commit/0359deb4841be743d73db4536d4a22ac797d7f65))
|
|
342
|
+
|
|
343
|
+
### Refactor
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
- **(css/ast)** Refactor delimited values (#3397) ([b31619d](https://github.com/swc-project/swc/commit/b31619d48e2caa29ae581331eaf2ed4c4bb93683))
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
- **(css/ast)** Use `Dimension` instead of `UnitValue` (#3401) ([1904944](https://github.com/swc-project/swc/commit/1904944bf7767183a667a533a9f2089447f06c48))
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
- **(css/ast)** Use `Color` instead of `HashValue` (#3411) ([6b921ca](https://github.com/swc-project/swc/commit/6b921cac02e801318529ad5511104ddb4ac6a6c6))
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
- **(css/ast)** Rename `property` to `name` (#3410) ([eeedd9a](https://github.com/swc-project/swc/commit/eeedd9adf573b75435ecf7c87a71f9d8c5b64b20))
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
- **(es/minifier)** Remove unused crates (#3395) ([74b4330](https://github.com/swc-project/swc/commit/74b433080bf79026fbcb905d7f0fba435822df68))
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
- **(es/parser)** Flatten tests to make `git` faster (#3393) ([839d0ac](https://github.com/swc-project/swc/commit/839d0ac480f0a702ac40bf14ba84d192cde47ec6))
|
|
363
|
+
|
|
364
|
+
### Testing
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
- **(css/codegen)** Add more tests (#3405) ([64383e3](https://github.com/swc-project/swc/commit/64383e385cc6a5b735273218f31a4430a772c941))
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
- **(css/codegen)** Verify AST is not broken after minification (#3430) ([73efd72](https://github.com/swc-project/swc/commit/73efd72cbe03f3f386dadf3c969763f15bb9b41d))
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
- **(swc)** Add tests (#3435) ([9e4cea0](https://github.com/swc-project/swc/commit/9e4cea017c2230e3d8db8dc48c3196116e90198a))
|
|
375
|
+
|
|
376
|
+
## [1.2.135] - 2022-01-27
|
|
377
|
+
|
|
378
|
+
### Bug Fixes
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
8
382
|
- **(css)** Fix the type definition of `@support` at-rules (#3330) ([34943ff](https://github.com/swc-project/swc/commit/34943ffa15ddecb56ee0889a598dfd3d0aa4025c))
|
|
9
383
|
|
|
10
384
|
|
|
@@ -94,6 +468,9 @@
|
|
|
94
468
|
|
|
95
469
|
- **(ci)** Update `thread_local` (#3357) ([a635e9f](https://github.com/swc-project/swc/commit/a635e9f35bb2a718abad56286d7b6fcecdfe4e58))
|
|
96
470
|
|
|
471
|
+
|
|
472
|
+
- **(ci)** Fix FreeBSD build (#3379) ([464c15b](https://github.com/swc-project/swc/commit/464c15b7757aedd50c80d955d7f2c78133a7f994))
|
|
473
|
+
|
|
97
474
|
### Performance
|
|
98
475
|
|
|
99
476
|
|
|
@@ -113,6 +490,9 @@
|
|
|
113
490
|
- **(css/ast)** Rename `PercentValue` to `Percent` (#3363) ([6fc7562](https://github.com/swc-project/swc/commit/6fc7562686b0915c7a1280620ffe183de66e113f))
|
|
114
491
|
|
|
115
492
|
|
|
493
|
+
- **(es/minifier)** Merge execution tests into a file to make `git` faster (#3377) ([7ef3bfa](https://github.com/swc-project/swc/commit/7ef3bfa5b617bffeeb91240dbc2d842dcd48826c))
|
|
494
|
+
|
|
495
|
+
|
|
116
496
|
- **(plugin)** Remove multivalue polyfill (#3346) ([4386498](https://github.com/swc-project/swc/commit/438649818fb7e7b1ef6cddf5ba244f80cf7e69a9))
|
|
117
497
|
|
|
118
498
|
## [1.2.133] - 2022-01-20
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.139",
|
|
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.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
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": {
|