commit_hash stringlengths 40 40 | author stringlengths 1 57 | date timestamp[s]date 2010-07-26 04:45:09 2026-04-14 18:21:10 | message stringlengths 8 1.39M | diff stringlengths 68 51.2k | files_changed int64 1 136 | insertions int64 0 2.35k | deletions int64 0 1.9k |
|---|---|---|---|---|---|---|---|
0240beccdf565d6b2887c4eedefae4a3f5f7d2e2 | Donny | 2021-11-05T11:48:06 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index c5be7e8b5a..5435cc88d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2532,7 +2532,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.28.0"
+version = "0.29.0"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
@@ -2543,7 +2543,7 @@ dependencies = [
[[p... | 8 | 32 | 32 |
224972f487e0395d527b75c3d3f007237996e8ab | Donny | 2021-11-04T20:14:56 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 05b410209e..218638887d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2851,7 +2851,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_compat"
-version = "0.49.3"
+version = "0.49.4"
dependencies = [
"ahash",
"arrayvec",
diff --git a/ecmascript/transforms/comp... | 2 | 2 | 2 |
a6836368a2dd466e20e41705811760bdfc259e4c | Donny/๊ฐ๋์ค | 2021-11-04T12:15:18 | fix(plugin): Fix serialization and deserialization (#2651)
swc_plugin_api:
- Add `serialize_ast`.
- Add `deserialize_ast`. | diff --git a/Cargo.lock b/Cargo.lock
index 7c83f76ab1..05b410209e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3135,7 +3135,7 @@ dependencies = [
[[package]]
name = "swc_plugin"
-version = "0.10.0"
+version = "0.11.0"
dependencies = [
"abi_stable",
"anyhow",
@@ -3150,7 +3150,7 @@ dependencies = [
[[package]... | 8 | 44 | 19 |
46e32a6a726bbe4c0fd305534b396252ff3e4cc9 | Donny | 2021-11-04T10:59:54 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 9185f607a7..7c83f76ab1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2616,7 +2616,7 @@ dependencies = [
[[package]]
name = "swc_ecma_ast"
-version = "0.56.0"
+version = "0.56.1"
dependencies = [
"arbitrary",
"is-macro",
diff --git a/ecmascript/ast/Cargo.toml b/ecmascri... | 2 | 2 | 2 |
04befab67af4c68f22bafe5a61fb16a8e5e105bd | Donny | 2021-11-04T10:27:31 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index d1e9424a2e..388bc44543 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2532,7 +2532,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.27.0"
+version = "0.28.0"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
@@ -2543,7 +2543,7 @@ dependencies = [
[[p... | 8 | 32 | 32 |
7403956d4ae4bd1cad0d76e513ac38ed3cb2b3dc | Donny | 2021-11-03T13:46:51 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 71ed3a1bec..357e6b60f9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2695,7 +2695,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.48.3"
+version = "0.48.4"
dependencies = [
"ahash",
"ansi_term 0.12.1",
diff --git a/ecmascript/minifier/Cargo.t... | 2 | 2 | 2 |
1c5f75485fdc657920b9fda05f8a9bdb3dcd62f1 | Donny | 2021-11-03T04:21:40 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 140607cd4f..a0d76b6ce2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2839,7 +2839,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_compat"
-version = "0.49.1"
+version = "0.49.2"
dependencies = [
"ahash",
"arrayvec",
diff --git a/ecmascript/transforms/comp... | 2 | 2 | 2 |
4e003b60f7a45f5c8fc30630ca5feda968561cc2 | Donny | 2021-11-03T02:25:56 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 577867c25f..140607cd4f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -115,9 +115,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.44"
+version = "1.0.45"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "61604a8f862e1d5c3229fdd78... | 2 | 4 | 4 |
04238d0b932f0efd8ac8ae262174ebc18469fa6f | Donny/๊ฐ๋์ค | 2021-11-02T14:54:20 | feat(swc_common): Allow `dylib` (#2628)
swc_common:
- Add `dylib` to `crate-type`. | diff --git a/Cargo.lock b/Cargo.lock
index ad2054d8aa..577867c25f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2490,7 +2490,7 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.14.3"
+version = "0.14.4"
dependencies = [
"ahash",
"arbitrary",
diff --git a/common/Cargo.toml b/common/Cargo.toml
ind... | 2 | 5 | 2 |
74aa0068db32cf442c15bd582cc1a4cbf8faa5c1 | Donny | 2021-11-02T11:15:43 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 69f0b58d36..ad2054d8aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2568,7 +2568,7 @@ dependencies = [
[[package]]
name = "swc_css_parser"
-version = "0.26.2"
+version = "0.26.3"
dependencies = [
"bitflags",
"lexical",
diff --git a/css/parser/Cargo.toml b/css/parser/C... | 2 | 2 | 2 |
170a53a4ce7d9e7d5cf2efa3791291300e711cc8 | Donny | 2021-11-02T09:42:35 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 485bb21feb..69f0b58d36 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2695,7 +2695,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.48.2"
+version = "0.48.3"
dependencies = [
"ahash",
"ansi_term 0.12.1",
diff --git a/ecmascript/minifier/Cargo.t... | 2 | 2 | 2 |
9a2f729322c26e3bd8b3bef23201bf794c09873d | Donny | 2021-11-02T05:53:36 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 10799c6209..485bb21feb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3002,7 +3002,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_typescript"
-version = "0.58.1"
+version = "0.58.2"
dependencies = [
"serde",
"swc_atoms 0.2.9",
diff --git a/ecmascript/tran... | 2 | 2 | 2 |
6644a06da634a2aee6683c01faff06cee84ca095 | Donny | 2021-11-02T05:00:33 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 3a8b72eb1c..6cf1b777e2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -728,9 +728,9 @@ dependencies = [
[[package]]
name = "gimli"
-version = "0.26.0"
+version = "0.26.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "81a03ce013ffccead76c11a157... | 2 | 4 | 4 |
befda9752eb88687a07650bc3d7ea34c648c6777 | Donny | 2021-11-01T15:36:00 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 4abe2d7a96..3a8b72eb1c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,9 +61,9 @@ dependencies = [
[[package]]
name = "addr2line"
-version = "0.16.0"
+version = "0.17.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e61f2b7f93d2c7d2b08263a... | 2 | 8 | 8 |
fbbdeeae5677b065182e5853e011832a6fedf68c | Donny | 2021-11-01T07:54:32 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index f92abc70f3..4abe2d7a96 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1145,9 +1145,9 @@ dependencies = [
[[package]]
name = "napi-build"
-version = "1.1.0"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9fbe11972c601a48aa12a... | 2 | 10 | 10 |
e589d00f62c94065247b4eae69a09840e012dd34 | Donny/๊ฐ๋์ค | 2021-10-31T11:41:36 | refactor: Move `HANDLER` to `swc_common` (#2599)
swc_common:
- Add `HANDLER`.
swc_ecma_utils:
- Replace `HANDLER` with one from `swc_common`.
- Make `StmtLike` `: Send + Sync`. | diff --git a/Cargo.lock b/Cargo.lock
index 55872f3bfe..4d5004a87c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2341,7 +2341,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.80.0"
+version = "0.81.0"
dependencies = [
"ahash",
"anyhow",
@@ ... | 31 | 182 | 161 |
432827641418215e8c1f7924f50b2d3d486bcbb1 | Donny | 2021-10-30T12:41:20 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index fd1af4f004..9146282ed1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2728,7 +2728,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.76.1"
+version = "0.76.2"
dependencies = [
"either",
"enum_kind",
diff --git a/ecmascript/parser/Cargo.toml b/ecma... | 2 | 2 | 2 |
52318a4a8e76897d3658b5a1b1b0b0d4c55acd87 | Antonio Musolino | 2021-10-30T12:10:45 | fix(es/lexer): Fix parsing of interpreter (#2589) | diff --git a/ecmascript/parser/src/lexer/mod.rs b/ecmascript/parser/src/lexer/mod.rs
index fb980f547a..4f62b8100e 100644
--- a/ecmascript/parser/src/lexer/mod.rs
+++ b/ecmascript/parser/src/lexer/mod.rs
@@ -461,14 +461,13 @@ impl<'a, I: Input> Lexer<'a, I> {
self.input.bump();
let c = self.input.cur()... | 1 | 5 | 6 |
bb189c74acfeab10d3830538535f83bb497d0d7f | Donny | 2021-10-30T06:52:49 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 02aef6b21a..fd1af4f004 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14,9 +14,9 @@ dependencies = [
[[package]]
name = "abi_stable"
-version = "0.10.2"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "709308333aa82687b93e978... | 3 | 32 | 16 |
f9a8ad386d5feafb48756764982f6843f6adaca3 | Donny/๊ฐ๋์ค | 2021-10-29T11:54:30 | chore: Make `cargo test --all` work (#2580) | diff --git a/tests/tsc.rs b/tests/tsc.rs
index 8376810ae8..8d679b579c 100644
--- a/tests/tsc.rs
+++ b/tests/tsc.rs
@@ -1,3 +1,5 @@
+#![cfg(not(feature = "wrong-target"))]
+
use serde::de::DeserializeOwned;
use std::{
fs::create_dir_all, | 1 | 2 | 0 |
5ef66860292adf9bc2714bc0a4f3f3f5815a724d | Alexander Akait | 2021-10-26T05:34:47 | refactor(css/codegen): Use `raw` instead (#2534)
swc_css_codegen:
- Remove `write_ident`.
- Use `raw` for printing identifiers. | diff --git a/Cargo.lock b/Cargo.lock
index c9dadccf99..76a434a7c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2504,7 +2504,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.23.0"
+version = "0.24.0"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
@@ -2526,7 +2526,7 @@ dependencies = [
[[p... | 8 | 15 | 55 |
693181ee6a7fc65783af174fdc10162f49d333be | Nayeem Rahman | 2021-10-26T05:31:20 | fix(es/transforms/typescript): Remove `declare`d class properties (#2530)
swc_ecma_transforms_typescript:
- `strip`: Remove class properties with `declare` keyword. | diff --git a/Cargo.lock b/Cargo.lock
index bd2746f7e4..c9dadccf99 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1141,9 +1141,9 @@ checksum = "9fbe11972c601a48aa12a0e2aa032e9e251655ce6c6836cac26e5c0b3b5a5dcc"
[[package]]
name = "napi-derive"
-version = "1.1.0"
+version = "1.1.1"
source = "registry+https://github.com... | 4 | 45 | 8 |
dcf5f051950ccdc26b65dc01d6f0ea8ab2bcd689 | Donny/๊ฐ๋์ค | 2021-10-25T12:24:40 | fix(es/minifier): Fix minifier (#2528)
swc_ecma_minifier:
- `collapse_vars`: Respect operator. | diff --git a/Cargo.lock b/Cargo.lock
index c56ff413fc..335e92b2cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2679,7 +2679,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.46.1"
+version = "0.46.2"
dependencies = [
"ahash",
"ansi_term 0.12.1",
diff --git a/ecmascript/minifier/Cargo.t... | 3 | 3 | 3 |
430a06ce4ddf4e0ee96176789df86ed5df137702 | Alexander Akait | 2021-10-23T12:27:16 | refactor(css/parser): Respect spec (#2487) | diff --git a/Cargo.lock b/Cargo.lock
index bb283277a1..468d5aa5f8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -730,9 +730,9 @@ checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
[[package]]
name = "h2"
-version = "0.3.6"
+version = "0.3.7"
source = "registry+https://github.com/rust-lang/... | 3 | 148 | 133 |
c4821622067a570fcfc8a945ebcfbb778dd5e567 | Austaras | 2021-10-23T12:13:56 | feat(es/transforms/module): Fix transform of `this` for classes (#2514) | diff --git a/ecmascript/transforms/module/src/util.rs b/ecmascript/transforms/module/src/util.rs
index 0d2b09fa1e..4b5a2caa6c 100644
--- a/ecmascript/transforms/module/src/util.rs
+++ b/ecmascript/transforms/module/src/util.rs
@@ -506,6 +506,7 @@ impl Scope {
}
match expr {
+ // In a Java... | 2 | 109 | 2 |
a9869e60f2e8feb0fbcbbba693bc86a14dbeb83f | Pig Fang | 2021-10-21T11:41:10 | test(es/transforms/compat): Add tests for `optional_catch_binding` (#2502) | diff --git a/ecmascript/transforms/compat/src/es2019/optional_catch_binding.rs b/ecmascript/transforms/compat/src/es2019/optional_catch_binding.rs
index b5d2384da4..2545eb0199 100644
--- a/ecmascript/transforms/compat/src/es2019/optional_catch_binding.rs
+++ b/ecmascript/transforms/compat/src/es2019/optional_catch_bind... | 1 | 16 | 0 |
52dfb558166e1a97127db13f0442d71083173b5c | Sosuke Suzuki | 2021-10-21T06:15:08 | fix(es/transforms/compat): Change error message (#2500)
swc_ecma_transforms_compat:
- `classes`: Use `unreachable` instead of `unimplemented ` for static blocks. | diff --git a/ecmascript/transforms/compat/src/es2015/classes/mod.rs b/ecmascript/transforms/compat/src/es2015/classes/mod.rs
index a390853879..9bd0e8a389 100644
--- a/ecmascript/transforms/compat/src/es2015/classes/mod.rs
+++ b/ecmascript/transforms/compat/src/es2015/classes/mod.rs
@@ -404,7 +404,9 @@ where
... | 2 | 6 | 2 |
7af0f8c81b83b89db55aafd8156ee9bfaf94426f | Donny | 2021-10-21T05:16:15 | chore: Publish | diff --git a/Cargo.lock b/Cargo.lock
index 6da7db0525..de9628603c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3003,7 +3003,7 @@ dependencies = [
[[package]]
name = "swc_ecma_utils"
-version = "0.48.0"
+version = "0.48.1"
dependencies = [
"once_cell",
"rayon",
diff --git a/ecmascript/utils/Cargo.toml b/ecmascr... | 2 | 2 | 2 |
bf886bac73ad348ab7bc333e6eae824c96e9abde | Donny/๊ฐ๋์ค | 2021-10-19T15:00:48 | perf(es/parser): Make typescript parser faster (#2483)
swc_ecma_parser:
- Check for option before backtracking. | diff --git a/Cargo.lock b/Cargo.lock
index 5bd3df2dc8..1fd4133fb2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2710,7 +2710,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.75.0"
+version = "0.75.1"
dependencies = [
"either",
"enum_kind",
diff --git a/ecmascript/parser/Cargo.toml b/ecma... | 3 | 3 | 3 |
98a18e306a502b2784c3ab1d960164e3fb597118 | Donny | 2021-10-18T15:43:00 | chore: Publish `swc_ecma_transforms_compat` | diff --git a/Cargo.lock b/Cargo.lock
index b6dcc07cfc..3f5250cd2e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2818,7 +2818,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_compat"
-version = "0.44.2"
+version = "0.44.3"
dependencies = [
"ahash",
"arrayvec",
diff --git a/ecmascript/transforms/comp... | 2 | 2 | 2 |
ac772403b2eb51c0fe013e2fe56685a5df0389a5 | Donny | 2021-10-18T07:49:21 | chore: Add `include` to `swc` | diff --git a/Cargo.lock b/Cargo.lock
index 4676cd64c0..bffd877dda 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2324,7 +2324,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.72.0"
+version = "0.72.1"
dependencies = [
"ahash",
"anyhow",
dif... | 2 | 3 | 2 |
7225f90b9c8fce1582c6ae1df80b636bb4664123 | Donny | 2021-10-18T02:09:59 | Bump version | diff --git a/Cargo.lock b/Cargo.lock
index 2fb2e6d3d9..71715a7d30 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -530,9 +530,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "encoding_rs"
-version = "0.8.28"
+version = "0.8.29"
source = "registry+https://github.com... | 28 | 217 | 217 |
d0452440895be0d02b85d6892eddba0a9d6193f5 | Donny/๊ฐ๋์ค | 2021-10-15T09:12:40 | fix(es/codegen): Fix codegen of synthesized template literals. (#2440)
swc_ecma_codegen:
- Don't handle synthesized backtick specially. | diff --git a/Cargo.lock b/Cargo.lock
index d3e58e4b43..16f687b6c6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -75,9 +75,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
-version = "0.7.5"
+version = "0.7.6"
source = "registry+https://github.com/rust-lang... | 3 | 4 | 8 |
647d3ed36a63a541061930e34daa5705f4ff468e | Donny/๊ฐ๋์ค | 2021-10-14T04:43:55 | chore(doc): Add an example of stripping out types (#2430) | diff --git a/ecmascript/transforms/typescript/examples/ts_to_js.rs b/ecmascript/transforms/typescript/examples/ts_to_js.rs
new file mode 100644
index 0000000000..f6ffd9c6c7
--- /dev/null
+++ b/ecmascript/transforms/typescript/examples/ts_to_js.rs
@@ -0,0 +1,79 @@
+//! Usage: cargo run --example ts_to_js path/to/ts
+//!... | 2 | 82 | 0 |
aff66708564fc13fe1b26f922596a9ab7850ec3b | Donny/๊ฐ๋์ค | 2021-10-13T10:26:47 | fix(es/minifier): Fix infinite loop (#2424)
swc_ecma_minifier:
- Prevent infinite loop of post-optimize inliner. | diff --git a/Cargo.lock b/Cargo.lock
index 2cd2f024ed..e9e477fb49 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2674,7 +2674,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.37.3"
+version = "0.37.4"
dependencies = [
"ansi_term 0.12.1",
"anyhow",
@@ -2783,7 +2783,7 @@ dependencies = [
... | 3 | 9 | 10 |
029cf056f28a9526395e00683071690b7b08dcbe | Bojan ฤurฤeviฤ | 2021-10-13T05:33:15 | fix(es/transforms/react): Fix escape of quote in HTML entities (#2419)
swc_ecma_transforms_react:
- Handle escape of `"` correctly. | diff --git a/Cargo.lock b/Cargo.lock
index 204c2f3452..3e49061f70 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -341,9 +341,9 @@ checksum = "a2df960f5d869b2dd8532793fde43eb5427cceb126c929747a26823ab0eeb536"
[[package]]
name = "core-foundation"
-version = "0.9.1"
+version = "0.9.2"
source = "registry+https://github.c... | 4 | 25 | 11 |
d114e7d3643a0adc0f75e2664667f5990ea50317 | David Sherret | 2021-10-12T03:08:06 | refactor(es/parser): Cleanup codes for the comment buffer (#2410) | diff --git a/Cargo.lock b/Cargo.lock
index 81ce260e32..b1b69104ff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2363,9 +2363,7 @@ dependencies = [
[[package]]
name = "swc_atoms"
-version = "0.2.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "837a3ef86c2817228e733b6f173c821fd76f9eb21... | 3 | 8 | 18 |
4411d1d3a5cd9b05103b5c0a1fd60eb7d096ee50 | Donny/๊ฐ๋์ค | 2021-10-12T03:05:17 | perf(atoms): Update `string_cache` (#2411)
swc_atoms:
- Use `string_cache` with `parking_lot` patch applied.
wasm:
- Pin `parking_lot_core` to `=0.8.0` to workaround https://github.com/Amanieu/parking_lot/issues/269. | diff --git a/Cargo.lock b/Cargo.lock
index e74795e226..81ce260e32 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,7 +25,7 @@ dependencies = [
"generational-arena",
"libloading",
"lock_api 0.4.5",
- "parking_lot 0.11.2",
+ "parking_lot 0.11.1",
"repr_offset",
"rustc_version 0.4.0",
"serde",
@@ -292,6 +292,15... | 3 | 73 | 54 |
4d4771109a78b8217df318af08bb323795277f87 | David Sherret | 2021-10-12T02:07:52 | fix(es/parser): Ensure that comments are collected (#2407) | diff --git a/Cargo.lock b/Cargo.lock
index 017a7187aa..e74795e226 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -294,11 +294,11 @@ dependencies = [
[[package]]
name = "console_error_panic_hook"
-version = "0.1.6"
+version = "0.1.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8d9769... | 9 | 267 | 158 |
4ad25d2155028dce44e05dc1fb8f1d1d2e0c9d75 | Pig Fang | 2021-10-11T14:09:45 | refactor(es/parser): Simplify parsing logic (#2405) | diff --git a/Cargo.lock b/Cargo.lock
index 3a8b70582b..017a7187aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -75,9 +75,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
[[package]]
name = "ahash"
-version = "0.7.4"
+version = "0.7.5"
source = "registry+https://github.com/rust-lang... | 5 | 15 | 26 |
b5f832193a2cfb7dc594d526c049edc66cfccccc | Donny/๊ฐ๋์ค | 2021-10-11T13:00:02 | perf(bundler): Improve performance (#2394)
swc_ecma_utils:
- Make `collect_decls` parallel. (with threshold of 128)
swc_bundler:
- Make inlining of synthesized variables parallel. | diff --git a/Cargo.lock b/Cargo.lock
index 13e832f500..3a8b70582b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2422,6 +2422,7 @@ dependencies = [
"is-macro",
"ntest",
"once_cell",
+ "parking_lot 0.11.2",
"path-clean",
"petgraph",
"radix_fmt",
diff --git a/bundler/Cargo.toml b/bundler/Cargo.toml
index 210466... | 6 | 100 | 15 |
f5607891e4a4cc123e62f504c9a89e0d2e507670 | Donny/๊ฐ๋์ค | 2021-10-11T05:03:57 | fix(es/transforms/testing): Fix `test_fixture` (#2400)
swc_ecma_transforms_testing:
- Make logic depends on `NormalizedOutput::compare_to_file`. | diff --git a/Cargo.lock b/Cargo.lock
index 040421a383..61ff57aea9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2932,7 +2932,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_testing"
-version = "0.38.0"
+version = "0.38.1"
dependencies = [
"ansi_term 0.12.1",
"anyhow",
diff --git a/ecmascript/trans... | 3 | 6 | 23 |
fd08a27f0c1965f8a9f6760c153d09b19f70c48d | Donny | 2021-10-10T11:18:19 | chore(plugin): Publish | diff --git a/Cargo.lock b/Cargo.lock
index 371c358509..8c23440bc8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3074,7 +3074,7 @@ dependencies = [
[[package]]
name = "swc_plugin"
-version = "0.6.0"
+version = "0.7.0"
dependencies = [
"abi_stable",
"anyhow",
@@ -3088,7 +3088,7 @@ dependencies = [
[[package]]
... | 4 | 8 | 8 |
a33032279aa4cee19f10a74d72eb3b308f901df1 | Donny/๊ฐ๋์ค | 2021-10-10T05:06:07 | perf(es/transforms/base): Make `resolver` faster (#2392)
swc_ecma_transforms_base:
- `resolver`: Don't use `Mark::parent()`. | diff --git a/Cargo.lock b/Cargo.lock
index 79b93b2be9..b05244ee02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3555,7 +3555,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.37.0"
+version = "0.37.1"
dependencies = [
"once_cell",
"phf",
diff --git a/ecmascript/transforms/base/Ca... | 4 | 94 | 115 |
b9b7de08714a03e38c6b4ab893a0d93fd8a6b584 | Donny | 2021-10-09T16:33:22 | chore: Publish | diff --git a/Cargo.toml b/Cargo.toml
index 51fd0cfc9a..c43c2388c9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -56,7 +56,7 @@ swc_bundler = {version = "0.68.0", path = "./bundler"}
swc_common = {version = "0.13.0", path = "./common", features = ["sourcemap", "concurrent"]}
swc_ecma_ast = {version = "0.54.0", path = ".... | 18 | 70 | 70 |
644e49c7faa6cd6f037787662727edeff393c1a7 | Pig Fang | 2021-10-09T01:22:47 | refactor(es/parser): Simplify parsing logic (#2381) | diff --git a/Cargo.lock b/Cargo.lock
index 11d3a1fedc..eb74999ac1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2688,7 +2688,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.73.3"
+version = "0.73.4"
dependencies = [
"either",
"enum_kind",
diff --git a/ecmascript/parser/Cargo.toml b/ecma... | 3 | 5 | 13 |
d19df1379cc24fd14089c815badbca2be533fa48 | Donny | 2021-10-08T15:05:59 | chore: Publish swc | diff --git a/Cargo.lock b/Cargo.lock
index 5fdf14c8a9..8495234bde 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2307,7 +2307,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.65.0"
+version = "0.66.0"
dependencies = [
"ahash",
"anyhow",
dif... | 2 | 2 | 2 |
486c68950439844e051923fe40be0c5f27468f70 | Donny/๊ฐ๋์ค | 2021-10-08T15:01:09 | fix(swc): Fix `sourceMap` option of minify (#2380) | diff --git a/src/config/mod.rs b/src/config/mod.rs
index 45fbbab6d3..81290ba96c 100644
--- a/src/config/mod.rs
+++ b/src/config/mod.rs
@@ -543,7 +543,7 @@ pub struct JsMinifyOptions {
pub toplevel: bool,
#[serde(default)]
- pub source_map: bool,
+ pub source_map: BoolOrObject<TerserSourceMapOption>,
... | 2 | 32 | 6 |
4466ca6ab83b7ae6608a36d53d8b46366250dba1 | Donny/๊ฐ๋์ค | 2021-10-08T06:49:14 | fix(es/transforms/react): Allow non-first jsx directives (#2377)
swc_ecma_transforsm_react:
- Allow using jsx directives like `jsxRuntime` at any statement. | diff --git a/Cargo.lock b/Cargo.lock
index b9fbba8f96..f0604251d8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2903,7 +2903,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_react"
-version = "0.46.0"
+version = "0.46.1"
dependencies = [
"base64 0.13.0",
"dashmap",
diff --git a/ecmascript/transform... | 3 | 160 | 127 |
500dbf244b3caee28438acc1b2e42b743b9af119 | Yunfei He | 2021-10-08T05:36:47 | feat(es/codegen): Expose more API (#2375)
swc_ecma_codegen:
- `Emitter`: Make `emit_module_item` public. | diff --git a/Cargo.lock b/Cargo.lock
index d98182dcd7..b9fbba8f96 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2575,7 +2575,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
-version = "0.74.0"
+version = "0.74.1"
dependencies = [
"bitflags",
"memchr",
diff --git a/ecmascript/codegen/Cargo.toml b/ecm... | 3 | 3 | 3 |
1f99c3a44cab4faed5f5ddfe08f6b1a6da80f167 | Niklas Mischkulnig | 2021-10-08T02:56:09 | fix(es/transforms/optimization): Fix `dead_branch_remover` (#2373)
swc_ecma_transforms_optimization:
- `dead_branch_remover`: Fix handling of `switch(boolean)`. | diff --git a/Cargo.lock b/Cargo.lock
index 33bc842718..9329a80ff4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2851,7 +2851,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_optimization"
-version = "0.49.0"
+version = "0.49.1"
dependencies = [
"dashmap",
"indexmap",
diff --git a/ecmascript/transfo... | 4 | 11 | 2 |
b0ee9543d4e9da88cfb17fd0d24b819e73c3b6ce | Donny/๊ฐ๋์ค | 2021-10-07T16:02:02 | doc(es/ast): Document identifier mangagement system (#2371) | diff --git a/Cargo.lock b/Cargo.lock
index f8aa88a3e0..33bc842718 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2305,7 +2305,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.64.0"
+version = "0.64.1"
dependencies = [
"ahash",
"anyhow",
@@ ... | 5 | 48 | 5 |
a55345156268e31b9f466150bf842a7026dd1269 | Donny/๊ฐ๋์ค | 2021-10-06T05:02:24 | chore(es/minifier): Publish (#2354) | diff --git a/Cargo.lock b/Cargo.lock
index 7398e4ee47..c026174b51 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2650,7 +2650,7 @@ dependencies = [
[[package]]
name = "swc_ecma_minifier"
-version = "0.34.0"
+version = "0.34.1"
dependencies = [
"ansi_term 0.12.1",
"anyhow",
diff --git a/ecmascript/minifier/Cargo.... | 2 | 2 | 2 |
b64afb5b6f3ccf019b8217408383a44aa3261bea | Donny/๊ฐ๋์ค | 2021-10-05T09:14:25 | fix(es/utils): Fix macros (#2349)
swc_ecma_utils:
- Allow using macros from crates using `swc_ecmascript`. | diff --git a/Cargo.lock b/Cargo.lock
index c162ca4c7c..9912dfe8e0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2970,7 +2970,7 @@ dependencies = [
[[package]]
name = "swc_ecma_utils"
-version = "0.46.1"
+version = "0.46.2"
dependencies = [
"once_cell",
"scoped-tls",
diff --git a/ecmascript/utils/Cargo.toml b/ec... | 4 | 12 | 9 |
20171a3654977d8a886f25cf687c2f1aae4dd0ae | Julien Roncaglia | 2021-10-04T01:58:36 | fix(testing): Fix CRLF issue on windows (#2338) | diff --git a/Cargo.lock b/Cargo.lock
index 7b34474ae1..6e83273a9c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3187,7 +3187,7 @@ dependencies = [
[[package]]
name = "testing"
-version = "0.14.0"
+version = "0.14.1"
dependencies = [
"ansi_term 0.12.1",
"difference",
diff --git a/testing/Cargo.toml b/testing/Car... | 3 | 20 | 17 |
fee270fe57ecc1822ed1d6b057e304290c5d8d9d | LongYinan | 2021-09-30T05:50:25 | perf(common): Avoid string re-allocation (#2318) | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 1a887c345b..321866dd93 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_common"
repository = "https://github.com/swc-project/swc.git"
-version = "0.13.1"
+version = "0.13.2"
[feat... | 2 | 7 | 6 |
36c83127e8ccee1bd4378358e52171609b08c757 | Donny/๊ฐ๋์ค | 2021-09-28T13:32:35 | fix(css): Reexport codegen from `swc_css` (#2314)
swc_css:
- Reexport `swc_css_codegen`. | diff --git a/Cargo.lock b/Cargo.lock
index f8658f083a..92e97013a4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2477,7 +2477,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.8.0"
+version = "0.8.1"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
diff --git a/css/Cargo.toml b/css/Cargo.toml
in... | 3 | 3 | 2 |
83d88ce388ee8553af6507032630ddbc7a100d14 | Donny/๊ฐ๋์ค | 2021-09-24T10:41:01 | chore: Improve docs (#2301) | diff --git a/Cargo.lock b/Cargo.lock
index df09c0dfd0..344d12d8ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2429,7 +2429,7 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.12.1"
+version = "0.12.2"
dependencies = [
"ahash",
"arbitrary",
diff --git a/common/Cargo.toml b/common/Cargo.toml
ind... | 3 | 14 | 2 |
4d500baaaa742529ecf1d2c514d6bde7a84c82fb | Pig Fang | 2021-09-21T12:54:51 | fix(es/transforms/compat): Move the optional catch binding pass to ES2019 (#2247)
swc_ecma_transforms_compat:
- Move optional chaining pass to `es2019`.
Co-authored-by: Donny <kdy1997.dev@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index 2fa650eff3..eddbf5ce97 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2287,7 +2287,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.55.0"
+version = "0.56.0"
dependencies = [
"ahash",
"anyhow",
@@ ... | 20 | 78 | 71 |
406fa3fc780eea0e26aa3f636643e6db7ee32b04 | Fรกbio Santos | 2021-09-20T06:25:51 | feat(es/minifier): Add CLI for debugging (#2273)
swc_ecma_minifier:
- Add a binary to help development. | diff --git a/ecmascript/minifier/Cargo.toml b/ecmascript/minifier/Cargo.toml
index 7a6a80c4e9..c292ed7136 100644
--- a/ecmascript/minifier/Cargo.toml
+++ b/ecmascript/minifier/Cargo.toml
@@ -9,6 +9,10 @@ name = "swc_ecma_minifier"
repository = "https://github.com/swc-project/swc.git"
version = "0.27.3"
+[[bin]]
+na... | 2 | 83 | 0 |
b82702cf0f845f7fce3d5d958a55f31df5b98bf6 | Heyang Zhou | 2021-09-19T08:05:36 | fix(swc): Remove global side effects for rust users. (#2270)
swc:
- Don't enable `log/release_max_level_info`.
- Don't depend on `swc_node_base`. | diff --git a/Cargo.lock b/Cargo.lock
index e6beb8d9c5..e426dee0d9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2287,7 +2287,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.54.0"
+version = "0.55.0"
dependencies = [
"ahash",
"anyhow",
dif... | 2 | 4 | 4 |
8e0a5450b10f76a86069b2535e74e277bfa442ab | David Sherret | 2021-09-19T07:28:33 | fix(es/codegen): Emit `static` before `readonly` (#2271) | diff --git a/Cargo.lock b/Cargo.lock
index 9eea22b8a2..e6beb8d9c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2557,7 +2557,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
-version = "0.70.4"
+version = "0.70.5"
dependencies = [
"bitflags",
"num-bigint",
diff --git a/ecmascript/codegen/Cargo.toml b... | 3 | 11 | 11 |
f087d1515b7f5a729f89d258d23979636d98f997 | ๊ฐ๋์ค | 2021-09-16T11:21:09 | fix(es/transforms/testing): Fix comparing logic (#2263)
swc_ecma_transform_testing:
- Fix comparing logic. | diff --git a/Cargo.lock b/Cargo.lock
index facf7d3d9c..37f4c25514 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2903,7 +2903,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_testing"
-version = "0.32.1"
+version = "0.32.2"
dependencies = [
"ansi_term 0.12.1",
"anyhow",
diff --git a/ecmascript/trans... | 3 | 9 | 2 |
e2d846556568dc43093ef61612230b7323416898 | ๊ฐ๋์ค | 2021-09-16T09:26:02 | fix(es/codegen): Fix codegen of ` in synthesized template literals (#2260)
swc_ecma_codegen:
- Fix codegen of ` in synthesized template string literals. | diff --git a/Cargo.lock b/Cargo.lock
index ec36fcf4e6..facf7d3d9c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2557,7 +2557,7 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
-version = "0.70.2"
+version = "0.70.3"
dependencies = [
"bitflags",
"num-bigint",
diff --git a/ecmascript/codegen/Cargo.toml b... | 3 | 16 | 5 |
a9573b9a5fe4be74d6b5fa96d812a18f623d0254 | ๊ฐ๋์ค | 2021-09-09T05:36:56 | fix(css/parser): Fix parsing of selectors (#2221)
swc_css_parser:
- Allow parsing `foo` as selector. | diff --git a/Cargo.lock b/Cargo.lock
index 7ffd573cd4..c2dfce2d8c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2459,7 +2459,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.6.0"
+version = "0.6.1"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
@@ -2507,7 +2507,7 @@ dependencies = [
[[pac... | 5 | 33 | 6 |
b4796d9d54e31fdd5f29c8c1a43875dcb7bbf186 | ๊ฐ๋์ค | 2021-09-09T05:06:03 | fix: Fix simple bugs (#2220)
swc_ecma_utils:
- Don't panic on jsx.
swc_ecma_transforms_typescript:
- Drop type-only reexports. (#2219) | diff --git a/Cargo.lock b/Cargo.lock
index 4b219c9b29..7ffd573cd4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2922,7 +2922,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_typescript"
-version = "0.40.0"
+version = "0.40.1"
dependencies = [
"fxhash",
"serde",
@@ -2944,7 +2944,7 @@ dependencies = ... | 6 | 30 | 18 |
55f065b78adcce9e69e96494543905b8038fd641 | muji | 2021-09-01T03:52:07 | doc(common): Improve doc of `Take` (#2192) | diff --git a/visit/src/lib.rs b/visit/src/lib.rs
index cd45ac9a1b..288cc7a264 100644
--- a/visit/src/lib.rs
+++ b/visit/src/lib.rs
@@ -35,7 +35,7 @@
//! # `VisitMut`
//!
//! `VisitMut` uses a mutable reference to AST nodes (e.g. `&mut Expr`). You can
-//! use `MapWithMut` from `swc_ecma_transforms_base` to get owned... | 1 | 1 | 1 |
2f2e35af6968d432c1a4dee1664a5de89069a4c3 | David Sherret | 2021-08-31T05:52:51 | fix(es/parser): Remove `static_blocks` from `TsConfig` (#2186) | diff --git a/ecmascript/parser/src/lib.rs b/ecmascript/parser/src/lib.rs
index 1a82d0d886..c4deaf2736 100644
--- a/ecmascript/parser/src/lib.rs
+++ b/ecmascript/parser/src/lib.rs
@@ -306,10 +306,6 @@ pub struct TsConfig {
/// Stage 3.
#[serde(default)]
pub import_assertions: bool,
-
- #[serde(default)... | 2 | 0 | 5 |
d58642b70c5f789a72c7f932fb3676c371ec5323 | ๊ฐ๋์ค | 2021-08-30T12:44:46 | feat(common): Implement `TypeEq` and `EqIgnoreSpan` for tuples (#2184)
swc_common:
- Implement `TypeEq` and `EqIgnoreSpan` for tuples. | diff --git a/Cargo.lock b/Cargo.lock
index c3d9e7a460..f3247b9645 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2429,7 +2429,7 @@ dependencies = [
[[package]]
name = "swc_common"
-version = "0.11.7"
+version = "0.11.8"
dependencies = [
"ahash",
"arbitrary",
diff --git a/common/Cargo.toml b/common/Cargo.toml
ind... | 3 | 67 | 2 |
361bc70065e3bf313a139a834106a933874f8ee1 | muji | 2021-08-30T12:21:52 | fix(es/loader): Improve handling of `base_dir` (#2182) | diff --git a/ecmascript/loader/src/resolvers/node.rs b/ecmascript/loader/src/resolvers/node.rs
index 1485058c93..d9a3d6f3b7 100644
--- a/ecmascript/loader/src/resolvers/node.rs
+++ b/ecmascript/loader/src/resolvers/node.rs
@@ -278,8 +278,12 @@ impl Resolve for NodeModulesResolver {
_ => bail!("node-resolve... | 1 | 7 | 3 |
b2c99719fdf0549ff5a296c13747580b3a2f6e0c | Sosuke Suzuki | 2021-08-30T03:45:41 | feat(es/parser): Add tests for static blocks (#2180)
swc_ecma_parser:
- Add tests for multiple static blocks in a class. | diff --git a/ecmascript/parser/src/parser/stmt.rs b/ecmascript/parser/src/parser/stmt.rs
index be4f9c83fc..a226394f47 100644
--- a/ecmascript/parser/src/parser/stmt.rs
+++ b/ecmascript/parser/src/parser/stmt.rs
@@ -1926,6 +1926,47 @@ export default function waitUntil(callback, options = {}) {
);
}
+ ... | 1 | 41 | 0 |
5d702835e8c3623dfd604757d7a57f16ad672fb6 | muji | 2021-08-29T08:47:15 | fix(es/loader): Fix node resolver (#2172)
swc_ecma_module_loader:
- Use correct base directory. | diff --git a/ecmascript/loader/src/resolvers/node.rs b/ecmascript/loader/src/resolvers/node.rs
index 4f78abf5a8..1485058c93 100644
--- a/ecmascript/loader/src/resolvers/node.rs
+++ b/ecmascript/loader/src/resolvers/node.rs
@@ -339,7 +339,7 @@ impl Resolve for NodeModulesResolver {
.or_else(|_| ... | 1 | 1 | 1 |
3d5845702707f4d668a099ac81f2eae85d2343e6 | David Sherret | 2021-08-27T04:08:48 | refactor(es/dep_graph): Use `dyn` instead of `impl` (#2119)
swc_ecma_dep_graph:
- Use `dyn` instead of `impl` in `analyze_dependencies`. | diff --git a/Cargo.lock b/Cargo.lock
index 9b27df1367..d00011d775 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2287,7 +2287,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.45.0"
+version = "0.46.0"
dependencies = [
"ahash",
"anyhow",
@@ ... | 5 | 13 | 13 |
8c57cf053757a3b20bac3ace73da1c4bd6815be4 | ๊ฐ๋์ค | 2021-08-25T02:46:17 | feat(css/parser): Improve parser api (#2147)
swc_css_parser:
- Add `parse_tokens`.
- Implement `Parse<CompoundSelector>` for the parser. | diff --git a/Cargo.lock b/Cargo.lock
index e6b1398a1e..970d34f7d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2348,7 +2348,7 @@ dependencies = [
[[package]]
name = "swc_css_parser"
-version = "0.4.0"
+version = "0.4.1"
dependencies = [
"bitflags",
"lexical",
diff --git a/css/parser/Cargo.toml b/css/parser/Car... | 6 | 141 | 10 |
61e58d732952a7324a13ae17a26dc9e4a043a8b9 | muji | 2021-08-21T07:45:59 | feat(bundler): Support replacing any environment variables (#2121) | diff --git a/node/bundler/src/loaders/swc.rs b/node/bundler/src/loaders/swc.rs
index e43420d09c..658c2ce5c2 100644
--- a/node/bundler/src/loaders/swc.rs
+++ b/node/bundler/src/loaders/swc.rs
@@ -31,6 +31,43 @@ impl SwcLoader {
SwcLoader { compiler, options }
}
+ fn env_map(&self) -> HashMap<JsWord, E... | 1 | 40 | 25 |
e3e29081397363c3afdbf983dd94c63763f411c3 | Sosuke Suzuki | 2021-08-20T19:46:22 | feat(es/parser): Report an early error for `await` used in wrong contexts (#2098) | diff --git a/ecmascript/parser/src/error.rs b/ecmascript/parser/src/error.rs
index 68b7dbe6b9..fe9a964650 100644
--- a/ecmascript/parser/src/error.rs
+++ b/ecmascript/parser/src/error.rs
@@ -140,6 +140,8 @@ pub enum SyntaxError {
AwaitForStmt,
+ AwaitInFunction,
+
UnterminatedJSXContents,
EmptyJSX... | 4 | 38 | 3 |
1b0ef756f2e0c8f9ef4222d159143309f5003e7b | ๊ฐ๋์ค | 2021-08-15T10:01:08 | fix(es/parser): Allow using parser with stable rustc (#2084)
swc_ecma_parser:
- Don't use `#![feature]` for non-test builds. (#2083) | diff --git a/Cargo.lock b/Cargo.lock
index c2ab4264e9..5458e97639 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2381,7 +2381,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.66.5"
+version = "0.66.6"
dependencies = [
"either",
"enum_kind",
diff --git a/ecmascript/parser/Cargo.toml b/ecma... | 3 | 3 | 3 |
cfc3725dbb2be0ff0f9974bfbdb545b6fd55fa7b | muji | 2021-08-12T05:30:49 | feat(bundler): Support `paths` (#2054)
swc_ecma_ast:
- Implement more traits for `TargetEnv`.
swc_ecma_loader:
- `NodeModulesResolver`: Support aliasing. | diff --git a/Cargo.lock b/Cargo.lock
index 6f913b9ebd..7ad74f140d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2061,6 +2061,7 @@ version = "0.0.0"
dependencies = [
"anyhow",
"dashmap",
+ "fxhash",
"is-macro",
"log",
"once_cell",
@@ -2166,13 +2167,14 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb2... | 21 | 131 | 64 |
a26071f99d1384c6755da98f2632eb8bea0f2d44 | Iron Lu | 2021-08-11T06:32:21 | feat(es/transforms): Improve module transform (#2053)
swc_ecma_transforms_module:
- Make output mockable. (#2049) | diff --git a/ecmascript/transforms/module/Cargo.toml b/ecmascript/transforms/module/Cargo.toml
index 9bcd7e2a71..5b308f88f0 100644
--- a/ecmascript/transforms/module/Cargo.toml
+++ b/ecmascript/transforms/module/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_module"... | 3 | 19 | 3 |
8cbbddb957a267995d86e701f99aa9a214b1a570 | ๊ฐ๋์ค | 2021-08-09T16:13:41 | fix(es/parser): Recover from `import.meta` in scripts (#2042)
swc_ecma_parser:
- Recover from `import.meta` in scripts. (#2041)
- Allow `import.meta` when using `parse_program`. | diff --git a/Cargo.lock b/Cargo.lock
index 25725b5713..5dad7ede7d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2440,7 +2440,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.66.1"
+version = "0.66.2"
dependencies = [
"either",
"enum_kind",
diff --git a/ecmascript/parser/Cargo.toml b/ecma... | 6 | 53 | 20 |
4ead801295a106e08c109991ea2cf528c40d22a5 | Sosuke Suzuki | 2021-08-09T14:21:43 | refactor(es/parser): Cleanup (#2033)
swc_ecma_parser:
- Use `tok!` macro. | diff --git a/ecmascript/parser/src/macros.rs b/ecmascript/parser/src/macros.rs
index 06b8cbc0e3..142615f9df 100644
--- a/ecmascript/parser/src/macros.rs
+++ b/ecmascript/parser/src/macros.rs
@@ -194,6 +194,11 @@ macro_rules! tok {
("in") => {
crate::token::Token::Word(crate::token::Word::Keyword(crate::to... | 2 | 9 | 5 |
4cdb45ff2e6372af940f9398e179f5fae09ceabc | ๊ฐ๋์ค | 2021-08-06T17:41:50 | feat(swc): Improve swc as a crate (#2026)
]swc_ecmascript:
- Expose `swc_ecma_preset_env`.
swc:
- Expose `swc_atoms`.
- Expose `swc_common`.
- Expose `swc_ecmascript`. | diff --git a/Cargo.lock b/Cargo.lock
index 28c0d593d7..eeaadd64fb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2255,7 +2255,7 @@ checksum = "6446ced80d6c486436db5c078dde11a9f73d42b57fb273121e160b84f63d894c"
[[package]]
name = "swc"
-version = "0.35.0"
+version = "0.35.1"
dependencies = [
"ahash 0.7.4",
"anyhow... | 6 | 17 | 6 |
403f6477523c135339965841af0c22e8c3a04db2 | Iron Lu | 2021-08-06T14:20:02 | fix(es/transforms/classes): Fix a bug related to super property access (#1960)
swc_ecma_transforms_classes:
- Fix super access. (#1959) | diff --git a/ecmascript/transforms/classes/src/super_field.rs b/ecmascript/transforms/classes/src/super_field.rs
index 70a863efd7..6b74e4e4a5 100644
--- a/ecmascript/transforms/classes/src/super_field.rs
+++ b/ecmascript/transforms/classes/src/super_field.rs
@@ -43,23 +43,6 @@ pub struct SuperFieldAccessFolder<'a> {
... | 4 | 236 | 169 |
a086a203dde45442357759f79921e33aa30e4d2d | Sosuke Suzuki | 2021-08-04T05:38:07 | feat(es/parser): Report an error for `import.meta` in script (#1999) | diff --git a/Cargo.lock b/Cargo.lock
index 79587f9915..8d1df3cfac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -906,7 +906,7 @@ dependencies = [
[[package]]
name = "jsdoc"
-version = "0.33.0"
+version = "0.34.0"
dependencies = [
"anyhow",
"dashmap",
@@ -2348,7 +2348,7 @@ dependencies = [
[[package]]
name = ... | 23 | 140 | 118 |
064416c0797ac16323ef8220481af91d2ade14bd | David Sherret | 2021-08-04T04:36:49 | feat(common): Add an utiliy method for comments (#2002)
swc_common:
- Add `SingleThreadedComments::from_leading_and_trailing`. | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 72f98499c2..ae6f44ab26 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_common"
repository = "https://github.com/swc-project/swc.git"
-version = "0.11.3"
+version = "0.11.4"
[feat... | 2 | 10 | 1 |
080b1fa3ac666b80377b9de2ebbe40578f96b9fb | David Sherret | 2021-08-04T04:02:03 | fix(common): Remove potential race condition (#2001)
swc_common:
- Remove potential race condition in `CommentsExt`. | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 6909746a32..72f98499c2 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_common"
repository = "https://github.com/swc-project/swc.git"
-version = "0.11.2"
+version = "0.11.3"
[feat... | 2 | 5 | 9 |
a4fb1148211a5ab92063e059ea3b0ab08414631c | ๊ฐ๋์ค | 2021-08-04T03:31:17 | fix(ci): Fix CI (#2003) | diff --git a/ecmascript/codegen/tests/test262.rs b/ecmascript/codegen/tests/test262.rs
index f0f6bda523..1d60ded863 100644
--- a/ecmascript/codegen/tests/test262.rs
+++ b/ecmascript/codegen/tests/test262.rs
@@ -213,7 +213,9 @@ fn error_tests(tests: &mut Vec<TestDescAndFn>, minify: bool) -> Result<(), io::E
fn identity... | 1 | 3 | 1 |
d64aa6f80de004534074c663ff4367ce1a055119 | David Sherret | 2021-07-29T23:02:50 | fix(es/transforms): Strip out private method overloads (#1977)
swc_ecma_transforms_typescript:
- `strip`: Remove private method overloads. (denoland/deno#11550) | diff --git a/ecmascript/transforms/typescript/Cargo.toml b/ecmascript/transforms/typescript/Cargo.toml
index b803a6dd6d..3715290483 100644
--- a/ecmascript/transforms/typescript/Cargo.toml
+++ b/ecmascript/transforms/typescript/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_tr... | 3 | 28 | 6 |
360b4bcc046d178bc7792a51fe00bcd456f2987f | ๊ฐ๋์ค | 2021-07-29T05:29:22 | fix: Remove println | diff --git a/Cargo.lock b/Cargo.lock
index 0e8de482d6..f709b2fe32 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2948,7 +2948,7 @@ dependencies = [
[[package]]
name = "testing_macros"
-version = "0.1.2"
+version = "0.2.1"
dependencies = [
"anyhow",
"glob",
diff --git a/testing/macros/Cargo.toml b/testing/macros/... | 3 | 2 | 3 |
af4cbbae23a948d4339e14b4ce28d1fbbb18134b | OJ Kwon | 2021-07-26T10:16:39 | fix(es/transforms/base): Fix hygiene (#1964)
swc_ecma_transforms_base:
- `hygiene`: Fix handling of class method parameters. (#1948) | diff --git a/ecmascript/transforms/base/Cargo.toml b/ecmascript/transforms/base/Cargo.toml
index a7a2334022..b4654ac3a2 100644
--- a/ecmascript/transforms/base/Cargo.toml
+++ b/ecmascript/transforms/base/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_base"
reposito... | 3 | 91 | 6 |
7a8ad8826a0072a53993977e68b00ccabe525d01 | ๊ฐ๋์ค | 2021-07-14T13:43:17 | fix(es/transforms): Fix fixer (#1919)
swc_ecma_transforms_base:
- `fixer`: Allow using await expressions as a callee of a new expression. | diff --git a/ecmascript/transforms/base/Cargo.toml b/ecmascript/transforms/base/Cargo.toml
index 8b7d35b86d..f293cee57b 100644
--- a/ecmascript/transforms/base/Cargo.toml
+++ b/ecmascript/transforms/base/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_base"
reposito... | 2 | 7 | 1 |
d13eff99d871ad25a7b3dd4def5da9c6c5fb2409 | Iron Lu | 2021-07-13T13:32:45 | fix(es/transforms/proposal): Fix order of constructor statements (#1914)
swc_ecma_transforms_proposal:
- `decorators`: Fix order. (#1913) | diff --git a/ecmascript/transforms/Cargo.toml b/ecmascript/transforms/Cargo.toml
index 165f97b62e..2e408c04e1 100644
--- a/ecmascript/transforms/Cargo.toml
+++ b/ecmascript/transforms/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms"
repository = "https://github.com/... | 3 | 104 | 4 |
480287aec409b9f9889b51ae82d2f54cd0688b06 | OJ Kwon | 2021-07-09T05:13:16 | fix(es/transforms/compat): Fix regenerator (#1906)
swc_ecma_transforms_compat:
- `regenerator`: Handle labeled continue jumps. (#1892) | diff --git a/ecmascript/transforms/compat/Cargo.toml b/ecmascript/transforms/compat/Cargo.toml
index e16c489fb6..9301498b5f 100644
--- a/ecmascript/transforms/compat/Cargo.toml
+++ b/ecmascript/transforms/compat/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_compat"... | 4 | 179 | 3 |
ed274b02f2d9c425c5ed7e9ab2633b5fba6e4f17 | David Sherret | 2021-07-07T08:41:58 | fix(es/parser): Fix parsing of file with onlly shebang (#1896) | diff --git a/ecmascript/parser/Cargo.toml b/ecmascript/parser/Cargo.toml
index 7710598856..54e1c43d40 100644
--- a/ecmascript/parser/Cargo.toml
+++ b/ecmascript/parser/Cargo.toml
@@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs", "examples/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma_parser"
repository... | 3 | 46 | 23 |
6037332cb44fa668300b01504191ab6e970038ba | OJ Kwon | 2021-07-07T08:41:03 | fix(es/transforms/compat): Handle nested optional chaining expression (#1899)
Co-authored-by: ๊ฐ๋์ค <kdy1997.dev@gmail.com> | diff --git a/ecmascript/transforms/compat/Cargo.toml b/ecmascript/transforms/compat/Cargo.toml
index 6ccfad3774..01451a47da 100644
--- a/ecmascript/transforms/compat/Cargo.toml
+++ b/ecmascript/transforms/compat/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_transforms_compat"... | 3 | 9 | 5 |
76341068d05aa2ab130d559e10354103fc99ecd5 | Austaras | 2021-07-04T10:44:33 | fix(es/ast): Fix handling of reserved words (#1891) | diff --git a/Cargo.toml b/Cargo.toml
index 3dae6a563e..f374d6195f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,7 +11,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
-version = "0.26.0"
+version = "0.27.0"
[lib]
name = "swc"
@@ -30,15 +30,15 @... | 32 | 234 | 211 |
1a01d0f2c5e20de541cc412c95bedb1b6bd51367 | Austaras | 2021-07-02T01:07:34 | fix(es/transform/react): Handle TypeScript declare module (#1875)
swc_ecma_transforms_module:
- Handle typescirpt declare module. (#1865) | diff --git a/ecmascript/transforms/react/Cargo.toml b/ecmascript/transforms/react/Cargo.toml
index 56c1d298e7..7f8b8cf162 100644
--- a/ecmascript/transforms/react/Cargo.toml
+++ b/ecmascript/transforms/react/Cargo.toml
@@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = "Apache-2.0/MIT"
name = "swc_ecma... | 3 | 33 | 1 |
eaaf32d806065b7bbfb1e0804de2815b749be7e4 | ๊ฐ๋์ค | 2021-06-27T07:19:05 | feat(es/loader): Add more logics to tsconfig.paths handler (#1860) | diff --git a/ecmascript/loader/Cargo.toml b/ecmascript/loader/Cargo.toml
index c413f4d87b..7173f7cf01 100644
--- a/ecmascript/loader/Cargo.toml
+++ b/ecmascript/loader/Cargo.toml
@@ -6,7 +6,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc_ecma_loader"
repository = "https://github.com/swc-project/swc.git"... | 4 | 45 | 10 |
5345c90989be34c592bf5e74e4f58091f26f220e | Moti Zilberman | 2021-06-26T04:12:26 | fix(es/transforms/base): Fix fixer for the call in callee position (#1857) | diff --git a/ecmascript/transforms/base/src/fixer.rs b/ecmascript/transforms/base/src/fixer.rs
index 31611c5d67..c431b02af2 100644
--- a/ecmascript/transforms/base/src/fixer.rs
+++ b/ecmascript/transforms/base/src/fixer.rs
@@ -258,6 +258,11 @@ impl VisitMut for Fixer<'_> {
|| obj.is_class()
... | 1 | 23 | 1 |
c5f1c6b8ba3a26f1b3463f92954c245ecc52e23a | Maxime Guerreiro | 2021-06-25T05:40:51 | chore(es/ast): Upgrade arbitrary crate to v1 (#1844)
swc_ecma_ast:
- Upgrade arbitrary crate. | diff --git a/common/Cargo.toml b/common/Cargo.toml
index 3214f20c84..ff1d71408a 100644
--- a/common/Cargo.toml
+++ b/common/Cargo.toml
@@ -14,7 +14,7 @@ default = []
tty-emitter = ["atty", "termcolor"]
[dependencies]
-arbitrary = {version = "0.4.7", optional = true, features = ["derive"]}
+arbitrary = {version = "1... | 8 | 11 | 11 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.