Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
438 changes: 188 additions & 250 deletions deps/swc/Cargo.lock

Large diffs are not rendered by default.

14 changes: 3 additions & 11 deletions deps/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@ repository = "https://github.com/swc-project/swc.git"


[workspace.dependencies]
# bytecheck version should be in sync with rkyv version. Do not bump individually.
bytecheck = "0.8.0"
rancor = "0.1.0"
rkyv = "0.8.16"


Inflector = "0.11.4"
allocator-api2 = "0.2.18"
ansi_term = "0.12.1"
Expand All @@ -35,7 +29,7 @@ backtrace = "0.3"
base64 = "0.22.1"
bitflags = "2.5.0"
blake3 = "1.5.4"
browserslist-rs = "0.19.0"
browserslist-rs = "0.20.0"
bumpalo = "3.16.0"
bytes-str = "0.2.5"
cargo_metadata = "0.18.1"
Expand Down Expand Up @@ -68,7 +62,7 @@ kstring = "2.0.0"
lazy_static = "1.4.0"
lexical = "6.1.0"
lightningcss = "1.0.0-alpha.68"
lru = "0.16.1"
lru = "0.18.2"
memchr = "2.6.1"
miette = "7.6.0"
napi = { version = "3", default-features = false }
Expand Down Expand Up @@ -97,7 +91,7 @@ radix_fmt = "1.0.0"
rand = "0.8.5"
rayon = "1.7.0"
regex = "1.5.4"
regress = "0.10.3"
regress = "0.11.1"
relative-path = "1.6.1"
reqwest = "0.11.14"
rustc-hash = "2"
Expand All @@ -114,7 +108,6 @@ sha2 = "0.10.8"
shrink-to-fit = "0.2.1"
siphasher = "0.3.9"
smallvec = "1.8.0"
smartstring = "1.0.1"
smol_str = "0.2.0"
st-map = "0.2.0"
string_cache = "0.8.7"
Expand All @@ -131,7 +124,6 @@ triomphe = "0.1.13"
unicode-id-start = "1.2.0"
unicode-width = "0.2.1"
url = "2.5.4"
vergen = { version = "9.0.0", default-features = false }
walkdir = "2.4.0"
wasi-common = { version = "38", default-features = false }
wasm-bindgen = "0.2.100"
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_core_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_core_wasm"
publish = false
repository = { workspace = true }
version = "1.15.43"
version = "1.16.0"

