@swc/core 1.3.9 → 1.3.11

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 (3) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/index.d.ts +1 -1
  3. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,199 @@
5
5
 
6
6
 
7
7
 
8
+ - **(css/parser)** Add more error recovery (#6240) ([6341554](https://github.com/swc-project/swc/commit/634155462828b36f71cebfdb0937f2cd5f7e62e0))
9
+
10
+
11
+ - **(es/minifier)** Preserve `this` in more cases (#6226) ([e9d421b](https://github.com/swc-project/swc/commit/e9d421bd959c93fa0ef1261865e50937321d5717))
12
+
13
+
14
+ - **(es/minifier)** Fix `collapse_vars` (#6235) ([48bb0cc](https://github.com/swc-project/swc/commit/48bb0cc51d34cc568a1dd3e083e5a8a79e4f6252))
15
+
16
+ ### Features
17
+
18
+
19
+
20
+ - **(css/minifier)** Merge rules (#6220) ([8b6b9c0](https://github.com/swc-project/swc/commit/8b6b9c0961b76a8b9a3eff208af73a48005b6aeb))
21
+
22
+
23
+ - **(es)** Expose `unresolved_mark` (#6236) ([0b267ed](https://github.com/swc-project/swc/commit/0b267edea2fb7b64a40b6a220e3bb391173e0516))
24
+
25
+
26
+ - **(es/minifier)** Respect options (#6245) ([ec9a80a](https://github.com/swc-project/swc/commit/ec9a80aae0277f1346955d10fe348111050193bd))
27
+
28
+
29
+ - **(es/minifier)** Support more statements in seqential inliner (#6248) ([86e265a](https://github.com/swc-project/swc/commit/86e265a024d4c6215e2fe7f3442a9cc2be8be1cf))
30
+
31
+
32
+ - **(es/minifier)** Inline a lazily initialized var if it's used once (#6237) ([1cd7f61](https://github.com/swc-project/swc/commit/1cd7f617f935c603a6707c3ce5c72b2be914f87d))
33
+
34
+ ### Miscellaneous Tasks
35
+
36
+
37
+
38
+ - **(bindings)** Fix type (#6184) ([2bafd53](https://github.com/swc-project/swc/commit/2bafd53e96b7101b9e7ceb6b34a88c8c826ef9d5))
39
+
40
+
41
+ - **(es/minifier)** Configure fuzzer (#6246) ([d454488](https://github.com/swc-project/swc/commit/d4544884ee8896248f7f1099e204ce906da4ede2))
42
+
43
+
44
+ - **(es/parser)** Typo (#6228) ([61e63df](https://github.com/swc-project/swc/commit/61e63df0a06a349664f6569f2de8d183c6a43fd9))
45
+
46
+ ### Refactor
47
+
48
+
49
+
50
+ - **(css/parser)** Use new approach for parsing invalid tokens (#6224) ([ac619e8](https://github.com/swc-project/swc/commit/ac619e88bf68018ef9b4faef52ed3849549e6fd5))
51
+
52
+
53
+ - **(css/parser)** Fix parsing of declarations (#6234) ([e4fe840](https://github.com/swc-project/swc/commit/e4fe8403d790911c617754358630ad56afd14a89))
54
+
55
+ ### Testing
56
+
57
+
58
+
59
+ - **(es/minifier)** Organize terser tests (#6247) ([01edb4f](https://github.com/swc-project/swc/commit/01edb4fff44a9fd6424a9a5f75afb0165b0bad85))
60
+
61
+
62
+ - **(es/preset-env)** Ensure custom transforms are working (#6227) ([de03675](https://github.com/swc-project/swc/commit/de036754c4e76ec9ea0deda30a87cd8949e03df5))
63
+
64
+ ### Build
65
+
66
+
67
+
68
+ - **(bindings)** Revert jemallloc bump (#6241) ([c28533f](https://github.com/swc-project/swc/commit/c28533f725377c2c9746ae752749e17dd37b6bed))
69
+
70
+ ## [1.3.10] - 2022-10-21
71
+
72
+ ### Bug Fixes
73
+
74
+
75
+
76
+ - **(css/codegen)** Fix codegen of pseudo class selectors (#6186) ([4fba0db](https://github.com/swc-project/swc/commit/4fba0db3d9a4ffc6c13e134b3c75441737ff83d5))
77
+
78
+
79
+ - **(css/minifier)** Don't touch `@supports` (#6199) ([ac7cfa1](https://github.com/swc-project/swc/commit/ac7cfa13b62b81018cccb8c424adb1cae679446c))
80
+
81
+
82
+ - **(es/compat)** Fix super method call in loose mode (#6207) ([0e2de30](https://github.com/swc-project/swc/commit/0e2de3069df7d5e718562a030d8d22208353fb71))
83
+
84
+
85
+ - **(es/minifier)** Remove wrong rule (#6201) ([842abd4](https://github.com/swc-project/swc/commit/842abd45759a31e9b6ef2b3a0679dee3ad335791))
86
+
87
+
88
+ - **(es/minifier)** Fix detection of direct `eval` (#6215) ([780b5de](https://github.com/swc-project/swc/commit/780b5de6787306f3293471f7259e87fcfa54b6d6))
89
+
90
+
91
+ - **(html/ast)** Fix compilation (#6211) ([1b0dad1](https://github.com/swc-project/swc/commit/1b0dad1e845b2a648103383be6d952e5997d0387))
92
+
93
+
94
+ - **(html/minifier)** Avoid `;` at the end of js (#6188) ([5571c0c](https://github.com/swc-project/swc/commit/5571c0c2029577929ec547948319497144c34c28))
95
+
96
+
97
+ - **(html/minifier)** Compress `exportparts` (#6187) ([0ba464d](https://github.com/swc-project/swc/commit/0ba464d64338973d3fa2080bb3b47ac1574cced0))
98
+
99
+
100
+ - **(html/minifier)** Fix bugs of merging and removing metadata elements (#6200) ([3546632](https://github.com/swc-project/swc/commit/35466322d6c2e3d09c9d43e0ce773203c9d239b1))
101
+
102
+ ### Features
103
+
104
+
105
+
106
+ - **(css/ast)** Support `@custom-media` at-rule (#6152) ([d46a19b](https://github.com/swc-project/swc/commit/d46a19b55420ab3a88a4399eac4768f8a5fae838))
107
+
108
+
109
+ - **(css/minifier)** Handle nested `calc()` (#6153) ([d4a733d](https://github.com/swc-project/swc/commit/d4a733d76461995b7549f5470e53df913a30ef0f))
110
+
111
+
112
+ - **(es/compat)** Support readonly and writeonly for private fields (#6182) ([aefc11b](https://github.com/swc-project/swc/commit/aefc11b8a7355c496b60cda4ed7998a97f1bd8d4))
113
+
114
+
115
+ - **(es/minifier)** Make sequential inliner self-repeat (#6168) ([3f0fcf4](https://github.com/swc-project/swc/commit/3f0fcf4fa9dbc654f56f60863ca7058522202ade))
116
+
117
+
118
+ - **(es/minifier)** Skip function declarations in sequential inliner (#6147) ([f2e8f98](https://github.com/swc-project/swc/commit/f2e8f98d381cff75229e29564ce5a7458175fea9))
119
+
120
+
121
+ - **(es/minifier)** Merge functions using sequential inliner (#6148) ([12443db](https://github.com/swc-project/swc/commit/12443db39aebb216aa9da58917b74c8360310eca))
122
+
123
+
124
+ - **(es/minifier)** Mark more expressions as pure (#6204) ([cc848db](https://github.com/swc-project/swc/commit/cc848db80e75f8bf07c2ca4acb0be3cf46ff75ca))
125
+
126
+
127
+ - **(html/ast)** Add `raw` to comment tokens (#6202) ([99ea286](https://github.com/swc-project/swc/commit/99ea28674af1c1bbaa104089b7f7bd36356df208))
128
+
129
+
130
+ - **(html/minifier)** Merge identical metadata elements (#6183) ([41093b0](https://github.com/swc-project/swc/commit/41093b022d8d3304f9d235fd5b9dd386fecb8c3c))
131
+
132
+
133
+ - **(html/minifier)** Compress `javascript:` URLs (#6185) ([8f00d1a](https://github.com/swc-project/swc/commit/8f00d1a934fbc52594b62ab4c6d0eff9c2e73e60))
134
+
135
+
136
+ - **(html/minifier)** Improve removal of redundant attributes (#6197) ([aa3fab1](https://github.com/swc-project/swc/commit/aa3fab1957b949c81bb1556b7d925d28c310eba0))
137
+
138
+ ### Miscellaneous Tasks
139
+
140
+
141
+
142
+ - **(ci)** Fix auto-publish action (#6214) ([e9ac7a7](https://github.com/swc-project/swc/commit/e9ac7a73963df586d577d3bb374a93695c68a90e))
143
+
144
+
145
+ - **(deps)** Update jemallocator (#6216) ([283549c](https://github.com/swc-project/swc/commit/283549c677c3da89c4ff010d4b340d996c445bef))
146
+
147
+ ### Performance
148
+
149
+
150
+
151
+ - **(es/transforms)** Exclude old inlining pass (#6203) ([27896f4](https://github.com/swc-project/swc/commit/27896f4751e72c12eaadeb302848083df8e8e842))
152
+
153
+
154
+ - **(html/ast)** Use `Atom` for `raw` (#6210) ([420ba32](https://github.com/swc-project/swc/commit/420ba32e8c3b4f8ea34e3b17c82af31e2934059b))
155
+
156
+
157
+ - **(html/parser)** Improve performance a bit (#6213) ([ba5d272](https://github.com/swc-project/swc/commit/ba5d272ae111b3da765c842bfd100013833c1eac))
158
+
159
+ ### Refactor
160
+
161
+
162
+
163
+ - **(css/ast)** Refactor dashed ident (#6198) ([6c170e5](https://github.com/swc-project/swc/commit/6c170e59c792dea637a694ad97157c77a2176327))
164
+
165
+
166
+ - **(css/parser)** Improve project structure (#6110) ([6e2e2ad](https://github.com/swc-project/swc/commit/6e2e2ada4eab95a75554eecc8fab423bb8c94033))
167
+
168
+
169
+ - **(es/minifier)** Don't create invalid nodes (#6191) ([ea03ce1](https://github.com/swc-project/swc/commit/ea03ce1a82b0d5b49e0e324f09922efdca10ffbd))
170
+
171
+ ### Testing
172
+
173
+
174
+
175
+ - **(css/minifier)** Add tests for layer (#6221) ([055bdcd](https://github.com/swc-project/swc/commit/055bdcd997579b5de9851871684707adb7a3cfe7))
176
+
177
+
178
+ - **(es/minifier)** Add a test for a fixed issue (#6218) ([725b118](https://github.com/swc-project/swc/commit/725b1185f32837b2cd599441a7ca4e5966cd2264))
179
+
180
+
181
+ - **(html/parser)** Update html5lib-test (#6156) ([7a38fde](https://github.com/swc-project/swc/commit/7a38fde2305f20ead731c8c1938c9f2c7919f2df))
182
+
183
+
184
+ - **(html/parser)** Refactor tests to make `git` faster (#6158) ([a4acc7a](https://github.com/swc-project/swc/commit/a4acc7ab07a5e12179176b0c6928207228b67c85))
185
+
186
+
187
+ - **(html/parser)** Resolve TODOs (#6223) ([6505c64](https://github.com/swc-project/swc/commit/6505c6491a1fa241907329ee5c6ff073c3176dd6))
188
+
189
+ ### Build
190
+
191
+
192
+
193
+ - **(bindings)** Update mimalloc (#6208) ([8ab10f6](https://github.com/swc-project/swc/commit/8ab10f661b55f6440d740efb4c7477f92f70c8c4))
194
+
195
+ ## [1.3.9] - 2022-10-17
196
+
197
+ ### Bug Fixes
198
+
199
+
200
+
8
201
  - **(css/parser)** Improve handling of math functions in at-rules (#6140) ([26aeb18](https://github.com/swc-project/swc/commit/26aeb18c0cbb3299951be7b7a9398705d33374cd))
9
202
 
10
203
 
package/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { BundleInput } from "./spack";
4
4
  /**
5
5
  * Version of the swc binding.
6
6
  */
7
- export declare const version: any;
7
+ export declare const version: string;
8
8
  export declare function plugins(ps: Plugin[]): Plugin;
9
9
  export declare class Compiler {
10
10
  private fallbackBindingsPluginWarningDisplayed;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -144,19 +144,19 @@
144
144
  "url": "https://opencollective.com/swc"
145
145
  },
146
146
  "optionalDependencies": {
147
- "@swc/core-win32-x64-msvc": "1.3.9",
148
- "@swc/core-darwin-x64": "1.3.9",
149
- "@swc/core-linux-x64-gnu": "1.3.9",
150
- "@swc/core-linux-x64-musl": "1.3.9",
151
- "@swc/core-freebsd-x64": "1.3.9",
152
- "@swc/core-win32-ia32-msvc": "1.3.9",
153
- "@swc/core-linux-arm64-gnu": "1.3.9",
154
- "@swc/core-linux-arm-gnueabihf": "1.3.9",
155
- "@swc/core-darwin-arm64": "1.3.9",
156
- "@swc/core-android-arm64": "1.3.9",
157
- "@swc/core-linux-arm64-musl": "1.3.9",
158
- "@swc/core-win32-arm64-msvc": "1.3.9",
159
- "@swc/core-android-arm-eabi": "1.3.9"
147
+ "@swc/core-win32-x64-msvc": "1.3.11",
148
+ "@swc/core-darwin-x64": "1.3.11",
149
+ "@swc/core-linux-x64-gnu": "1.3.11",
150
+ "@swc/core-linux-x64-musl": "1.3.11",
151
+ "@swc/core-freebsd-x64": "1.3.11",
152
+ "@swc/core-win32-ia32-msvc": "1.3.11",
153
+ "@swc/core-linux-arm64-gnu": "1.3.11",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.11",
155
+ "@swc/core-darwin-arm64": "1.3.11",
156
+ "@swc/core-android-arm64": "1.3.11",
157
+ "@swc/core-linux-arm64-musl": "1.3.11",
158
+ "@swc/core-win32-arm64-msvc": "1.3.11",
159
+ "@swc/core-android-arm-eabi": "1.3.11"
160
160
  },
161
161
  "files": [
162
162
  "CHANGELOG.md",