@swc/core 1.3.13 → 1.3.15

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 +118 -4
  2. package/package.json +13 -19
package/CHANGELOG.md CHANGED
@@ -5,15 +5,114 @@
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))
8
+ - **(css/parser)** Fix parsing of `supports()` (#6333) ([f483224](https://github.com/swc-project/swc/commit/f4832247bc5a831658d8a6c15678eaf6412fa0c1))
9
9
 
10
10
 
11
- - **(es/helpers)** Fix `toArray` (#6318) ([e34c25e](https://github.com/swc-project/swc/commit/e34c25e40dc9f4998b31eed6b2a1efc43b87b205))
11
+ - **(css/parser)** Fix parsing of `<general-enclosed>` (#6380) ([d18eaf1](https://github.com/swc-project/swc/commit/d18eaf169858705975f3954e89177532ff39b125))
12
12
 
13
13
 
14
- - **(es/resolver)** Change order for switch cases (#6317) ([2737aea](https://github.com/swc-project/swc/commit/2737aea312e0b182413401d34e5ce1614a7bd6df))
14
+ - **(es)** Use `unresolved_mark` for preset-env (#6386) ([156f370](https://github.com/swc-project/swc/commit/156f370af935f563129fa9952fa2f8c3a865e5de))
15
+
16
+
17
+ - **(es/compat)** Fix chained op-assignment of super properties (#6319) ([064baa3](https://github.com/swc-project/swc/commit/064baa3052425dca7db869195252acee0f1350b6))
18
+
19
+
20
+ - **(es/compat)** Handle super access in a private static property (#6361) ([6cc9e90](https://github.com/swc-project/swc/commit/6cc9e90ef4eaa658919237fb183ee3bbce286968))
21
+
22
+
23
+ - **(es/compat)** Handle a nullish coalescing in a switch case (#6363) ([2de45fb](https://github.com/swc-project/swc/commit/2de45fb0f7f0afbf2a15a6a27776a43faacebffc))
24
+
25
+
26
+ - **(es/compat)** Fix `this` in computed class method names (#6364) ([9820122](https://github.com/swc-project/swc/commit/982012289fe4e40d3404f17f55d96b1ea32c796f))
27
+
28
+
29
+ - **(es/fixer)** Handle more expressions in postfix operator (#6359) ([8123bf0](https://github.com/swc-project/swc/commit/8123bf09b58785f1e972b1e31b312a00d5535f4e))
30
+
31
+
32
+ - **(es/helpers)** Fix import `_typeof` in `__decorate` (#6377) ([25333b9](https://github.com/swc-project/swc/commit/25333b989efb86297a895fe44f4f6ddbb2357daa))
33
+
34
+
35
+ - **(es/lints)** Disallow reassignment to a class (#6362) ([3793e83](https://github.com/swc-project/swc/commit/3793e83fbb89d7710c3b85862b895ef7c78053cf))
36
+
37
+
38
+ - **(es/modules)** Preserve extensions (#6339) ([91e863c](https://github.com/swc-project/swc/commit/91e863c8dff55e8742695eb5ec4c2cbe9b667177))
39
+
40
+
41
+ - **(es/parser)** Fix parsing of `await` (#6316) ([28af15e](https://github.com/swc-project/swc/commit/28af15e4757c77e1cc9c75e99abcdad23b87da5f))
42
+
43
+
44
+ - **(es/parser)** Fix parsing of TS `satisfies` expressions (#6354) ([f6faeb3](https://github.com/swc-project/swc/commit/f6faeb3bad6c2df2007e6565e646219b778b9db6))
45
+
46
+
47
+ - **(es/plugin)** Print more details on pointer conversion failures (#6378) ([b6c1cc4](https://github.com/swc-project/swc/commit/b6c1cc49e142cba6715ac2f7099c3102ffe9273c))
48
+
49
+
50
+ - **(es/resolver)** Resolve interfaces correctly (#6387) ([6b876c4](https://github.com/swc-project/swc/commit/6b876c4c4ff618cc6652f3178284c596d24400f3))
51
+
52
+
53
+ - **(html/minifier)** Fix merging of scripts (#6393) ([a923e52](https://github.com/swc-project/swc/commit/a923e52d8fcc4b5f789be16aeb9265b23848e12b))
54
+
55
+ ### Documentation
56
+
57
+
58
+
59
+ - **(contributing)** Change feature flags for running all tests (#6396) ([6e443d4](https://github.com/swc-project/swc/commit/6e443d4409c3a5692df1698aee2412d69c3f4925))
60
+
61
+ ### Features
62
+
63
+
64
+
65
+ - **(css/parser)** Improve error recovery (#6336) ([0bc682f](https://github.com/swc-project/swc/commit/0bc682f5290cd9c9b1ad2b41ece529814e9699d0))
66
+
67
+
68
+ - **(css/parser)** Support new nesting spec (#6337) ([e0967ef](https://github.com/swc-project/swc/commit/e0967efa6eb640341e640b2703b7a96da2f5acdb))
69
+
70
+
71
+ - **(es/utils)** Use more unique names for aliases (#6399) ([574502a](https://github.com/swc-project/swc/commit/574502a81684e42e2ee60e362544d32d8ddf717d))
72
+
15
73
 
16
- ## [1.3.12] - 2022-11-02
74
+ - **(html/minifier)** Improve merging of group elements (#6349) ([34b3710](https://github.com/swc-project/swc/commit/34b3710c9ca85bf65ec3cf23d2d3ae838d218f52))
75
+
76
+
77
+ - **(swc_core)** Expose `swc_css_modules` (#6394) ([26b21b1](https://github.com/swc-project/swc/commit/26b21b1d21e1f8d538bfb3c54dd1d528d8586ad2))
78
+
79
+ ### Miscellaneous Tasks
80
+
81
+
82
+
83
+ - **(ci)** Fix CI (#6340) ([6094994](https://github.com/swc-project/swc/commit/60949946296c5f999fbbf704281e9e3bc863ce5f))
84
+
85
+ ### Performance
86
+
87
+
88
+
89
+ - **(css)** Reduce size of tokens (#6384) ([bea6cce](https://github.com/swc-project/swc/commit/bea6cce0c6442891e6cfe3df5982c13ea3dda5a3))
90
+
91
+
92
+ - **(css/ast)** Use `Atom` for `raw` values (#6401) ([ec2c021](https://github.com/swc-project/swc/commit/ec2c021255f36f94352b70070d103e320fefe29b))
93
+
94
+ ### Refactor
95
+
96
+
97
+
98
+ - **(css/parser)** Avoid unnecessary checks (#6383) ([4d49b9f](https://github.com/swc-project/swc/commit/4d49b9f61f226551d96e8e3210702366a5a1b885))
99
+
100
+
101
+ - **(css/parser)** Union input types (#6385) ([434a765](https://github.com/swc-project/swc/commit/434a7657ed7d1705c90711853b1dcdf3579528c8))
102
+
103
+
104
+ - **(css/parser)** Skip whitespaces in correct places (#6382) ([56bc6b8](https://github.com/swc-project/swc/commit/56bc6b87948a41ccf8e6e7ac2da0c19ead2b451b))
105
+
106
+
107
+ - **(css/parser)** Refactor parser (#6395) ([983ab91](https://github.com/swc-project/swc/commit/983ab9143514a08f3448062ab6b0e97dec31e679))
108
+
109
+ ### Testing
110
+
111
+
112
+
113
+ - **(es/resolver)** Add a test about hoisting of functions in a switch (#6341) ([2513862](https://github.com/swc-project/swc/commit/25138624a6ec8d55b247db8b36aa56e2a5b4f966))
114
+
115
+ ## [1.3.14] - 2022-11-03
17
116
 
18
117
  ### Bug Fixes
19
118
 
@@ -34,6 +133,12 @@
34
133
  - **(es/compat)** Fix `new.target` in a nested scope (#6296) ([aa18612](https://github.com/swc-project/swc/commit/aa18612e62eee6f0fd1977c10aa2102ce113e6e4))
35
134
 
36
135
 
136
+ - **(es/compat)** Fix destructuring of an empty array (#6314) ([3bea6f7](https://github.com/swc-project/swc/commit/3bea6f7248826a3865a2148ce65c6cbaa9d03790))
137
+
138
+
139
+ - **(es/helpers)** Fix `toArray` (#6318) ([e34c25e](https://github.com/swc-project/swc/commit/e34c25e40dc9f4998b31eed6b2a1efc43b87b205))
140
+
141
+
37
142
  - **(es/lints)** Fix `const-assign` in function expressions (#6294) ([a27392a](https://github.com/swc-project/swc/commit/a27392a251360ff1ddfab240399d5c1e317335bc))
38
143
 
39
144
 
@@ -49,6 +154,9 @@
49
154
  - **(es/minifier)** Don't drop an inlined parameter as a duplicate (#6293) ([dd797f7](https://github.com/swc-project/swc/commit/dd797f7f1590401c309efce76a86719c24cd6b2b))
50
155
 
51
156
 
157
+ - **(es/resolver)** Change order for switch cases (#6317) ([2737aea](https://github.com/swc-project/swc/commit/2737aea312e0b182413401d34e5ce1614a7bd6df))
158
+
159
+
52
160
  - **(es/typescript)** Fix stack overflow (#6250) ([28ec6e8](https://github.com/swc-project/swc/commit/28ec6e8fc70cf74722c93353c03e4fdedb21954a))
53
161
 
54
162
 
@@ -82,6 +190,12 @@
82
190
  - **(ci)** Enforce clippy for all targets (#6299) ([0967e8f](https://github.com/swc-project/swc/commit/0967e8f06d81e498de5c830b766906e5aaaff2fc))
83
191
 
84
192
 
193
+ - **(ci)** Fix publish action ([2737143](https://github.com/swc-project/swc/commit/27371431a9c4f0881beaced6c5e131af546f038d))
194
+
195
+
196
+ - **(ci)** Fix publish action ([13b4d31](https://github.com/swc-project/swc/commit/13b4d317a5fc595f7446250ca9da570e3586cff4))
197
+
198
+
85
199
  - **(common)** Switch to `new_debug_unreachable` (#6265) ([2f61332](https://github.com/swc-project/swc/commit/2f613321779cfa7a3ccb9d3fd6c7789459723f0f))
86
200
 
87
201
  ### Performance
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.13",
3
+ "version": "1.3.15",
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.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"
144
+ "@swc/core-win32-x64-msvc": "1.3.15",
145
+ "@swc/core-darwin-x64": "1.3.15",
146
+ "@swc/core-linux-x64-gnu": "1.3.15",
147
+ "@swc/core-linux-x64-musl": "1.3.15",
148
+ "@swc/core-win32-ia32-msvc": "1.3.15",
149
+ "@swc/core-linux-arm64-gnu": "1.3.15",
150
+ "@swc/core-linux-arm-gnueabihf": "1.3.15",
151
+ "@swc/core-darwin-arm64": "1.3.15",
152
+ "@swc/core-linux-arm64-musl": "1.3.15",
153
+ "@swc/core-win32-arm64-msvc": "1.3.15"
160
154
  },
161
155
  "files": [
162
156
  "CHANGELOG.md",