@swc/core 1.2.241 → 1.2.245

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +203 -4
  2. package/README.md +1 -1
  3. package/package.json +16 -16
package/CHANGELOG.md CHANGED
@@ -5,21 +5,208 @@
5
5
 
6
6
 
7
7
 
8
- - **(es/compat)** Handle `async` in class method parameters (#5560) ([f2c1164](https://github.com/swc-project/swc/commit/f2c116402621b64b49181407dba1bb7ae852cf13))
8
+ - **(css/minifier)** Don't compress `none` for keyframes (#5663) ([4a5e347](https://github.com/swc-project/swc/commit/4a5e347a8a7949aa35cf73a0a94cbb7350380fa1))
9
+
10
+
11
+ - **(css/parser)** Improve parsing of media queries (#5567) ([5c28d00](https://github.com/swc-project/swc/commit/5c28d00516c38200e1d29f5f142318d43e8de735))
12
+
13
+
14
+ - **(es/codegen)** Emit trailing semicolon (#5659) ([537449e](https://github.com/swc-project/swc/commit/537449e53b9af268e497f6d3b23e137ec9bbf522))
15
+
16
+
17
+ - **(es/compat)** Fix evaluation order of computed class keys (#5621) ([d18ee54](https://github.com/swc-project/swc/commit/d18ee54aef2476e27375da9b1a05396584eade02))
18
+
19
+
20
+ - **(es/fixer)** Handle `async` in the left of `for of` (#5625) ([eb3b0e9](https://github.com/swc-project/swc/commit/eb3b0e96e5de2dadb8021e459d2915d68dfba708))
21
+
22
+
23
+ - **(es/minifier)** Improve alias analyzer (#5500) ([00e635b](https://github.com/swc-project/swc/commit/00e635b9eaf6f66ffd2ca0bbbc454dbbf37d668f))
24
+
25
+
26
+ - **(es/minifier)** Revert alias analyzer work (#5634) ([d44bbff](https://github.com/swc-project/swc/commit/d44bbffa02a620d1daf3f7a61b410adc0818d69c))
27
+
28
+
29
+ - **(es/minifier)** Fix alias analyzer (#5639) ([a06e6e9](https://github.com/swc-project/swc/commit/a06e6e9ce5c8628e75c19619d003ceb623b4a5e3))
30
+
31
+
32
+ - **(es/minifier)** Fix optimization of template literals with escape (#5650) ([100f359](https://github.com/swc-project/swc/commit/100f359e5ddb49e3a7df039aba1c2caa71534ba4))
33
+
34
+
35
+ - **(es/parser)** Handle more `TS2406` errors (#5640) ([838438d](https://github.com/swc-project/swc/commit/838438dc9d090402756ecc038b5b091f51dada66))
36
+
37
+ ### Documentation
38
+
39
+
40
+
41
+ - **(rustdoc)** Document rust APIs (#5647) ([488562b](https://github.com/swc-project/swc/commit/488562baacf45a0b1c8510bed6428991effe7914))
9
42
 
10
43
  ### Features
11
44
 
12
45
 
13
46
 
14
- - **(es/minifier)** Remove more functions and classes (#5552) ([69f8945](https://github.com/swc-project/swc/commit/69f8945911e50d96978b0f49642cb79473178173))
47
+ - **(css)** Support forgiving selector (#5539) ([e2aca46](https://github.com/swc-project/swc/commit/e2aca468897a57401bee6a604aeeddb91ea7b8e9))
48
+
49
+
50
+ - **(es)** Improve APIs for plugin authors (#5632) ([e8edb67](https://github.com/swc-project/swc/commit/e8edb67def8bf88dda610a2d8cc405ad36cd5b52))
51
+
52
+
53
+ - **(es/minifier)** Improve gzipped size (#5631) ([d81fe67](https://github.com/swc-project/swc/commit/d81fe67e4b0ef655c3223b17ba44d1d845a8fd96))
54
+
55
+
56
+ - **(es/minifier)** Remove redundant check (#5664) ([d43334e](https://github.com/swc-project/swc/commit/d43334eb927a0a432c5518ddf5d7b31a8f1e6e9a))
57
+
58
+
59
+ - **(es/parser)** Handle `async` in `for...of` (#5646) ([0f0d1db](https://github.com/swc-project/swc/commit/0f0d1db3013b5dda88e4e73bfd335c8f7e3ad840))
60
+
61
+ ### Miscellaneous Tasks
62
+ - **general**: Update download count image url ([7c554fc](https://github.com/swc-project/swc/commit/7c554fcc61b5b1123f6838f65e0a2a23228174c4))
63
+
64
+ ### Performance
65
+
66
+
67
+
68
+ - **(es/lexer)** Improve keyword tokenizer (#5658) ([6c2c258](https://github.com/swc-project/swc/commit/6c2c2587ffebc9c7be4efea7b9567f61e8fbd40c))
15
69
 
16
70
  ### Testing
17
71
 
18
72
 
19
73
 
20
- - **(es/minifier)** Add tests for size (#5561) ([7f5095d](https://github.com/swc-project/swc/commit/7f5095dd5e569eab0e4415453144485aeef4d043))
74
+ - **(es/transforms)** Enable tests for resolved issues (#5651) ([efd6a36](https://github.com/swc-project/swc/commit/efd6a3603c280a12a76eb14994cb0caa0ef38479))
75
+
76
+
77
+ - **(es/transforms)** Add tests for fixed issues (#5655) ([2cddb24](https://github.com/swc-project/swc/commit/2cddb240c96790ef4c04b3d2bd3432d8d9c25a11))
78
+
79
+
80
+ - **(es/transforms)** Respect directives in tsc tests (#5648) ([095cbf1](https://github.com/swc-project/swc/commit/095cbf1b4ffef7f89bc8897b6103ed98457ae58c))
81
+
82
+ ## [1.2.244] - 2022-08-26
83
+
84
+ ### Bug Fixes
85
+
86
+
87
+
88
+ - **(es/compat)** Ignore invalid class method names (#5612) ([1181d0f](https://github.com/swc-project/swc/commit/1181d0ffe2b432a202398dfc99dcc89da7480b84))
89
+
90
+
91
+ - **(es/compat)** Handle `super` in a private method (#5613) ([35d3558](https://github.com/swc-project/swc/commit/35d3558535c3bee2cbbd8adec162f9c4cb9a4bbc))
92
+
93
+
94
+ - **(es/compat)** Revert generator reimplementation (#5624) ([927ae7e](https://github.com/swc-project/swc/commit/927ae7e8d38813e65b0bc67cbf6559cbb7f9f6a1))
95
+
96
+
97
+ - **(es/fixer)** Wrap expressions in the left of a binary expression (#5586) ([3d485d2](https://github.com/swc-project/swc/commit/3d485d26814516351bd5591502c64811f77f5385))
98
+
99
+
100
+ - **(es/helpers)** Fix `_classStaticPrivateFieldUpdate` (#5620) ([d483eb1](https://github.com/swc-project/swc/commit/d483eb12f458fb86675d8146c84032524fd7ccde))
101
+
102
+
103
+ - **(swc_core)** Re-export `swc_cached` (#5605) ([7fcecb8](https://github.com/swc-project/swc/commit/7fcecb8e63faa64226b87e34b8cd4fdd0a6a7ab7))
104
+
105
+ ### Features
106
+
107
+
108
+
109
+ - **(cli)** Enable LTO by default for the plugins (#5617) ([3d2ee6d](https://github.com/swc-project/swc/commit/3d2ee6d0ae29899ae3a492a0e4b963e40b1d60ff))
110
+
111
+
112
+ - **(es/generator)** Replace generator implementation with one from tsc (#5173) ([2aa0090](https://github.com/swc-project/swc/commit/2aa009018f9bdbe4de6d59f9226b7ddd320db127))
113
+
114
+
115
+ - **(es/generator)** Use new generator implementation (#5627) ([83fec33](https://github.com/swc-project/swc/commit/83fec333597c7854c694e9913e13dc7c4a1e327a))
116
+
117
+
118
+ - **(swc_core)** Expand features (#5602) ([633a23a](https://github.com/swc-project/swc/commit/633a23a13438cb3891ea1cdef349cde882672bec))
119
+
120
+
121
+ - **(swc_core)** Add css features (#5609) ([7461e40](https://github.com/swc-project/swc/commit/7461e404b1946cb8b421c314f4b57dc8d836721a))
122
+
21
123
 
22
- ## [1.2.240] - 2022-08-19
124
+ - **(swc_core)** Update dependencies and fix build script (#5610) ([fad1367](https://github.com/swc-project/swc/commit/fad1367e137288dd0e15591d7ecb4aaee222d327))
125
+
126
+ ### Testing
127
+
128
+
129
+
130
+ - **(es/transforms)** Add more execution tests (#5598) ([cfcd54a](https://github.com/swc-project/swc/commit/cfcd54a2c7618ee5f789c8db1726755f0473848b))
131
+
132
+ ### Build
133
+
134
+
135
+
136
+ - **(swc_core)** Bump `swc_core` (#5604) ([52117f7](https://github.com/swc-project/swc/commit/52117f71e3f710af9f6095e4022b393abf7bb050))
137
+
138
+ ## [1.2.242] - 2022-08-23
139
+
140
+ ### Bug Fixes
141
+
142
+
143
+
144
+ - **(es)** Improve sourcemap (#5569) ([2f7e322](https://github.com/swc-project/swc/commit/2f7e3222140aba2a0e13e307f18b42f6b39f084d))
145
+
146
+
147
+ - **(es/codgen)** Fix sourcemap of`BlockStmt` (#5570) ([288ae51](https://github.com/swc-project/swc/commit/288ae51fb130d5ea302fa89618921ccc3c57d7bc))
148
+
149
+
150
+ - **(es/compat)** Use separate `SyntaxContext` for class names (#5566) ([b717a68](https://github.com/swc-project/swc/commit/b717a68199fc965632e9513d2c57a47af23231d8))
151
+
152
+
153
+ - **(es/compat)** Fix destructuring assignments and updates of super properties (#5576) ([bee26a9](https://github.com/swc-project/swc/commit/bee26a9abb0478147aec2bedd533150204807057))
154
+
155
+
156
+ - **(es/compat)** Fix destructuring assignments and updates of super properties in async method (#5580) ([8645251](https://github.com/swc-project/swc/commit/86452511e715a7ba8447add81a60ce49905bb45c))
157
+
158
+
159
+ - **(es/helpers)** Fix an import (#5587) ([610296c](https://github.com/swc-project/swc/commit/610296cfa444d1f004cc5967c7f94347a7ccb0e8))
160
+
161
+
162
+ - **(es/helpers)** Fix `_classStaticPrivateFieldSpecSet` (#5597) ([0533d56](https://github.com/swc-project/swc/commit/0533d56155316e6e9077c7a291ee945f61c0ab96))
163
+
164
+
165
+ - **(es/parser)** Allow expr to follow `ClassExpr` (#5572) ([78dd071](https://github.com/swc-project/swc/commit/78dd071dabf5f9b5ca9b213bb5f5f0e5d76b40ab))
166
+
167
+
168
+ - **(es/parser)** Fix false-positives of yield used as a parameter in generator (#5564) ([c3f6258](https://github.com/swc-project/swc/commit/c3f62586bfbad6220cdc8cd7a678d9bec2445088))
169
+
170
+
171
+ - **(es/quote)** Allow cloning (#5571) ([82cc3ca](https://github.com/swc-project/swc/commit/82cc3ca7a4f27f932ed4e8b4e620d1d8b5f41bdc))
172
+
173
+ ### Features
174
+
175
+
176
+
177
+ - **(bindings)** Update `swc_core` (#5594) ([e211ad6](https://github.com/swc-project/swc/commit/e211ad6d10f9e05e1ccade2c3cba60e3a53dbee7))
178
+
179
+
180
+ - **(css/ast)** Make `keyword` optional (#5543) ([a3c1ac6](https://github.com/swc-project/swc/commit/a3c1ac67d708b6c95ef9a9b0892df90bdb26ffe5))
181
+
182
+
183
+ - **(es/plugin)** Provide `swc_core` diagnostic from plugin (#5591) ([a3e855f](https://github.com/swc-project/swc/commit/a3e855f720ade3b823c1f7e59f0e6dfac197895c))
184
+
185
+
186
+ - **(html/minifier)** Improve minification modes (#5568) ([3cb6fc2](https://github.com/swc-project/swc/commit/3cb6fc2a29b541c32ff95baf0a07021ffe0dd089))
187
+
188
+ ### Miscellaneous Tasks
189
+
190
+
191
+
192
+ - **(swc_core)** Update dependency version (#5595) ([1769191](https://github.com/swc-project/swc/commit/1769191f9ac7decfde86dcca1248ec15a0763a17))
193
+
194
+ ### Testing
195
+
196
+
197
+
198
+ - **(es/transforms)** Enable tests for fixed issues (#5583) ([0f6649c](https://github.com/swc-project/swc/commit/0f6649c44fbd35cbb7f0b64bf9b5a175f002fdd9))
199
+
200
+
201
+ - **(es/transforms)** Copy execution tests from babel (#5578) ([e2fedb9](https://github.com/swc-project/swc/commit/e2fedb93452e54f4146f725ae07c6c2f0a4067a5))
202
+
203
+ ### Build
204
+
205
+
206
+
207
+ - **(swc_core)** Fix dependency version (#5593) ([9bc40e3](https://github.com/swc-project/swc/commit/9bc40e3d087f502904821f9fdbcfff6f8c52116f))
208
+
209
+ ## [1.2.241] - 2022-08-19
23
210
 
24
211
  ### Bug Fixes
25
212
 
@@ -37,6 +224,9 @@
37
224
  - **(css/codegen)** Improve codegen of `@media` (#5544) ([fa7abe2](https://github.com/swc-project/swc/commit/fa7abe26cf2a9eab1d8bcd481cf6fb2dd02188a3))
38
225
 
39
226
 
227
+ - **(es/compat)** Handle `async` in class method parameters (#5560) ([f2c1164](https://github.com/swc-project/swc/commit/f2c116402621b64b49181407dba1bb7ae852cf13))
228
+
229
+
40
230
  - **(es/fixer)** Wrap `yield` expression in `extends` (#5555) ([b14d69e](https://github.com/swc-project/swc/commit/b14d69e9b0427751a86d2260f10d4af7495d7ae8))
41
231
 
42
232
 
@@ -55,6 +245,9 @@
55
245
  - **(es/minifier)** Optimize numeric property names (#5548) ([38b8ca0](https://github.com/swc-project/swc/commit/38b8ca05adf22d7096e4cc6856cd5fb1734656cd))
56
246
 
57
247
 
248
+ - **(es/minifier)** Remove more functions and classes (#5552) ([69f8945](https://github.com/swc-project/swc/commit/69f8945911e50d96978b0f49642cb79473178173))
249
+
250
+
58
251
  - **(swc_core)** Implement engine diagnostics (#5515) ([f1a4263](https://github.com/swc-project/swc/commit/f1a42639541ef5a356079b7fb177a621ddd5a2c0))
59
252
 
60
253
  ### Miscellaneous Tasks
@@ -66,6 +259,12 @@
66
259
 
67
260
  - **(ci)** Fix publish action ([bc9aef8](https://github.com/swc-project/swc/commit/bc9aef891e1dd4665c30854b67f6173767d96a22))
68
261
 
262
+ ### Testing
263
+
264
+
265
+
266
+ - **(es/minifier)** Add tests for size (#5561) ([7f5095d](https://github.com/swc-project/swc/commit/7f5095dd5e569eab0e4415453144485aeef4d043))
267
+
69
268
  ## [1.2.239] - 2022-08-18
70
269
 
71
270
  ### Bug Fixes
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/@swc/core">
13
- <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/core">
13
+ <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/helpers">
14
14
  </a>
15
15
  <a href="https://crates.io/crates/swc_ecma_parser">
16
16
  <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.241",
3
+ "version": "1.2.245",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -60,8 +60,8 @@
60
60
  "pack": "wasm-pack",
61
61
  "build:ts": "tsc -d",
62
62
  "build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
63
- "build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings/binding_core_node --release",
64
- "build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings/binding_core_node",
63
+ "build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
64
+ "build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
65
65
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
66
66
  "version": "napi version -p scripts/npm"
67
67
  },
@@ -138,19 +138,19 @@
138
138
  "url": "https://opencollective.com/swc"
139
139
  },
140
140
  "optionalDependencies": {
141
- "@swc/core-win32-x64-msvc": "1.2.241",
142
- "@swc/core-darwin-x64": "1.2.241",
143
- "@swc/core-linux-x64-gnu": "1.2.241",
144
- "@swc/core-linux-x64-musl": "1.2.241",
145
- "@swc/core-freebsd-x64": "1.2.241",
146
- "@swc/core-win32-ia32-msvc": "1.2.241",
147
- "@swc/core-linux-arm64-gnu": "1.2.241",
148
- "@swc/core-linux-arm-gnueabihf": "1.2.241",
149
- "@swc/core-darwin-arm64": "1.2.241",
150
- "@swc/core-android-arm64": "1.2.241",
151
- "@swc/core-linux-arm64-musl": "1.2.241",
152
- "@swc/core-win32-arm64-msvc": "1.2.241",
153
- "@swc/core-android-arm-eabi": "1.2.241"
141
+ "@swc/core-win32-x64-msvc": "1.2.245",
142
+ "@swc/core-darwin-x64": "1.2.245",
143
+ "@swc/core-linux-x64-gnu": "1.2.245",
144
+ "@swc/core-linux-x64-musl": "1.2.245",
145
+ "@swc/core-freebsd-x64": "1.2.245",
146
+ "@swc/core-win32-ia32-msvc": "1.2.245",
147
+ "@swc/core-linux-arm64-gnu": "1.2.245",
148
+ "@swc/core-linux-arm-gnueabihf": "1.2.245",
149
+ "@swc/core-darwin-arm64": "1.2.245",
150
+ "@swc/core-android-arm64": "1.2.245",
151
+ "@swc/core-linux-arm64-musl": "1.2.245",
152
+ "@swc/core-win32-arm64-msvc": "1.2.245",
153
+ "@swc/core-android-arm-eabi": "1.2.245"
154
154
  },
155
155
  "files": [
156
156
  "CHANGELOG.md",