@swc/core 1.2.203 → 1.2.204
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 +63 -6
- package/README.md +8 -0
- package/package.json +15 -15
package/CHANGELOG.md
CHANGED
|
@@ -5,24 +5,69 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
- **(es/
|
|
8
|
+
- **(es/helpers)** Fix `module` field in `package.json` of `@swc/helpers` (#4978) ([5123c20](https://github.com/swc-project/swc/commit/5123c20b5d765db0fa645a1d4ba2820d5eeddc9c))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
- **(es/helpers)** Use `.mjs` extension in helper imports (#4979) ([9484cf8](https://github.com/swc-project/swc/commit/9484cf81a1cef43059bea98c20a6fa8cef6802d1))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
- **(es/parser)** Fix binary operator parsed as an instantiation expression (#4992) ([36ef3e4](https://github.com/swc-project/swc/commit/36ef3e4507d949187b83c1bf7ecd6b31eef50a73))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
- **(es/resolver)** Make catch parameter not disturb resolving (#4976) ([b3f6f20](https://github.com/swc-project/swc/commit/b3f6f20721b90b03a67c1db5d9680147ffe13923))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
- **(html/codegen)** Handle optional tags (#4986) ([41dc0a7](https://github.com/swc-project/swc/commit/41dc0a7aa9c7c48dd9a47b3ac61422419c3e879e))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
- **(html/minifier)** Fix removal of comments (#4974) ([8e63b0b](https://github.com/swc-project/swc/commit/8e63b0bbd528b48122a3cef1164a512fbd4952e8))
|
|
24
|
+
|
|
25
|
+
### Documentation
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
- **(*)** Add more badges (#4982) ([cb30ba2](https://github.com/swc-project/swc/commit/cb30ba2ad4df7cd04af49f3e7ff41e2be9649dac))
|
|
9
30
|
|
|
10
31
|
### Features
|
|
11
32
|
|
|
12
33
|
|
|
13
34
|
|
|
14
|
-
- **(
|
|
35
|
+
- **(es/config)** Add `isModule` to `.swcrc` (#4993) ([e85c0db](https://github.com/swc-project/swc/commit/e85c0db92689d0eaf656ac869b6cb16ebec43b6f))
|
|
15
36
|
|
|
16
|
-
### Miscellaneous Tasks
|
|
17
37
|
|
|
38
|
+
- **(html/codegen)** Add option for tag omission of self closing void elements (#4971) ([d07ab2c](https://github.com/swc-project/swc/commit/d07ab2cb91a68ef88bd9adbdcc18217818a0c31d))
|
|
18
39
|
|
|
19
40
|
|
|
20
|
-
- **(
|
|
41
|
+
- **(html/minifier)** Compress CSS (#4973) ([3e6c0f5](https://github.com/swc-project/swc/commit/3e6c0f567a50e1b0a8ba097b3f13b866efd6ebfa))
|
|
21
42
|
|
|
22
43
|
|
|
23
|
-
- **(
|
|
44
|
+
- **(html/minifier)** Add `preserve_comments` option (#4959) ([2e52c18](https://github.com/swc-project/swc/commit/2e52c18a6b4ea4d58c219253c159af86a189ce26))
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
- **(html/minifier)** Add an option to set html5 doctype (#4980) ([fb74ace](https://github.com/swc-project/swc/commit/fb74ace19b2aa06f38ef0803bea500a8a5d8f165))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
- **(html/minifier)** Minify conditional comments (#4975) ([713a256](https://github.com/swc-project/swc/commit/713a256ed7fe9c3301d751575f298f1462434fc0))
|
|
51
|
+
|
|
52
|
+
### Performance
|
|
24
53
|
|
|
25
|
-
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
- **(es/hygiene)** Make `hygiene` faster (#4952) ([36d960c](https://github.com/swc-project/swc/commit/36d960c7e908f6924ce9b0fd23ce4cd972dbbba0))
|
|
57
|
+
|
|
58
|
+
### Refactor
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
- **(es/minifier)** Use `Program` instead of `Module` (#4969) ([99a474c](https://github.com/swc-project/swc/commit/99a474cb2d18f2741277a64b8524300d3977cc66))
|
|
63
|
+
|
|
64
|
+
### Testing
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
- **(html)** Remove files which are too large too verify (#4983) ([364a34c](https://github.com/swc-project/swc/commit/364a34cd7093a3bc7ca6e7e5cf2cba0844eba9c8))
|
|
69
|
+
|
|
70
|
+
## [1.2.203] - 2022-06-14
|
|
26
71
|
|
|
27
72
|
### Bug Fixes
|
|
28
73
|
|
|
@@ -39,6 +84,9 @@
|
|
|
39
84
|
|
|
40
85
|
- **(es/helpers)** Allow using external helpers with `type: module` (#4962) ([4a27e6f](https://github.com/swc-project/swc/commit/4a27e6f84a9a4e99d161664fa1441b1278756023))
|
|
41
86
|
|
|
87
|
+
|
|
88
|
+
- **(es/parser)** Don't assume the length of char (#4967) ([3e03ebf](https://github.com/swc-project/swc/commit/3e03ebf8bb527d3237b309c3df3a24bc9ebf7314))
|
|
89
|
+
|
|
42
90
|
### Features
|
|
43
91
|
|
|
44
92
|
|
|
@@ -49,6 +97,9 @@
|
|
|
49
97
|
- **(es/minifier)** Turn `Array`/`Object` calls into literals (#4947) ([47bdc6a](https://github.com/swc-project/swc/commit/47bdc6a6b13c5a4d6b85d4e3a0e729126c7b5f9d))
|
|
50
98
|
|
|
51
99
|
|
|
100
|
+
- **(html)** Support self-closing flag (#4950) ([5c2a918](https://github.com/swc-project/swc/commit/5c2a918946105d26d107b8bd869ee5dc76c9c04d))
|
|
101
|
+
|
|
102
|
+
|
|
52
103
|
- **(html/minifier)** Compress whitespaces (#4916) ([f2690cc](https://github.com/swc-project/swc/commit/f2690cce08bf2e922b7eb9146288ca78ad0eeed4))
|
|
53
104
|
|
|
54
105
|
|
|
@@ -63,6 +114,12 @@
|
|
|
63
114
|
|
|
64
115
|
- **(ci)** Test `concurrent` (#4955) ([1a9f935](https://github.com/swc-project/swc/commit/1a9f93546bf1c9192baa562a419648cfe5d199fc))
|
|
65
116
|
|
|
117
|
+
|
|
118
|
+
- **(ci)** Use macos for release builds (#4968) ([1bf2b80](https://github.com/swc-project/swc/commit/1bf2b80f97c736cc7aae1a9c04325044839d0a3b))
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
- **(ci)** Fix publish build on Windows (#4970) ([db9f7a5](https://github.com/swc-project/swc/commit/db9f7a5ad4d830b1b1e42e7aa09a2edc935a8ad1))
|
|
122
|
+
|
|
66
123
|
### Performance
|
|
67
124
|
|
|
68
125
|
|
package/README.md
CHANGED
|
@@ -15,11 +15,19 @@
|
|
|
15
15
|
<a href="https://crates.io/crates/swc_ecma_parser">
|
|
16
16
|
<img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
|
|
17
17
|
</a>
|
|
18
|
+
<img alt="GitHub release (latest SemVer)" src="https://img.shields.io/github/v/release/swc-project/swc">
|
|
18
19
|
</p>
|
|
20
|
+
|
|
19
21
|
<p align="center">
|
|
22
|
+
<img alt="GitHub code size in bytes" src="https://img.shields.io/github/languages/code-size/swc-project/swc">
|
|
20
23
|
<a href="https://github.com/swc-project/swc/actions/workflows/cargo.yml">
|
|
21
24
|
<img alt="CI Status" src="https://github.com/swc-project/swc/actions/workflows/cargo.yml/badge.svg?event=push">
|
|
22
25
|
</a>
|
|
26
|
+
<img alt="node-current (scoped)" src="https://img.shields.io/node/v/@swc/core">
|
|
27
|
+
</p>
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img alt="Discord" src="https://img.shields.io/discord/889779439272075314">
|
|
23
31
|
</p>
|
|
24
32
|
|
|
25
33
|
SWC (stands for `Speedy Web Compiler`) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see [rustdoc](https://rustdoc.swc.rs/swc/) and for most users, your entry point for using the library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.204",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@babel/preset-typescript": "^7.13.0",
|
|
96
96
|
"@babel/types": "^7.14.0",
|
|
97
97
|
"@napi-rs/cli": "^2.10.0",
|
|
98
|
-
"@swc/helpers": "^0.
|
|
98
|
+
"@swc/helpers": "^0.4.2",
|
|
99
99
|
"@taplo/cli": "^0.3.2",
|
|
100
100
|
"@types/jest": "^26.0.23",
|
|
101
101
|
"@types/node": "^14.14.41",
|
|
@@ -135,18 +135,18 @@
|
|
|
135
135
|
"url": "https://opencollective.com/swc"
|
|
136
136
|
},
|
|
137
137
|
"optionalDependencies": {
|
|
138
|
-
"@swc/core-win32-x64-msvc": "1.2.
|
|
139
|
-
"@swc/core-darwin-x64": "1.2.
|
|
140
|
-
"@swc/core-linux-x64-gnu": "1.2.
|
|
141
|
-
"@swc/core-linux-x64-musl": "1.2.
|
|
142
|
-
"@swc/core-freebsd-x64": "1.2.
|
|
143
|
-
"@swc/core-win32-ia32-msvc": "1.2.
|
|
144
|
-
"@swc/core-linux-arm64-gnu": "1.2.
|
|
145
|
-
"@swc/core-linux-arm-gnueabihf": "1.2.
|
|
146
|
-
"@swc/core-darwin-arm64": "1.2.
|
|
147
|
-
"@swc/core-android-arm64": "1.2.
|
|
148
|
-
"@swc/core-linux-arm64-musl": "1.2.
|
|
149
|
-
"@swc/core-win32-arm64-msvc": "1.2.
|
|
150
|
-
"@swc/core-android-arm-eabi": "1.2.
|
|
138
|
+
"@swc/core-win32-x64-msvc": "1.2.204",
|
|
139
|
+
"@swc/core-darwin-x64": "1.2.204",
|
|
140
|
+
"@swc/core-linux-x64-gnu": "1.2.204",
|
|
141
|
+
"@swc/core-linux-x64-musl": "1.2.204",
|
|
142
|
+
"@swc/core-freebsd-x64": "1.2.204",
|
|
143
|
+
"@swc/core-win32-ia32-msvc": "1.2.204",
|
|
144
|
+
"@swc/core-linux-arm64-gnu": "1.2.204",
|
|
145
|
+
"@swc/core-linux-arm-gnueabihf": "1.2.204",
|
|
146
|
+
"@swc/core-darwin-arm64": "1.2.204",
|
|
147
|
+
"@swc/core-android-arm64": "1.2.204",
|
|
148
|
+
"@swc/core-linux-arm64-musl": "1.2.204",
|
|
149
|
+
"@swc/core-win32-arm64-msvc": "1.2.204",
|
|
150
|
+
"@swc/core-android-arm-eabi": "1.2.204"
|
|
151
151
|
}
|
|
152
152
|
}
|