@swc/core 1.3.10 → 1.3.13

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 +195 -0
  2. package/index.d.ts +1 -1
  3. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,201 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/compat)** Fix destructuring of an empty array (#6314) ([3bea6f7](https://github.com/swc-project/swc/commit/3bea6f7248826a3865a2148ce65c6cbaa9d03790))
9
+
10
+
11
+ - **(es/helpers)** Fix `toArray` (#6318) ([e34c25e](https://github.com/swc-project/swc/commit/e34c25e40dc9f4998b31eed6b2a1efc43b87b205))
12
+
13
+
14
+ - **(es/resolver)** Change order for switch cases (#6317) ([2737aea](https://github.com/swc-project/swc/commit/2737aea312e0b182413401d34e5ce1614a7bd6df))
15
+
16
+ ## [1.3.12] - 2022-11-02
17
+
18
+ ### Bug Fixes
19
+
20
+
21
+
22
+ - **(common)** Remove `&mut` from `build_source_map_from` (#6276) ([47d7fca](https://github.com/swc-project/swc/commit/47d7fcaaedb97d1ce28727de6c22698fc2d0d11b))
23
+
24
+
25
+ - **(css/parser)** Fix parsing of colors (#6260) ([c3944ba](https://github.com/swc-project/swc/commit/c3944ba2395e54c7b557f9a71639e18458dc2a97))
26
+
27
+
28
+ - **(css/parser)** Fix various issues (#6281) ([2813acc](https://github.com/swc-project/swc/commit/2813acccc248bed17dd6a961a6684e50a814546c))
29
+
30
+
31
+ - **(es/codegen)** Preserve more parens (#6268) ([c318446](https://github.com/swc-project/swc/commit/c3184463f1b09c9e434f31313afb0b13d0404379))
32
+
33
+
34
+ - **(es/compat)** Fix `new.target` in a nested scope (#6296) ([aa18612](https://github.com/swc-project/swc/commit/aa18612e62eee6f0fd1977c10aa2102ce113e6e4))
35
+
36
+
37
+ - **(es/lints)** Fix `const-assign` in function expressions (#6294) ([a27392a](https://github.com/swc-project/swc/commit/a27392a251360ff1ddfab240399d5c1e317335bc))
38
+
39
+
40
+ - **(es/minifier)** Don't ignore nullish coalescing (#6272) ([8c1ac68](https://github.com/swc-project/swc/commit/8c1ac686cb948a60da2e260b54e583490bce526e))
41
+
42
+
43
+ - **(es/minifier)** Don't inline regex for IIFEs (#6283) ([4eab2ed](https://github.com/swc-project/swc/commit/4eab2ed2fc5d3eed2c397b81c780f87144106905))
44
+
45
+
46
+ - **(es/minifier)** Fix infinite loop (#6300) ([655f674](https://github.com/swc-project/swc/commit/655f6744c550b4f0963ef090bf45a6eae2d273f6))
47
+
48
+
49
+ - **(es/minifier)** Don't drop an inlined parameter as a duplicate (#6293) ([dd797f7](https://github.com/swc-project/swc/commit/dd797f7f1590401c309efce76a86719c24cd6b2b))
50
+
51
+
52
+ - **(es/typescript)** Fix stack overflow (#6250) ([28ec6e8](https://github.com/swc-project/swc/commit/28ec6e8fc70cf74722c93353c03e4fdedb21954a))
53
+
54
+
55
+ - **(html/minifier)** Merge style blocks (#6264) ([028951c](https://github.com/swc-project/swc/commit/028951c36c9575662b3774bd445a83f597e880d4))
56
+
57
+ ### Features
58
+
59
+
60
+
61
+ - **(css/parser)** Improve error reporting (#6274) ([956d574](https://github.com/swc-project/swc/commit/956d57468367ddfd7ff87cb98954a3006edad4b9))
62
+
63
+
64
+ - **(es)** Support trailing commas in `.swcrc` (#6289) ([244b0af](https://github.com/swc-project/swc/commit/244b0af30dc703842fbed76b3e9492e882c4bb3a))
65
+
66
+
67
+ - **(es/minfiier)** Compute more with sequential inliner (#6169) ([743a1aa](https://github.com/swc-project/swc/commit/743a1aab4fc8abf0ee002520cf88680fb4e14d2f))
68
+
69
+
70
+ - **(es/minifier)** Implement trivial optimizations (#6256) ([5d52ae9](https://github.com/swc-project/swc/commit/5d52ae971ee3c557898903a0de44a2f9ef66a0ce))
71
+
72
+
73
+ - **(html/minifier)** Handle `crossorigin` (#6261) ([782da5c](https://github.com/swc-project/swc/commit/782da5c83aa2d84e2b25d59272703300b670b88d))
74
+
75
+
76
+ - **(html/minifier)** Merge `script` tags (#6273) ([02f8d31](https://github.com/swc-project/swc/commit/02f8d31ef38a56740de3ce5b15340e91e9a476e1))
77
+
78
+ ### Miscellaneous Tasks
79
+
80
+
81
+
82
+ - **(ci)** Enforce clippy for all targets (#6299) ([0967e8f](https://github.com/swc-project/swc/commit/0967e8f06d81e498de5c830b766906e5aaaff2fc))
83
+
84
+
85
+ - **(common)** Switch to `new_debug_unreachable` (#6265) ([2f61332](https://github.com/swc-project/swc/commit/2f613321779cfa7a3ccb9d3fd6c7789459723f0f))
86
+
87
+ ### Performance
88
+
89
+
90
+
91
+ - **(html/parser)** Refactor (#6313) ([3a90657](https://github.com/swc-project/swc/commit/3a9065799dca18e3876ef0e0c456da68c648a6e8))
92
+
93
+ ### Refactor
94
+
95
+
96
+
97
+ - **(css/parser)** Refactor more (#6251) ([a0e4684](https://github.com/swc-project/swc/commit/a0e4684476e1dba7afec7ac732044d44bb06ef6d))
98
+
99
+
100
+ - **(css/parser)** Refactor even more (#6288) ([6cafeb2](https://github.com/swc-project/swc/commit/6cafeb2bccc2ce3a1e7d3ef20bac7fb8164e988a))
101
+
102
+
103
+ - **(es)** Accept custom instance of `Comments` (#6290) ([1024a55](https://github.com/swc-project/swc/commit/1024a552cf6f470cef0e971f207d6023804ea514))
104
+
105
+
106
+ - **(html/parser)** Refactor (#6267) ([c255cfd](https://github.com/swc-project/swc/commit/c255cfd71609ebc7aeb0bd2d0d01ede6ae5c5e08))
107
+
108
+ ### Testing
109
+
110
+
111
+
112
+ - **(css/minifier)** Fix fixture tester (#6222) ([cd1319d](https://github.com/swc-project/swc/commit/cd1319d9be11bc66b29c43d2fab71ff8e02fcea9))
113
+
114
+
115
+ - **(css/parser)** Add tests for refactoring (#6262) ([4c293f9](https://github.com/swc-project/swc/commit/4c293f965b380e49790cdf4fd8c1e1cb3845e9c5))
116
+
117
+
118
+ - **(es)** Enable tests for fixed issues (#6311) ([5b02e24](https://github.com/swc-project/swc/commit/5b02e2450d17afefc3004df31397329fcf60f3bf))
119
+
120
+
121
+ - **(es/compat)** Add execution tests (#6312) ([0f9d930](https://github.com/swc-project/swc/commit/0f9d930f738322119e7ade40d815f21ba398b152))
122
+
123
+
124
+ - **(es/minifier)** Add a test for `??` operator (#6282) ([0376da7](https://github.com/swc-project/swc/commit/0376da73c6113ade5945321b7c3abe257ce3b83c))
125
+
126
+ ## [1.3.11] - 2022-10-26
127
+
128
+ ### Bug Fixes
129
+
130
+
131
+
132
+ - **(css/parser)** Add more error recovery (#6240) ([6341554](https://github.com/swc-project/swc/commit/634155462828b36f71cebfdb0937f2cd5f7e62e0))
133
+
134
+
135
+ - **(es/minifier)** Preserve `this` in more cases (#6226) ([e9d421b](https://github.com/swc-project/swc/commit/e9d421bd959c93fa0ef1261865e50937321d5717))
136
+
137
+
138
+ - **(es/minifier)** Fix `collapse_vars` (#6235) ([48bb0cc](https://github.com/swc-project/swc/commit/48bb0cc51d34cc568a1dd3e083e5a8a79e4f6252))
139
+
140
+ ### Features
141
+
142
+
143
+
144
+ - **(css/minifier)** Merge rules (#6220) ([8b6b9c0](https://github.com/swc-project/swc/commit/8b6b9c0961b76a8b9a3eff208af73a48005b6aeb))
145
+
146
+
147
+ - **(es)** Expose `unresolved_mark` (#6236) ([0b267ed](https://github.com/swc-project/swc/commit/0b267edea2fb7b64a40b6a220e3bb391173e0516))
148
+
149
+
150
+ - **(es/minifier)** Respect options (#6245) ([ec9a80a](https://github.com/swc-project/swc/commit/ec9a80aae0277f1346955d10fe348111050193bd))
151
+
152
+
153
+ - **(es/minifier)** Support more statements in seqential inliner (#6248) ([86e265a](https://github.com/swc-project/swc/commit/86e265a024d4c6215e2fe7f3442a9cc2be8be1cf))
154
+
155
+
156
+ - **(es/minifier)** Inline a lazily initialized var if it's used once (#6237) ([1cd7f61](https://github.com/swc-project/swc/commit/1cd7f617f935c603a6707c3ce5c72b2be914f87d))
157
+
158
+ ### Miscellaneous Tasks
159
+
160
+
161
+
162
+ - **(bindings)** Fix type (#6184) ([2bafd53](https://github.com/swc-project/swc/commit/2bafd53e96b7101b9e7ceb6b34a88c8c826ef9d5))
163
+
164
+
165
+ - **(ci)** Fix publish action ([3916886](https://github.com/swc-project/swc/commit/39168865c81d7358867cff3c4edbfdc7092d376c))
166
+
167
+
168
+ - **(es/minifier)** Configure fuzzer (#6246) ([d454488](https://github.com/swc-project/swc/commit/d4544884ee8896248f7f1099e204ce906da4ede2))
169
+
170
+
171
+ - **(es/parser)** Typo (#6228) ([61e63df](https://github.com/swc-project/swc/commit/61e63df0a06a349664f6569f2de8d183c6a43fd9))- **general**: Fix publish action ([83c9850](https://github.com/swc-project/swc/commit/83c98507e7aa2adf52054466a7b7462b1361de2c))
172
+
173
+ ### Refactor
174
+
175
+
176
+
177
+ - **(css/parser)** Use new approach for parsing invalid tokens (#6224) ([ac619e8](https://github.com/swc-project/swc/commit/ac619e88bf68018ef9b4faef52ed3849549e6fd5))
178
+
179
+
180
+ - **(css/parser)** Fix parsing of declarations (#6234) ([e4fe840](https://github.com/swc-project/swc/commit/e4fe8403d790911c617754358630ad56afd14a89))
181
+
182
+ ### Testing
183
+
184
+
185
+
186
+ - **(es/minifier)** Organize terser tests (#6247) ([01edb4f](https://github.com/swc-project/swc/commit/01edb4fff44a9fd6424a9a5f75afb0165b0bad85))
187
+
188
+
189
+ - **(es/preset-env)** Ensure custom transforms are working (#6227) ([de03675](https://github.com/swc-project/swc/commit/de036754c4e76ec9ea0deda30a87cd8949e03df5))
190
+
191
+ ### Build
192
+
193
+
194
+
195
+ - **(bindings)** Revert jemallloc bump (#6241) ([c28533f](https://github.com/swc-project/swc/commit/c28533f725377c2c9746ae752749e17dd37b6bed))
196
+
197
+ ## [1.3.10] - 2022-10-21
198
+
199
+ ### Bug Fixes
200
+
201
+
202
+
8
203
  - **(css/codegen)** Fix codegen of pseudo class selectors (#6186) ([4fba0db](https://github.com/swc-project/swc/commit/4fba0db3d9a4ffc6c13e134b3c75441737ff83d5))
9
204
 
10
205
 
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.10",
3
+ "version": "1.3.13",
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.10",
148
- "@swc/core-darwin-x64": "1.3.10",
149
- "@swc/core-linux-x64-gnu": "1.3.10",
150
- "@swc/core-linux-x64-musl": "1.3.10",
151
- "@swc/core-freebsd-x64": "1.3.10",
152
- "@swc/core-win32-ia32-msvc": "1.3.10",
153
- "@swc/core-linux-arm64-gnu": "1.3.10",
154
- "@swc/core-linux-arm-gnueabihf": "1.3.10",
155
- "@swc/core-darwin-arm64": "1.3.10",
156
- "@swc/core-android-arm64": "1.3.10",
157
- "@swc/core-linux-arm64-musl": "1.3.10",
158
- "@swc/core-win32-arm64-msvc": "1.3.10",
159
- "@swc/core-android-arm-eabi": "1.3.10"
147
+ "@swc/core-win32-x64-msvc": "1.3.13",
148
+ "@swc/core-darwin-x64": "1.3.13",
149
+ "@swc/core-linux-x64-gnu": "1.3.13",
150
+ "@swc/core-linux-x64-musl": "1.3.13",
151
+ "@swc/core-freebsd-x64": "1.3.13",
152
+ "@swc/core-win32-ia32-msvc": "1.3.13",
153
+ "@swc/core-linux-arm64-gnu": "1.3.13",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.13",
155
+ "@swc/core-darwin-arm64": "1.3.13",
156
+ "@swc/core-android-arm64": "1.3.13",
157
+ "@swc/core-linux-arm64-musl": "1.3.13",
158
+ "@swc/core-win32-arm64-msvc": "1.3.13",
159
+ "@swc/core-android-arm-eabi": "1.3.13"
160
160
  },
161
161
  "files": [
162
162
  "CHANGELOG.md",