@swc/core 1.3.22 → 1.3.23

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 +104 -0
  2. package/package.json +11 -11
  3. package/types.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,110 @@
5
5
 
6
6
 
7
7
 
8
+ - **(css/minifier)** Fix compressions of transform functions (#6617) ([208fd55](https://github.com/swc-project/swc/commit/208fd559ba383b32c72ffdf5d8ad50cbf9679ec6))
9
+
10
+
11
+ - **(css/minifier)** Fix compression of timing functions (#6618) ([59e8bf4](https://github.com/swc-project/swc/commit/59e8bf49761c9f2434dcfb18153f93234d3d69a7))
12
+
13
+
14
+ - **(css/minifier)** Fix minification of `@supports` at-rule (#6632) ([d3fbfff](https://github.com/swc-project/swc/commit/d3fbfffb32a4bd91c5faa27e708eccb08c8189b9))
15
+
16
+
17
+ - **(es/codegen)** Don't print trailing coma for a rest argument (#6610) ([68d76af](https://github.com/swc-project/swc/commit/68d76afe5d99f834dd4578cc50bd48624f76c21d))
18
+
19
+
20
+ - **(es/codegen)** Fix codegen of TypeScript mapped types (#6621) ([5c53a74](https://github.com/swc-project/swc/commit/5c53a74f55fc9d6ba1f54f9f2ea517853fa62a74))
21
+
22
+
23
+ - **(es/fixer)** Add correct parens to `OptChainExpr` in `MemberExpr` (#6639) ([be5ea7f](https://github.com/swc-project/swc/commit/be5ea7fe170cca1532ba3d18f975d025a9fe038b))
24
+
25
+
26
+ - **(es/minifier)** Abort IIFE invoker on `eval` (#6478) ([8b2e1d1](https://github.com/swc-project/swc/commit/8b2e1d17e59eaf21d4189aa4b9d2773cb10a1ab4))
27
+
28
+
29
+ - **(es/minifier)** Abort sequential inliner on optional chaining (#6637) ([e4e4d6c](https://github.com/swc-project/swc/commit/e4e4d6cf6bbc2645272d590cd6ae83aeb5c19b1c))
30
+
31
+
32
+ - **(es/parser)** Parse types in `CallExpression` inside templates (#6611) ([c44f1d0](https://github.com/swc-project/swc/commit/c44f1d0a7fd31b6c8019e5a17b0f80dab4c9c01c))
33
+
34
+
35
+ - **(html/parser)** Fix parsing of CDATA in the svg context (#6620) ([19c2ee5](https://github.com/swc-project/swc/commit/19c2ee593d1b2c32243dbc5c099f17cea0b9ed26))
36
+
37
+
38
+ - **(node-swc)** Add missing `const_to_let` to the type (#6615) ([7e841a5](https://github.com/swc-project/swc/commit/7e841a5d3061e6ef8b48995bdcd492ffa02b3b8d))
39
+
40
+ ### Features
41
+
42
+
43
+
44
+ - **(css/compat)** Add `Compiler` (#6626) ([b3bbd74](https://github.com/swc-project/swc/commit/b3bbd742bf5a3bc51105e16cf6260b63ef9b124a))
45
+
46
+
47
+ - **(css/compat)** Support custom media queries (#6625) ([a5f7b4b](https://github.com/swc-project/swc/commit/a5f7b4b8aa48d3d920dcebf72d766b6e3f458fb7))
48
+
49
+
50
+ - **(css/compat)** Implement compat pass for media ranges (#6631) ([704b3ce](https://github.com/swc-project/swc/commit/704b3ceb9c1ceb8bafb5dd83717c182c56043198))
51
+
52
+
53
+ - **(css/compat)** Support color with hex alpha (#6643) ([fe06b80](https://github.com/swc-project/swc/commit/fe06b8061c742f0a7ec04cf3f9df6db44deb7174))
54
+
55
+
56
+ - **(css/minifier)** Support `to` and `from` with `initial` (#6613) ([cb49fa6](https://github.com/swc-project/swc/commit/cb49fa6f1ddf2ae37262769c538ef1a51adc404c))
57
+
58
+
59
+ - **(css/minifier)** Remove adjacent identical declarations (#6619) ([fb94694](https://github.com/swc-project/swc/commit/fb94694cf3d95c26cc10aa9824f58e68b73b17ca))
60
+
61
+
62
+ - **(css/prefixer)** Prefix percentage with `opacity` (#6638) ([2fee4d1](https://github.com/swc-project/swc/commit/2fee4d167ac908e04c04f65fe6e4a867a2b7d950))
63
+
64
+
65
+ - **(css/prefixer)** Support `display` (#6640) ([c8b724f](https://github.com/swc-project/swc/commit/c8b724f14db0291fb48cd3d26c925dcf5e730fb8))
66
+
67
+
68
+ - **(css/prefixer)** Support nested calc (#6645) ([5d0dc6e](https://github.com/swc-project/swc/commit/5d0dc6e7319f181e468b40dce218dc15cec8b59f))
69
+
70
+
71
+ - **(dbg-swc)** Kill `creduce` on drop (#6614) ([2bf7805](https://github.com/swc-project/swc/commit/2bf78059801d8f07bf31eab6b077d7fb723837f8))
72
+
73
+ ### Miscellaneous Tasks
74
+
75
+
76
+
77
+ - **(atoms)** Make `sort.sh` cross-platform (#6629) ([3f469ff](https://github.com/swc-project/swc/commit/3f469fff0bdd642d5ed5d3c78bfbd6a36a20dadb))
78
+
79
+
80
+ - **(ci)** Adjust upload of cli binaries (#6624) ([81b352d](https://github.com/swc-project/swc/commit/81b352d9667c8874b1d9d87a92cca5b8d4c9fd41))
81
+
82
+
83
+ - **(es/minifier)** Expose `globals_defs` pass (#6633) ([08ccb83](https://github.com/swc-project/swc/commit/08ccb8384cd186c18100338db35e99cf4de52daa))
84
+
85
+ ### Performance
86
+
87
+
88
+
89
+ - **(html/codegen)** Reduce allocations (#6622) ([bfdafdb](https://github.com/swc-project/swc/commit/bfdafdbb898aa3429172f71c8d018689133e4fd6))
90
+
91
+
92
+ - **(html/minifier)** Reduce allocations (#6623) ([7d3aa66](https://github.com/swc-project/swc/commit/7d3aa66bb8786d6d8cebcc37aa6ed4d486ec4b53))
93
+
94
+ ### Refactor
95
+
96
+
97
+
98
+ - **(dbg-swc)** Cleanup and document reducer (#6647) ([b13a079](https://github.com/swc-project/swc/commit/b13a079481802d7bc44c9b363f63c74599f11a19))
99
+
100
+ ### Testing
101
+
102
+
103
+
104
+ - **(es/minifier)** Enable size tests created from `creduce` (#6646) ([7f3e698](https://github.com/swc-project/swc/commit/7f3e6983e552bc789b7d0331335b760e6d42e51a))
105
+
106
+ ## [1.3.22] - 2022-12-09
107
+
108
+ ### Bug Fixes
109
+
110
+
111
+
8
112
  - **(common)** Fix handling of input source maps (#6561) ([4af52c7](https://github.com/swc-project/swc/commit/4af52c79aea73f2e916bd11ce089bb4a4317179c))
9
113
 
10
114
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.22",
3
+ "version": "1.3.23",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -141,16 +141,16 @@
141
141
  "url": "https://opencollective.com/swc"
142
142
  },
143
143
  "optionalDependencies": {
144
- "@swc/core-win32-x64-msvc": "1.3.22",
145
- "@swc/core-darwin-x64": "1.3.22",
146
- "@swc/core-linux-x64-gnu": "1.3.22",
147
- "@swc/core-linux-x64-musl": "1.3.22",
148
- "@swc/core-win32-ia32-msvc": "1.3.22",
149
- "@swc/core-linux-arm64-gnu": "1.3.22",
150
- "@swc/core-linux-arm-gnueabihf": "1.3.22",
151
- "@swc/core-darwin-arm64": "1.3.22",
152
- "@swc/core-linux-arm64-musl": "1.3.22",
153
- "@swc/core-win32-arm64-msvc": "1.3.22"
144
+ "@swc/core-win32-x64-msvc": "1.3.23",
145
+ "@swc/core-darwin-x64": "1.3.23",
146
+ "@swc/core-linux-x64-gnu": "1.3.23",
147
+ "@swc/core-linux-x64-musl": "1.3.23",
148
+ "@swc/core-win32-ia32-msvc": "1.3.23",
149
+ "@swc/core-linux-arm64-gnu": "1.3.23",
150
+ "@swc/core-linux-arm-gnueabihf": "1.3.23",
151
+ "@swc/core-darwin-arm64": "1.3.23",
152
+ "@swc/core-linux-arm64-musl": "1.3.23",
153
+ "@swc/core-win32-arm64-msvc": "1.3.23"
154
154
  },
155
155
  "files": [
156
156
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -199,6 +199,7 @@ export interface TerserCompressOptions {
199
199
  unsafe_regexp?: boolean;
200
200
  unsafe_undefined?: boolean;
201
201
  unused?: boolean;
202
+ const_to_let?: boolean;
202
203
  module?: boolean;
203
204
  }
204
205
  export interface TerserMangleOptions {