@swc/core 1.2.246 → 1.2.249

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 +171 -0
  2. package/package.json +17 -14
package/CHANGELOG.md CHANGED
@@ -5,6 +5,177 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/minifier)** Don't drop parameters in an exported function (#5757) ([948d708](https://github.com/swc-project/swc/commit/948d7081447c50bc78764f5fe88ec6055ebbcc9c))
9
+
10
+
11
+ - **(es/minifier)** Fix analysis of assignments and classes (#5770) ([90852f5](https://github.com/swc-project/swc/commit/90852f5aa60ba5584729f1cd7284f136a9e00794))
12
+
13
+
14
+ - **(es/minifier)** Fix calculation of character frequency (#5772) ([32a73fb](https://github.com/swc-project/swc/commit/32a73fbf225c416771150add1c4040f6fbe71aaf))
15
+
16
+ ### Features
17
+
18
+
19
+
20
+ - **(es/lexer)** Recover from git merge conflict (#5775) ([7deadd8](https://github.com/swc-project/swc/commit/7deadd86679f820c113d92fe8b034086be2736ff))
21
+
22
+
23
+ - **(es/minifier)** Align name mangler with terser (#5763) ([60ce462](https://github.com/swc-project/swc/commit/60ce46221529f70ccee98f808f532410724ed66b))
24
+
25
+
26
+ - **(es/minifier)** Change order of renaming to align with terser (#5780) ([24b60d2](https://github.com/swc-project/swc/commit/24b60d2b64efad49d101fc8a4f23f04050b0ab9a))
27
+
28
+ ### Miscellaneous Tasks
29
+
30
+
31
+
32
+ - **(ci)** Cleanup CI config (#5769) ([1e8a58d](https://github.com/swc-project/swc/commit/1e8a58da4d6d3ca2bfc6843eb4412245d1154682))
33
+
34
+
35
+ - **(es/minifier)** Fix size calculator script (#5767) ([9d29abc](https://github.com/swc-project/swc/commit/9d29abcd5b9ab08fb3eed4d685806a6b0dac9d95))
36
+
37
+
38
+ - **(html/parser)** Typo (#5778) ([1b200a0](https://github.com/swc-project/swc/commit/1b200a0582f77aaca9abcbd4d693be13e172b9ec))- **general**: Typo (#5758) ([15e2357](https://github.com/swc-project/swc/commit/15e2357d1d7086f3a48def71c38acb7052f8d742))
39
+
40
+ ### Performance
41
+
42
+
43
+
44
+ - **(es/minifier)** Make `MultiReplacer` single-pass (#5761) ([27e9254](https://github.com/swc-project/swc/commit/27e92542808048a12985ce15ee6ee65d44d5ac6c))
45
+
46
+
47
+ - **(es/minifier)** Make passes more parallel (#5773) ([c2d1050](https://github.com/swc-project/swc/commit/c2d10503db724e1b2349d5df9211489c1aa9507a))
48
+
49
+
50
+ - **(es/parser)** Operate on `u8` (#5774) ([c10d557](https://github.com/swc-project/swc/commit/c10d55780e10a75ff0fcd0da87d1e7337fbe10bd))
51
+
52
+ ### Testing
53
+
54
+
55
+
56
+ - **(es/plugin)** Add E2E test for the published plugins (#5771) ([81ab8a2](https://github.com/swc-project/swc/commit/81ab8a29e36787feef3c23c1685ece1f0c82417e))
57
+
58
+
59
+ - **(es/tsc)** Handle tsx (#5764) ([52f6ca5](https://github.com/swc-project/swc/commit/52f6ca5fb826b9952b32946379cd696afb58867b))
60
+
61
+ ## [1.2.248] - 2022-09-06
62
+
63
+ ### Bug Fixes
64
+
65
+
66
+
67
+ - **(es/parser)** Fix detection of wrong delete targets (#5754) ([9fc6eda](https://github.com/swc-project/swc/commit/9fc6eda89a3f9e613468276eea50f90917fa0f91))
68
+
69
+
70
+ - **(swc_core)** Update deps (#5746) ([83dbe6c](https://github.com/swc-project/swc/commit/83dbe6cdc3252af50954938582379268a375e6b6))
71
+
72
+ ### Miscellaneous Tasks
73
+
74
+
75
+
76
+ - **(es/minifier)** Fix example (#5739) ([4e98980](https://github.com/swc-project/swc/commit/4e989807d71aa9a6c019c6a5a01acbbee9ec6020))
77
+
78
+
79
+ - **(swc_core)** Update deps (#5748) ([1202762](https://github.com/swc-project/swc/commit/1202762f30db43c972c1367f85e30e69baaf0c59))- **general**: Fix publish action ([f59d44e](https://github.com/swc-project/swc/commit/f59d44e295ea5b1f5f4b06240921bf4342d51686))
80
+
81
+ ### Performance
82
+
83
+
84
+
85
+ - **(bindings)** Enable LTO (#5740) ([49e0c71](https://github.com/swc-project/swc/commit/49e0c71cba9291ea313deffc891d9db8c9216627))
86
+
87
+
88
+ - **(es/minifier)** Make passes more parallel (#5741) ([2baa640](https://github.com/swc-project/swc/commit/2baa640e98bd8bac2995157c42ff6489b73d85cf))
89
+
90
+
91
+ - **(es/minifier)** Pre-allocate in analyzer (#5743) ([96b2e17](https://github.com/swc-project/swc/commit/96b2e17a8fdb5e500eb1e6a10ffa16d4d0c98957))
92
+
93
+
94
+ - **(es/minifier)** Use efficient logic for entry tracking in DCE (#5749) ([08b2aea](https://github.com/swc-project/swc/commit/08b2aea2b0d1d0bec707394d9f5cf6d2713431a9))
95
+
96
+
97
+ - **(es/minifier)** Cache the list of bindings for DCE (#5750) ([8789184](https://github.com/swc-project/swc/commit/8789184d447eb09e1b0dddc6156ac150d4cbf0d7))
98
+
99
+
100
+ - **(es/minifier)** Improve codegen of name mangler (#5751) ([6e2002a](https://github.com/swc-project/swc/commit/6e2002a148f6d0660b17c4e617049972ee0fb3bf))
101
+
102
+ ### Refactor
103
+
104
+
105
+
106
+ - **(es/utils)** Move utilities for parallel processing (#5742) ([64f42be](https://github.com/swc-project/swc/commit/64f42bec27c4c7cf60cb6d6043fec93e479fb9b8))
107
+
108
+ ## [1.2.247] - 2022-09-04
109
+
110
+ ### Bug Fixes
111
+
112
+
113
+
114
+ - **(bundler)** Handle star export with top-level `await` (#5707) ([2b7cba8](https://github.com/swc-project/swc/commit/2b7cba8a97b971a00f4e851365462ba6d87e5ee0))
115
+
116
+
117
+ - **(es/lexer)** Drop `ClassExpr` context in object properties (#5729) ([a3a7277](https://github.com/swc-project/swc/commit/a3a72779096b4f0afbbe94320e53feb48e7fe45d))
118
+
119
+
120
+ - **(es/parser)** Improve error message (#5719) ([383aa85](https://github.com/swc-project/swc/commit/383aa8510c629d909f9ef50f190915660b273706))
121
+
122
+
123
+ - **(swc_core)** Fix reexport of ES transforms (#5716) ([9bef836](https://github.com/swc-project/swc/commit/9bef83681ff790b81effae61c45399608b1507cf))
124
+
125
+
126
+ - **(swc_core)** Bump `swc_ecma_quote_macros` (#5723) ([9c43713](https://github.com/swc-project/swc/commit/9c43713109a070e23bb8ed655f149b49de6cf321))
127
+
128
+ ### Features
129
+
130
+
131
+
132
+ - **(atoms)** Introduce bytecheck-ed rkyv version (#5686) ([d6e67b5](https://github.com/swc-project/swc/commit/d6e67b5944131e429d341f565c52fc3237a81bb7))
133
+
134
+
135
+ - **(es/minifier)** Relax function inline requirement (#5607) ([4ef99f3](https://github.com/swc-project/swc/commit/4ef99f346b9e7e4dfd1f42e7308c6b6e1142e311))
136
+
137
+
138
+ - **(es/minifier)** Make DCE single-pass (#5699) ([8827c38](https://github.com/swc-project/swc/commit/8827c38faf527e3f0485d2537dc1515df12f889c))
139
+
140
+
141
+ - **(es/minifier)** Support cycles in DCE (#5715) ([5e151c8](https://github.com/swc-project/swc/commit/5e151c8a8e48eae6cd93d5166fcaa87b84f4a341))
142
+
143
+
144
+ - **(es/minifier)** Relax requirement for IIFE invokation (#5721) ([5b2d024](https://github.com/swc-project/swc/commit/5b2d024788008436c7500ef243641db87e2c11f8))
145
+
146
+ ### Performance
147
+
148
+
149
+
150
+ - **(es/minifier)** Use faster hash algorithm for DCE (#5725) ([25c96b4](https://github.com/swc-project/swc/commit/25c96b4b7aa9a75892b1ae49a65e836229465195))
151
+
152
+
153
+ - **(es/minifier)** Optimize precompress optimizer (#5727) ([31c516a](https://github.com/swc-project/swc/commit/31c516a9228ebe304cd461f7e139f13a8519b43c))
154
+
155
+
156
+ - **(es/minifier)** Skip useless analysis if not required (#5733) ([8963db0](https://github.com/swc-project/swc/commit/8963db0a1d46184a7e0f8ea0663cbe8a2972418a))
157
+
158
+
159
+ - **(es/minifier)** Make rename operator parallel (#5732) ([5936bd2](https://github.com/swc-project/swc/commit/5936bd2b5e6034de09ebcf13543861f8cd53a581))
160
+
161
+
162
+ - **(es/minifier)** Make dead branch remover parallel (#5734) ([6ba6da6](https://github.com/swc-project/swc/commit/6ba6da62d72edf69d699e2c031aa38c630e00e39))
163
+
164
+ ### Refactor
165
+
166
+
167
+
168
+ - **(swc_core)** Use namespace `ecma` (#5713) ([975cbfe](https://github.com/swc-project/swc/commit/975cbfe0d9d1399c543df5041a6775514a3c43ee))
169
+
170
+
171
+ - **(swc_core)** Directly export `swc_ecma_transforms_base` (#5731) ([aad50dc](https://github.com/swc-project/swc/commit/aad50dcc6e890fdd26a7b3208ebc81e4d4fe2975))
172
+
173
+ ## [1.2.246] - 2022-09-01
174
+
175
+ ### Bug Fixes
176
+
177
+
178
+
8
179
  - **(es/compat)** Handle `yield` in block scoping pass (#5668) ([4820f0c](https://github.com/swc-project/swc/commit/4820f0cbcc2a732a94e87cbfecfb74524ae13ee4))
9
180
 
10
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.246",
3
+ "version": "1.2.249",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -98,9 +98,11 @@
98
98
  "@napi-rs/cli": "^2.10.0",
99
99
  "@swc/core": "^1.2.220",
100
100
  "@swc/helpers": "^0.4.2",
101
+ "@swc/plugin-jest": "^1.2.12",
101
102
  "@taplo/cli": "^0.3.2",
102
103
  "@types/jest": "^28.1.4",
103
104
  "@types/node": "^14.14.41",
105
+ "@types/terser": "^3.12.0",
104
106
  "acorn": "^8.6.0",
105
107
  "acorn-jsx": "^5.3.2",
106
108
  "axios": "^0.21.1",
@@ -129,6 +131,7 @@
129
131
  "source-map": "^0.7.3",
130
132
  "source-map-support": "^0.5.19",
131
133
  "sourcemap-validator": "^2.1.0",
134
+ "swc-plugin-coverage-instrument": "^0.0.12",
132
135
  "terser": "^5.7.1",
133
136
  "ts-node": "^10.5.0",
134
137
  "typescript": "^4.5.2"
@@ -138,19 +141,19 @@
138
141
  "url": "https://opencollective.com/swc"
139
142
  },
140
143
  "optionalDependencies": {
141
- "@swc/core-win32-x64-msvc": "1.2.246",
142
- "@swc/core-darwin-x64": "1.2.246",
143
- "@swc/core-linux-x64-gnu": "1.2.246",
144
- "@swc/core-linux-x64-musl": "1.2.246",
145
- "@swc/core-freebsd-x64": "1.2.246",
146
- "@swc/core-win32-ia32-msvc": "1.2.246",
147
- "@swc/core-linux-arm64-gnu": "1.2.246",
148
- "@swc/core-linux-arm-gnueabihf": "1.2.246",
149
- "@swc/core-darwin-arm64": "1.2.246",
150
- "@swc/core-android-arm64": "1.2.246",
151
- "@swc/core-linux-arm64-musl": "1.2.246",
152
- "@swc/core-win32-arm64-msvc": "1.2.246",
153
- "@swc/core-android-arm-eabi": "1.2.246"
144
+ "@swc/core-win32-x64-msvc": "1.2.249",
145
+ "@swc/core-darwin-x64": "1.2.249",
146
+ "@swc/core-linux-x64-gnu": "1.2.249",
147
+ "@swc/core-linux-x64-musl": "1.2.249",
148
+ "@swc/core-freebsd-x64": "1.2.249",
149
+ "@swc/core-win32-ia32-msvc": "1.2.249",
150
+ "@swc/core-linux-arm64-gnu": "1.2.249",
151
+ "@swc/core-linux-arm-gnueabihf": "1.2.249",
152
+ "@swc/core-darwin-arm64": "1.2.249",
153
+ "@swc/core-android-arm64": "1.2.249",
154
+ "@swc/core-linux-arm64-musl": "1.2.249",
155
+ "@swc/core-win32-arm64-msvc": "1.2.249",
156
+ "@swc/core-android-arm-eabi": "1.2.249"
154
157
  },
155
158
  "files": [
156
159
  "CHANGELOG.md",