@swc/core 1.2.170 → 1.2.173

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 (2) hide show
  1. package/CHANGELOG.md +222 -0
  2. package/package.json +16 -16
package/CHANGELOG.md CHANGED
@@ -1,6 +1,228 @@
1
1
  # Changelog
2
2
  ## [unreleased]
3
3
 
4
+ ### Bug Fixes
5
+
6
+
7
+
8
+ - **(es)** Remove wrong debug assertion (#4445) ([962cf4a](https://github.com/swc-project/swc/commit/962cf4a08caaee6dc0579aed556df55bc60bf093))
9
+
10
+
11
+ - **(es/async-generator)** Fix `yield*` in async generators (#4452) ([0bc0bae](https://github.com/swc-project/swc/commit/0bc0bae90dcf6f448f45d35edc02ce025c0d8114))
12
+
13
+
14
+ - **(es/parser)** Throw syntax error for missing function expr body (#4462) ([393cfa8](https://github.com/swc-project/swc/commit/393cfa84b65264a07f90387a0f7852535d87cd6d))
15
+
16
+
17
+ - **(es/preset-env)** Do not import new features when using old core-js (#4458) ([4262874](https://github.com/swc-project/swc/commit/4262874ce458260fc6a7d363522b5c6591df93b3))
18
+
19
+
20
+ - **(html/parser)** Fix a bug with nested tags (#4438) ([8c4dc4c](https://github.com/swc-project/swc/commit/8c4dc4cc46e73265ad45e63fecd513f4ba4cf7bb))
21
+
22
+
23
+ - **(html/parser)** Parse table including broken one (#4451) ([6e60813](https://github.com/swc-project/swc/commit/6e6081336714861055a1ae148f1305e2ab180efc))
24
+
25
+
26
+ - **(html/parser)** Fix fosting logic for text nodes (#4457) ([65a158a](https://github.com/swc-project/swc/commit/65a158a66b2a394f70757ae363ab329ced71436f))
27
+
28
+ ### Features
29
+
30
+
31
+
32
+ - **(es/parser)** Reject indirect opt chain in assignment (#4447) ([df7b3f6](https://github.com/swc-project/swc/commit/df7b3f611a7bf5509e143cf81a69e0443cf80288))
33
+
34
+
35
+ - **(html/minifier)** Compress whitespaces (#4463) ([0ae4350](https://github.com/swc-project/swc/commit/0ae43502f3f54ad7d77b790c9f1ad2af63d32090))
36
+
37
+ ### Miscellaneous Tasks
38
+
39
+
40
+
41
+ - **(es/minifier)** Don't run tests with infinite loops (#4448) ([ec7dfb9](https://github.com/swc-project/swc/commit/ec7dfb92098897d9b8dbe5726bef78ea2a868053))
42
+
43
+ ### Testing
44
+
45
+
46
+
47
+ - **(html/codegen)** Improve fixture testing (#4450) ([f30e771](https://github.com/swc-project/swc/commit/f30e7717a20348af2f6ef65bb7ff800fbffeadb4))
48
+
49
+ ## [1.2.172] - 2022-04-26
50
+
51
+ ### Bug Fixes
52
+
53
+
54
+
55
+ - **(es/ast)** Fix tag of `BigInt` (#4440) ([2813eaa](https://github.com/swc-project/swc/commit/2813eaadcd0703b9f8c11d77f91c70cd002c9296))
56
+
57
+
58
+ - **(es/minifier)** Remove the last break in the last `BlockStmt` (#4413) ([83244ad](https://github.com/swc-project/swc/commit/83244add338c3dd1a1a84fec94b73d1931699cdb))
59
+
60
+
61
+ - **(es/minifier)** Don't drop arguments to an IIFE without body (#4419) ([aa19b65](https://github.com/swc-project/swc/commit/aa19b65f9cb1170c36991649348e064406523699))
62
+
63
+
64
+ - **(es/minifier)** Preserve more side effects (#4420) ([8ab12fd](https://github.com/swc-project/swc/commit/8ab12fd97b035e4131775676cdd33daaf31587b8))
65
+
66
+
67
+ - **(es/minifier)** Fix analysis of update expressions (#4428) ([9733917](https://github.com/swc-project/swc/commit/9733917cc718ad4800697ffc9203ad96d5dd3f3f))
68
+
69
+
70
+ - **(es/minifier)** Remove wrong logic for optimizing `delete`s (#4429) ([8118569](https://github.com/swc-project/swc/commit/8118569045135e06fcaadc61255b9ca09ef120ea))
71
+
72
+
73
+ - **(es/parser)** Fix top-level await with binary expr (#4426) ([465cc2f](https://github.com/swc-project/swc/commit/465cc2f92907ebd4ad4a659eca18b6ca2bc426a7))
74
+
75
+
76
+ - **(html/lexer)** Fix lexing of html entity (#4423) ([9b26dbd](https://github.com/swc-project/swc/commit/9b26dbd45763fbf48dd81a1652608cc90736fe4f))
77
+
78
+
79
+ - **(html/parser)** Parse foreign attributes (#4400) ([cf3be64](https://github.com/swc-project/swc/commit/cf3be649bb327feda8bce4e7ab7eca92d248c2da))
80
+
81
+
82
+ - **(html/parser)** Fix parsing of foreign elements (#4422) ([4ccbdf2](https://github.com/swc-project/swc/commit/4ccbdf2a7d6419552db6b34586a32fef52b200bd))
83
+
84
+
85
+ - **(html/parser)** Fix span (#4437) ([3293060](https://github.com/swc-project/swc/commit/329306007018d733bc9d348cd4a5dc839768b3e8))
86
+
87
+
88
+ - **(html/parsing)** Fix parsing of formatting elements (#4442) ([8f2a3ea](https://github.com/swc-project/swc/commit/8f2a3ead6a56c47ae867c40ac863346a0e6bc88a))
89
+
90
+ ### Features
91
+
92
+
93
+
94
+ - **(es/optimization)** Accept top level mark from simplifiers (#4434) ([8048597](https://github.com/swc-project/swc/commit/8048597c9ec10fb956de06e6b2de28e621262dd9))
95
+
96
+
97
+ - **(es/parser)** Reject invalid regex flags (#4404) ([c96e322](https://github.com/swc-project/swc/commit/c96e32243c549d0f7db26a8e76d69a5646b4865c))
98
+
99
+
100
+ - **(es/parser)** Reject invalid `new.target` (#4406) ([da02c9d](https://github.com/swc-project/swc/commit/da02c9dc509f97d58f565223c81e7b123b0301c5))
101
+
102
+
103
+ - **(es/parser)** Reject `'use strict'` with non-simple params list in TS (#4416) ([6dc64c9](https://github.com/swc-project/swc/commit/6dc64c9ca0bccf27b325d3298f4ed7f07eaaa076))
104
+
105
+
106
+ - **(es/resolver)** Use different syntax context for unresolved refs (#4436) ([53610fd](https://github.com/swc-project/swc/commit/53610fdafc83d25f0a5132b3381737aaffb1a29d))
107
+
108
+
109
+ - **(html)** Prepare processing system (#4358) ([7332dce](https://github.com/swc-project/swc/commit/7332dce4f801546f0c5f29b6919feaaebebc435a))
110
+
111
+
112
+ - **(html/codegen)** Print unquoted value when it is possible (#4402) ([c15dc4f](https://github.com/swc-project/swc/commit/c15dc4f2b7e97eae939a82113ff5ab15a2553d78))
113
+
114
+
115
+ - **(html/minifier)** Initialize crate (#4403) ([63a6280](https://github.com/swc-project/swc/commit/63a6280e8f691f93db246db02ce2479b08874220))
116
+
117
+
118
+ - **(html/minifier)** Remove `script` `type` attribute (#4407) ([fec0f2e](https://github.com/swc-project/swc/commit/fec0f2e417b8da2e0391f594f28d32e93b03673e))
119
+
120
+
121
+ - **(html/minifier)** Compress `type` for `style` and `link` tags (#4424) ([25a87f0](https://github.com/swc-project/swc/commit/25a87f000048facf4daa78fb6605af3b1e50e81e))
122
+
123
+
124
+ - **(html/minifier)** Compress doctype (#4425) ([6fc70f3](https://github.com/swc-project/swc/commit/6fc70f3866e4d60867a3ae38ae40c8f46065153c))
125
+
126
+
127
+ - **(html/minifier)** Compress default values of attributes (#4427) ([4c699f2](https://github.com/swc-project/swc/commit/4c699f2554157333f0598cd4f8143f536027d396))
128
+
129
+
130
+ - **(node/css)** Add css bindings crate (#4346) ([6a19ff1](https://github.com/swc-project/swc/commit/6a19ff1a152b67b15714c0290eb21ede878692e5))
131
+
132
+
133
+ - **(preset-env/base)** Update "browserslist-rs" (#4435) ([1c2af93](https://github.com/swc-project/swc/commit/1c2af932b68cae34805b4ab789d6f2ccb4171fa4))
134
+
135
+ ### Miscellaneous Tasks
136
+
137
+
138
+
139
+ - **(ci)** Improve bot script (#4430) ([c216a03](https://github.com/swc-project/swc/commit/c216a03673ca12e16d3650161eb890e6236054b1))
140
+
141
+
142
+ - **(ci)** Use `yarn` instead of `npm` (#4432) ([b3fb0e9](https://github.com/swc-project/swc/commit/b3fb0e9ceb45b6d2b1c45499680a7d519f6d2f25))
143
+
144
+
145
+ - **(es/minifier)** Add a script to instrument real-world inputs (#4399) ([efdf93d](https://github.com/swc-project/swc/commit/efdf93d91099bab79f04a58635b418b7160a0b75))
146
+
147
+
148
+ - **(plugin)** Add a benchmark (#4397) ([60efb7e](https://github.com/swc-project/swc/commit/60efb7e9c75445fdffccf936964785424f421a7e))
149
+
150
+
151
+ - **(repo)** Make `git commit` faster (#4421) ([65e00aa](https://github.com/swc-project/swc/commit/65e00aafc3b27bc896178fc9b3164fef0777cd9f))
152
+
153
+ ### Performance
154
+
155
+
156
+
157
+ - **(es/minifier)** Add some fast-path to the `MultiReplacer` (#4408) ([4c9e5c0](https://github.com/swc-project/swc/commit/4c9e5c01ef91d01c95a6e928daa9e99839eabedf))
158
+
159
+ ### Testing
160
+
161
+
162
+
163
+ - **(es)** Add tests for `.swcrc` (#4398) ([5134b4f](https://github.com/swc-project/swc/commit/5134b4f9bee5725bae53876067399aa0528a8add))
164
+
165
+
166
+ - **(es/minifier)** Split tests into improvement and stabilization (#4409) ([ab88637](https://github.com/swc-project/swc/commit/ab886379377726bd32f9221da494eb00d9b6fa94))
167
+
168
+
169
+ - **(es/minifier)** Use `_` instead of `-` for terser tests (#4411) ([4e11303](https://github.com/swc-project/swc/commit/4e113037e5142ca24bb4f28c316f58bbd28d3f9b))
170
+
171
+
172
+ - **(es/minifier)** Execute terser tests if possible (#4418) ([f787f8c](https://github.com/swc-project/swc/commit/f787f8c81943b022078a53575486094d5d2b1eca))
173
+
174
+
175
+ - **(es/minifier)** Categorize tests (#4410) ([9b34ecf](https://github.com/swc-project/swc/commit/9b34ecfd2e292ed557b4e357ea61a0cda4533445))
176
+
177
+ ## [1.2.171] - 2022-04-22
178
+
179
+ ### Bug Fixes
180
+
181
+
182
+
183
+ - **(common)** Ignore extraneous mapping of 1, 0 => 0, 0 (#4381) ([a06c559](https://github.com/swc-project/swc/commit/a06c55930f64a158b289c790ac9f7f71de78838a))
184
+
185
+
186
+ - **(es)** Fix CI (#4385) ([805238a](https://github.com/swc-project/swc/commit/805238ae303b9c3e688c729b6863e0d5745f1949))
187
+
188
+
189
+ - **(es/codegen)** Allow non-ascii character in more places (#4394) ([139ac24](https://github.com/swc-project/swc/commit/139ac24c4636ff72f37a215a578871ac2f4a9f5d))
190
+
191
+
192
+ - **(es/minifier)** Don't drop labels if required (#4370) ([922299a](https://github.com/swc-project/swc/commit/922299a4907d9ce8082c5db2a9dc435abe507ca6))
193
+
194
+
195
+ - **(es/minifier)** Preserve more labels (#4380) ([87859e3](https://github.com/swc-project/swc/commit/87859e373dd42857a52e5552a49e063c649b4607))
196
+
197
+
198
+ - **(es/minifier)** Disable `conditionals` by default (#4391) ([375cc59](https://github.com/swc-project/swc/commit/375cc5975afffae27a9a7d5f1403ffd1328fdda1))
199
+
200
+
201
+ - **(plugin)** Align deps to fix build (#4377) ([8419b60](https://github.com/swc-project/swc/commit/8419b604300695e57cb6b1191e9daf638c65c828))
202
+
203
+
204
+ - **(plugin)** Align deps for the plugin (#4384) ([46e88a3](https://github.com/swc-project/swc/commit/46e88a303fd62378139c112839006364bcc8726c))
205
+
206
+ ### Features
207
+
208
+
209
+
210
+ - **(es/minifier)** Improve handling of switches (#4260) ([8cf3ddd](https://github.com/swc-project/swc/commit/8cf3ddda6cd41d9dd0eddab9bd6e869753e1f0f8))
211
+
212
+
213
+ - **(es/parser)** Reject await expr with `**` (#4395) ([59f63da](https://github.com/swc-project/swc/commit/59f63da560bc686eb658a091e363a1956da0daf3))
214
+
215
+ ### Miscellaneous Tasks
216
+ - **general**: Fix wasm publish script ([234e380](https://github.com/swc-project/swc/commit/234e38058071f1d91e899ba7d16f37f3e3a69334))- **general**: Fix CI ([11012d0](https://github.com/swc-project/swc/commit/11012d07e56895369f016eb7e6c7cc9261398250))- **general**: Fix CI, really ([000e31b](https://github.com/swc-project/swc/commit/000e31b3cdd44430e6fc9957bb496577294ac218))
217
+
218
+ ### Testing
219
+
220
+
221
+
222
+ - **(es/parser)** Add a test for a fixed issue (#4388) ([b9cba1a](https://github.com/swc-project/swc/commit/b9cba1ad4dc90090fe42755ad479fefd5ee8b17c))
223
+
224
+ ## [1.2.170] - 2022-04-20
225
+
4
226
  ### Performance
5
227
 
6
228
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.170",
3
+ "version": "1.2.173",
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
- "cargo fmt --"
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.2.10",
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.170",
125
- "@swc/core-darwin-x64": "1.2.170",
126
- "@swc/core-linux-x64-gnu": "1.2.170",
127
- "@swc/core-linux-x64-musl": "1.2.170",
128
- "@swc/core-freebsd-x64": "1.2.170",
129
- "@swc/core-win32-ia32-msvc": "1.2.170",
130
- "@swc/core-linux-arm64-gnu": "1.2.170",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.170",
132
- "@swc/core-darwin-arm64": "1.2.170",
133
- "@swc/core-android-arm64": "1.2.170",
134
- "@swc/core-linux-arm64-musl": "1.2.170",
135
- "@swc/core-win32-arm64-msvc": "1.2.170",
136
- "@swc/core-android-arm-eabi": "1.2.170"
124
+ "@swc/core-win32-x64-msvc": "1.2.173",
125
+ "@swc/core-darwin-x64": "1.2.173",
126
+ "@swc/core-linux-x64-gnu": "1.2.173",
127
+ "@swc/core-linux-x64-musl": "1.2.173",
128
+ "@swc/core-freebsd-x64": "1.2.173",
129
+ "@swc/core-win32-ia32-msvc": "1.2.173",
130
+ "@swc/core-linux-arm64-gnu": "1.2.173",
131
+ "@swc/core-linux-arm-gnueabihf": "1.2.173",
132
+ "@swc/core-darwin-arm64": "1.2.173",
133
+ "@swc/core-android-arm64": "1.2.173",
134
+ "@swc/core-linux-arm64-musl": "1.2.173",
135
+ "@swc/core-win32-arm64-msvc": "1.2.173",
136
+ "@swc/core-android-arm-eabi": "1.2.173"
137
137
  }
138
138
  }