Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
251 changes: 115 additions & 136 deletions deps/swc/Cargo.lock

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions deps/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,10 +194,6 @@ opt-level = 3
[profile.test.package.swc_ecma_transforms_optimization]
opt-level = 3

[profile.test.package.swc_ecma_usage_analyzer]
opt-level = 3


[profile.release.package]

[profile.release.package.wasmer-wasix]
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.21"
version = "1.15.24"

[lib]
bench = false
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.21"
version = "1.15.24"

[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.21"
version = "1.15.24"

[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.21"
version = "1.15.24"

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

[lib]
bench = false
Expand Down
4 changes: 2 additions & 2 deletions deps/swc/bindings/swc_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = { workspace = true }
name = "swc_cli"
repository = { workspace = true }
version = "0.104.4"
version = "0.107.2"

[[bin]]
bench = false
Expand All @@ -20,4 +20,4 @@ plugin = ["swc_cli_impl/plugin"]
[dependencies]
anyhow = { workspace = true }
par-core = { workspace = true, features = ["chili"] }
swc_cli_impl = { version = "59.0.0", path = "../../crates/swc_cli_impl" }
swc_cli_impl = { version = "62.0.0", path = "../../crates/swc_cli_impl" }
12 changes: 6 additions & 6 deletions deps/swc/crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = { workspace = true }
license = { workspace = true }
name = "binding_macros"
repository = { workspace = true }
version = "57.0.0"
version = "60.0.0"

[lib]
bench = false
Expand Down Expand Up @@ -33,11 +33,11 @@ binding_wasm = [

[dependencies]
# Common deps for the SWC imports
swc = { optional = true, version = "57.0.0", path = "../swc", default-features = false }
swc_common = { optional = true, version = "19.0.0", path = "../swc_common", default-features = false }
swc_ecma_ast = { optional = true, version = "21.0.0", path = "../swc_ecma_ast", default-features = false }
swc_ecma_transforms = { optional = true, version = "49.0.0", path = "../swc_ecma_transforms", default-features = false }
swc_ecma_visit = { optional = true, version = "21.0.0", path = "../swc_ecma_visit", default-features = false }
swc = { optional = true, version = "60.0.0", path = "../swc", default-features = false }
swc_common = { optional = true, version = "21.0.0", path = "../swc_common", default-features = false }
swc_ecma_ast = { optional = true, version = "23.0.0", path = "../swc_ecma_ast", default-features = false }
swc_ecma_transforms = { optional = true, version = "51.0.0", path = "../swc_ecma_transforms", default-features = false }
swc_ecma_visit = { optional = true, version = "23.0.0", path = "../swc_ecma_visit", default-features = false }

# Optional deps for the wasm binding macro
anyhow = { workspace = true, optional = true }
Expand Down
20 changes: 10 additions & 10 deletions deps/swc/crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = { workspace = true }
license = { workspace = true }
name = "dbg-swc"
repository = { workspace = true }
version = "48.0.0"
version = "51.0.0"

[[bin]]
bench = false
Expand All @@ -22,22 +22,22 @@ rayon = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
sha1 = { workspace = true }
swc_common = { version = "19.0.0", features = [
swc_common = { version = "21.0.0", features = [
"concurrent",
"tty-emitter",
], path = "../swc_common" }
swc_ecma_ast = { version = "21.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "24.0.0", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "47.0.0", path = "../swc_ecma_minifier", features = [
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "26.0.0", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "50.0.0", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_parser = { version = "36.0.0", path = "../swc_ecma_parser", features = [
swc_ecma_parser = { version = "38.0.0", path = "../swc_ecma_parser", features = [
"flow",
] }
swc_ecma_transforms_base = { version = "39.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_typescript = { version = "43.0.0", path = "../swc_ecma_transforms_typescript" }
swc_ecma_visit = { version = "21.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "21.0.0", path = "../swc_error_reporters" }
swc_ecma_transforms_base = { version = "41.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_typescript = { version = "45.0.0", path = "../swc_ecma_transforms_typescript" }
swc_ecma_visit = { version = "23.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "23.0.0", path = "../swc_error_reporters" }
swc_timer = { version = "1.0.0", path = "../swc_timer" }
tempfile = { workspace = true }
tracing = { workspace = true }
Expand Down
8 changes: 4 additions & 4 deletions deps/swc/crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = { workspace = true }
name = "jsdoc"
repository = { workspace = true }
version = "19.0.0"
version = "21.0.0"

[lib]
bench = false
Expand All @@ -26,9 +26,9 @@ nom = { workspace = true }
serde = { workspace = true, features = ["derive"], optional = true }

swc_atoms = { version = "9.0.0", path = "../swc_atoms" }
swc_common = { version = "19.0.0", path = "../swc_common" }
swc_common = { version = "21.0.0", path = "../swc_common" }

[dev-dependencies]
dashmap = { workspace = true }
swc_ecma_parser = { version = "36.0.0", path = "../swc_ecma_parser" }
testing = { version = "20.0.0", path = "../testing" }
swc_ecma_parser = { version = "38.0.0", path = "../swc_ecma_parser" }
testing = { version = "22.0.0", path = "../testing" }
64 changes: 32 additions & 32 deletions deps/swc/crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = { workspace = true }
name = "swc"
repository = { workspace = true }
version = "57.0.0"
version = "60.0.0"

[lib]
bench = false
Expand Down Expand Up @@ -84,47 +84,47 @@ url = { workspace = true }


swc_atoms = { version = "9.0.0", path = "../swc_atoms" }
swc_common = { version = "19.0.0", path = "../swc_common", features = [
swc_common = { version = "21.0.0", path = "../swc_common", features = [
"sourcemap",
"parking_lot",
] }
swc_compiler_base = { version = "50.0.0", path = "../swc_compiler_base" }
swc_compiler_base = { version = "53.0.0", path = "../swc_compiler_base" }
swc_config = { version = "4.0.0", path = "../swc_config" }
swc_ecma_ast = { version = "21.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "24.0.0", path = "../swc_ecma_codegen" }
swc_ecma_ext_transforms = { version = "27.0.0", path = "../swc_ecma_ext_transforms" }
swc_ecma_lints = { version = "28.0.0", path = "../swc_ecma_lints", optional = true }
swc_ecma_loader = { version = "19.0.0", path = "../swc_ecma_loader", features = [
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "26.0.0", path = "../swc_ecma_codegen" }
swc_ecma_ext_transforms = { version = "29.0.0", path = "../swc_ecma_ext_transforms" }
swc_ecma_lints = { version = "30.0.0", path = "../swc_ecma_lints", optional = true }
swc_ecma_loader = { version = "21.0.0", path = "../swc_ecma_loader", features = [
"cache",
"node",
"tsc",
] }
swc_ecma_minifier = { version = "47.0.0", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "36.0.0", path = "../swc_ecma_parser", default-features = false, features = [
swc_ecma_minifier = { version = "50.0.0", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "38.0.0", path = "../swc_ecma_parser", default-features = false, features = [
"typescript",
] }
swc_ecma_preset_env = { version = "50.0.0", path = "../swc_ecma_preset_env", default-features = false, features = ["serde-impl"] }
swc_ecma_transforms = { version = "49.0.0", path = "../swc_ecma_transforms", features = [
swc_ecma_preset_env = { version = "52.0.0", path = "../swc_ecma_preset_env", default-features = false, features = ["serde-impl"] }
swc_ecma_transforms = { version = "51.0.0", path = "../swc_ecma_transforms", features = [
"compat",
"optimization",
"proposal",
"react",
"typescript",
] }
swc_ecma_transforms_module = { version = "43.0.0", path = "../swc_ecma_transforms_module", optional = true }
swc_ecma_transforms_base = { version = "39.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "45.0.0", path = "../swc_ecma_transforms_compat", default-features = false }
swc_ecma_transforms_optimization = { version = "41.0.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "27.0.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "21.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "21.0.0", path = "../swc_error_reporters" }
swc_node_comments = { version = "19.0.0", path = "../swc_node_comments" }
swc_plugin_backend_wasmer = { version = "8.0.0", path = "../swc_plugin_backend_wasmer", optional = true, default-features = false }
swc_plugin_proxy = { version = "21.0.0", path = "../swc_plugin_proxy", optional = true }
swc_plugin_runner = { version = "25.0.0", path = "../swc_plugin_runner", optional = true, default-features = false }
swc_ecma_transforms_module = { version = "45.0.0", path = "../swc_ecma_transforms_module", optional = true }
swc_ecma_transforms_base = { version = "41.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "47.0.0", path = "../swc_ecma_transforms_compat", default-features = false }
swc_ecma_transforms_optimization = { version = "43.0.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "29.0.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "23.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "23.0.0", path = "../swc_error_reporters" }
swc_node_comments = { version = "21.0.0", path = "../swc_node_comments" }
swc_plugin_backend_wasmer = { version = "10.0.0", path = "../swc_plugin_backend_wasmer", optional = true, default-features = false }
swc_plugin_proxy = { version = "23.0.0", path = "../swc_plugin_proxy", optional = true }
swc_plugin_runner = { version = "27.0.0", path = "../swc_plugin_runner", optional = true, default-features = false }
swc_timer = { version = "1.0.0", path = "../swc_timer" }
swc_transform_common = { version = "13.0.0", path = "../swc_transform_common" }
swc_typescript = { version = "26.0.0", path = "../swc_typescript", optional = true }
swc_transform_common = { version = "15.0.0", path = "../swc_transform_common" }
swc_typescript = { version = "28.0.0", path = "../swc_typescript", optional = true }
swc_visit = { version = "2.0.1", path = "../swc_visit" }

[dependencies.tokio]
Expand All @@ -149,24 +149,24 @@ criterion = { workspace = true }
par-core = { workspace = true, features = ["chili"] }
walkdir = { workspace = true }

swc_ecma_ast = { version = "21.0.0", path = "../swc_ecma_ast", features = [
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast", features = [
"serde-impl",
] }
swc_ecma_lints = { version = "28.0.0", path = "../swc_ecma_lints", features = [
swc_ecma_lints = { version = "30.0.0", path = "../swc_ecma_lints", features = [
"non_critical_lints",
] }
swc_ecma_preset_env = { version = "50.0.0", path = "../swc_ecma_preset_env", features = [
swc_ecma_preset_env = { version = "52.0.0", path = "../swc_ecma_preset_env", features = [
"es3",
] }
swc_ecma_testing = { version = "20.0.0", path = "../swc_ecma_testing" }
swc_ecma_transforms_base = { version = "39.0.0", path = "../swc_ecma_transforms_base", features = [
swc_ecma_testing = { version = "22.0.0", path = "../swc_ecma_testing" }
swc_ecma_transforms_base = { version = "41.0.0", path = "../swc_ecma_transforms_base", features = [
"inline-helpers",
] }
swc_ecma_transforms_compat = { version = "45.0.0", path = "../swc_ecma_transforms_compat", features = [
swc_ecma_transforms_compat = { version = "47.0.0", path = "../swc_ecma_transforms_compat", features = [
"es3",
] }
swc_malloc = { version = "1.2.5", path = "../swc_malloc" }
testing = { version = "20.0.0", path = "../testing" }
testing = { version = "22.0.0", path = "../testing" }

[[example]]
name = "transform"
Expand Down
34 changes: 17 additions & 17 deletions deps/swc/crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ include = ["Cargo.toml", "build.rs", "src/**/*.rs", "src/**/*.js"]
license = { workspace = true }
name = "swc_bundler"
repository = { workspace = true }
version = "45.0.0"
version = "47.0.0"

[package.metadata.docs.rs]
all-features = true
Expand Down Expand Up @@ -41,17 +41,17 @@ rustc-hash = { workspace = true }
tracing = { workspace = true }

swc_atoms = { version = "9.0.0", path = "../swc_atoms" }
swc_common = { version = "19.0.0", path = "../swc_common" }
swc_ecma_ast = { version = "21.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "24.0.0", path = "../swc_ecma_codegen" }
swc_ecma_loader = { version = "19.0.0", path = "../swc_ecma_loader" }
swc_ecma_parser = { version = "36.0.0", path = "../swc_ecma_parser", default-features = false, features = [
swc_common = { version = "21.0.0", path = "../swc_common" }
swc_ecma_ast = { version = "23.0.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "26.0.0", path = "../swc_ecma_codegen" }
swc_ecma_loader = { version = "21.0.0", path = "../swc_ecma_loader" }
swc_ecma_parser = { version = "38.0.0", path = "../swc_ecma_parser", default-features = false, features = [
"typescript",
] }
swc_ecma_transforms_base = { version = "39.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_optimization = { version = "41.0.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "27.0.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "21.0.0", path = "../swc_ecma_visit" }
swc_ecma_transforms_base = { version = "41.0.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_optimization = { version = "43.0.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "29.0.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "23.0.0", path = "../swc_ecma_visit" }
swc_graph_analyzer = { version = "14.0.1", path = "../swc_graph_analyzer/" }

[dev-dependencies]
Expand All @@ -63,18 +63,18 @@ reqwest = { workspace = true, features = ["blocking"] }
sha1 = { workspace = true }
tempfile = { workspace = true }

swc_ecma_loader = { version = "19.0.0", path = "../swc_ecma_loader", features = [
swc_ecma_loader = { version = "21.0.0", path = "../swc_ecma_loader", features = [
"node",
"cache",
] }
swc_ecma_minifier = { version = "47.0.0", path = "../swc_ecma_minifier", features = [
swc_ecma_minifier = { version = "50.0.0", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_transforms_base = { version = "39.0.0", path = "../swc_ecma_transforms_base", features = [
swc_ecma_transforms_base = { version = "41.0.0", path = "../swc_ecma_transforms_base", features = [
"inline-helpers",
] }
swc_ecma_transforms_proposal = { version = "39.0.0", path = "../swc_ecma_transforms_proposal" }
swc_ecma_transforms_react = { version = "43.0.0", path = "../swc_ecma_transforms_react" }
swc_ecma_transforms_typescript = { version = "43.0.0", path = "../swc_ecma_transforms_typescript" }
swc_ecma_transforms_proposal = { version = "41.0.0", path = "../swc_ecma_transforms_proposal" }
swc_ecma_transforms_react = { version = "45.0.0", path = "../swc_ecma_transforms_react" }
swc_ecma_transforms_typescript = { version = "45.0.0", path = "../swc_ecma_transforms_typescript" }
swc_malloc = { version = "1.2.5", path = "../swc_malloc" }
testing = { version = "20.0.0", path = "../testing" }
testing = { version = "22.0.0", path = "../testing" }
4 changes: 2 additions & 2 deletions deps/swc/crates/swc_cli_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ include = ["Cargo.toml", "src/**/*.rs"]
license = { workspace = true }
name = "swc_cli_impl"
repository = { workspace = true }
version = "59.0.0"
version = "62.0.0"

[[bin]]
name = "swc"
Expand Down Expand Up @@ -38,7 +38,7 @@ tracing-chrome = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
walkdir = { workspace = true }

swc_core = { version = "59.0.1", features = [
swc_core = { version = "62.0.0", features = [
"trace_macro",
"common_concurrent",
"base_concurrent",
Expand Down
2 changes: 1 addition & 1 deletion deps/swc/crates/swc_common/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = { workspace = true }
license = { workspace = true }
name = "swc_common"
repository = { workspace = true }
version = "19.0.0"
version = "21.0.0"

[package.metadata.docs.rs]
all-features = true
Expand Down
10 changes: 7 additions & 3 deletions deps/swc/crates/swc_common/src/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ impl<'a> Input<'a> for StringInput<'a> {
}

#[inline]
fn eat_byte(&mut self, c: u8) -> bool {
unsafe fn eat_byte(&mut self, c: u8) -> bool {
if self.is_byte(c) {
self.remaining = unsafe { self.remaining.get_unchecked(1..) };
self.last_pos = self.last_pos + BytePos(1_u32);
Expand Down Expand Up @@ -299,9 +299,13 @@ pub trait Input<'a>: Clone {

/// Implementors can override the method to make it faster.
///
/// `c` must be ASCII.
/// # Safety
///
/// `c` must be ASCII (i.e., `c <= 0x7F`). Passing a non-ASCII byte may
/// advance the input into the middle of a multi-byte UTF-8 sequence,
/// which would violate the UTF-8 invariant of the underlying `&str`.
#[inline]
fn eat_byte(&mut self, c: u8) -> bool {
unsafe fn eat_byte(&mut self, c: u8) -> bool {
if self.is_byte(c) {
unsafe {
// Safety: We are sure that the input is not empty
Expand Down
Loading
Loading