@swc/core 1.3.1 → 1.3.3
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 +181 -0
- package/README.md +3 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,181 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(cli)** Add missing comma (#5902) ([ccca6d0](https://github.com/swc-project/swc/commit/ccca6d0a8866b9e34e1778e176ed47d19e30be78))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(css/parser)** Fix infinite loop about `@import` and `layer` (#5919) ([10cdbed](https://github.com/swc-project/swc/commit/10cdbed05e3d0f2430a21a7f3c6a185f56ea0861))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(css/parser)** Report an error for invalid `layer` in `@import` (#5928) ([64694dc](https://github.com/swc-project/swc/commit/64694dc7d5d92880f17c0669c118df666620a50a))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Remove more pure calls (#5900) ([83c7887](https://github.com/swc-project/swc/commit/83c7887600bcb391203911f3c82b62e16a217120))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/minifier)** Fix analysis of assignments (#5924) ([e303f7e](https://github.com/swc-project/swc/commit/e303f7e8530a2c16f908d4132b077540eb1ecc58))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/minifier)** Prepend vars when dropping vars in a for loop initializer (#5930) ([f222413](https://github.com/swc-project/swc/commit/f2224132c1f000c560b97675b54cb7914bd444fa))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/minifier)** Track aliasing via assignments (#5940) ([9764786](https://github.com/swc-project/swc/commit/97647861bfcbf111f07b2748ba755b19a7e16844))
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(css/minifier)** Minify the name of `@keyframes` (#5894) ([1dc5307](https://github.com/swc-project/swc/commit/1dc530706915aab6c00564e8c10cc01e1f203204))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(css/parser)** Parse more math functions in `@media` (#5904) ([2bf2419](https://github.com/swc-project/swc/commit/2bf24195f2e9803f24f335b637ff9e7ea394402b))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/minifier)** Drop function identifier in a single pass (#5901) ([aacf7aa](https://github.com/swc-project/swc/commit/aacf7aaf80034509cf20e4b54d87c2e95ae9b3df))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(es/minifier)** Collapse `let` without init (#5909) ([19ce273](https://github.com/swc-project/swc/commit/19ce2737b16f2f6daf5f2eb53dc7a70ceefb107d))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(es/minifier)** Evaluate more expressions (#5926) ([565bf31](https://github.com/swc-project/swc/commit/565bf317f6a16025f9b026209daafa5983ed7608))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(es/minifier)** Inline rest parameters of IIFE (#5929) ([ac7b066](https://github.com/swc-project/swc/commit/ac7b066d9aec13c99a2df87fc47021973c1fed5d))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/minifier)** Improve analysis of reassignments (#5931) ([e9c7041](https://github.com/swc-project/swc/commit/e9c704182b2f6fb4d9771b358d2919c447723059))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(es/minifier)** Use char frequency data for property manglers (#5932) ([5314ac5](https://github.com/swc-project/swc/commit/5314ac5d025737471a9595fa72d4189992b8454e))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/minifier)** Drop cycles in nested functions (#5933) ([e16827c](https://github.com/swc-project/swc/commit/e16827cc9d4ff7dcbc53fb38f56ba9b15dc9c3c8))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(es/minifier)** Mangle labels (#5934) ([7bcaaef](https://github.com/swc-project/swc/commit/7bcaaef4f7219d52e7dd2199d4696d628e4d6de9))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/typescript)** Support TS 4.9 (#5938) ([5cddb4c](https://github.com/swc-project/swc/commit/5cddb4c7345eba7c3ac87288b5130ecd1a94bbf5))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(swc_core)** Expose tty feature of `swc_common` as `common_tty` (#5920) ([72429d8](https://github.com/swc-project/swc/commit/72429d88018bd325af2e552c5d2bc7b255ea600d))
|
|
66
|
+
|
|
67
|
+
### Performance
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **(es)** Optimize memory layout of AST (#5829) ([1a182ef](https://github.com/swc-project/swc/commit/1a182ef8d90c2294ac67e8cdee63bfab2c295bae))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/minifier)** Make more passes parallel (#5906) ([6bbd3f4](https://github.com/swc-project/swc/commit/6bbd3f4c14eb243b697dc12593ada1b196a0cad8))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(es/minifier)** Invoke DCE only before the first compression (#5907) ([1df7243](https://github.com/swc-project/swc/commit/1df72430a56cc85ac41c6f9753d7c7e6d5ea279a))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(es/minifier)** Optimize analyzer (#5908) ([a9873e5](https://github.com/swc-project/swc/commit/a9873e505d33b4537e341a618f524931870a0db4))
|
|
81
|
+
|
|
82
|
+
### Testing
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **(es)** Accept arguments (#5916) ([fe40d83](https://github.com/swc-project/swc/commit/fe40d8312b7153de1e334d552e9f6bcafc9cc161))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(es/minifier)** Add a test for a wrong issue (#5923) ([0b34bcb](https://github.com/swc-project/swc/commit/0b34bcb40e844f8a78e8c239ed8b0eeed2ef6992))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- **(es/minifier)** Add an execution test for a fixed issue (#5925) ([31711e7](https://github.com/swc-project/swc/commit/31711e76af84aa52766a511af7b772390144f1ee))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(es/minifier)** Remove analysis snapshot (#5939) ([93964a8](https://github.com/swc-project/swc/commit/93964a82eacb1bfe41de270900895b92f61e3670))
|
|
96
|
+
|
|
97
|
+
## [1.3.2] - 2022-09-19
|
|
98
|
+
|
|
99
|
+
### Bug Fixes
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **(es/codegen)** Drop the last comma in an array literal (#5877) ([7d6d04b](https://github.com/swc-project/swc/commit/7d6d04b4215c5c1ec368a8ccdabdda187cfa647e))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(es/compat)** Fix handling of objects in generator (#5861) ([006c7fb](https://github.com/swc-project/swc/commit/006c7fb56e0b8d4955f848c6af8c83bcd87515ab))
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
- **(es/minifier)** Remove `fake_block` while calculating next scope (#5869) ([991a34e](https://github.com/swc-project/swc/commit/991a34e0c2b50f81dfdf44ae892ebc118a808c58))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(es/minifier)** Fix handling of `.toFixed` call without an argument (#5868) ([90d311c](https://github.com/swc-project/swc/commit/90d311c042952c8b0d6381791c9f504fc54551ae))
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
- **(es/minifier)** Fix unicode handling (#5875) ([c3fa96b](https://github.com/swc-project/swc/commit/c3fa96b21b1545be62fdfd359ca5762a1bd4a473))
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **(html/parser)** Reflect the fix for a bug in spec (#5779) ([57e9f9c](https://github.com/swc-project/swc/commit/57e9f9c88ed4c8f29a26e500fd1f00cb1befab9f))
|
|
119
|
+
|
|
120
|
+
### Features
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
- **(es/minifier)** Move assign with seq init into seq (#5847) ([63fb0c4](https://github.com/swc-project/swc/commit/63fb0c4ad34698d4d3f0c49ff5a78f6e446e64f9))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(es/minifier)** Drop variable from the sequential inliner (#5896) ([4e656af](https://github.com/swc-project/swc/commit/4e656af1ecddadc4fa96e79aaf7338b7f22a672c))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(es/plugin)** Enable plugin for bytecheck flags (#5885) ([2d4d04d](https://github.com/swc-project/swc/commit/2d4d04d06beec5c88e8515c95298a0bf5d961d8c))
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
- **(preset-env/base)** Implement more traits for `BrowserData` and `Version` (#5879) ([73c48a8](https://github.com/swc-project/swc/commit/73c48a8e6eb3d002ca0c575d253f32ae1aa6e5ea))
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
- **(swc_core)** Enable `bytecheck` for plugin (#5878) ([1ba151f](https://github.com/swc-project/swc/commit/1ba151fe9540a8595f9ac9f286917fdec9db5264))
|
|
137
|
+
|
|
138
|
+
### Miscellaneous Tasks
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
- **(ci)** Reduce CI time (#5870) ([9ca3966](https://github.com/swc-project/swc/commit/9ca3966686ea2e62dc7225352cdc2ae66b970b8b))- **general**: Update MSRV (#5856) ([f3e0267](https://github.com/swc-project/swc/commit/f3e02675ad74013b82ef911bfcf75e39bc7b4967))- **general**: Fix publish script ([720b3e0](https://github.com/swc-project/swc/commit/720b3e05c1e5fa9ab5bdae5f6d1268d6f6bce885))- **general**: Remove `.prettierrc.json` (#5895) ([89f0a4c](https://github.com/swc-project/swc/commit/89f0a4c5ac66d30ac2b9bf51db488a9946acea65))
|
|
143
|
+
|
|
144
|
+
### Performance
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
- **(html)** Reduce memory usage (#5867) ([7f62fa6](https://github.com/swc-project/swc/commit/7f62fa62277621bc0787eca1e5e0df9dd575b5cd))
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
- **(html/parser)** Improve performance (#5884) ([5645e81](https://github.com/swc-project/swc/commit/5645e810df36e7954dc1249634e1a92e34f8172c))
|
|
152
|
+
|
|
153
|
+
### Refactor
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
- **(es/ast)** Apply rkyv-bytecheck flag (#5866) ([092b728](https://github.com/swc-project/swc/commit/092b7281d0929a77ddfa3d09018445b94b0dc1cf))- **general**: Refactor code using clippy (#5863) ([dfb01bd](https://github.com/swc-project/swc/commit/dfb01bde71c73ea398b7e3d8428a3c3015366d4e))
|
|
158
|
+
|
|
159
|
+
### Testing
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
- **(es/minifier)** Add a test for a fixed issue (#5897) ([0bbcfe1](https://github.com/swc-project/swc/commit/0bbcfe15ee25e6debfb3dbed2d97fbf65bbb885a))
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
- **(es/modules)** Add tests for `jsc.paths` (#5876) ([0d492bf](https://github.com/swc-project/swc/commit/0d492bfce1681dbbdbe8701f6e928002cc6ce6cd))
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
- **(es/plugin)** Add a noop plugin (#5892) ([20d071b](https://github.com/swc-project/swc/commit/20d071bdc771e9b863a9f8d38a11485539eda0d0))
|
|
170
|
+
|
|
171
|
+
### Build
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
- **(bindings)** Remove cargo patch (#5874) ([355bb41](https://github.com/swc-project/swc/commit/355bb41a1f0c9920c16d620f3b8099e910cedbad))
|
|
176
|
+
|
|
177
|
+
## [1.3.1] - 2022-09-14
|
|
178
|
+
|
|
179
|
+
### Bug Fixes
|
|
180
|
+
|
|
181
|
+
|
|
182
|
+
|
|
8
183
|
- **(cli)** Update the plugin template (#5824) ([969ecde](https://github.com/swc-project/swc/commit/969ecdee3d63b2f4b9ffc7f854d25ceb5bff32f4))
|
|
9
184
|
|
|
10
185
|
|
|
@@ -55,6 +230,12 @@
|
|
|
55
230
|
|
|
56
231
|
- **(swc_core)** Export testing utilities (#5839) ([856d741](https://github.com/swc-project/swc/commit/856d741ec77f46eb04be8489a3a18340269dbe4d))
|
|
57
232
|
|
|
233
|
+
### Miscellaneous Tasks
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
- **(ci)** FIx publish action (#5857) ([c2f25c9](https://github.com/swc-project/swc/commit/c2f25c9998776366a5df8da77d94b0a85e4869fe))
|
|
238
|
+
|
|
58
239
|
### Performance
|
|
59
240
|
|
|
60
241
|
|
package/README.md
CHANGED
|
@@ -38,7 +38,9 @@ Also, SWC tries to ensure that
|
|
|
38
38
|
|
|
39
39
|
> If you select the latest version of each crates, it will work
|
|
40
40
|
|
|
41
|
-
for rust users.
|
|
41
|
+
for rust users.
|
|
42
|
+
|
|
43
|
+
MSRV of crates named `swc_ecma_*` is the current stable, and nightly for others.
|
|
42
44
|
|
|
43
45
|
---
|
|
44
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -143,19 +143,19 @@
|
|
|
143
143
|
"url": "https://opencollective.com/swc"
|
|
144
144
|
},
|
|
145
145
|
"optionalDependencies": {
|
|
146
|
-
"@swc/core-win32-x64-msvc": "1.3.
|
|
147
|
-
"@swc/core-darwin-x64": "1.3.
|
|
148
|
-
"@swc/core-linux-x64-gnu": "1.3.
|
|
149
|
-
"@swc/core-linux-x64-musl": "1.3.
|
|
150
|
-
"@swc/core-freebsd-x64": "1.3.
|
|
151
|
-
"@swc/core-win32-ia32-msvc": "1.3.
|
|
152
|
-
"@swc/core-linux-arm64-gnu": "1.3.
|
|
153
|
-
"@swc/core-linux-arm-gnueabihf": "1.3.
|
|
154
|
-
"@swc/core-darwin-arm64": "1.3.
|
|
155
|
-
"@swc/core-android-arm64": "1.3.
|
|
156
|
-
"@swc/core-linux-arm64-musl": "1.3.
|
|
157
|
-
"@swc/core-win32-arm64-msvc": "1.3.
|
|
158
|
-
"@swc/core-android-arm-eabi": "1.3.
|
|
146
|
+
"@swc/core-win32-x64-msvc": "1.3.3",
|
|
147
|
+
"@swc/core-darwin-x64": "1.3.3",
|
|
148
|
+
"@swc/core-linux-x64-gnu": "1.3.3",
|
|
149
|
+
"@swc/core-linux-x64-musl": "1.3.3",
|
|
150
|
+
"@swc/core-freebsd-x64": "1.3.3",
|
|
151
|
+
"@swc/core-win32-ia32-msvc": "1.3.3",
|
|
152
|
+
"@swc/core-linux-arm64-gnu": "1.3.3",
|
|
153
|
+
"@swc/core-linux-arm-gnueabihf": "1.3.3",
|
|
154
|
+
"@swc/core-darwin-arm64": "1.3.3",
|
|
155
|
+
"@swc/core-android-arm64": "1.3.3",
|
|
156
|
+
"@swc/core-linux-arm64-musl": "1.3.3",
|
|
157
|
+
"@swc/core-win32-arm64-msvc": "1.3.3",
|
|
158
|
+
"@swc/core-android-arm-eabi": "1.3.3"
|
|
159
159
|
},
|
|
160
160
|
"files": [
|
|
161
161
|
"CHANGELOG.md",
|