Skip to content

Commit

Permalink
Merge branch 'main' into patch-2
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Sep 14, 2023
2 parents 84bd8a7 + 16ad8ec commit 56fd3ec
Show file tree
Hide file tree
Showing 277 changed files with 2,468 additions and 3,222 deletions.
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
# Changelog
## [unreleased]

### Bug Fixes



- **(css/modules)** Support composes when using multiple subclass selectors (#7949) ([05ca19b](https://github.com/swc-project/swc/commit/05ca19b84489ae47f69d8228b3c0097164c7ec6e))


- **(es/compat)** Handle single expression case in static block (#7944) ([a80aec4](https://github.com/swc-project/swc/commit/a80aec47efcff953d3408cf6910b66c2312f3006))


- **(es/minifier)** Parse a file as a module only if `opts.module` is `true` (#7943) ([b87ac64](https://github.com/swc-project/swc/commit/b87ac646f81f181b574da798b3e613a3cfa4cad5))

### Features



- **(es/compat)** Support `pure_getters` for `optional_chaining` (#7933) ([c091c5e](https://github.com/swc-project/swc/commit/c091c5e295ec2ef704be1461f6587ae85051b543))


- **(es/module)** Add an option to make resolver fully resolve `index.js` (#7945) ([7e8d72d](https://github.com/swc-project/swc/commit/7e8d72d03b312b7a48c17afa8d2a4d7f4e802a6a))

## [1.3.84] - 2023-09-11

### Bug Fixes
Expand Down
42 changes: 21 additions & 21 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions bindings/binding_core_wasm/__tests__/simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ describe("minify", () => {

expect(output).toMatchInlineSnapshot(`
Object {
"code": "const somename=1;console.log(1);",
"code": "let somename=1;console.log(1);",
}
`);
});
Expand All @@ -207,7 +207,7 @@ describe("minify", () => {

expect(output).toMatchInlineSnapshot(`
Object {
"code": "const somename=1;console.log(1);",
"code": "let somename=1;console.log(1);",
}
`);
});
Expand Down
6 changes: 3 additions & 3 deletions crates/binding_macros/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 = "binding_macros"
repository = "https://github.com/swc-project/swc.git"
version = "0.57.4"
version = "0.57.8"

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

[dependencies]
# Common deps for the SWC imports
swc = { optional = true, version = "0.266.4", path = "../swc" }
swc = { optional = true, version = "0.266.8", path = "../swc" }
swc_common = { optional = true, version = "0.32.1", path = "../swc_common" }
swc_ecma_ast = { optional = true, version = "0.109.1", path = "../swc_ecma_ast" }
swc_ecma_transforms = { optional = true, version = "0.224.4", path = "../swc_ecma_transforms" }
swc_ecma_transforms = { optional = true, version = "0.224.7", path = "../swc_ecma_transforms" }
swc_ecma_visit = { optional = true, version = "0.95.1", path = "../swc_ecma_visit" }

# Optional deps for the wasm binding macro
Expand Down
4 changes: 2 additions & 2 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.87.6"
version = "0.87.9"

[[bin]]
bench = false
Expand All @@ -32,7 +32,7 @@ swc_common = { version = "0.32.1", features = [
], path = "../swc_common" }
swc_ecma_ast = { version = "0.109.1", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.145.2", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "0.187.4", path = "../swc_ecma_minifier", features = [
swc_ecma_minifier = { version = "0.187.7", path = "../swc_ecma_minifier", features = [
"concurrent",
] }
swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" }
Expand Down
12 changes: 6 additions & 6 deletions 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 = "Apache-2.0"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
version = "0.266.4"
version = "0.266.8"

[lib]
bench = false
Expand Down Expand Up @@ -83,10 +83,10 @@ swc_ecma_loader = { version = "0.44.4", path = "../swc_ecma_loader", features =
"node",
"tsc",
] }
swc_ecma_minifier = { version = "0.187.4", path = "../swc_ecma_minifier" }
swc_ecma_minifier = { version = "0.187.7", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "0.140.0", path = "../swc_ecma_parser" }
swc_ecma_preset_env = { version = "0.201.4", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.224.4", path = "../swc_ecma_transforms", features = [
swc_ecma_preset_env = { version = "0.201.7", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.224.7", path = "../swc_ecma_transforms", features = [
"compat",
"module",
"optimization",
Expand All @@ -95,8 +95,8 @@ swc_ecma_transforms = { version = "0.224.4", path = "../swc_ecma_transforms", fe
"typescript",
] }
swc_ecma_transforms_base = { version = "0.133.2", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "0.159.3", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.193.4", path = "../swc_ecma_transforms_optimization" }
swc_ecma_transforms_compat = { version = "0.159.5", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.193.7", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "0.123.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.95.1", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "0.16.1", path = "../swc_error_reporters" }
Expand Down
23 changes: 13 additions & 10 deletions crates/swc/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
(true, c.config.import_interop(), c.config.ignore_dynamic)
}
Some(ModuleConfig::SystemJs(_))
| Some(ModuleConfig::Es6)
| Some(ModuleConfig::NodeNext)
| Some(ModuleConfig::Es6(..))
| Some(ModuleConfig::NodeNext(..))
| None => (false, true.into(), true),
};

Expand Down Expand Up @@ -233,15 +233,18 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
should_enable(self.target, EsVersion::Es2021)
),
Optional::new(
compat::es2020::es2020(compat::es2020::Config {
nullish_coalescing: compat::es2020::nullish_coalescing::Config {
no_document_all: assumptions.no_document_all
compat::es2020::es2020(
compat::es2020::Config {
nullish_coalescing: compat::es2020::nullish_coalescing::Config {
no_document_all: assumptions.no_document_all
},
optional_chaining: compat::es2020::optional_chaining::Config {
no_document_all: assumptions.no_document_all,
pure_getter: assumptions.pure_getters
}
},
optional_chaining: compat::es2020::optional_chaining::Config {
no_document_all: assumptions.no_document_all,
pure_getter: assumptions.pure_getters
}
}),
self.unresolved_mark
),
should_enable(self.target, EsVersion::Es2020)
),
Optional::new(
Expand Down
Loading

0 comments on commit 56fd3ec

Please sign in to comment.