[lib]
bench = false
Expand Down
29 changes: 21 additions & 8 deletions deps/swc/bindings/binding_core_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,7 @@ export interface Constructor extends Node, HasSpan {

params: (TsParameterProperty | Param)[];

body?: BlockStatement;
body?: FunctionBody;

accessibility?: Accessibility;

Expand Down Expand Up @@ -1720,7 +1720,7 @@ export interface ArrowFunctionExpression extends ExpressionBase {

params: Pattern[];

body: BlockStatement | Expression;
body: FunctionBody | Expression;

async: boolean;

Expand Down Expand Up @@ -1784,9 +1784,11 @@ export interface ParenthesisExpression extends ExpressionBase {
}

export interface Fn extends HasSpan, HasDecorator {
thisParam?: TsThisParameter;

params: Param[];

body?: BlockStatement;
body?: FunctionBody;

generator: boolean;

Expand Down Expand Up @@ -2295,16 +2297,13 @@ export interface AssignmentProperty extends Node {
export interface GetterProperty extends PropBase, HasSpan {
type: "GetterProperty";

typeAnnotation?: TsTypeAnnotation;

body?: BlockStatement;
function: Fn;
}

export interface SetterProperty extends PropBase, HasSpan {
type: "SetterProperty";

param: Pattern;
body?: BlockStatement;
function: Fn;
}

export interface MethodProperty extends PropBase, Fn {
Expand All @@ -2329,6 +2328,12 @@ export interface BlockStatement extends Node, HasSpan {
stmts: Statement[];
}

export interface FunctionBody extends Node, HasSpan {
type: "FunctionBody";

stmts: Statement[];
}

export interface ExpressionStatement extends Node, HasSpan {
type: "ExpressionStatement";
expression: Expression;
Expand Down Expand Up @@ -2663,6 +2668,14 @@ export interface TsThisType extends Node, HasSpan {
type: "TsThisType";
}

export interface TsThisParameter extends Node, HasSpan {
type: "TsThisParameter";

thisSpan: Span;

typeAnnotation?: TsTypeAnnotation;
}

export type TsFnParameter =
| BindingIdentifier
| ArrayPattern
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_es_ast_viewer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ license = { workspace = true }
name = "binding_es_ast_viewer"
publish = false
repository = { workspace = true }
version = "1.15.43"
version = "1.16.0"

[dependencies]
anyhow = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_html_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_html_wasm"
publish = false
repository = { workspace = true }
version = "1.15.43"
version = "1.16.0"

[lib]
bench = false
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/bindings/binding_minifier_wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license = { workspace = true }
name = "binding_minifier_wasm"
publish = false
repository = { workspace = true }
version = "1.15.43"
version = "1.16.0"

[lib]
bench = false
Expand Down
29 changes: 21 additions & 8 deletions deps/swc/bindings/binding_minifier_wasm/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,7 @@ export interface Constructor extends Node, HasSpan {

params: (TsParameterProperty | Param)[];

body?: BlockStatement;
body?: FunctionBody;

accessibility?: Accessibility;

Expand Down Expand Up @@ -1617,7 +1617,7 @@ export interface ArrowFunctionExpression extends ExpressionBase {

params: Pattern[];

body: BlockStatement | Expression;
body: FunctionBody | Expression;

async: boolean;

Expand Down Expand Up @@ -1681,9 +1681,11 @@ export interface ParenthesisExpression extends ExpressionBase {
}

export interface Fn extends HasSpan, HasDecorator {
thisParam?: TsThisParameter;

params: Param[];

body?: BlockStatement;
body?: FunctionBody;

generator: boolean;

Expand Down Expand Up @@ -2192,16 +2194,13 @@ export interface AssignmentProperty extends Node {
export interface GetterProperty extends PropBase, HasSpan {
type: "GetterProperty";

typeAnnotation?: TsTypeAnnotation;

body?: BlockStatement;
function: Fn;
}

export interface SetterProperty extends PropBase, HasSpan {
type: "SetterProperty";

param: Pattern;
body?: BlockStatement;
function: Fn;
}

export interface MethodProperty extends PropBase, Fn {
Expand All @@ -2226,6 +2225,12 @@ export interface BlockStatement extends Node, HasSpan {
stmts: Statement[];
}

export interface FunctionBody extends Node, HasSpan {
type: "FunctionBody";

stmts: Statement[];
}

export interface ExpressionStatement extends Node, HasSpan {
type: "ExpressionStatement";
expression: Expression;
Expand Down Expand Up @@ -2569,6 +2574,14 @@ export interface TsThisType extends Node, HasSpan {
type: "TsThisType";
}

export interface TsThisParameter extends Node, HasSpan {
type: "TsThisParameter";

thisSpan: Span;

typeAnnotation?: TsTypeAnnotation;
}

export type TsFnParameter =
| BindingIdentifier
| ArrayPattern
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[target.wasm32-unknown-unknown]
# support more stack size due to issue: https://github.com/swc-project/swc/issues/10207
rustflags = ["-C", "link-args=-z stack-size=2097152"]
40 changes: 40 additions & 0 deletions deps/swc/bindings/binding_nodejs_support_wasm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[package]
authors = ["강동윤 <kdy1997.dev@gmail.com>"]
description = "Node.js support helpers compiled to WebAssembly"
edition = { workspace = true }
license = { workspace = true }
name = "binding_nodejs_support_wasm"
publish = false
repository = { workspace = true }
version = "1.16.0"

[lib]
bench = false
crate-type = ["cdylib"]

[features]
nightly = ["swc_ts_fast_strip/nightly"]

[dependencies]
anyhow = { workspace = true }
js-sys = { workspace = true }
miette = { workspace = true }
owo-colors = { workspace = true }
serde = { workspace = true, features = ["derive"] }
serde-wasm-bindgen = { workspace = true }
serde_json = { workspace = true }
swc_common = { path = "../../crates/swc_common" }
swc_ecma_ast = { path = "../../crates/swc_ecma_ast" }
swc_ecma_parser = { path = "../../crates/swc_ecma_parser" }
swc_ecma_visit = { path = "../../crates/swc_ecma_visit" }
swc_error_reporters = { path = "../../crates/swc_error_reporters" }
swc_ts_fast_strip = { path = "../../crates/swc_ts_fast_strip", features = [
"wasm-bindgen",
] }
tracing = { workspace = true, features = ["max_level_off"] }
unicode-width = { workspace = true }
wasm-bindgen = { workspace = true, features = ["enable-interning"] }
wasm-bindgen-futures = { workspace = true }

[package.metadata.wasm-pack.profile.release]
wasm-opt = false
Loading
Loading