@swc/core 1.2.239 → 1.2.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +182 -4
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -5,18 +5,187 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
- **(
|
|
8
|
+
- **(es/compat)** Ignore invalid class method names (#5612) ([1181d0f](https://github.com/swc-project/swc/commit/1181d0ffe2b432a202398dfc99dcc89da7480b84))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat)** Handle `super` in a private method (#5613) ([35d3558](https://github.com/swc-project/swc/commit/35d3558535c3bee2cbbd8adec162f9c4cb9a4bbc))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/compat)** Revert generator reimplementation (#5624) ([927ae7e](https://github.com/swc-project/swc/commit/927ae7e8d38813e65b0bc67cbf6559cbb7f9f6a1))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/fixer)** Wrap expressions in the left of a binary expression (#5586) ([3d485d2](https://github.com/swc-project/swc/commit/3d485d26814516351bd5591502c64811f77f5385))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/helpers)** Fix `_classStaticPrivateFieldUpdate` (#5620) ([d483eb1](https://github.com/swc-project/swc/commit/d483eb12f458fb86675d8146c84032524fd7ccde))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(swc_core)** Re-export `swc_cached` (#5605) ([7fcecb8](https://github.com/swc-project/swc/commit/7fcecb8e63faa64226b87e34b8cd4fdd0a6a7ab7))
|
|
9
24
|
|
|
10
25
|
### Features
|
|
11
26
|
|
|
12
27
|
|
|
13
28
|
|
|
14
|
-
- **(
|
|
29
|
+
- **(cli)** Enable LTO by default for the plugins (#5617) ([3d2ee6d](https://github.com/swc-project/swc/commit/3d2ee6d0ae29899ae3a492a0e4b963e40b1d60ff))
|
|
15
30
|
|
|
16
31
|
|
|
17
|
-
- **(es/
|
|
32
|
+
- **(es/generator)** Replace generator implementation with one from tsc (#5173) ([2aa0090](https://github.com/swc-project/swc/commit/2aa009018f9bdbe4de6d59f9226b7ddd320db127))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/generator)** Use new generator implementation (#5627) ([83fec33](https://github.com/swc-project/swc/commit/83fec333597c7854c694e9913e13dc7c4a1e327a))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(swc_core)** Expand features (#5602) ([633a23a](https://github.com/swc-project/swc/commit/633a23a13438cb3891ea1cdef349cde882672bec))
|
|
18
39
|
|
|
19
|
-
|
|
40
|
+
|
|
41
|
+
- **(swc_core)** Add css features (#5609) ([7461e40](https://github.com/swc-project/swc/commit/7461e404b1946cb8b421c314f4b57dc8d836721a))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(swc_core)** Update dependencies and fix build script (#5610) ([fad1367](https://github.com/swc-project/swc/commit/fad1367e137288dd0e15591d7ecb4aaee222d327))
|
|
45
|
+
|
|
46
|
+
### Testing
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/transforms)** Add more execution tests (#5598) ([cfcd54a](https://github.com/swc-project/swc/commit/cfcd54a2c7618ee5f789c8db1726755f0473848b))
|
|
51
|
+
|
|
52
|
+
### Build
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(swc_core)** Bump `swc_core` (#5604) ([52117f7](https://github.com/swc-project/swc/commit/52117f71e3f710af9f6095e4022b393abf7bb050))
|
|
57
|
+
|
|
58
|
+
## [1.2.242] - 2022-08-23
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(es)** Improve sourcemap (#5569) ([2f7e322](https://github.com/swc-project/swc/commit/2f7e3222140aba2a0e13e307f18b42f6b39f084d))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- **(es/codgen)** Fix sourcemap of`BlockStmt` (#5570) ([288ae51](https://github.com/swc-project/swc/commit/288ae51fb130d5ea302fa89618921ccc3c57d7bc))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(es/compat)** Use separate `SyntaxContext` for class names (#5566) ([b717a68](https://github.com/swc-project/swc/commit/b717a68199fc965632e9513d2c57a47af23231d8))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- **(es/compat)** Fix destructuring assignments and updates of super properties (#5576) ([bee26a9](https://github.com/swc-project/swc/commit/bee26a9abb0478147aec2bedd533150204807057))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
- **(es/compat)** Fix destructuring assignments and updates of super properties in async method (#5580) ([8645251](https://github.com/swc-project/swc/commit/86452511e715a7ba8447add81a60ce49905bb45c))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
- **(es/helpers)** Fix an import (#5587) ([610296c](https://github.com/swc-project/swc/commit/610296cfa444d1f004cc5967c7f94347a7ccb0e8))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- **(es/helpers)** Fix `_classStaticPrivateFieldSpecSet` (#5597) ([0533d56](https://github.com/swc-project/swc/commit/0533d56155316e6e9077c7a291ee945f61c0ab96))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
- **(es/parser)** Allow expr to follow `ClassExpr` (#5572) ([78dd071](https://github.com/swc-project/swc/commit/78dd071dabf5f9b5ca9b213bb5f5f0e5d76b40ab))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- **(es/parser)** Fix false-positives of yield used as a parameter in generator (#5564) ([c3f6258](https://github.com/swc-project/swc/commit/c3f62586bfbad6220cdc8cd7a678d9bec2445088))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- **(es/quote)** Allow cloning (#5571) ([82cc3ca](https://github.com/swc-project/swc/commit/82cc3ca7a4f27f932ed4e8b4e620d1d8b5f41bdc))
|
|
92
|
+
|
|
93
|
+
### Features
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
- **(bindings)** Update `swc_core` (#5594) ([e211ad6](https://github.com/swc-project/swc/commit/e211ad6d10f9e05e1ccade2c3cba60e3a53dbee7))
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
- **(css/ast)** Make `keyword` optional (#5543) ([a3c1ac6](https://github.com/swc-project/swc/commit/a3c1ac67d708b6c95ef9a9b0892df90bdb26ffe5))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **(es/plugin)** Provide `swc_core` diagnostic from plugin (#5591) ([a3e855f](https://github.com/swc-project/swc/commit/a3e855f720ade3b823c1f7e59f0e6dfac197895c))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(html/minifier)** Improve minification modes (#5568) ([3cb6fc2](https://github.com/swc-project/swc/commit/3cb6fc2a29b541c32ff95baf0a07021ffe0dd089))
|
|
107
|
+
|
|
108
|
+
### Miscellaneous Tasks
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(swc_core)** Update dependency version (#5595) ([1769191](https://github.com/swc-project/swc/commit/1769191f9ac7decfde86dcca1248ec15a0763a17))
|
|
113
|
+
|
|
114
|
+
### Testing
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **(es/transforms)** Enable tests for fixed issues (#5583) ([0f6649c](https://github.com/swc-project/swc/commit/0f6649c44fbd35cbb7f0b64bf9b5a175f002fdd9))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(es/transforms)** Copy execution tests from babel (#5578) ([e2fedb9](https://github.com/swc-project/swc/commit/e2fedb93452e54f4146f725ae07c6c2f0a4067a5))
|
|
122
|
+
|
|
123
|
+
### Build
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(swc_core)** Fix dependency version (#5593) ([9bc40e3](https://github.com/swc-project/swc/commit/9bc40e3d087f502904821f9fdbcfff6f8c52116f))
|
|
128
|
+
|
|
129
|
+
## [1.2.241] - 2022-08-19
|
|
130
|
+
|
|
131
|
+
### Bug Fixes
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
- **(ast)** Add attributes for `rkyv` (#5489) ([3569b20](https://github.com/swc-project/swc/commit/3569b20645a57999fd09ee62e082e08d2caeebcc))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **(ci)** Adjust script path (#5546) ([c833d08](https://github.com/swc-project/swc/commit/c833d088d5fc35cccb46aee884348d594f0fd972))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
- **(ci)** Wait exec asynchronously (#5547) ([719444c](https://github.com/swc-project/swc/commit/719444c42c6c29551de5a6a57a3dd3a1a09a7350))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
- **(css/codegen)** Improve codegen of `@media` (#5544) ([fa7abe2](https://github.com/swc-project/swc/commit/fa7abe26cf2a9eab1d8bcd481cf6fb2dd02188a3))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
- **(es/compat)** Handle `async` in class method parameters (#5560) ([f2c1164](https://github.com/swc-project/swc/commit/f2c116402621b64b49181407dba1bb7ae852cf13))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
- **(es/fixer)** Wrap `yield` expression in `extends` (#5555) ([b14d69e](https://github.com/swc-project/swc/commit/b14d69e9b0427751a86d2260f10d4af7495d7ae8))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
- **(es/helpers)** Add a missing helper (#5551) ([e930fea](https://github.com/swc-project/swc/commit/e930fea4cafce6452ace889a7a17c5abe071c492))
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
- **(css/minifier)** Remove duplications (#5542) ([780a4c2](https://github.com/swc-project/swc/commit/780a4c2b5dbc1c396d2212451b21e30a134ac3c4))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- **(es/minifier)** Optimize more string property names (#5545) ([7487e33](https://github.com/swc-project/swc/commit/7487e3341dfff7532e4b3ff7c4868fc1fe5e04e0))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
- **(es/minifier)** Optimize numeric property names (#5548) ([38b8ca0](https://github.com/swc-project/swc/commit/38b8ca05adf22d7096e4cc6856cd5fb1734656cd))
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
- **(es/minifier)** Remove more functions and classes (#5552) ([69f8945](https://github.com/swc-project/swc/commit/69f8945911e50d96978b0f49642cb79473178173))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- **(swc_core)** Implement engine diagnostics (#5515) ([f1a4263](https://github.com/swc-project/swc/commit/f1a42639541ef5a356079b7fb177a621ddd5a2c0))
|
|
172
|
+
|
|
173
|
+
### Miscellaneous Tasks
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
- **(ci)** Fix publish action ([91d494d](https://github.com/swc-project/swc/commit/91d494dfd4cb49db8dac900bf8f52d5ae31b01a3))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
- **(ci)** Fix publish action ([bc9aef8](https://github.com/swc-project/swc/commit/bc9aef891e1dd4665c30854b67f6173767d96a22))
|
|
181
|
+
|
|
182
|
+
### Testing
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
- **(es/minifier)** Add tests for size (#5561) ([7f5095d](https://github.com/swc-project/swc/commit/7f5095dd5e569eab0e4415453144485aeef4d043))
|
|
187
|
+
|
|
188
|
+
## [1.2.239] - 2022-08-18
|
|
20
189
|
|
|
21
190
|
### Bug Fixes
|
|
22
191
|
|
|
@@ -28,6 +197,9 @@
|
|
|
28
197
|
- **(css/prefixer)** Handle supports (#5503) ([dc98234](https://github.com/swc-project/swc/commit/dc98234fab255a411d56a363b7a9e1d0c7ff131d))
|
|
29
198
|
|
|
30
199
|
|
|
200
|
+
- **(css/prefixer)** Reduce duplicates (#5537) ([0985c15](https://github.com/swc-project/swc/commit/0985c1546b38a4072099e45af354c4534e0e23cb))
|
|
201
|
+
|
|
202
|
+
|
|
31
203
|
- **(es/fixer)** Wrap first `function` or `class` of a sequence expression (#5508) ([f27ed73](https://github.com/swc-project/swc/commit/f27ed73594110b27b3937a7f5211503f0f72f3f9))
|
|
32
204
|
|
|
33
205
|
|
|
@@ -49,6 +221,12 @@
|
|
|
49
221
|
- **(css/prefixer)** Support more env properties and values (#5512) ([674c788](https://github.com/swc-project/swc/commit/674c788654714512000c64abf1a088e0f9f2820b))
|
|
50
222
|
|
|
51
223
|
|
|
224
|
+
- **(dbg-swc)** Improve minifier comparator (#5541) ([935a2fb](https://github.com/swc-project/swc/commit/935a2fbd002398a9593135fb765127d24f4e4dbb))
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
- **(es/minifier)** Ignore recursive usage for function calls and pure calls (#5526) ([d2f3e29](https://github.com/swc-project/swc/commit/d2f3e29bb054ffcb557fb54d535dc98640a77dc4))
|
|
228
|
+
|
|
229
|
+
|
|
52
230
|
- **(es/plugin/runner)** Add more traces for the plugin host (#5538) ([d46418b](https://github.com/swc-project/swc/commit/d46418bb470761db48cd1a3e50578d4e1e82e577))
|
|
53
231
|
|
|
54
232
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.244",
|
|
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
|
|
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
|
|
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.
|
|
142
|
-
"@swc/core-darwin-x64": "1.2.
|
|
143
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
144
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
145
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
146
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
147
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
148
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
149
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
150
|
-
"@swc/core-android-arm64": "1.2.
|
|
151
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
152
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
153
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
141
|
+
"@swc/core-win32-x64-msvc": "1.2.244",
|
|
142
|
+
"@swc/core-darwin-x64": "1.2.244",
|
|
143
|
+
"@swc/core-linux-x64-gnu": "1.2.244",
|
|
144
|
+
"@swc/core-linux-x64-musl": "1.2.244",
|
|
145
|
+
"@swc/core-freebsd-x64": "1.2.244",
|
|
146
|
+
"@swc/core-win32-ia32-msvc": "1.2.244",
|
|
147
|
+
"@swc/core-linux-arm64-gnu": "1.2.244",
|
|
148
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.244",
|
|
149
|
+
"@swc/core-darwin-arm64": "1.2.244",
|
|
150
|
+
"@swc/core-android-arm64": "1.2.244",
|
|
151
|
+
"@swc/core-linux-arm64-musl": "1.2.244",
|
|
152
|
+
"@swc/core-win32-arm64-msvc": "1.2.244",
|
|
153
|
+
"@swc/core-android-arm-eabi": "1.2.244"
|
|
154
154
|
},
|
|
155
155
|
"files": [
|
|
156
156
|
"CHANGELOG.md",
|