@swc/core 1.3.11 → 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 (2) hide show
  1. package/CHANGELOG.md +128 -1
  2. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,130 @@
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
+
8
132
  - **(css/parser)** Add more error recovery (#6240) ([6341554](https://github.com/swc-project/swc/commit/634155462828b36f71cebfdb0937f2cd5f7e62e0))
9
133
 
10
134
 
@@ -38,10 +162,13 @@
38
162
  - **(bindings)** Fix type (#6184) ([2bafd53](https://github.com/swc-project/swc/commit/2bafd53e96b7101b9e7ceb6b34a88c8c826ef9d5))
39
163
 
40
164
 
165
+ - **(ci)** Fix publish action ([3916886](https://github.com/swc-project/swc/commit/39168865c81d7358867cff3c4edbfdc7092d376c))
166
+
167
+
41
168
  - **(es/minifier)** Configure fuzzer (#6246) ([d454488](https://github.com/swc-project/swc/commit/d4544884ee8896248f7f1099e204ce906da4ede2))
42
169
 
43
170
 
44
- - **(es/parser)** Typo (#6228) ([61e63df](https://github.com/swc-project/swc/commit/61e63df0a06a349664f6569f2de8d183c6a43fd9))
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))
45
172
 
46
173
  ### Refactor
47
174
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.11",
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.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"
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",