@swc/core 1.3.3 → 1.3.4

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 +125 -0
  2. package/package.json +16 -15
package/CHANGELOG.md CHANGED
@@ -5,6 +5,131 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/codegen)** Align sourcemap with terser (#5657) ([2ba8815](https://github.com/swc-project/swc/commit/2ba88154fced01cb6ad0428207cf88ad7ddee75c))
9
+
10
+
11
+ - **(es/codegen)** Fix codegen of a negative number (#5980) ([bc2c0f4](https://github.com/swc-project/swc/commit/bc2c0f413396cc5ab436b1e87e5462f5c2475e4e))
12
+
13
+
14
+ - **(es/compat)** Fix the order of initialization for decorators on computed keys (#5964) ([e410102](https://github.com/swc-project/swc/commit/e41010263379fc9a7676925f089aa9913c8f0f04))
15
+
16
+
17
+ - **(es/compat)** Fix unrolling of arrays in `generator` (#5965) ([1f892cd](https://github.com/swc-project/swc/commit/1f892cd9798cadcbf7cbfa182e164a358410ee2e))
18
+
19
+
20
+ - **(es/minifier)** Fix skipping logic of sequential inliner (#5956) ([9d19742](https://github.com/swc-project/swc/commit/9d1974248dc5424ee20f7c315efadde4c696f720))
21
+
22
+
23
+ - **(es/minifier)** Fix analysis of parameters (#5954) ([33a15c8](https://github.com/swc-project/swc/commit/33a15c8d8275ea6c9d4101d7bc77ecba9f420924))
24
+
25
+
26
+ - **(es/minifier)** Fix analysis of nested function-like properties (#5963) ([0fb2c1d](https://github.com/swc-project/swc/commit/0fb2c1d5a539d656f337d0ef4c9392f01817986d))
27
+
28
+
29
+ - **(es/minifier)** Preserve exports in DCE (#5973) ([aff4ea5](https://github.com/swc-project/swc/commit/aff4ea5f4412c17c58288459a92a1d9b28ba58c4))
30
+
31
+
32
+ - **(es/minifier)** Don't panic on jsx or ts (#5984) ([0067f71](https://github.com/swc-project/swc/commit/0067f719dd0a072ef43e51698f159506287d7f35))
33
+
34
+
35
+ - **(es/minifier)** Remove print ([af8236d](https://github.com/swc-project/swc/commit/af8236d689e29980ef1bc8d7d05ed61e37649b28))
36
+
37
+
38
+ - **(es/minifier)** Remove wrong variable joiner pass (#5992) ([f8358fb](https://github.com/swc-project/swc/commit/f8358fbe2bf17de6a04870c58f58768d0966ec18))
39
+
40
+
41
+ - **(es/parser)** Allow `as` in destructuring assignment (#5948) ([cdd69d0](https://github.com/swc-project/swc/commit/cdd69d0145d22008448f394e8b39ba98291d87fe))
42
+
43
+
44
+ - **(es/resolver)** Use a separate mark for the name of `FnExpr` (#5959) ([573418f](https://github.com/swc-project/swc/commit/573418fc96edbf3f2c5e1a0c4e83a68b4c80b4e1))
45
+
46
+
47
+ - **(es/testing)** Remove cycle ([d0e2e3c](https://github.com/swc-project/swc/commit/d0e2e3c43b01c3e18b2b854213ebc8217f36c73b))
48
+
49
+ ### Features
50
+
51
+
52
+
53
+ - **(css/codegen)** Minify idents (#5972) ([b3a05a0](https://github.com/swc-project/swc/commit/b3a05a057ac39d0ceef60b4227f675a2a2c3556d))
54
+
55
+
56
+ - **(css/minifier)** Remove duplicate `@counter-style` at-rules (#5970) ([dfdad69](https://github.com/swc-project/swc/commit/dfdad69c03d13d8950e89358f6587f2bc66d5912))
57
+
58
+
59
+ - **(dbg-swc)** Add a size debugger for next.js (#5945) ([b219fa2](https://github.com/swc-project/swc/commit/b219fa2f015f39e1f3da17ade777a4bc92b6eabe))
60
+
61
+
62
+ - **(es/minifier)** Ignore more expressions in sequential inliner (#5961) ([dcd516d](https://github.com/swc-project/swc/commit/dcd516d2bd5e9fcdc11a96c014671958ddede1de))
63
+
64
+
65
+ - **(es/minifier)** Evaluate more literals in comparison (#5976) ([0e69890](https://github.com/swc-project/swc/commit/0e698907641bb74f90fa0fffd157c5fffe1298b6))
66
+
67
+
68
+ - **(es/minifier)** Ignore more return values (#5981) ([08f6e81](https://github.com/swc-project/swc/commit/08f6e81d8e9219e73ea8e312f213aa170ba7acc9))
69
+
70
+
71
+ - **(es/minifier)** Drop more variables while invoking IIFE (#5987) ([c411e5d](https://github.com/swc-project/swc/commit/c411e5d55292c83d73f821e3a1e285cf3584b668))
72
+
73
+
74
+ - **(es/minifier)** Improve fn-local analysis for better inlining (#5955) ([1a11cfd](https://github.com/swc-project/swc/commit/1a11cfd46fd8269934f33c1128e48a47d5de093e))
75
+
76
+
77
+ - **(es/minifier)** Invoke sequential inliner for inlined IIFEs (#5991) ([aeb7f30](https://github.com/swc-project/swc/commit/aeb7f300a814b6303c29eda6124cf4dd333f3936))
78
+
79
+ ### Miscellaneous Tasks
80
+
81
+
82
+
83
+ - **(ci)** Fix benchmark action (#5978) ([f7128d2](https://github.com/swc-project/swc/commit/f7128d20f08206a3d4e313af075a2cb28dfdc58b))
84
+
85
+
86
+ - **(es/transforms)** Setup parallel benchmark (#5974) ([8066d8f](https://github.com/swc-project/swc/commit/8066d8f60ece891a555a4c24d63feee85c27da92))
87
+
88
+
89
+ - **(html/minifier)** Typo (#5995) ([a716b40](https://github.com/swc-project/swc/commit/a716b40d05a57065e2f5dbaad5f6a17dceee7860))
90
+
91
+ ### Performance
92
+
93
+
94
+
95
+ - **(css/minifier)** Merge all passes (#5971) ([7d7c2d3](https://github.com/swc-project/swc/commit/7d7c2d3a9c75286a4d12d5f1d1b45501f170b512))
96
+
97
+
98
+ - **(es)** Don't share `Globals` (#5975) ([19131e1](https://github.com/swc-project/swc/commit/19131e168e65b13a4d4ddf823aec4211a2502ceb))
99
+
100
+
101
+ - **(es/minifier)** Optimize `MultiReplacer` (#5977) ([e37bb55](https://github.com/swc-project/swc/commit/e37bb551015b68b108569015a03dc00477f621ee))
102
+
103
+
104
+ - **(html/minifier)** Improve performance (#5983) ([6c08971](https://github.com/swc-project/swc/commit/6c08971a53b8ba87b920173539c1165640e7f2a3))
105
+
106
+ ### Testing
107
+
108
+
109
+
110
+ - **(es/minifier)** Categorize terser tests (#5960) ([48cddc1](https://github.com/swc-project/swc/commit/48cddc16f67ed5ac904a1e67a6ec096da5747cd2))
111
+
112
+
113
+ - **(es/minifier)** Remove mangle-only snapshots (#5979) ([8c4873f](https://github.com/swc-project/swc/commit/8c4873f81efce53356b2eccdcdc32d5df41a89b2))
114
+
115
+
116
+ - **(es/minifier)** Add tests for benchmark files (#5986) ([0cfc724](https://github.com/swc-project/swc/commit/0cfc724018374cef591694d5239c519aa97c1622))
117
+
118
+
119
+ - **(es/plugin)** Reenable compat test (#5969) ([ca38a70](https://github.com/swc-project/swc/commit/ca38a7027ead28ecb9723d7e99e9123af3c6af14))
120
+
121
+ ### Build
122
+
123
+
124
+
125
+ - **(rustc)** Update rustc (#5943) ([3c3529c](https://github.com/swc-project/swc/commit/3c3529cb84052dcde7976fed4d74d17d33317242))
126
+
127
+ ## [1.3.3] - 2022-09-23
128
+
129
+ ### Bug Fixes
130
+
131
+
132
+
8
133
  - **(cli)** Add missing comma (#5902) ([ccca6d0](https://github.com/swc-project/swc/commit/ccca6d0a8866b9e34e1778e176ed47d19e30be78))
9
134
 
10
135
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -89,6 +89,7 @@
89
89
  "devDependencies": {
90
90
  "@babel/compat-data": "^7.17.0",
91
91
  "@babel/core": "^7.13.16",
92
+ "@babel/generator": "^7.18.13",
92
93
  "@babel/plugin-proposal-class-properties": "^7.13.0",
93
94
  "@babel/plugin-proposal-decorators": "^7.13.15",
94
95
  "@babel/plugin-proposal-object-rest-spread": "^7.13.8",
@@ -133,7 +134,7 @@
133
134
  "source-map": "^0.7.3",
134
135
  "source-map-support": "^0.5.19",
135
136
  "sourcemap-validator": "^2.1.0",
136
- "swc-plugin-coverage-instrument": "^0.0.12",
137
+ "swc-plugin-coverage-instrument": "^0.0.13",
137
138
  "terser": "^5.7.1",
138
139
  "ts-node": "^10.5.0",
139
140
  "typescript": "^4.5.2"
@@ -143,19 +144,19 @@
143
144
  "url": "https://opencollective.com/swc"
144
145
  },
145
146
  "optionalDependencies": {
146
- "@swc/core-win32-x64-msvc": "1.3.3",
147
- "@swc/core-darwin-x64": "1.3.3",
148
- "@swc/core-linux-x64-gnu": "1.3.3",
149
- "@swc/core-linux-x64-musl": "1.3.3",
150
- "@swc/core-freebsd-x64": "1.3.3",
151
- "@swc/core-win32-ia32-msvc": "1.3.3",
152
- "@swc/core-linux-arm64-gnu": "1.3.3",
153
- "@swc/core-linux-arm-gnueabihf": "1.3.3",
154
- "@swc/core-darwin-arm64": "1.3.3",
155
- "@swc/core-android-arm64": "1.3.3",
156
- "@swc/core-linux-arm64-musl": "1.3.3",
157
- "@swc/core-win32-arm64-msvc": "1.3.3",
158
- "@swc/core-android-arm-eabi": "1.3.3"
147
+ "@swc/core-win32-x64-msvc": "1.3.4",
148
+ "@swc/core-darwin-x64": "1.3.4",
149
+ "@swc/core-linux-x64-gnu": "1.3.4",
150
+ "@swc/core-linux-x64-musl": "1.3.4",
151
+ "@swc/core-freebsd-x64": "1.3.4",
152
+ "@swc/core-win32-ia32-msvc": "1.3.4",
153
+ "@swc/core-linux-arm64-gnu": "1.3.4",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.4",
155
+ "@swc/core-darwin-arm64": "1.3.4",
156
+ "@swc/core-android-arm64": "1.3.4",
157
+ "@swc/core-linux-arm64-musl": "1.3.4",
158
+ "@swc/core-win32-arm64-msvc": "1.3.4",
159
+ "@swc/core-android-arm-eabi": "1.3.4"
159
160
  },
160
161
  "files": [
161
162
  "CHANGELOG.md",