@swc/core 1.2.171 → 1.2.174
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 +225 -0
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,231 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/helpers)** Update `_interopRequireWildcard` (#4479) ([7d40208](https://github.com/swc-project/swc/commit/7d40208377133b0fcd153c5bfcf47f6b489113c1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/minifier)** Disable some passes for `hoist_props` (#4468) ([effc85d](https://github.com/swc-project/swc/commit/effc85df572609a180f9a28177a5b37ed960c860))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/minifier)** Fix skipping logic of sequential inliner (#4469) ([233c4d5](https://github.com/swc-project/swc/commit/233c4d5b860d557710bfe654f76d7901e5d0b3a0))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(html)** Fix bugs of parser and codegen (#4461) ([8bdfcd9](https://github.com/swc-project/swc/commit/8bdfcd996aa5abde0e50743b90f4d36fd25003ba))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(html/parser)** Fix bugs (#4459) ([2098228](https://github.com/swc-project/swc/commit/20982288fb05dcb4e2c72e5ea4c0888a0e946580))
|
|
21
|
+
|
|
22
|
+
### Features
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/lints)** Implement `no-throw-literal` (#4477) ([3a8cade](https://github.com/swc-project/swc/commit/3a8cade2091bea83769b5140a92dad7b2a277ce0))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/minifier)** Drop more returns (#4471) ([2739546](https://github.com/swc-project/swc/commit/273954640aa2d22d0e65f4d186bcb6add0844cb1))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/minifier)** Consider cost of functions for inlining (#4470) ([7a584d7](https://github.com/swc-project/swc/commit/7a584d755aa0dc70c8c367f1c0c4b61e2dbc34df))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/minifier)** Drop pure `new` calls (#4478) ([918c9c8](https://github.com/swc-project/swc/commit/918c9c8a21c248617aef4474380c94f9f98df1dc))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/minifier)** Add `pristine_globals` (#4480) ([09ba3c0](https://github.com/swc-project/swc/commit/09ba3c0e688b2bd66e707836ecba23feee93fb8c))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(html/minifier)** Remove `javascript:` prefix (#4460) ([a1877e7](https://github.com/swc-project/swc/commit/a1877e740acf6bf51421b97c27236b0f208eaf9d))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(html/minifier)** Remove duplicate attributes (#4474) ([750d655](https://github.com/swc-project/swc/commit/750d6551fcbdf9c0664bfa6ad97d394ba6c641de))
|
|
45
|
+
|
|
46
|
+
### Miscellaneous Tasks
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/minifier)** Update debugging utils (#4467) ([c45b0df](https://github.com/swc-project/swc/commit/c45b0df8770727b84ede1c3348c9769f5d4367c2))
|
|
51
|
+
|
|
52
|
+
## [1.2.173] - 2022-04-28
|
|
53
|
+
|
|
54
|
+
### Bug Fixes
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
- **(es)** Remove wrong debug assertion (#4445) ([962cf4a](https://github.com/swc-project/swc/commit/962cf4a08caaee6dc0579aed556df55bc60bf093))
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- **(es/async-generator)** Fix `yield*` in async generators (#4452) ([0bc0bae](https://github.com/swc-project/swc/commit/0bc0bae90dcf6f448f45d35edc02ce025c0d8114))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(es/parser)** Throw syntax error for missing function expr body (#4462) ([393cfa8](https://github.com/swc-project/swc/commit/393cfa84b65264a07f90387a0f7852535d87cd6d))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- **(es/preset-env)** Do not import new features when using old core-js (#4458) ([4262874](https://github.com/swc-project/swc/commit/4262874ce458260fc6a7d363522b5c6591df93b3))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(html/parser)** Fix a bug with nested tags (#4438) ([8c4dc4c](https://github.com/swc-project/swc/commit/8c4dc4cc46e73265ad45e63fecd513f4ba4cf7bb))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- **(html/parser)** Parse table including broken one (#4451) ([6e60813](https://github.com/swc-project/swc/commit/6e6081336714861055a1ae148f1305e2ab180efc))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
- **(html/parser)** Fix fosting logic for text nodes (#4457) ([65a158a](https://github.com/swc-project/swc/commit/65a158a66b2a394f70757ae363ab329ced71436f))
|
|
77
|
+
|
|
78
|
+
### Features
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- **(es/parser)** Reject indirect opt chain in assignment (#4447) ([df7b3f6](https://github.com/swc-project/swc/commit/df7b3f611a7bf5509e143cf81a69e0443cf80288))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
- **(html/minifier)** Compress whitespaces (#4463) ([0ae4350](https://github.com/swc-project/swc/commit/0ae43502f3f54ad7d77b790c9f1ad2af63d32090))
|
|
86
|
+
|
|
87
|
+
### Miscellaneous Tasks
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- **(es/minifier)** Don't run tests with infinite loops (#4448) ([ec7dfb9](https://github.com/swc-project/swc/commit/ec7dfb92098897d9b8dbe5726bef78ea2a868053))
|
|
92
|
+
|
|
93
|
+
### Testing
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
- **(html/codegen)** Improve fixture testing (#4450) ([f30e771](https://github.com/swc-project/swc/commit/f30e7717a20348af2f6ef65bb7ff800fbffeadb4))
|
|
98
|
+
|
|
99
|
+
## [1.2.172] - 2022-04-26
|
|
100
|
+
|
|
101
|
+
### Bug Fixes
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
- **(es/ast)** Fix tag of `BigInt` (#4440) ([2813eaa](https://github.com/swc-project/swc/commit/2813eaadcd0703b9f8c11d77f91c70cd002c9296))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
- **(es/minifier)** Remove the last break in the last `BlockStmt` (#4413) ([83244ad](https://github.com/swc-project/swc/commit/83244add338c3dd1a1a84fec94b73d1931699cdb))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
- **(es/minifier)** Don't drop arguments to an IIFE without body (#4419) ([aa19b65](https://github.com/swc-project/swc/commit/aa19b65f9cb1170c36991649348e064406523699))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
- **(es/minifier)** Preserve more side effects (#4420) ([8ab12fd](https://github.com/swc-project/swc/commit/8ab12fd97b035e4131775676cdd33daaf31587b8))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
- **(es/minifier)** Fix analysis of update expressions (#4428) ([9733917](https://github.com/swc-project/swc/commit/9733917cc718ad4800697ffc9203ad96d5dd3f3f))
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
- **(es/minifier)** Remove wrong logic for optimizing `delete`s (#4429) ([8118569](https://github.com/swc-project/swc/commit/8118569045135e06fcaadc61255b9ca09ef120ea))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
- **(es/parser)** Fix top-level await with binary expr (#4426) ([465cc2f](https://github.com/swc-project/swc/commit/465cc2f92907ebd4ad4a659eca18b6ca2bc426a7))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
- **(html/lexer)** Fix lexing of html entity (#4423) ([9b26dbd](https://github.com/swc-project/swc/commit/9b26dbd45763fbf48dd81a1652608cc90736fe4f))
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
- **(html/parser)** Parse foreign attributes (#4400) ([cf3be64](https://github.com/swc-project/swc/commit/cf3be649bb327feda8bce4e7ab7eca92d248c2da))
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
- **(html/parser)** Fix parsing of foreign elements (#4422) ([4ccbdf2](https://github.com/swc-project/swc/commit/4ccbdf2a7d6419552db6b34586a32fef52b200bd))
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
- **(html/parser)** Fix span (#4437) ([3293060](https://github.com/swc-project/swc/commit/329306007018d733bc9d348cd4a5dc839768b3e8))
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **(html/parsing)** Fix parsing of formatting elements (#4442) ([8f2a3ea](https://github.com/swc-project/swc/commit/8f2a3ead6a56c47ae867c40ac863346a0e6bc88a))
|
|
139
|
+
|
|
140
|
+
### Features
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
- **(es/optimization)** Accept top level mark from simplifiers (#4434) ([8048597](https://github.com/swc-project/swc/commit/8048597c9ec10fb956de06e6b2de28e621262dd9))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
- **(es/parser)** Reject invalid regex flags (#4404) ([c96e322](https://github.com/swc-project/swc/commit/c96e32243c549d0f7db26a8e76d69a5646b4865c))
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
- **(es/parser)** Reject invalid `new.target` (#4406) ([da02c9d](https://github.com/swc-project/swc/commit/da02c9dc509f97d58f565223c81e7b123b0301c5))
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
- **(es/parser)** Reject `'use strict'` with non-simple params list in TS (#4416) ([6dc64c9](https://github.com/swc-project/swc/commit/6dc64c9ca0bccf27b325d3298f4ed7f07eaaa076))
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
- **(es/resolver)** Use different syntax context for unresolved refs (#4436) ([53610fd](https://github.com/swc-project/swc/commit/53610fdafc83d25f0a5132b3381737aaffb1a29d))
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
- **(html)** Prepare processing system (#4358) ([7332dce](https://github.com/swc-project/swc/commit/7332dce4f801546f0c5f29b6919feaaebebc435a))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- **(html/codegen)** Print unquoted value when it is possible (#4402) ([c15dc4f](https://github.com/swc-project/swc/commit/c15dc4f2b7e97eae939a82113ff5ab15a2553d78))
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
- **(html/minifier)** Initialize crate (#4403) ([63a6280](https://github.com/swc-project/swc/commit/63a6280e8f691f93db246db02ce2479b08874220))
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
- **(html/minifier)** Remove `script` `type` attribute (#4407) ([fec0f2e](https://github.com/swc-project/swc/commit/fec0f2e417b8da2e0391f594f28d32e93b03673e))
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
- **(html/minifier)** Compress `type` for `style` and `link` tags (#4424) ([25a87f0](https://github.com/swc-project/swc/commit/25a87f000048facf4daa78fb6605af3b1e50e81e))
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
- **(html/minifier)** Compress doctype (#4425) ([6fc70f3](https://github.com/swc-project/swc/commit/6fc70f3866e4d60867a3ae38ae40c8f46065153c))
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
- **(html/minifier)** Compress default values of attributes (#4427) ([4c699f2](https://github.com/swc-project/swc/commit/4c699f2554157333f0598cd4f8143f536027d396))
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
- **(node/css)** Add css bindings crate (#4346) ([6a19ff1](https://github.com/swc-project/swc/commit/6a19ff1a152b67b15714c0290eb21ede878692e5))
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
- **(preset-env/base)** Update "browserslist-rs" (#4435) ([1c2af93](https://github.com/swc-project/swc/commit/1c2af932b68cae34805b4ab789d6f2ccb4171fa4))
|
|
184
|
+
|
|
185
|
+
### Miscellaneous Tasks
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
- **(ci)** Improve bot script (#4430) ([c216a03](https://github.com/swc-project/swc/commit/c216a03673ca12e16d3650161eb890e6236054b1))
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
- **(ci)** Use `yarn` instead of `npm` (#4432) ([b3fb0e9](https://github.com/swc-project/swc/commit/b3fb0e9ceb45b6d2b1c45499680a7d519f6d2f25))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
- **(es/minifier)** Add a script to instrument real-world inputs (#4399) ([efdf93d](https://github.com/swc-project/swc/commit/efdf93d91099bab79f04a58635b418b7160a0b75))
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
- **(plugin)** Add a benchmark (#4397) ([60efb7e](https://github.com/swc-project/swc/commit/60efb7e9c75445fdffccf936964785424f421a7e))
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
- **(repo)** Make `git commit` faster (#4421) ([65e00aa](https://github.com/swc-project/swc/commit/65e00aafc3b27bc896178fc9b3164fef0777cd9f))
|
|
202
|
+
|
|
203
|
+
### Performance
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
- **(es/minifier)** Add some fast-path to the `MultiReplacer` (#4408) ([4c9e5c0](https://github.com/swc-project/swc/commit/4c9e5c01ef91d01c95a6e928daa9e99839eabedf))
|
|
208
|
+
|
|
209
|
+
### Testing
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
- **(es)** Add tests for `.swcrc` (#4398) ([5134b4f](https://github.com/swc-project/swc/commit/5134b4f9bee5725bae53876067399aa0528a8add))
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
- **(es/minifier)** Split tests into improvement and stabilization (#4409) ([ab88637](https://github.com/swc-project/swc/commit/ab886379377726bd32f9221da494eb00d9b6fa94))
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
- **(es/minifier)** Use `_` instead of `-` for terser tests (#4411) ([4e11303](https://github.com/swc-project/swc/commit/4e113037e5142ca24bb4f28c316f58bbd28d3f9b))
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
- **(es/minifier)** Execute terser tests if possible (#4418) ([f787f8c](https://github.com/swc-project/swc/commit/f787f8c81943b022078a53575486094d5d2b1eca))
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
- **(es/minifier)** Categorize tests (#4410) ([9b34ecf](https://github.com/swc-project/swc/commit/9b34ecfd2e292ed557b4e357ea61a0cda4533445))
|
|
226
|
+
|
|
227
|
+
## [1.2.171] - 2022-04-22
|
|
228
|
+
|
|
229
|
+
### Bug Fixes
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
8
233
|
- **(common)** Ignore extraneous mapping of 1, 0 => 0, 0 (#4381) ([a06c559](https://github.com/swc-project/swc/commit/a06c55930f64a158b289c790ac9f7f71de78838a))
|
|
9
234
|
|
|
10
235
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.174",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
"taplo format"
|
|
70
70
|
],
|
|
71
71
|
"*.rs": [
|
|
72
|
-
"
|
|
72
|
+
"rustfmt --"
|
|
73
73
|
]
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"@babel/preset-typescript": "^7.13.0",
|
|
84
84
|
"@babel/types": "^7.14.0",
|
|
85
85
|
"@napi-rs/cli": "^2.4.5",
|
|
86
|
-
"@swc/helpers": "^0.
|
|
86
|
+
"@swc/helpers": "^0.3.8",
|
|
87
87
|
"@taplo/cli": "^0.3.2",
|
|
88
88
|
"@types/jest": "^26.0.23",
|
|
89
89
|
"@types/node": "^14.14.41",
|
|
@@ -121,18 +121,18 @@
|
|
|
121
121
|
"url": "https://opencollective.com/swc"
|
|
122
122
|
},
|
|
123
123
|
"optionalDependencies": {
|
|
124
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
125
|
-
"@swc/core-darwin-x64": "1.2.
|
|
126
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
127
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
128
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
129
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
130
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
131
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
132
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
133
|
-
"@swc/core-android-arm64": "1.2.
|
|
134
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
135
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
136
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
124
|
+
"@swc/core-win32-x64-msvc": "1.2.174",
|
|
125
|
+
"@swc/core-darwin-x64": "1.2.174",
|
|
126
|
+
"@swc/core-linux-x64-gnu": "1.2.174",
|
|
127
|
+
"@swc/core-linux-x64-musl": "1.2.174",
|
|
128
|
+
"@swc/core-freebsd-x64": "1.2.174",
|
|
129
|
+
"@swc/core-win32-ia32-msvc": "1.2.174",
|
|
130
|
+
"@swc/core-linux-arm64-gnu": "1.2.174",
|
|
131
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.174",
|
|
132
|
+
"@swc/core-darwin-arm64": "1.2.174",
|
|
133
|
+
"@swc/core-android-arm64": "1.2.174",
|
|
134
|
+
"@swc/core-linux-arm64-musl": "1.2.174",
|
|
135
|
+
"@swc/core-win32-arm64-msvc": "1.2.174",
|
|
136
|
+
"@swc/core-android-arm-eabi": "1.2.174"
|
|
137
137
|
}
|
|
138
138
|
}
|