@swc/core 1.2.168 → 1.2.171

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 +126 -0
  2. package/package.json +14 -14
  3. package/types.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,132 @@
5
5
 
6
6
 
7
7
 
8
+ - **(common)** Ignore extraneous mapping of 1, 0 => 0, 0 (#4381) ([a06c559](https://github.com/swc-project/swc/commit/a06c55930f64a158b289c790ac9f7f71de78838a))
9
+
10
+
11
+ - **(es)** Fix CI (#4385) ([805238a](https://github.com/swc-project/swc/commit/805238ae303b9c3e688c729b6863e0d5745f1949))
12
+
13
+
14
+ - **(es/codegen)** Allow non-ascii character in more places (#4394) ([139ac24](https://github.com/swc-project/swc/commit/139ac24c4636ff72f37a215a578871ac2f4a9f5d))
15
+
16
+
17
+ - **(es/minifier)** Don't drop labels if required (#4370) ([922299a](https://github.com/swc-project/swc/commit/922299a4907d9ce8082c5db2a9dc435abe507ca6))
18
+
19
+
20
+ - **(es/minifier)** Preserve more labels (#4380) ([87859e3](https://github.com/swc-project/swc/commit/87859e373dd42857a52e5552a49e063c649b4607))
21
+
22
+
23
+ - **(es/minifier)** Disable `conditionals` by default (#4391) ([375cc59](https://github.com/swc-project/swc/commit/375cc5975afffae27a9a7d5f1403ffd1328fdda1))
24
+
25
+
26
+ - **(plugin)** Align deps to fix build (#4377) ([8419b60](https://github.com/swc-project/swc/commit/8419b604300695e57cb6b1191e9daf638c65c828))
27
+
28
+
29
+ - **(plugin)** Align deps for the plugin (#4384) ([46e88a3](https://github.com/swc-project/swc/commit/46e88a303fd62378139c112839006364bcc8726c))
30
+
31
+ ### Features
32
+
33
+
34
+
35
+ - **(es/minifier)** Improve handling of switches (#4260) ([8cf3ddd](https://github.com/swc-project/swc/commit/8cf3ddda6cd41d9dd0eddab9bd6e869753e1f0f8))
36
+
37
+
38
+ - **(es/parser)** Reject await expr with `**` (#4395) ([59f63da](https://github.com/swc-project/swc/commit/59f63da560bc686eb658a091e363a1956da0daf3))
39
+
40
+ ### Miscellaneous Tasks
41
+ - **general**: Fix wasm publish script ([234e380](https://github.com/swc-project/swc/commit/234e38058071f1d91e899ba7d16f37f3e3a69334))- **general**: Fix CI ([11012d0](https://github.com/swc-project/swc/commit/11012d07e56895369f016eb7e6c7cc9261398250))- **general**: Fix CI, really ([000e31b](https://github.com/swc-project/swc/commit/000e31b3cdd44430e6fc9957bb496577294ac218))
42
+
43
+ ### Testing
44
+
45
+
46
+
47
+ - **(es/parser)** Add a test for a fixed issue (#4388) ([b9cba1a](https://github.com/swc-project/swc/commit/b9cba1ad4dc90090fe42755ad479fefd5ee8b17c))
48
+
49
+ ## [1.2.170] - 2022-04-20
50
+
51
+ ### Performance
52
+
53
+
54
+
55
+ - **(es/minifier)** Fix default of `TerserCompressorOptions` (#4378) ([203dde9](https://github.com/swc-project/swc/commit/203dde9c6b83390e65444615299829f4212eac9d))
56
+
57
+ ### Testing
58
+
59
+
60
+
61
+ - **(es/minifier)** Organize tests (#4375) ([4a8b1da](https://github.com/swc-project/swc/commit/4a8b1dad1d527cbbdd95a9aabb82423772841f18))
62
+
63
+ ## [1.2.169] - 2022-04-20
64
+
65
+ ### Bug Fixes
66
+
67
+
68
+
69
+ - **(es/lexer)** Fix handling of object properties with the name `function` (#4374) ([3bdf5a8](https://github.com/swc-project/swc/commit/3bdf5a89600ecbc81be4eba162c09820a8a6550c))
70
+
71
+
72
+ - **(es/minifier)** Fix default values of `toplevel` (#4366) ([128175c](https://github.com/swc-project/swc/commit/128175c3297e036ad38e8faa68aa149a94f5ee29))
73
+
74
+
75
+ - **(es/minifier)** Apply name mangler as much as we can (#4365) ([a8ed5ba](https://github.com/swc-project/swc/commit/a8ed5ba357d735657245e5bcd266ba9bda341099))
76
+
77
+
78
+ - **(es/minifier)** Apply name mangler even more (#4368) ([4b1590e](https://github.com/swc-project/swc/commit/4b1590e72fb2dbae6af135d8c284d4c1a875045a))
79
+
80
+
81
+ - **(es/modules/cjs)** Fix order of statements (#4361) ([5c1ce0b](https://github.com/swc-project/swc/commit/5c1ce0ba051de3320e90b0992d57a965a6c2dd8a))
82
+
83
+ ### Features
84
+
85
+
86
+
87
+ - **(cli)** Support configuring output file extension (#4343) ([c4f01c6](https://github.com/swc-project/swc/commit/c4f01c6d6000890f5d3e0bb2e0e9531cff9c8c6b))
88
+
89
+
90
+ - **(es/minifier)** Implement more evaluation rules (#4356) ([e13b862](https://github.com/swc-project/swc/commit/e13b8625f2f67c98c36ac975f3739b304706201b))
91
+
92
+
93
+ - **(es/minifier)** Improve evaluation of template literals (#4359) ([2e095fa](https://github.com/swc-project/swc/commit/2e095face5b6873d50f20babca88a632e5b70d76))
94
+
95
+
96
+ - **(es/minifier)** Implement all template literal evaluation rules (#4360) ([e60ae2a](https://github.com/swc-project/swc/commit/e60ae2a486cdbe4e652f9b7f3a62b4b7dea9c4fb))
97
+
98
+
99
+ - **(plugin)** Support `lookup_char_pos` of `SourceMap` (#4364) ([f06c862](https://github.com/swc-project/swc/commit/f06c862a9ff2c6510c3b88b4d5bd4807a11b5bfb))
100
+
101
+ ### Miscellaneous Tasks
102
+
103
+
104
+
105
+ - **(es)** Rename benchmarks (#4355) ([8309440](https://github.com/swc-project/swc/commit/83094400080bef161b4b106aa3840efc7f2dfecd))
106
+
107
+
108
+ - **(es/minifier)** Setup correct benchmark (#4372) ([5d179bf](https://github.com/swc-project/swc/commit/5d179bfd7d41731a2322854c7aafc93b008eb5f8))
109
+
110
+
111
+ - **(node/types)** Add `unsafe` to compress options (#4362) ([b63cd53](https://github.com/swc-project/swc/commit/b63cd53ca6cb230f7724a03ffaebe2362c80d35b))- **general**: Remove an incorrect link in `CONTRIBUTING.md` (#4363) ([c661d5f](https://github.com/swc-project/swc/commit/c661d5f6f6b613cfed22545cc7cde7411dbd5747))
112
+
113
+ ### Performance
114
+
115
+
116
+
117
+ - **(es/minifier)** Make `base54` use stack-allocated vector (#4371) ([6300b9c](https://github.com/swc-project/swc/commit/6300b9cdb19150686bc71c08386e11d7899a0764))
118
+
119
+
120
+ - **(es/minifier)** Change default value of `passes` to `3` (#4373) ([a8eb00c](https://github.com/swc-project/swc/commit/a8eb00cc540c0bfdfc7d0b922fe34bea2cf8ef45))
121
+
122
+ ### Testing
123
+
124
+
125
+
126
+ - **(es/parser)** Add a test for a fixed issue (#4357) ([bf76175](https://github.com/swc-project/swc/commit/bf761752f1b62635e973da7fb8150ddc323dea9b))
127
+
128
+ ## [1.2.168] - 2022-04-17
129
+
130
+ ### Bug Fixes
131
+
132
+
133
+
8
134
  - **(es/codegen)** Emit decorators before export (#4349) ([4953ce4](https://github.com/swc-project/swc/commit/4953ce466fcb008aa356d88489786b7bff3f2395))
9
135
 
10
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.168",
3
+ "version": "1.2.171",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -121,18 +121,18 @@
121
121
  "url": "https://opencollective.com/swc"
122
122
  },
123
123
  "optionalDependencies": {
124
- "@swc/core-win32-x64-msvc": "1.2.168",
125
- "@swc/core-darwin-x64": "1.2.168",
126
- "@swc/core-linux-x64-gnu": "1.2.168",
127
- "@swc/core-linux-x64-musl": "1.2.168",
128
- "@swc/core-freebsd-x64": "1.2.168",
129
- "@swc/core-win32-ia32-msvc": "1.2.168",
130
- "@swc/core-linux-arm64-gnu": "1.2.168",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.168",
132
- "@swc/core-darwin-arm64": "1.2.168",
133
- "@swc/core-android-arm64": "1.2.168",
134
- "@swc/core-linux-arm64-musl": "1.2.168",
135
- "@swc/core-win32-arm64-msvc": "1.2.168",
136
- "@swc/core-android-arm-eabi": "1.2.168"
124
+ "@swc/core-win32-x64-msvc": "1.2.171",
125
+ "@swc/core-darwin-x64": "1.2.171",
126
+ "@swc/core-linux-x64-gnu": "1.2.171",
127
+ "@swc/core-linux-x64-musl": "1.2.171",
128
+ "@swc/core-freebsd-x64": "1.2.171",
129
+ "@swc/core-win32-ia32-msvc": "1.2.171",
130
+ "@swc/core-linux-arm64-gnu": "1.2.171",
131
+ "@swc/core-linux-arm-gnueabihf": "1.2.171",
132
+ "@swc/core-darwin-arm64": "1.2.171",
133
+ "@swc/core-android-arm64": "1.2.171",
134
+ "@swc/core-linux-arm64-musl": "1.2.171",
135
+ "@swc/core-win32-arm64-msvc": "1.2.171",
136
+ "@swc/core-android-arm-eabi": "1.2.171"
137
137
  }
138
138
  }
package/types.d.ts CHANGED
@@ -66,6 +66,7 @@ export interface TerserCompressOptions {
66
66
  top_retain?: any;
67
67
  toplevel?: any;
68
68
  typeofs?: boolean;
69
+ unsafe?: boolean;
69
70
  unsafe_passes?: boolean;
70
71
  unsafe_arrows?: boolean;
71
72
  unsafe_comps?: boolean;