Skip to content

Commit 6984217

Browse files
authored
feat(ES/transform/typescript): Support namespace (#1325)
swc_common: - Update `serde`. swc_ecma_transforms_typescript: - Add support for namespace.
1 parent ebc0d0a commit 6984217

File tree

11 files changed

+382
-22
lines changed

11 files changed

+382
-22
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from 'https://raw.githubusercontent.com/colinhacks/zod/654680afc2ede388e71e09104eac5a0088fe3207/deno/lib/index.ts'

common/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66
license = "Apache-2.0/MIT"
77
name = "swc_common"
88
repository = "https://github.com/swc-project/swc.git"
9-
version = "0.10.8"
9+
version = "0.10.9"
1010

1111
[features]
1212
concurrent = ["parking_lot"]
@@ -15,7 +15,7 @@ tty-emitter = ["atty", "termcolor"]
1515

1616
[dependencies]
1717
arbitrary = {version = "0.4.7", optional = true, features = ["derive"]}
18-
ast_node = {version = "0.7", path = "../macros/ast_node"}
18+
ast_node = {version = "0.7.1", path = "../macros/ast_node"}
1919
atty = {version = "0.2", optional = true}
2020
cfg-if = "0.1.2"
2121
either = "1.5"
@@ -27,7 +27,7 @@ once_cell = "1"
2727
owning_ref = "0.4"
2828
parking_lot = {version = "0.7.1", optional = true}
2929
scoped-tls = {version = "1"}
30-
serde = {version = "1", features = ["derive"]}
30+
serde = {version = "1.0.119", features = ["derive"]}
3131
sourcemap = {version = "6", optional = true}
3232
string_cache = "0.8.1"
3333
swc_eq_ignore_macros = {version = "0.1", path = "../macros/eq_ignore"}

common/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ use std::fmt::Debug;
3232
pub use swc_eq_ignore_macros::EqIgnoreSpan;
3333
pub use swc_eq_ignore_macros::TypeEq;
3434
pub use swc_visit::chain;
35+
#[doc(hidden)]
36+
pub mod private;
3537

3638
/// A trait for ast nodes.
3739
pub trait AstNode: Debug + PartialEq + Clone + Spanned + Serialize {

common/src/private/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//! This module is private module and can be changed without notice.
2+
3+
pub use serde::__private as serde;

ecmascript/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66
license = "Apache-2.0/MIT"
77
name = "swc_ecmascript"
88
repository = "https://github.com/swc-project/swc.git"
9-
version = "0.17.1"
9+
version = "0.17.2"
1010

1111
[features]
1212
codegen = ["swc_ecma_codegen"]
@@ -28,7 +28,7 @@ swc_ecma_ast = {version = "0.36.0", path = "./ast"}
2828
swc_ecma_codegen = {version = "0.42.0", path = "./codegen", optional = true}
2929
swc_ecma_dep_graph = {version = "0.11.0", path = "./dep-graph", optional = true}
3030
swc_ecma_parser = {version = "0.44.0", path = "./parser", optional = true}
31-
swc_ecma_transforms = {version = "0.32.1", path = "./transforms", optional = true}
31+
swc_ecma_transforms = {version = "0.32.2", path = "./transforms", optional = true}
3232
swc_ecma_utils = {version = "0.26.0", path = "./utils", optional = true}
3333
swc_ecma_visit = {version = "0.22.0", path = "./visit", optional = true}
3434

ecmascript/transforms/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66
license = "Apache-2.0/MIT"
77
name = "swc_ecma_transforms"
88
repository = "https://github.com/swc-project/swc.git"
9-
version = "0.32.1"
9+
version = "0.32.2"
1010

1111
[features]
1212
compat = ["swc_ecma_transforms_compat"]
@@ -27,7 +27,7 @@ swc_ecma_transforms_module = {version = "0.2.0", path = "./module", optional = t
2727
swc_ecma_transforms_optimization = {version = "0.2.2", path = "./optimization", optional = true}
2828
swc_ecma_transforms_proposal = {version = "0.2.0", path = "./proposal", optional = true}
2929
swc_ecma_transforms_react = {version = "0.2.0", path = "./react", optional = true}
30-
swc_ecma_transforms_typescript = {version = "0.2.1", path = "./typescript", optional = true}
30+
swc_ecma_transforms_typescript = {version = "0.2.2", path = "./typescript", optional = true}
3131
swc_ecma_utils = {version = "0.26.0", path = "../utils"}
3232
swc_ecma_visit = {version = "0.22.0", path = "../visit"}
3333
unicode-xid = "0.2"

ecmascript/transforms/typescript/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ edition = "2018"
66
license = "Apache-2.0/MIT"
77
name = "swc_ecma_transforms_typescript"
88
repository = "https://github.com/swc-project/swc.git"
9-
version = "0.2.1"
9+
version = "0.2.2"
1010
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
1111

1212
[dependencies]
1313
fxhash = "0.2.1"
1414
serde = {version = "1.0.118", features = ["derive"]}
1515
swc_atoms = {version = "0.2", path = "../../../atoms"}
16-
swc_common = {version = "0.10", path = "../../../common"}
16+
swc_common = {version = "0.10.9", path = "../../../common"}
1717
swc_ecma_ast = {version = "0.36", path = "../../ast"}
1818
swc_ecma_parser = {version = "0.44.1", path = "../../parser"}
1919
swc_ecma_transforms_base = {version = "0.1", path = "../base"}

0 commit comments

Comments
 (0)