Skip to content

Commit

Permalink
Merge branch 'main' into issue-8715
Browse files Browse the repository at this point in the history
  • Loading branch information
swc-bot committed Mar 11, 2024
2 parents 948cb5c + 99a5961 commit 4289675
Show file tree
Hide file tree
Showing 46 changed files with 1,154 additions and 1,112 deletions.
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
# Changelog
## [unreleased]

### Bug Fixes



- **(es/minifier)** Fix eval of `toString` of array with holes ([#8727](https://github.com/swc-project/swc/issues/8727)) ([f3fbd9d](https://github.com/swc-project/swc/commit/f3fbd9d54925b708139a37865508430cdcb98f9a))

### Features



- **(es/lints)** Add `no-prototype-builtins` rule ([#8684](https://github.com/swc-project/swc/issues/8684)) ([a5dbb17](https://github.com/swc-project/swc/commit/a5dbb17612327c66366086f99b44c6731d125ffc))

### Refactor



- **(es)** Prepare `wasm32-wasi-preview1-threads` target support ([#8724](https://github.com/swc-project/swc/issues/8724)) ([e3acd14](https://github.com/swc-project/swc/commit/e3acd1476c2428e5329a359bb7323687c06108d2))

## [1.4.6] - 2024-03-08

### Bug Fixes
Expand Down Expand Up @@ -1406,14 +1418,8 @@



- **(es)** Resolve `jsc.baseUrl` for `.swcrc` specified by `--config-file` ([#7801](https://github.com/swc-project/swc/issues/7801)) ([fe1ca26](https://github.com/swc-project/swc/commit/fe1ca26218493d2e7d4121433c365a37e13285e6))


- **(es/compat)** Revert #7610 ([#7813](https://github.com/swc-project/swc/issues/7813)) ([42dec55](https://github.com/swc-project/swc/commit/42dec557ed2e8fd829aba7847b354003cfea1b18))


- **(es/parser)** Revert lexer fix for `<<` ([#7807](https://github.com/swc-project/swc/issues/7807)) ([e527c12](https://github.com/swc-project/swc/commit/e527c12a82740397ed4e909f242326f8e92624a8))

### Features


Expand Down
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bindings/binding_core_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ swc_core = { version = "0.90.18", features = [
"ecma_visit",
"base_node",
"base_concurrent",
] }
]}
swc_malloc = "0.5.10"
2 changes: 1 addition & 1 deletion crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ binding_wasm = [
swc = { optional = true, version = "0.273.18", path = "../swc" }
swc_common = { optional = true, version = "0.33.19", path = "../swc_common" }
swc_ecma_ast = { optional = true, version = "0.112.5", path = "../swc_ecma_ast" }
swc_ecma_transforms = { optional = true, version = "0.229.13", path = "../swc_ecma_transforms" }
swc_ecma_transforms = { optional = true, version = "0.229.14", path = "../swc_ecma_transforms" }
swc_ecma_visit = { optional = true, version = "0.98.6", path = "../swc_ecma_visit" }

# Optional deps for the wasm binding macro
Expand Down
6 changes: 3 additions & 3 deletions crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"
license = "Apache-2.0"
name = "dbg-swc"
repository = "https://github.com/kdy1/dbg-swc.git"
version = "0.91.18"
version = "0.91.19"

[[bin]]
bench = false
Expand All @@ -32,11 +32,11 @@ swc_common = { version = "0.33.19", features = [
], path = "../swc_common" }
swc_ecma_ast = { version = "0.112.5", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.148.10", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "0.192.14", path = "../swc_ecma_minifier", features = [
swc_ecma_minifier = { version = "0.192.15", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_parser = { version = "0.143.8", path = "../swc_ecma_parser" }
swc_ecma_transforms_base = { version = "0.137.13", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_base = { version = "0.137.14", path = "../swc_ecma_transforms_base" }
swc_ecma_visit = { version = "0.98.6", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "0.17.18", path = "../swc_error_reporters" }
swc_timer = { version = "0.21.20", path = "../swc_timer" }
14 changes: 7 additions & 7 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ swc_common = { version = "0.33.19", path = "../swc_common", features = [
"sourcemap",
"parking_lot",
] }
swc_compiler_base = { version = "0.7.14", path = "../swc_compiler_base" }
swc_compiler_base = { version = "0.7.15", path = "../swc_compiler_base" }
swc_config = { version = "0.1.11", path = "../swc_config" }
swc_ecma_ast = { version = "0.112.5", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.148.10", path = "../swc_ecma_codegen" }
Expand All @@ -85,20 +85,20 @@ swc_ecma_loader = { version = "0.45.21", path = "../swc_ecma_loader", features =
"node",
"tsc",
] }
swc_ecma_minifier = { version = "0.192.14", path = "../swc_ecma_minifier" }
swc_ecma_minifier = { version = "0.192.15", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "0.143.8", path = "../swc_ecma_parser" }
swc_ecma_preset_env = { version = "0.206.13", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.229.13", path = "../swc_ecma_transforms", features = [
swc_ecma_preset_env = { version = "0.206.14", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.229.14", path = "../swc_ecma_transforms", features = [
"compat",
"module",
"optimization",
"proposal",
"react",
"typescript",
] }
swc_ecma_transforms_base = { version = "0.137.13", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "0.163.13", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.198.13", path = "../swc_ecma_transforms_optimization" }
swc_ecma_transforms_base = { version = "0.137.14", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "0.163.14", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.198.14", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "0.127.10", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.98.6", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "0.17.18", path = "../swc_error_reporters" }
Expand Down
6 changes: 3 additions & 3 deletions crates/swc/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ pub struct Options {
#[serde(skip_deserializing, default)]
pub unresolved_mark: Option<Mark>,

#[cfg(not(target_arch = "wasm32"))]
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))]
#[serde(default = "default_cwd")]
pub cwd: PathBuf,

Expand All @@ -160,7 +160,7 @@ pub struct Options {
#[serde(default = "default_swcrc")]
pub swcrc: bool,

#[cfg(not(target_arch = "wasm32"))]
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))]
#[serde(default)]
pub swcrc_roots: Option<PathBuf>,

Expand Down Expand Up @@ -821,7 +821,7 @@ pub struct CallerOptions {
pub name: String,
}

#[cfg(not(target_arch = "wasm32"))]
#[cfg(not(all(target_arch = "wasm32", not(target_os = "wasi"))))]
fn default_cwd() -> PathBuf {
::std::env::current_dir().unwrap()
}
Expand Down

0 comments on commit 4289675

Please sign in to comment.