@swc/core 1.2.151 → 1.2.152
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
|
@@ -1,6 +1,125 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
## [unreleased]
|
|
3
3
|
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- **(es)** Don't create `.swc` if not required (#3937) ([46e9d3f](https://github.com/swc-project/swc/commit/46e9d3f62e07b5aaeac9a9f73bb4b5573ad69b27))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/compat/es2015)** Fix span handling of `arrow` and `classes` (#3921) ([12b8606](https://github.com/swc-project/swc/commit/12b8606c99994a1ae4fc65105cd380f1a34d632e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/minifier)** Skip exported vars while collapsing vars (#3928) ([cc564ff](https://github.com/swc-project/swc/commit/cc564ff6c586db266f0ab8fcb7f25a8d32155d35))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/module)** Make exported vars follow specification (#3906) ([534fc52](https://github.com/swc-project/swc/commit/534fc52a727e5be43adfad47ed3fcdd606967c5c))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(es/module)** Fix exported vars with bigint values (#3909) ([8559fc9](https://github.com/swc-project/swc/commit/8559fc96239026d070f7fcf415e5443b096de605))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(es/module)** Use correct return values for suffix update expressions (#3927) ([dc457b4](https://github.com/swc-project/swc/commit/dc457b4883ef23815fcdff952c040e5e1e7d7897))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
- **(es/module/cjs)** Allow re-exports to be lazy (#3856) ([f575b1b](https://github.com/swc-project/swc/commit/f575b1bc4868dd46c572c3ef61767fdd2ee2c2b3))
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(es/parser)** Fix the logic for token contexts (#3926) ([4b4aef3](https://github.com/swc-project/swc/commit/4b4aef3270cac8bdd75c79af9be186bf446b23f1))
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
- **(es/transform/optimization)** Prevent inlining of vars used as RHS in logical expressions (#3907) ([782a874](https://github.com/swc-project/swc/commit/782a8746963f11a1ada446cb1f744a58f6516cf8))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
- **(es/typescript)** Remove imports used in interfaces and type signatures (#3893) ([5c92b2d](https://github.com/swc-project/swc/commit/5c92b2d4cee64686d0aad788b177b34cd2fd3bfc))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
- **(wasm)** Fix handling of `swc_common::GLOBALS` (#3936) ([45a4374](https://github.com/swc-project/swc/commit/45a4374ee19154238eb24952cffbd9e134831c8b))
|
|
39
|
+
|
|
40
|
+
### Features
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
- **(common)** Align `stable_hasher` to latest rustc (#3895) ([372f298](https://github.com/swc-project/swc/commit/372f298f5f6faae804370a3caaf8dce309fcb9f5))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(css/lints)** Implement `custom-property-no-missing-var-function` rule (#3890) ([19ececc](https://github.com/swc-project/swc/commit/19ececcd507da27993b421ae76fd0f259b516125))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(css/lints)** Implement `no-duplicate-at-import-rules` rule (#3833) ([59c84ac](https://github.com/swc-project/swc/commit/59c84ac8bdd2919bb6c8550bc5d8ec7b814f9cda))
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
- **(css/parser)** Improve error recovery (#3901) ([6f781c3](https://github.com/swc-project/swc/commit/6f781c3b43a99ce65e5680665b8101a382adb4ef))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(css/prefixer)** Implement more prefixing rules (#3905) ([b25c479](https://github.com/swc-project/swc/commit/b25c47901e69a04079cbb9ce1e76154a8affbd11))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
- **(css/prefixer)** Handle more properties (#3919) ([c2b9e1c](https://github.com/swc-project/swc/commit/c2b9e1c61aa5f72aa0738349ee330d46b9446ed6))
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(css/prefixer)** Implement more rules (#3933) ([62ab179](https://github.com/swc-project/swc/commit/62ab17999eb98312bb03f3ad2f436fbac6ae4acc))
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
- **(es/compat)** Add tracing support to remaining compat transforms (#3904) ([bd0a921](https://github.com/swc-project/swc/commit/bd0a9214c3a678a65a814517ffef6c59199ac06b))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(es/compat)** Add pure comments for class fields keys (#3939) ([112f428](https://github.com/swc-project/swc/commit/112f4287343c818c28dc9d422c3df78d9f663397))
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
- **(es/fixer)** Remove extra parens around IIFE in statements (#3918) ([7cfa930](https://github.com/swc-project/swc/commit/7cfa930a629da96b30c2d5021a51d15c0b121013))
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
- **(es/minifier)** Remove pure calls (#3925) ([bd838ac](https://github.com/swc-project/swc/commit/bd838ac5a9524c1a7f3db34c2110c6ddb9718de0))
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
- **(es/minifier)** Improve dropping of unused vars (#3923) ([9e4dea6](https://github.com/swc-project/swc/commit/9e4dea6663eaba794fb4793318865892eecce910))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
- **(es/parser)** Report errors for non-abstract members in an abstract class (#3917) ([16182d5](https://github.com/swc-project/swc/commit/16182d586f1b54e383ae83a264576267441e49ba))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
- **(es/parser)** Relax MSRV requirement (#3922) ([a8ac7e3](https://github.com/swc-project/swc/commit/a8ac7e39b0fbd3908c4b506a1739a0ddf33ac250))
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
- **(es/testing)** Print comments in `test_fixture` (#3920) ([3d43a9b](https://github.com/swc-project/swc/commit/3d43a9b69df6002786654b3c378b9d981447c126))
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
- **(preset-env)** Update `browserslist-rs` (#3935) ([aec1a54](https://github.com/swc-project/swc/commit/aec1a54204e2140511442479753b6502448f25cb))
|
|
90
|
+
|
|
91
|
+
### Performance
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
- **(*)** Update `tracing` to improve performance of disabled spans (#3932) ([86ea237](https://github.com/swc-project/swc/commit/86ea23785d911f572474d73462cc8bd9af6afaf6))
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
- **(es)** Add fast memory deallocator (#3910) ([f3da349](https://github.com/swc-project/swc/commit/f3da3499c5b2a2a58bdc85f33dd5886f49704932))
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
- **(es/minifier)** Remove needless type parameter (#3897) ([8b3aa6d](https://github.com/swc-project/swc/commit/8b3aa6d3aaf46a7bf4e8972bc867dede950196db))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
- **(es/minifier)** Make optimization of pure calls parallel (#3938) ([f1ec862](https://github.com/swc-project/swc/commit/f1ec8620ac0df2f0325bd0437227b277de099950))
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
- **(es/parser)** Improve performance by adjusting inlining (#3902) ([4387813](https://github.com/swc-project/swc/commit/43878137e71894fbb3367473317ba65de5e40616))
|
|
108
|
+
|
|
109
|
+
### Refactor
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
- **(css/parser)** Remove unused codes (#3903) ([3a9af73](https://github.com/swc-project/swc/commit/3a9af7316748641e8b59b59d014513456ecfc606))
|
|
114
|
+
|
|
115
|
+
## [1.2.151] - 2022-03-07
|
|
116
|
+
|
|
117
|
+
### Bug Fixes
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(es/module)** Revert fix for `jest.spyOn` ([8e30d83](https://github.com/swc-project/swc/commit/8e30d83d145061c9ee256e76e77e64ab0b5552ed))
|
|
122
|
+
|
|
4
123
|
### Features
|
|
5
124
|
|
|
6
125
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.152",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -107,18 +107,18 @@
|
|
|
107
107
|
"url": "https://opencollective.com/swc"
|
|
108
108
|
},
|
|
109
109
|
"optionalDependencies": {
|
|
110
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
111
|
-
"@swc/core-darwin-x64": "1.2.
|
|
112
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
113
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
114
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
115
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
116
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
117
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
118
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
119
|
-
"@swc/core-android-arm64": "1.2.
|
|
120
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
121
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
122
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
110
|
+
"@swc/core-win32-x64-msvc": "1.2.152",
|
|
111
|
+
"@swc/core-darwin-x64": "1.2.152",
|
|
112
|
+
"@swc/core-linux-x64-gnu": "1.2.152",
|
|
113
|
+
"@swc/core-linux-x64-musl": "1.2.152",
|
|
114
|
+
"@swc/core-freebsd-x64": "1.2.152",
|
|
115
|
+
"@swc/core-win32-ia32-msvc": "1.2.152",
|
|
116
|
+
"@swc/core-linux-arm64-gnu": "1.2.152",
|
|
117
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.152",
|
|
118
|
+
"@swc/core-darwin-arm64": "1.2.152",
|
|
119
|
+
"@swc/core-android-arm64": "1.2.152",
|
|
120
|
+
"@swc/core-linux-arm64-musl": "1.2.152",
|
|
121
|
+
"@swc/core-win32-arm64-msvc": "1.2.152",
|
|
122
|
+
"@swc/core-android-arm-eabi": "1.2.152"
|
|
123
123
|
}
|
|
124
124
|
}
|