@swc/core 1.3.11 → 1.3.14

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 +123 -1
  2. package/package.json +13 -19
package/CHANGELOG.md CHANGED
@@ -5,6 +5,125 @@
5
5
 
6
6
 
7
7
 
8
+ - **(common)** Remove `&mut` from `build_source_map_from` (#6276) ([47d7fca](https://github.com/swc-project/swc/commit/47d7fcaaedb97d1ce28727de6c22698fc2d0d11b))
9
+
10
+
11
+ - **(css/parser)** Fix parsing of colors (#6260) ([c3944ba](https://github.com/swc-project/swc/commit/c3944ba2395e54c7b557f9a71639e18458dc2a97))
12
+
13
+
14
+ - **(css/parser)** Fix various issues (#6281) ([2813acc](https://github.com/swc-project/swc/commit/2813acccc248bed17dd6a961a6684e50a814546c))
15
+
16
+
17
+ - **(es/codegen)** Preserve more parens (#6268) ([c318446](https://github.com/swc-project/swc/commit/c3184463f1b09c9e434f31313afb0b13d0404379))
18
+
19
+
20
+ - **(es/compat)** Fix `new.target` in a nested scope (#6296) ([aa18612](https://github.com/swc-project/swc/commit/aa18612e62eee6f0fd1977c10aa2102ce113e6e4))
21
+
22
+
23
+ - **(es/compat)** Fix destructuring of an empty array (#6314) ([3bea6f7](https://github.com/swc-project/swc/commit/3bea6f7248826a3865a2148ce65c6cbaa9d03790))
24
+
25
+
26
+ - **(es/helpers)** Fix `toArray` (#6318) ([e34c25e](https://github.com/swc-project/swc/commit/e34c25e40dc9f4998b31eed6b2a1efc43b87b205))
27
+
28
+
29
+ - **(es/lints)** Fix `const-assign` in function expressions (#6294) ([a27392a](https://github.com/swc-project/swc/commit/a27392a251360ff1ddfab240399d5c1e317335bc))
30
+
31
+
32
+ - **(es/minifier)** Don't ignore nullish coalescing (#6272) ([8c1ac68](https://github.com/swc-project/swc/commit/8c1ac686cb948a60da2e260b54e583490bce526e))
33
+
34
+
35
+ - **(es/minifier)** Don't inline regex for IIFEs (#6283) ([4eab2ed](https://github.com/swc-project/swc/commit/4eab2ed2fc5d3eed2c397b81c780f87144106905))
36
+
37
+
38
+ - **(es/minifier)** Fix infinite loop (#6300) ([655f674](https://github.com/swc-project/swc/commit/655f6744c550b4f0963ef090bf45a6eae2d273f6))
39
+
40
+
41
+ - **(es/minifier)** Don't drop an inlined parameter as a duplicate (#6293) ([dd797f7](https://github.com/swc-project/swc/commit/dd797f7f1590401c309efce76a86719c24cd6b2b))
42
+
43
+
44
+ - **(es/resolver)** Change order for switch cases (#6317) ([2737aea](https://github.com/swc-project/swc/commit/2737aea312e0b182413401d34e5ce1614a7bd6df))
45
+
46
+
47
+ - **(es/typescript)** Fix stack overflow (#6250) ([28ec6e8](https://github.com/swc-project/swc/commit/28ec6e8fc70cf74722c93353c03e4fdedb21954a))
48
+
49
+
50
+ - **(html/minifier)** Merge style blocks (#6264) ([028951c](https://github.com/swc-project/swc/commit/028951c36c9575662b3774bd445a83f597e880d4))
51
+
52
+ ### Features
53
+
54
+
55
+
56
+ - **(css/parser)** Improve error reporting (#6274) ([956d574](https://github.com/swc-project/swc/commit/956d57468367ddfd7ff87cb98954a3006edad4b9))
57
+
58
+
59
+ - **(es)** Support trailing commas in `.swcrc` (#6289) ([244b0af](https://github.com/swc-project/swc/commit/244b0af30dc703842fbed76b3e9492e882c4bb3a))
60
+
61
+
62
+ - **(es/minfiier)** Compute more with sequential inliner (#6169) ([743a1aa](https://github.com/swc-project/swc/commit/743a1aab4fc8abf0ee002520cf88680fb4e14d2f))
63
+
64
+
65
+ - **(es/minifier)** Implement trivial optimizations (#6256) ([5d52ae9](https://github.com/swc-project/swc/commit/5d52ae971ee3c557898903a0de44a2f9ef66a0ce))
66
+
67
+
68
+ - **(html/minifier)** Handle `crossorigin` (#6261) ([782da5c](https://github.com/swc-project/swc/commit/782da5c83aa2d84e2b25d59272703300b670b88d))
69
+
70
+
71
+ - **(html/minifier)** Merge `script` tags (#6273) ([02f8d31](https://github.com/swc-project/swc/commit/02f8d31ef38a56740de3ce5b15340e91e9a476e1))
72
+
73
+ ### Miscellaneous Tasks
74
+
75
+
76
+
77
+ - **(ci)** Enforce clippy for all targets (#6299) ([0967e8f](https://github.com/swc-project/swc/commit/0967e8f06d81e498de5c830b766906e5aaaff2fc))
78
+
79
+
80
+ - **(common)** Switch to `new_debug_unreachable` (#6265) ([2f61332](https://github.com/swc-project/swc/commit/2f613321779cfa7a3ccb9d3fd6c7789459723f0f))
81
+
82
+ ### Performance
83
+
84
+
85
+
86
+ - **(html/parser)** Refactor (#6313) ([3a90657](https://github.com/swc-project/swc/commit/3a9065799dca18e3876ef0e0c456da68c648a6e8))
87
+
88
+ ### Refactor
89
+
90
+
91
+
92
+ - **(css/parser)** Refactor more (#6251) ([a0e4684](https://github.com/swc-project/swc/commit/a0e4684476e1dba7afec7ac732044d44bb06ef6d))
93
+
94
+
95
+ - **(css/parser)** Refactor even more (#6288) ([6cafeb2](https://github.com/swc-project/swc/commit/6cafeb2bccc2ce3a1e7d3ef20bac7fb8164e988a))
96
+
97
+
98
+ - **(es)** Accept custom instance of `Comments` (#6290) ([1024a55](https://github.com/swc-project/swc/commit/1024a552cf6f470cef0e971f207d6023804ea514))
99
+
100
+
101
+ - **(html/parser)** Refactor (#6267) ([c255cfd](https://github.com/swc-project/swc/commit/c255cfd71609ebc7aeb0bd2d0d01ede6ae5c5e08))
102
+
103
+ ### Testing
104
+
105
+
106
+
107
+ - **(css/minifier)** Fix fixture tester (#6222) ([cd1319d](https://github.com/swc-project/swc/commit/cd1319d9be11bc66b29c43d2fab71ff8e02fcea9))
108
+
109
+
110
+ - **(css/parser)** Add tests for refactoring (#6262) ([4c293f9](https://github.com/swc-project/swc/commit/4c293f965b380e49790cdf4fd8c1e1cb3845e9c5))
111
+
112
+
113
+ - **(es)** Enable tests for fixed issues (#6311) ([5b02e24](https://github.com/swc-project/swc/commit/5b02e2450d17afefc3004df31397329fcf60f3bf))
114
+
115
+
116
+ - **(es/compat)** Add execution tests (#6312) ([0f9d930](https://github.com/swc-project/swc/commit/0f9d930f738322119e7ade40d815f21ba398b152))
117
+
118
+
119
+ - **(es/minifier)** Add a test for `??` operator (#6282) ([0376da7](https://github.com/swc-project/swc/commit/0376da73c6113ade5945321b7c3abe257ce3b83c))
120
+
121
+ ## [1.3.11] - 2022-10-26
122
+
123
+ ### Bug Fixes
124
+
125
+
126
+
8
127
  - **(css/parser)** Add more error recovery (#6240) ([6341554](https://github.com/swc-project/swc/commit/634155462828b36f71cebfdb0937f2cd5f7e62e0))
9
128
 
10
129
 
@@ -38,10 +157,13 @@
38
157
  - **(bindings)** Fix type (#6184) ([2bafd53](https://github.com/swc-project/swc/commit/2bafd53e96b7101b9e7ceb6b34a88c8c826ef9d5))
39
158
 
40
159
 
160
+ - **(ci)** Fix publish action ([3916886](https://github.com/swc-project/swc/commit/39168865c81d7358867cff3c4edbfdc7092d376c))
161
+
162
+
41
163
  - **(es/minifier)** Configure fuzzer (#6246) ([d454488](https://github.com/swc-project/swc/commit/d4544884ee8896248f7f1099e204ce906da4ede2))
42
164
 
43
165
 
44
- - **(es/parser)** Typo (#6228) ([61e63df](https://github.com/swc-project/swc/commit/61e63df0a06a349664f6569f2de8d183c6a43fd9))
166
+ - **(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
167
 
46
168
  ### Refactor
47
169
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.11",
3
+ "version": "1.3.14",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -34,15 +34,12 @@
34
34
  "defaults": true,
35
35
  "additional": [
36
36
  "x86_64-unknown-linux-musl",
37
- "x86_64-unknown-freebsd",
38
37
  "i686-pc-windows-msvc",
39
38
  "aarch64-unknown-linux-gnu",
40
39
  "armv7-unknown-linux-gnueabihf",
41
40
  "aarch64-apple-darwin",
42
- "aarch64-linux-android",
43
41
  "aarch64-unknown-linux-musl",
44
- "aarch64-pc-windows-msvc",
45
- "armv7-linux-androideabi"
42
+ "aarch64-pc-windows-msvc"
46
43
  ]
47
44
  }
48
45
  },
@@ -98,7 +95,7 @@
98
95
  "@babel/preset-typescript": "^7.13.0",
99
96
  "@babel/types": "^7.14.0",
100
97
  "@napi-rs/cli": "^2.10.0",
101
- "@swc/core": "^1.2.220",
98
+ "@swc/core": "=1.2.220",
102
99
  "@swc/helpers": "^0.4.2",
103
100
  "@swc/plugin-jest": "^1.2.12",
104
101
  "@taplo/cli": "^0.3.2",
@@ -144,19 +141,16 @@
144
141
  "url": "https://opencollective.com/swc"
145
142
  },
146
143
  "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"
144
+ "@swc/core-win32-x64-msvc": "1.3.14",
145
+ "@swc/core-darwin-x64": "1.3.14",
146
+ "@swc/core-linux-x64-gnu": "1.3.14",
147
+ "@swc/core-linux-x64-musl": "1.3.14",
148
+ "@swc/core-win32-ia32-msvc": "1.3.14",
149
+ "@swc/core-linux-arm64-gnu": "1.3.14",
150
+ "@swc/core-linux-arm-gnueabihf": "1.3.14",
151
+ "@swc/core-darwin-arm64": "1.3.14",
152
+ "@swc/core-linux-arm64-musl": "1.3.14",
153
+ "@swc/core-win32-arm64-msvc": "1.3.14"
160
154
  },
161
155
  "files": [
162
156
  "CHANGELOG.md",