@swc/core 1.2.160 → 1.2.161
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.
- package/CHANGELOG.md +119 -0
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,125 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
- **(cli)** Fix executable permission (#4154) ([e1d1d82](https://github.com/swc-project/swc/commit/e1d1d82fdb6504f3d6d53a0a8dbc3f3ec3eead70))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es)** Make `ErrorConfig.filename` default to true (#4150) ([7a1dcb1](https://github.com/swc-project/swc/commit/7a1dcb1b933308fe237f992ff38650c15875c4c5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es)** Consume surrogate pairs (#4115) ([fcf67c4](https://github.com/swc-project/swc/commit/fcf67c45706419127bd5cb3f5a4e65ef08bd9ba6))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/codegen)** Fix codegen of template literals (#4124) ([f5a5217](https://github.com/swc-project/swc/commit/f5a5217506dd18b4ad49920d2e82026eb85dfd73))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/codegen)** Emit sourcemap of key-value properties correctly (#4166) ([ea0de90](https://github.com/swc-project/swc/commit/ea0de9013768bac03d60beb984aa177e0d943694))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/lints)** Ignore type-only imports while checking duplicates (#4163) ([fce554c](https://github.com/swc-project/swc/commit/fce554cfb02d034942ab64114ea212020c51e570))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/parser)** Allow arrows without parenthesized param in typescript (#4138) ([ab4ea9f](https://github.com/swc-project/swc/commit/ab4ea9f0cb202d79b3713b9418271b19a64dd23a))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/parser)** Fix logic for consuming ts modifiers (#4137) ([f5ce79a](https://github.com/swc-project/swc/commit/f5ce79a72c947e255830281151c4f7fe14baa45b))
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(cli)** Implements some compile flags (#4125) ([a6f39d3](https://github.com/swc-project/swc/commit/a6f39d3bd6e7bc57203e1cf4f2cadc12e4396e9f))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(css/minifier)** Compress more properties (#4130) ([93866d0](https://github.com/swc-project/swc/commit/93866d0be5cf08a1c0a78c3a8c6b907a31525926))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
- **(css/minifier)** Remove `@charset` at-rule if possible (#4135) ([6b6664a](https://github.com/swc-project/swc/commit/6b6664a92df62338c1152fbe9baa5227eb3075a4))
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(css/minifier)** Compress more properties (#4155) ([364ebd9](https://github.com/swc-project/swc/commit/364ebd951a49c5dcc2f8b04b1b9521422ad772fc))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/prefixer)** Prefix more properties (#4153) ([46c35da](https://github.com/swc-project/swc/commit/46c35dab25f9e54c8c25e5176cd127ad2f91b380))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(es/codegen)** Compress `\t` in string literals more (#4131) ([48f3dc8](https://github.com/swc-project/swc/commit/48f3dc8cc439fa5970b68a28c7db26cb88dacca7))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(es/lints)** Use `Str.raw` instead of source map (#4139) ([d8a988e](https://github.com/swc-project/swc/commit/d8a988ef3d5dfba839af0866ead73faf54f205dc))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/lints)** Improve error messages (#4142) ([0f92eda](https://github.com/swc-project/swc/commit/0f92eda0c78277d3de83ae85cf8a5c04e9c437bf))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(es/lints)** Implement `no-param-reassign` rule (#4134) ([47712de](https://github.com/swc-project/swc/commit/47712de0da0a923dfebe52ebd98070924303f4d0))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/lints)** Remove source map accesses (#4147) ([7a06c5b](https://github.com/swc-project/swc/commit/7a06c5b3d888418098dfe55d030645087e11b5e8))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(es/lints)** Implement `symbol-description` rule (#4161) ([10851ec](https://github.com/swc-project/swc/commit/10851ece981b7d71bf33b5f9a5391b59d4841b57))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(es/lints)** Implement `no-obj-calls` rule (#4168) ([a88d56e](https://github.com/swc-project/swc/commit/a88d56ee08c29b1f9f4cf5028fe2113d15b2efcf))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **(es/minifier)** Implement some unsafe evaluation rules (#4133) ([1d3763d](https://github.com/swc-project/swc/commit/1d3763d96c94638bb0828110cc90bd123f96e327))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/minifier)** Implement more rules for optimizing for-if-break (#4140) ([ee5c48c](https://github.com/swc-project/swc/commit/ee5c48c935b3cd8fa237680dd02f6bcb4faf8a82))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(es/minifier)** Implement rules for optimizing loops (#4157) ([b37dafb](https://github.com/swc-project/swc/commit/b37dafbd2789ee8e5194ef2593c460f056c2b70f))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(es/minifier)** Implement more rules for dropping unused assignemnts (#4171) ([6f25e57](https://github.com/swc-project/swc/commit/6f25e5774b3ac228b64da47cb370053ed1511b86))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- **(es/parser)** Report more errors for invalid patterns (#4145) ([cd7112b](https://github.com/swc-project/swc/commit/cd7112b18bcc98b704846adbd32c1d63557dcffe))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **(es/plugin)** Make `quote` optional (#4160) ([5de3141](https://github.com/swc-project/swc/commit/5de31416be579a4257789d0ad927db15eec9a73c))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(es/typescript)** Support optional variance annotations (#4008) ([bf1924d](https://github.com/swc-project/swc/commit/bf1924d1a8cc2039b624eecd9730d012c1e47321))
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
- **(plugin/runner)** Implement initial loading for wasm32 (#4151) ([161353c](https://github.com/swc-project/swc/commit/161353cf25c32777cc8fff971b978b1424235cda))
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(wasm/plugin)** Implement initial plugin interface for wasm runtimes (#4123) ([50f7f46](https://github.com/swc-project/swc/commit/50f7f465f9181ef6bcb63ee5457aa42f5e6ee29c))
|
|
96
|
+
|
|
97
|
+
### Miscellaneous Tasks
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **(deps)** Update `string-cache` (#4169) ([b473414](https://github.com/swc-project/swc/commit/b473414b3cbc5b66ae362f0ad670430be5a7d451))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
- **(es/minifier)** Add logging (#4156) ([97dfcb9](https://github.com/swc-project/swc/commit/97dfcb9ccb39620576d6e63c195ec588ff4c5790))
|
|
105
|
+
|
|
106
|
+
### Refactor
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
- **(css/prefixer)** Rename crate (#4159) ([7817547](https://github.com/swc-project/swc/commit/78175473fa10cb5298b226c083da0efab38db997))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
- **(es/lints)** Use util for parens (#4167) ([2a9cb2d](https://github.com/swc-project/swc/commit/2a9cb2d12ac0957c0d1ae0f64d2b2f8dc72de12a))
|
|
114
|
+
|
|
115
|
+
### Testing
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
- **(es)** Organize tests (#4129) ([ede6e02](https://github.com/swc-project/swc/commit/ede6e027c2965478459840967713e910344b2521))
|
|
120
|
+
|
|
121
|
+
## [1.2.160] - 2022-03-22
|
|
122
|
+
|
|
123
|
+
### Bug Fixes
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
8
127
|
- **(common)** Fix the line number of errors (#4082) ([57802cf](https://github.com/swc-project/swc/commit/57802cfcce6293fb6c4591987c39c6141fdd9390))
|
|
9
128
|
|
|
10
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.161",
|
|
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.
|
|
125
|
-
"@swc/core-darwin-x64": "1.2.
|
|
126
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
127
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
128
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
129
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
130
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
131
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
132
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
133
|
-
"@swc/core-android-arm64": "1.2.
|
|
134
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
135
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
136
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
124
|
+
"@swc/core-win32-x64-msvc": "1.2.161",
|
|
125
|
+
"@swc/core-darwin-x64": "1.2.161",
|
|
126
|
+
"@swc/core-linux-x64-gnu": "1.2.161",
|
|
127
|
+
"@swc/core-linux-x64-musl": "1.2.161",
|
|
128
|
+
"@swc/core-freebsd-x64": "1.2.161",
|
|
129
|
+
"@swc/core-win32-ia32-msvc": "1.2.161",
|
|
130
|
+
"@swc/core-linux-arm64-gnu": "1.2.161",
|
|
131
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.161",
|
|
132
|
+
"@swc/core-darwin-arm64": "1.2.161",
|
|
133
|
+
"@swc/core-android-arm64": "1.2.161",
|
|
134
|
+
"@swc/core-linux-arm64-musl": "1.2.161",
|
|
135
|
+
"@swc/core-win32-arm64-msvc": "1.2.161",
|
|
136
|
+
"@swc/core-android-arm-eabi": "1.2.161"
|
|
137
137
|
}
|
|
138
138
|
}
|