@swc/core 1.2.167 → 1.2.170

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 +117 -0
  2. package/package.json +14 -14
  3. package/types.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,6 +1,123 @@
1
1
  # Changelog
2
2
  ## [unreleased]
3
3
 
4
+ ### Performance
5
+
6
+
7
+
8
+ - **(es/minifier)** Fix default of `TerserCompressorOptions` (#4378) ([203dde9](https://github.com/swc-project/swc/commit/203dde9c6b83390e65444615299829f4212eac9d))
9
+
10
+ ### Testing
11
+
12
+
13
+
14
+ - **(es/minifier)** Organize tests (#4375) ([4a8b1da](https://github.com/swc-project/swc/commit/4a8b1dad1d527cbbdd95a9aabb82423772841f18))
15
+
16
+ ## [1.2.169] - 2022-04-20
17
+
18
+ ### Bug Fixes
19
+
20
+
21
+
22
+ - **(es/lexer)** Fix handling of object properties with the name `function` (#4374) ([3bdf5a8](https://github.com/swc-project/swc/commit/3bdf5a89600ecbc81be4eba162c09820a8a6550c))
23
+
24
+
25
+ - **(es/minifier)** Fix default values of `toplevel` (#4366) ([128175c](https://github.com/swc-project/swc/commit/128175c3297e036ad38e8faa68aa149a94f5ee29))
26
+
27
+
28
+ - **(es/minifier)** Apply name mangler as much as we can (#4365) ([a8ed5ba](https://github.com/swc-project/swc/commit/a8ed5ba357d735657245e5bcd266ba9bda341099))
29
+
30
+
31
+ - **(es/minifier)** Apply name mangler even more (#4368) ([4b1590e](https://github.com/swc-project/swc/commit/4b1590e72fb2dbae6af135d8c284d4c1a875045a))
32
+
33
+
34
+ - **(es/modules/cjs)** Fix order of statements (#4361) ([5c1ce0b](https://github.com/swc-project/swc/commit/5c1ce0ba051de3320e90b0992d57a965a6c2dd8a))
35
+
36
+ ### Features
37
+
38
+
39
+
40
+ - **(cli)** Support configuring output file extension (#4343) ([c4f01c6](https://github.com/swc-project/swc/commit/c4f01c6d6000890f5d3e0bb2e0e9531cff9c8c6b))
41
+
42
+
43
+ - **(es/minifier)** Implement more evaluation rules (#4356) ([e13b862](https://github.com/swc-project/swc/commit/e13b8625f2f67c98c36ac975f3739b304706201b))
44
+
45
+
46
+ - **(es/minifier)** Improve evaluation of template literals (#4359) ([2e095fa](https://github.com/swc-project/swc/commit/2e095face5b6873d50f20babca88a632e5b70d76))
47
+
48
+
49
+ - **(es/minifier)** Implement all template literal evaluation rules (#4360) ([e60ae2a](https://github.com/swc-project/swc/commit/e60ae2a486cdbe4e652f9b7f3a62b4b7dea9c4fb))
50
+
51
+
52
+ - **(plugin)** Support `lookup_char_pos` of `SourceMap` (#4364) ([f06c862](https://github.com/swc-project/swc/commit/f06c862a9ff2c6510c3b88b4d5bd4807a11b5bfb))
53
+
54
+ ### Miscellaneous Tasks
55
+
56
+
57
+
58
+ - **(es)** Rename benchmarks (#4355) ([8309440](https://github.com/swc-project/swc/commit/83094400080bef161b4b106aa3840efc7f2dfecd))
59
+
60
+
61
+ - **(es/minifier)** Setup correct benchmark (#4372) ([5d179bf](https://github.com/swc-project/swc/commit/5d179bfd7d41731a2322854c7aafc93b008eb5f8))
62
+
63
+
64
+ - **(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))
65
+
66
+ ### Performance
67
+
68
+
69
+
70
+ - **(es/minifier)** Make `base54` use stack-allocated vector (#4371) ([6300b9c](https://github.com/swc-project/swc/commit/6300b9cdb19150686bc71c08386e11d7899a0764))
71
+
72
+
73
+ - **(es/minifier)** Change default value of `passes` to `3` (#4373) ([a8eb00c](https://github.com/swc-project/swc/commit/a8eb00cc540c0bfdfc7d0b922fe34bea2cf8ef45))
74
+
75
+ ### Testing
76
+
77
+
78
+
79
+ - **(es/parser)** Add a test for a fixed issue (#4357) ([bf76175](https://github.com/swc-project/swc/commit/bf761752f1b62635e973da7fb8150ddc323dea9b))
80
+
81
+ ## [1.2.168] - 2022-04-17
82
+
83
+ ### Bug Fixes
84
+
85
+
86
+
87
+ - **(es/codegen)** Emit decorators before export (#4349) ([4953ce4](https://github.com/swc-project/swc/commit/4953ce466fcb008aa356d88489786b7bff3f2395))
88
+
89
+
90
+ - **(es/minifier)** Preserve vars in dead branches (#4345) ([5a5e41a](https://github.com/swc-project/swc/commit/5a5e41aaaa3791f76de9c73aa29c714fa097c773))
91
+
92
+ ### Features
93
+
94
+
95
+
96
+ - **(es/minifier)** `const` => `let` (#3654) ([b3b95ac](https://github.com/swc-project/swc/commit/b3b95acc75f765af433b0c7f887821403561378f))
97
+
98
+ ### Miscellaneous Tasks
99
+
100
+
101
+
102
+ - **(es/minifier)** Organize scripts (#4347) ([14c74f5](https://github.com/swc-project/swc/commit/14c74f50c0b21d65d9604b58a2ce348baeb1baa3))
103
+
104
+
105
+ - **(es/minifier)** Improve scripts (#4339) ([2563c7f](https://github.com/swc-project/swc/commit/2563c7f8ff5bb86131f642b6cca948955d795820))
106
+
107
+
108
+ - **(repo)** Make git commit faster (#4353) ([f7df3d8](https://github.com/swc-project/swc/commit/f7df3d8f24a0571b1766e6187d2305fdf566b08a))- **general**: Fix CI script ([a953455](https://github.com/swc-project/swc/commit/a953455ada2604c65493db7a04dcfbdd2ef5ca78))
109
+
110
+ ### Performance
111
+
112
+
113
+
114
+ - **(es)** Disable wrong parallelization (#4354) ([da6fa60](https://github.com/swc-project/swc/commit/da6fa602310c0a56825723d83585fb258b88c931))
115
+
116
+
117
+ - **(es/minifier)** Split frequently used functions (#4352) ([42e15ae](https://github.com/swc-project/swc/commit/42e15aedc2b7c0ccdd9d6db58cc425a1e781cdd8))
118
+
119
+ ## [1.2.167] - 2022-04-17
120
+
4
121
  ### Bug Fixes
5
122
 
6
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.167",
3
+ "version": "1.2.170",
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.167",
125
- "@swc/core-darwin-x64": "1.2.167",
126
- "@swc/core-linux-x64-gnu": "1.2.167",
127
- "@swc/core-linux-x64-musl": "1.2.167",
128
- "@swc/core-freebsd-x64": "1.2.167",
129
- "@swc/core-win32-ia32-msvc": "1.2.167",
130
- "@swc/core-linux-arm64-gnu": "1.2.167",
131
- "@swc/core-linux-arm-gnueabihf": "1.2.167",
132
- "@swc/core-darwin-arm64": "1.2.167",
133
- "@swc/core-android-arm64": "1.2.167",
134
- "@swc/core-linux-arm64-musl": "1.2.167",
135
- "@swc/core-win32-arm64-msvc": "1.2.167",
136
- "@swc/core-android-arm-eabi": "1.2.167"
124
+ "@swc/core-win32-x64-msvc": "1.2.170",
125
+ "@swc/core-darwin-x64": "1.2.170",
126
+ "@swc/core-linux-x64-gnu": "1.2.170",
127
+ "@swc/core-linux-x64-musl": "1.2.170",
128
+ "@swc/core-freebsd-x64": "1.2.170",
129
+ "@swc/core-win32-ia32-msvc": "1.2.170",
130
+ "@swc/core-linux-arm64-gnu": "1.2.170",
131
+ "@swc/core-linux-arm-gnueabihf": "1.2.170",
132
+ "@swc/core-darwin-arm64": "1.2.170",
133
+ "@swc/core-android-arm64": "1.2.170",
134
+ "@swc/core-linux-arm64-musl": "1.2.170",
135
+ "@swc/core-win32-arm64-msvc": "1.2.170",
136
+ "@swc/core-android-arm-eabi": "1.2.170"
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;