@swc/core 1.2.178 → 1.2.182
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 +168 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,174 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(es/config)** Merge `jsc.transform` correctly (#4615) ([3b2b8c4](https://github.com/swc-project/swc/commit/3b2b8c4512709b9908a113af83f30e4fa97b9c49))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/fixer)** Handle `new yield` (#4598) ([d611d54](https://github.com/swc-project/swc/commit/d611d543eaff2a017c9742137a4594835aeb67f4))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/minifier)** Fix switches (#4595) ([2ab7594](https://github.com/swc-project/swc/commit/2ab7594b4abf72c6e5d6da49b2c08e9faac44ffb))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/minifier)** Fix `with` and `NaN` (#4596) ([097ff1d](https://github.com/swc-project/swc/commit/097ff1ddc1675e1168b319da009221e345e2f4ea))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/minifier)** Fix switch with a unknown case (#4597) ([8944a3b](https://github.com/swc-project/swc/commit/8944a3bdf54497a6ab03194b3d96ccfe902c016b))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/minifier)** Preserve more `this` (#4599) ([859dc44](https://github.com/swc-project/swc/commit/859dc440b43c0dbd17ef8cee2998de3ce8c009a0))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/utils)** Fix wrong apis (#4604) ([6a97c7b](https://github.com/swc-project/swc/commit/6a97c7bef8a1f846bfe34678fd0714b8fdcb56a5))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(html/parser)** Fix bugs (#4592) ([7166dbf](https://github.com/swc-project/swc/commit/7166dbf5a626170f36e9282dfc625d1ace781511))
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(css/parser)** Add a method to get error message (#4588) ([04dd3dd](https://github.com/swc-project/swc/commit/04dd3ddc5d2953ae9ba4b944853db57bf1ed217d))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(es/ast)** Improve `Id` APIs (#4614) ([2c861bd](https://github.com/swc-project/swc/commit/2c861bd9e515ed0c9bfa653ed79d9e6941b05078))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(es/hygiene)** Drop syntax context (#4594) ([6ac4a23](https://github.com/swc-project/swc/commit/6ac4a23aa2fdf3854f23760cec70b36249df4cdc))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(es/lints)** Implement `prefer-const` rule without options (#4584) ([e65bf3d](https://github.com/swc-project/swc/commit/e65bf3d02559e2e2ca31a1e190244b1ee9e19843))
|
|
45
|
+
|
|
46
|
+
### Refactor
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(html)** Refactor parser and codegen (#4611) ([7c6627f](https://github.com/swc-project/swc/commit/7c6627fc2106a6553ebce353d53f61917205fee2))
|
|
51
|
+
|
|
52
|
+
### Testing
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/minifier)** Postpone tests which can be verified by execution tests (#4600) ([6918e3a](https://github.com/swc-project/swc/commit/6918e3a4fb7ad375dfaad3da6d9e21931bde987b))
|
|
57
|
+
|
|
58
|
+
## [1.2.181] - 2022-05-09
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
- **(es)** Use `unresolved_mark` (#4573) ([0868409](https://github.com/swc-project/swc/commit/086840956d696816c694fc2fd96258351aab9573))
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
- **(es/minifier)** Improve sequential inliner (#4570) ([af368ee](https://github.com/swc-project/swc/commit/af368eead2529c3340e985acddf2948af44aba2e))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
- **(es/minifier)** Preserve more identifiers if `eval` or `with` exists (#4580) ([e43689b](https://github.com/swc-project/swc/commit/e43689b7d58354bf2847cb47bfc82eb208d5b5e6))
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- **(es/minifier)** Don't create an invalid labeled statement (#4581) ([7e80c10](https://github.com/swc-project/swc/commit/7e80c10cba50a8a1f74875ba8a90c4f282b33fc0))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
- **(es/minifier)** Unwrap blocks more carefully (#4586) ([8db3442](https://github.com/swc-project/swc/commit/8db3442216e84b0535fa2884208e19020f22ec19))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
- **(es/minifier)** Consider more aliases in sequences pass (#4583) ([3521ce0](https://github.com/swc-project/swc/commit/3521ce09e7a2c3168f17491196f6fbc835637380))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
- **(es/minifier)** Fix handling of `NaN` (#4593) ([dd09cdf](https://github.com/swc-project/swc/commit/dd09cdf8b12d53aa6060e14857fa3efeddf41334))
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
- **(es/resolver)** Fix handling of a complex try catch (#4574) ([9e79f9c](https://github.com/swc-project/swc/commit/9e79f9ced697df4aba51219ce4759238a53c11e3))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
- **(es/resolver)** Fix more try catch issues (#4582) ([56c3010](https://github.com/swc-project/swc/commit/56c3010f6ba0cdebf4a1631c4ad54e10584c0422))
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
- **(html/parser)** Add recovery for attributes on html and body (#4566) ([c7d20e4](https://github.com/swc-project/swc/commit/c7d20e43e63cb2c45cd589e3c72811575fca2f07))
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
- **(node)** Use `jemallocator` on linux (#4591) ([af91094](https://github.com/swc-project/swc/commit/af91094b2db0809f02e6f0a6f07b021d12aa1512))
|
|
95
|
+
|
|
96
|
+
### Features
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
- **(config)** Make all configuration overridable (#4575) ([7fc9bbc](https://github.com/swc-project/swc/commit/7fc9bbccd9ce867d9851cb3518501509b5a3f97e))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
- **(es/ast)** Add methods for parens (#4576) ([55d0ee6](https://github.com/swc-project/swc/commit/55d0ee6cba32d3a9d15cdb5485fb65a84bebe123))
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
- **(html/parser)** Parse document fragment (#4579) ([a34dea1](https://github.com/swc-project/swc/commit/a34dea11d0425dde75c45b6ba16682cc4df087a8))
|
|
107
|
+
|
|
108
|
+
### Miscellaneous Tasks
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
- **(ci)** Improve CI scripts (#4572) ([f23c943](https://github.com/swc-project/swc/commit/f23c943227e8438dabeaa951bab552cd3d076e41))
|
|
113
|
+
|
|
114
|
+
### Refactor
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
- **(html/parser)** Resolve TODO (#4577) ([4cc247f](https://github.com/swc-project/swc/commit/4cc247f39f53ee2c4183c3881c3b686a109a3419))
|
|
119
|
+
|
|
120
|
+
### Testing
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
- **(es/minifier)** Fix test system (#4571) ([bf5ee01](https://github.com/swc-project/swc/commit/bf5ee018b3d2cbf235b48e2325374f3ec545703a))
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
- **(html/parser)** Add tests (#4565) ([adbce64](https://github.com/swc-project/swc/commit/adbce64f28ba72f73de375b91d72382d98362824))
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
- **(html/parser)** Improve script on/off tests (#4564) ([4838267](https://github.com/swc-project/swc/commit/4838267015d19299f09e90efc2e41d22502be390))
|
|
131
|
+
|
|
132
|
+
## [1.2.179] - 2022-05-08
|
|
133
|
+
|
|
134
|
+
### Bug Fixes
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
- **(es/minifier)** Distinguish `raw` and `cooked` while joining template literals (#4559) ([f9b6016](https://github.com/swc-project/swc/commit/f9b6016d4b990032505c0dbb5b5bf82949c7d74d))
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
- **(es/minifier)** Fix handling of template literals (#4563) ([920d9a7](https://github.com/swc-project/swc/commit/920d9a76784b6e2ac9ccbfd826f2253410bf2be5))
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
- **(html/parser)** Fix for noah's ark clause (#4558) ([7ef6372](https://github.com/swc-project/swc/commit/7ef637263e57b9c995de1a847606f878991054fd))
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
- **(html/parser)** Fix adoption agency algorithm (#4552) ([d6e4885](https://github.com/swc-project/swc/commit/d6e48850b65ada6dae4da75347c6669161cb036a))
|
|
148
|
+
|
|
149
|
+
### Documentation
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
- **(es/resolver)** Add docs for top-level mark (#4560) ([13cc228](https://github.com/swc-project/swc/commit/13cc2282627f852d5b114332a83816de2a47742b))
|
|
154
|
+
|
|
155
|
+
### Features
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
- **(es/minifier)** Drop vars using sequential inliner (#4547) ([c5b4ef4](https://github.com/swc-project/swc/commit/c5b4ef4377874d8659d5b4e6c4099e1eac6c40f1))
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
- **(es/minifier)** Remove duplicate control flow in nested blocks (#4569) ([b3b6fd4](https://github.com/swc-project/swc/commit/b3b6fd448c35fc25cd99d210c684e90c68da0b04))
|
|
163
|
+
|
|
164
|
+
### Refactor
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
- **(plugin)** Align deps (#4568) ([846a319](https://github.com/swc-project/swc/commit/846a31919eba58b7b14788ccc26b0ff23e488044))
|
|
169
|
+
|
|
170
|
+
## [1.2.178] - 2022-05-07
|
|
171
|
+
|
|
172
|
+
### Bug Fixes
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
8
176
|
- **(es/compat)** Memorize computed props in logical assignment (#4525) ([2e74787](https://github.com/swc-project/swc/commit/2e7478787040645ef9cd162ef18e948c112c93d8))
|
|
9
177
|
|
|
10
178
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.182",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -134,18 +134,18 @@
|
|
|
134
134
|
"url": "https://opencollective.com/swc"
|
|
135
135
|
},
|
|
136
136
|
"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.
|
|
137
|
+
"@swc/core-win32-x64-msvc": "1.2.182",
|
|
138
|
+
"@swc/core-darwin-x64": "1.2.182",
|
|
139
|
+
"@swc/core-linux-x64-gnu": "1.2.182",
|
|
140
|
+
"@swc/core-linux-x64-musl": "1.2.182",
|
|
141
|
+
"@swc/core-freebsd-x64": "1.2.182",
|
|
142
|
+
"@swc/core-win32-ia32-msvc": "1.2.182",
|
|
143
|
+
"@swc/core-linux-arm64-gnu": "1.2.182",
|
|
144
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.182",
|
|
145
|
+
"@swc/core-darwin-arm64": "1.2.182",
|
|
146
|
+
"@swc/core-android-arm64": "1.2.182",
|
|
147
|
+
"@swc/core-linux-arm64-musl": "1.2.182",
|
|
148
|
+
"@swc/core-win32-arm64-msvc": "1.2.182",
|
|
149
|
+
"@swc/core-android-arm-eabi": "1.2.182"
|
|
150
150
|
}
|
|
151
151
|
}
|