@swc/core 1.2.182 → 1.2.186
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 +209 -0
- package/package.json +15 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,215 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/minifier)** Consider fallthrough while merging swtich cases (#4672) ([3bb4b74](https://github.com/swc-project/swc/commit/3bb4b74d945b7b9bd107114c2df5eeef13874aba))
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(dbg-swc)** Make reducer parallel (#4676) ([ba6688a](https://github.com/swc-project/swc/commit/ba6688a783eb626cdc9da5d1d8babb018fdfb9bb))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es)** Add check for `BytePos::DUMMY` (#4675) ([da49f81](https://github.com/swc-project/swc/commit/da49f810db791ef28291f535c46f7396fec29809))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/minifier)** Enable `computed_props` by default (#4678) ([04d66db](https://github.com/swc-project/swc/commit/04d66dbc8b8179300e69164bb9257e87cb887a03))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/minifier)** Enable `conditionals` by default (#4687) ([c01476d](https://github.com/swc-project/swc/commit/c01476d9ae0a617489099237fa08b90018693eb5))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(html/minifier)** Compress more json content (#4684) ([3aac28e](https://github.com/swc-project/swc/commit/3aac28e9df0de3c543e6677882eee1ec51fef6a9))
|
|
27
|
+
|
|
28
|
+
### Miscellaneous Tasks
|
|
29
|
+
- **general**: Add stale workflow ([890a5ae](https://github.com/swc-project/swc/commit/890a5ae0e6c876157873427a0bea555c47677e55))
|
|
30
|
+
|
|
31
|
+
### Performance
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(common)** Improve performance of `StringInput` (#4680) ([fe1e62a](https://github.com/swc-project/swc/commit/fe1e62a5e7a4a0037ba8d158879fb68bf9c14520))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(html)** Setup benchmarks (#4685) ([b56f3b7](https://github.com/swc-project/swc/commit/b56f3b7f00e10a45ddaab1c0a774645fe8121389))
|
|
39
|
+
|
|
40
|
+
### Testing
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(es/minifier)** Add size tests using `dbg-swc` (#4664) ([36ff4f7](https://github.com/swc-project/swc/commit/36ff4f735f43bbea5a943866b7083fe51633d9df))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(html/parser)** Add tests for broken html/svg (#4683) ([1d9ee0a](https://github.com/swc-project/swc/commit/1d9ee0a1002a7667add5ac39df16d7584b70d233))
|
|
48
|
+
|
|
49
|
+
## [1.2.185] - 2022-05-15
|
|
50
|
+
|
|
51
|
+
### Bug Fixes
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
- **(es/modules)** Fix handling of `import.meta.url` (#4670) ([49c40af](https://github.com/swc-project/swc/commit/49c40afb7e092655578ee4d991ddf1f3fd20ff6a))
|
|
56
|
+
|
|
57
|
+
### Features
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
- **(dbg-swc)** Add a command to diff semantics (#4671) ([e3cda26](https://github.com/swc-project/swc/commit/e3cda264bbc3607232f75db13e11d7bbd2634cdf))
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(es/minifier)** Improve `ignore_return_value` (#4673) ([e57123e](https://github.com/swc-project/swc/commit/e57123e61ce4d07bd10c2e56f6e809b90a9d43f2))
|
|
65
|
+
|
|
66
|
+
### Build
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(repo)** Downgrade `rustc` (#4674) ([50db276](https://github.com/swc-project/swc/commit/50db276d826e80071f7347826673ea481f33bfed))
|
|
71
|
+
|
|
72
|
+
## [1.2.184] - 2022-05-15
|
|
73
|
+
|
|
74
|
+
### Bug Fixes
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
- **(es/minifier)** Don't inline a function if we need referential equality (#4665) ([96cec97](https://github.com/swc-project/swc/commit/96cec97b2c2192b4d5059dc05d1a3971e78f9cd5))
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
- **(html/parser)** Fix error reporting (#4644) ([1f945b9](https://github.com/swc-project/swc/commit/1f945b9277e564e393505b0baeaf3526d8a34d64))
|
|
82
|
+
|
|
83
|
+
### Documentation
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
- **(es/codegen)** Document `ascii_only` (#4669) ([bfb6be7](https://github.com/swc-project/swc/commit/bfb6be7075a57238ffe0e8c11edcf32b115b756b))
|
|
88
|
+
|
|
89
|
+
### Features
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
- **(dbg-swc)** Add command to compare minifier (#4653) ([af1d195](https://github.com/swc-project/swc/commit/af1d19554f250201856fda0c5d356cb27df52791))
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
- **(dbg-swc)** Add auto-reducer for the minifier (#4654) ([c8818b0](https://github.com/swc-project/swc/commit/c8818b049987e03c1ca974311bf82afde9a5227b))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
- **(es)** Add an option to omit columns from sourcemaps (#4646) ([b6f904b](https://github.com/swc-project/swc/commit/b6f904b8f0fbe8bffb25ab432006f8195d585bf7))
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
- **(es/codegen)** Implement ascii-only (#4660) ([eb8508f](https://github.com/swc-project/swc/commit/eb8508f88cf532d883bb22446195281f009863c5))
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
- **(es/lints)** Implement `no-sparse-arrays` rule (#4652) ([9b226a7](https://github.com/swc-project/swc/commit/9b226a7026f06729904ef1fdc0e4a17aa631e5e4))
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
- **(es/minifier)** Improve minifier (#4655) ([053f42b](https://github.com/swc-project/swc/commit/053f42b3aa80ac6334b720365b8f9b05d9b333ff))
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
- **(es/minifier)** Implement `directives` (#4668) ([8a40b58](https://github.com/swc-project/swc/commit/8a40b583a56b1ffd815c9be35ae4b0351bc1e711))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
- **(html)** Support `iframe_srcdoc` (#4658) ([69ca949](https://github.com/swc-project/swc/commit/69ca9497d02cd50ad245e4415009a221b64914ee))
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
- **(html/parser)** Improve error reporting (#4663) ([a8467c6](https://github.com/swc-project/swc/commit/a8467c64e8c3810a2ed9f449ee1b12029eca154c))
|
|
118
|
+
|
|
119
|
+
### Performance
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
- **(es/parser)** Optimize for cpu code cache (#4666) ([11726cc](https://github.com/swc-project/swc/commit/11726cc0e1cf847bd9cd6648c5e55f61086ac970))
|
|
124
|
+
|
|
125
|
+
### Refactor
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
- **(es/react)** Use proper ident scope for react refresh (#4649) ([1150e84](https://github.com/swc-project/swc/commit/1150e842ed4f6ea4216f6b54706abffc52449c9f))
|
|
130
|
+
|
|
131
|
+
### Build
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
- **(repo)** Update `rustc` (#4667) ([98e4845](https://github.com/swc-project/swc/commit/98e4845fcec8990482f2fd353ae7ae25ce7aeeca))
|
|
136
|
+
|
|
137
|
+
## [1.2.183] - 2022-05-13
|
|
138
|
+
|
|
139
|
+
### Bug Fixes
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
- **(css/parser)** Remove a wrong assertion (#4641) ([84e4ca6](https://github.com/swc-project/swc/commit/84e4ca6c27034e8b965bb229115847afcfb0b5e8))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
- **(es/minifier)** Don't create direct `eval` (#4634) ([56a227a](https://github.com/swc-project/swc/commit/56a227ad9dc5b9b706fe8b0d35bf086e986dda07))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
- **(es/minifier)** Fix optimization of spread (#4639) ([9c190f0](https://github.com/swc-project/swc/commit/9c190f0a8ec64e9d7c39e28f5370cc0a1e61f34c))
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
- **(es/modules)** Fix `jsc.paths` (#4620) ([20692cd](https://github.com/swc-project/swc/commit/20692cdff1df4491382820cb38dae6fdeda12223))
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
- **(es/resolver)** Ensure that a parameter type is resolved to parent (#4645) ([2745cb7](https://github.com/swc-project/swc/commit/2745cb79491436b1967231f905a834b06831e1b4))
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
- **(html)** Fix parsing of template (#4647) ([af9c8c6](https://github.com/swc-project/swc/commit/af9c8c6b4ce1eff729d9de0efc84f62792efda86))
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
- **(html/codegen)** Fix codegen (#4629) ([fa4a60a](https://github.com/swc-project/swc/commit/fa4a60a3185c048291bbc549f77281b95fbaf730))
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
- **(html/parser)** Fix newlines (#4633) ([a19db29](https://github.com/swc-project/swc/commit/a19db2992b5abb51629f95670c7cbd2c66a319bf))
|
|
165
|
+
|
|
166
|
+
### Features
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
- **(common)** Reserve `BytePos(0)` for dummy spans (#4616) ([67942d5](https://github.com/swc-project/swc/commit/67942d57319454a0304632d5d9e504e26a2c8068))
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
- **(debug)** Inline `dbg-swc` (#4651) ([b393773](https://github.com/swc-project/swc/commit/b393773373bb1ae170004fadb8688203cabeda2a))
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
- **(es/lints)** Implement `no-compare-neg-zero` rule (#4643) ([f45dd72](https://github.com/swc-project/swc/commit/f45dd72033fe14dd0974d6698f6d8d4ec6a76185))
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
- **(html/minifier)** Improve minification of attributes (#4625) ([5679b69](https://github.com/swc-project/swc/commit/5679b69600768f81a69e7a7bac335a183fe875c6))
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
- **(html/minifier)** Compress `application/ld+json` (#4628) ([c41aca6](https://github.com/swc-project/swc/commit/c41aca6b24a0dbe222b450b7805e4e9eb2732e01))
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
- **(html/parser)** Add a method to get error message (#4623) ([cac4f6e](https://github.com/swc-project/swc/commit/cac4f6e265ed419245e8b323dd4f18d60a16beac))
|
|
186
|
+
|
|
187
|
+
### Refactor
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
- **(html/parser)** Remove unused code (#4613) ([a378e1e](https://github.com/swc-project/swc/commit/a378e1e041a60e0a80f5a2e97c534b96b49888e4))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
- **(html/parser)** Improve public API (#4626) ([b8fa3bc](https://github.com/swc-project/swc/commit/b8fa3bc4569429046494488cdab9c14b26135f6b))
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
- **(html/parser)** Improve parser a bit (#4627) ([5f899a0](https://github.com/swc-project/swc/commit/5f899a03489de62cbff9aede15ea561ec601a911))
|
|
198
|
+
|
|
199
|
+
### Testing
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
- **(es)** Add a test for merging configurations (#4617) ([53ff81c](https://github.com/swc-project/swc/commit/53ff81ccd65509dd6fff0bef5aa21003d3c81409))
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
- **(es/minifier)** Execute more tests (#4636) ([79f87e0](https://github.com/swc-project/swc/commit/79f87e03db1063c645fba36c1ba6ba673127bad4))
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
- **(html/parser)** Add dom visualizer for regular tests (#4622) ([4e577d7](https://github.com/swc-project/swc/commit/4e577d7f452a096391e174f478834bcc5c0fd884))
|
|
210
|
+
|
|
211
|
+
## [1.2.182] - 2022-05-11
|
|
212
|
+
|
|
213
|
+
### Bug Fixes
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
8
217
|
- **(es/config)** Merge `jsc.transform` correctly (#4615) ([3b2b8c4](https://github.com/swc-project/swc/commit/3b2b8c4512709b9908a113af83f30e4fa97b9c49))
|
|
9
218
|
|
|
10
219
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.186",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -112,6 +112,7 @@
|
|
|
112
112
|
"expect": "^27.4.2",
|
|
113
113
|
"husky": "^7.0.2",
|
|
114
114
|
"jest": "^27.0.1",
|
|
115
|
+
"js-beautify": "^1.14.3",
|
|
115
116
|
"lint-staged": "^12.3.6",
|
|
116
117
|
"lodash": "^4.17.21",
|
|
117
118
|
"mocha": "^9.1.3",
|
|
@@ -134,18 +135,18 @@
|
|
|
134
135
|
"url": "https://opencollective.com/swc"
|
|
135
136
|
},
|
|
136
137
|
"optionalDependencies": {
|
|
137
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
138
|
-
"@swc/core-darwin-x64": "1.2.
|
|
139
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
140
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
141
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
142
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
143
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
144
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
145
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
146
|
-
"@swc/core-android-arm64": "1.2.
|
|
147
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
148
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
149
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
138
|
+
"@swc/core-win32-x64-msvc": "1.2.186",
|
|
139
|
+
"@swc/core-darwin-x64": "1.2.186",
|
|
140
|
+
"@swc/core-linux-x64-gnu": "1.2.186",
|
|
141
|
+
"@swc/core-linux-x64-musl": "1.2.186",
|
|
142
|
+
"@swc/core-freebsd-x64": "1.2.186",
|
|
143
|
+
"@swc/core-win32-ia32-msvc": "1.2.186",
|
|
144
|
+
"@swc/core-linux-arm64-gnu": "1.2.186",
|
|
145
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.186",
|
|
146
|
+
"@swc/core-darwin-arm64": "1.2.186",
|
|
147
|
+
"@swc/core-android-arm64": "1.2.186",
|
|
148
|
+
"@swc/core-linux-arm64-musl": "1.2.186",
|
|
149
|
+
"@swc/core-win32-arm64-msvc": "1.2.186",
|
|
150
|
+
"@swc/core-android-arm-eabi": "1.2.186"
|
|
150
151
|
}
|
|
151
152
|
}
|