@swc/core 1.3.22 → 1.3.24
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 +223 -0
- package/package.json +12 -12
- package/types.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,229 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(css/minifier)** Don't remove custom variables with different case (#6655) ([dd7280d](https://github.com/swc-project/swc/commit/dd7280d5bda960292bf5f4e12816d5a340277222))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(css/minifier)** Fix a bug with a modern hash (#6664) ([1d3e06a](https://github.com/swc-project/swc/commit/1d3e06aa886ffd8b18044c42a899fc3c780a6179))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/helpers)** Fix loose mode (#6691) ([5016ebe](https://github.com/swc-project/swc/commit/5016ebed8f68ed1afb40d5d86c13d5e787e9cc13))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Abort IIFE invoker completely on eval (#6659) ([bb9fab8](https://github.com/swc-project/swc/commit/bb9fab8d0358262b8236c372d62660a50b5b3417))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/minifier)** Don't inline invalid LHS into an update argument (#6680) ([7e6ec8d](https://github.com/swc-project/swc/commit/7e6ec8d587471dba1dde44ebcfd6af6d03247955))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/preset-env)** Align polyfills with `@babel/plugin-polyfill-corejs3` (#6673) ([5fed222](https://github.com/swc-project/swc/commit/5fed22282971c62af3be8bf0b858684ca90ec7fc))
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(css/compat)** Support function notation (#6651) ([39afc46](https://github.com/swc-project/swc/commit/39afc4627e2a1e6ca397bc22cd3d9abe68c45fe2))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(css/compat)** Support `not` with multiple arguments (#6668) ([352896f](https://github.com/swc-project/swc/commit/352896f4cb627c1a006ea82780f993915af7e8b1))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(css/compat)** Support `hwb` color (#6687) ([b23cf50](https://github.com/swc-project/swc/commit/b23cf50f4ff58a2c6d434cb03f2388e75a35d510))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(css/minifier)** Compress alpha in a hex (#6653) ([f6292e6](https://github.com/swc-project/swc/commit/f6292e63b51e5ad5a8d1fcc253e8342438098898))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(css/minifier)** Improve compression of media at-rules (#6665) ([2fd3ced](https://github.com/swc-project/swc/commit/2fd3ced40c97fbac162f70e49c76c775e66a4552))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(css/parser)** Normalize hex colors (#6652) ([b257d5d](https://github.com/swc-project/swc/commit/b257d5d591c04feedf2f5997a984bf2f843b9d19))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/parser)** Normalize selector AST (#6657) ([649438b](https://github.com/swc-project/swc/commit/649438b76a8ea61f2ddb2160a212d318d9d05267))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(css/parser)** Normalize declaration and important (#6663) ([1fc97a7](https://github.com/swc-project/swc/commit/1fc97a7cea4ddf5b70f3b9193388e481caa60731))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(css/parser)** Normalize dimension (#6654) ([3d3863d](https://github.com/swc-project/swc/commit/3d3863dc1f80a7a1dc141cc9fb0ed9277537a3d0))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(css/parser)** Normalize URL functions (#6675) ([c01464e](https://github.com/swc-project/swc/commit/c01464e4525cb8c7d4b9f000d8b76d72e8e7531a))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(css/parser)** Normalize at-rule names (#6676) ([7f8ba9c](https://github.com/swc-project/swc/commit/7f8ba9c22c9910e03a3b6122dd4ca4324314bbb5))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(css/parser)** Normalize keyframe selectors (#6688) ([d7a0524](https://github.com/swc-project/swc/commit/d7a0524fb64c97facf067281ae3a2fc4afae68fe))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(css/parser)** Normalize and improve function name (#6667) ([2571070](https://github.com/swc-project/swc/commit/257107014801e892a78ec68c2c0ec0899a083053))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(css/prefixer)** Support font-face format (#6644) ([199ac74](https://github.com/swc-project/swc/commit/199ac7461814553bab97c1f0f7b1c89f34897122))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **(css/prefixer)** Support `word-wrap` (#6679) ([46241b4](https://github.com/swc-project/swc/commit/46241b4e554b7a6ee090db8e35acd0151e8caf2b))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(css/prefixer)** Support `place-*` properties (#6685) ([d8df1b5](https://github.com/swc-project/swc/commit/d8df1b53d13cb25aa8f513f9dc3baeb535fd714e))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(css/prefixer)** Support `overflow` (#6678) ([1c7f003](https://github.com/swc-project/swc/commit/1c7f003779fd17d3d2c372ce502cbbaabb49ed48))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(es/minifier)** Improve simplification of `?.` (#6681) ([707b1e3](https://github.com/swc-project/swc/commit/707b1e3cd203be22eccc60367dc3c84f62105de5))
|
|
81
|
+
|
|
82
|
+
### Miscellaneous Tasks
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **(ci)** Fix upload of cli binaries (#6701) ([025d626](https://github.com/swc-project/swc/commit/025d6268cdcbdb2cf280ccbef7b15a6f3daf00a5))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(helpers)** Fix license (#6690) ([8a71dbc](https://github.com/swc-project/swc/commit/8a71dbca6d94af76c3bf7317390dd1da835cacae))
|
|
90
|
+
|
|
91
|
+
### Performance
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(css/prefixer)** Use `JsWord` instead of `&str` (#6658) ([d27a270](https://github.com/swc-project/swc/commit/d27a270fec7f08895c5a9ab2b56da6d77f52d5af))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- **(es/minifier)** Use rope-like structure for the name mangler (#6661) ([cb4173a](https://github.com/swc-project/swc/commit/cb4173aa73fbfd95f2411ceb97cec95e408f59ee))
|
|
99
|
+
|
|
100
|
+
### Refactor
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
- **(css/compat)** Merge nesting into the compiler (#6686) ([1840e74](https://github.com/swc-project/swc/commit/1840e748af8334d244a1455a25325625b06fff93))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
- **(css/prefixer)** Use `eq_ignore_span` (#6656) ([d4660a4](https://github.com/swc-project/swc/commit/d4660a4673e19d628b7720e1352fa905bdc4456a))
|
|
108
|
+
|
|
109
|
+
### Testing
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
- **(css/parser)** Add a test (#6666) ([87e1efd](https://github.com/swc-project/swc/commit/87e1efd98ce3c58325ee047c2b01b0df575e921f))
|
|
114
|
+
|
|
115
|
+
### Build
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
- **(bindings)** Crash in GraalVM (#6689) ([e7849db](https://github.com/swc-project/swc/commit/e7849dbc6a68274ec5f177f061da80bdf8788902))
|
|
120
|
+
|
|
121
|
+
## [1.3.23] - 2022-12-14
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(css/minifier)** Fix compressions of transform functions (#6617) ([208fd55](https://github.com/swc-project/swc/commit/208fd559ba383b32c72ffdf5d8ad50cbf9679ec6))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(css/minifier)** Fix compression of timing functions (#6618) ([59e8bf4](https://github.com/swc-project/swc/commit/59e8bf49761c9f2434dcfb18153f93234d3d69a7))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
- **(css/minifier)** Fix minification of `@supports` at-rule (#6632) ([d3fbfff](https://github.com/swc-project/swc/commit/d3fbfffb32a4bd91c5faa27e708eccb08c8189b9))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
- **(es/codegen)** Don't print trailing coma for a rest argument (#6610) ([68d76af](https://github.com/swc-project/swc/commit/68d76afe5d99f834dd4578cc50bd48624f76c21d))
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
- **(es/codegen)** Fix codegen of TypeScript mapped types (#6621) ([5c53a74](https://github.com/swc-project/swc/commit/5c53a74f55fc9d6ba1f54f9f2ea517853fa62a74))
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- **(es/fixer)** Add correct parens to `OptChainExpr` in `MemberExpr` (#6639) ([be5ea7f](https://github.com/swc-project/swc/commit/be5ea7fe170cca1532ba3d18f975d025a9fe038b))
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
- **(es/minifier)** Abort IIFE invoker on `eval` (#6478) ([8b2e1d1](https://github.com/swc-project/swc/commit/8b2e1d17e59eaf21d4189aa4b9d2773cb10a1ab4))
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- **(es/minifier)** Abort sequential inliner on optional chaining (#6637) ([e4e4d6c](https://github.com/swc-project/swc/commit/e4e4d6cf6bbc2645272d590cd6ae83aeb5c19b1c))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- **(es/parser)** Parse types in `CallExpression` inside templates (#6611) ([c44f1d0](https://github.com/swc-project/swc/commit/c44f1d0a7fd31b6c8019e5a17b0f80dab4c9c01c))
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
- **(html/parser)** Fix parsing of CDATA in the svg context (#6620) ([19c2ee5](https://github.com/swc-project/swc/commit/19c2ee593d1b2c32243dbc5c099f17cea0b9ed26))
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
- **(node-swc)** Add missing `const_to_let` to the type (#6615) ([7e841a5](https://github.com/swc-project/swc/commit/7e841a5d3061e6ef8b48995bdcd492ffa02b3b8d))
|
|
158
|
+
|
|
159
|
+
### Features
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
- **(css/compat)** Add `Compiler` (#6626) ([b3bbd74](https://github.com/swc-project/swc/commit/b3bbd742bf5a3bc51105e16cf6260b63ef9b124a))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
- **(css/compat)** Support custom media queries (#6625) ([a5f7b4b](https://github.com/swc-project/swc/commit/a5f7b4b8aa48d3d920dcebf72d766b6e3f458fb7))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- **(css/compat)** Implement compat pass for media ranges (#6631) ([704b3ce](https://github.com/swc-project/swc/commit/704b3ceb9c1ceb8bafb5dd83717c182c56043198))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
- **(css/compat)** Support color with hex alpha (#6643) ([fe06b80](https://github.com/swc-project/swc/commit/fe06b8061c742f0a7ec04cf3f9df6db44deb7174))
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
- **(css/minifier)** Support `to` and `from` with `initial` (#6613) ([cb49fa6](https://github.com/swc-project/swc/commit/cb49fa6f1ddf2ae37262769c538ef1a51adc404c))
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
- **(css/minifier)** Remove adjacent identical declarations (#6619) ([fb94694](https://github.com/swc-project/swc/commit/fb94694cf3d95c26cc10aa9824f58e68b73b17ca))
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
- **(css/prefixer)** Prefix percentage with `opacity` (#6638) ([2fee4d1](https://github.com/swc-project/swc/commit/2fee4d167ac908e04c04f65fe6e4a867a2b7d950))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
- **(css/prefixer)** Support `display` (#6640) ([c8b724f](https://github.com/swc-project/swc/commit/c8b724f14db0291fb48cd3d26c925dcf5e730fb8))
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
- **(css/prefixer)** Support nested calc (#6645) ([5d0dc6e](https://github.com/swc-project/swc/commit/5d0dc6e7319f181e468b40dce218dc15cec8b59f))
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
- **(dbg-swc)** Kill `creduce` on drop (#6614) ([2bf7805](https://github.com/swc-project/swc/commit/2bf78059801d8f07bf31eab6b077d7fb723837f8))
|
|
191
|
+
|
|
192
|
+
### Miscellaneous Tasks
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
- **(atoms)** Make `sort.sh` cross-platform (#6629) ([3f469ff](https://github.com/swc-project/swc/commit/3f469fff0bdd642d5ed5d3c78bfbd6a36a20dadb))
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
- **(ci)** Adjust upload of cli binaries (#6624) ([81b352d](https://github.com/swc-project/swc/commit/81b352d9667c8874b1d9d87a92cca5b8d4c9fd41))
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
- **(es/minifier)** Expose `globals_defs` pass (#6633) ([08ccb83](https://github.com/swc-project/swc/commit/08ccb8384cd186c18100338db35e99cf4de52daa))
|
|
203
|
+
|
|
204
|
+
### Performance
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
- **(html/codegen)** Reduce allocations (#6622) ([bfdafdb](https://github.com/swc-project/swc/commit/bfdafdbb898aa3429172f71c8d018689133e4fd6))
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
- **(html/minifier)** Reduce allocations (#6623) ([7d3aa66](https://github.com/swc-project/swc/commit/7d3aa66bb8786d6d8cebcc37aa6ed4d486ec4b53))
|
|
212
|
+
|
|
213
|
+
### Refactor
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
- **(dbg-swc)** Cleanup and document reducer (#6647) ([b13a079](https://github.com/swc-project/swc/commit/b13a079481802d7bc44c9b363f63c74599f11a19))
|
|
218
|
+
|
|
219
|
+
### Testing
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
- **(es/minifier)** Enable size tests created from `creduce` (#6646) ([7f3e698](https://github.com/swc-project/swc/commit/7f3e6983e552bc789b7d0331335b760e6d42e51a))
|
|
224
|
+
|
|
225
|
+
## [1.3.22] - 2022-12-09
|
|
226
|
+
|
|
227
|
+
### Bug Fixes
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
8
231
|
- **(common)** Fix handling of input source maps (#6561) ([4af52c7](https://github.com/swc-project/swc/commit/4af52c79aea73f2e916bd11ce089bb4a4317179c))
|
|
9
232
|
|
|
10
233
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.24",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"@babel/preset-react": "^7.13.13",
|
|
95
95
|
"@babel/preset-typescript": "^7.13.0",
|
|
96
96
|
"@babel/types": "^7.14.0",
|
|
97
|
-
"@napi-rs/cli": "^2.
|
|
97
|
+
"@napi-rs/cli": "^2.13.3",
|
|
98
98
|
"@swc/core": "=1.2.220",
|
|
99
99
|
"@swc/helpers": "^0.4.2",
|
|
100
100
|
"@swc/plugin-jest": "1.5.25",
|
|
@@ -141,16 +141,16 @@
|
|
|
141
141
|
"url": "https://opencollective.com/swc"
|
|
142
142
|
},
|
|
143
143
|
"optionalDependencies": {
|
|
144
|
-
"@swc/core-win32-x64-msvc": "1.3.
|
|
145
|
-
"@swc/core-darwin-x64": "1.3.
|
|
146
|
-
"@swc/core-linux-x64-gnu": "1.3.
|
|
147
|
-
"@swc/core-linux-x64-musl": "1.3.
|
|
148
|
-
"@swc/core-win32-ia32-msvc": "1.3.
|
|
149
|
-
"@swc/core-linux-arm64-gnu": "1.3.
|
|
150
|
-
"@swc/core-linux-arm-gnueabihf": "1.3.
|
|
151
|
-
"@swc/core-darwin-arm64": "1.3.
|
|
152
|
-
"@swc/core-linux-arm64-musl": "1.3.
|
|
153
|
-
"@swc/core-win32-arm64-msvc": "1.3.
|
|
144
|
+
"@swc/core-win32-x64-msvc": "1.3.24",
|
|
145
|
+
"@swc/core-darwin-x64": "1.3.24",
|
|
146
|
+
"@swc/core-linux-x64-gnu": "1.3.24",
|
|
147
|
+
"@swc/core-linux-x64-musl": "1.3.24",
|
|
148
|
+
"@swc/core-win32-ia32-msvc": "1.3.24",
|
|
149
|
+
"@swc/core-linux-arm64-gnu": "1.3.24",
|
|
150
|
+
"@swc/core-linux-arm-gnueabihf": "1.3.24",
|
|
151
|
+
"@swc/core-darwin-arm64": "1.3.24",
|
|
152
|
+
"@swc/core-linux-arm64-musl": "1.3.24",
|
|
153
|
+
"@swc/core-win32-arm64-msvc": "1.3.24"
|
|
154
154
|
},
|
|
155
155
|
"files": [
|
|
156
156
|
"CHANGELOG.md",
|