Skip to content

Commit

Permalink
Merge branch 'main' into min-all
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 authored Jan 17, 2025
2 parents 87d6707 + f230ff2 commit 7fc59ae
Show file tree
Hide file tree
Showing 67 changed files with 302 additions and 264 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-pumpkins-explain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
swc_typescript: patch
---

fix(typescript): Collect usages in extend clauses of classes and interfaces
5 changes: 0 additions & 5 deletions .changeset/curly-poems-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fresh-socks-doubt.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/mean-boxes-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
swc_core: minor
swc_ecma_codegen: minor
---

perf(es/codegen): Remove needless allocations
32 changes: 15 additions & 17 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@

- **(es/decorators)** Fix init order of `2022-03` impl ([#9760](https://github.com/swc-project/swc/issues/9760)) ([751a310](https://github.com/swc-project/swc/commit/751a310e87cbbb61ebd76671018bf01d07487792))


- **(es/testing)** Fix sourcemap generation ([#9891](https://github.com/swc-project/swc/issues/9891)) ([008f2de](https://github.com/swc-project/swc/commit/008f2dee6660529faf4cd498e33a5a3ffd4c6f2f))


- **(es/ts_strip)** Handle ASI hazard in return statement ([#9882](https://github.com/swc-project/swc/issues/9882)) ([121b5fe](https://github.com/swc-project/swc/commit/121b5fefbc17932816f69c88edc14f8387c493e9))

### Features


Expand Down Expand Up @@ -40,6 +46,15 @@

- **(atoms)** Rename `FastAtom` to `UnsafeAtom` ([#9873](https://github.com/swc-project/swc/issues/9873)) ([3df8b44](https://github.com/swc-project/swc/commit/3df8b443a129cfcb5ec79f37e2fcf6a2a9468cad))


- **(es/minifier)** Add a way to profile minifier for real-world inputs ([#9881](https://github.com/swc-project/swc/issues/9881)) ([9657294](https://github.com/swc-project/swc/commit/9657294ff159e920e829c1a727219427f19df46e))


- **(es/minifier)** Use `chili` for `minify-all` example ([#9885](https://github.com/swc-project/swc/issues/9885)) ([197f0bc](https://github.com/swc-project/swc/commit/197f0bc1962875a3528b0b051be0dbea16671bc8))


- **(es/minifier)** Make `minify-all` profilable ([#9888](https://github.com/swc-project/swc/issues/9888)) ([fbad136](https://github.com/swc-project/swc/commit/fbad1364984f8b951b884b61fd924b6ea8fafbda))

## [1.10.7] - 2025-01-10

### Bug Fixes
Expand Down Expand Up @@ -1550,21 +1565,4 @@

- **(es/parser)** Increase token context size ([#9104](https://github.com/swc-project/swc/issues/9104)) ([8ef30cc](https://github.com/swc-project/swc/commit/8ef30cc08c86251bb8bebf66286949805e332b6c))

## [1.6.4] - 2024-06-22

### Features



- **(cli)** Support generating `.d.ts` files ([#9097](https://github.com/swc-project/swc/issues/9097)) ([e71b6d3](https://github.com/swc-project/swc/commit/e71b6d31b1179dffb8a6e2d652b394273a6d7852))


- **(es/transform)** Add experimental `.d.ts` generation ([#9093](https://github.com/swc-project/swc/issues/9093)) ([51a2702](https://github.com/swc-project/swc/commit/51a27022b9a3fa8767797813b23803ea1ecad3e2))

### Performance



- **(es/lexer)** Use `memchr::memmem` for lexing block comments ([#9096](https://github.com/swc-project/swc/issues/9096)) ([1b3672f](https://github.com/swc-project/swc/commit/1b3672f1e7d38a0039b1ba0ebc136133dd8c907f))

<!-- generated by git-cliff -->
13 changes: 7 additions & 6 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 crates/binding_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ binding_wasm = [
# Common deps for the SWC imports
swc = { optional = true, version = "10.0.0", path = "../swc" }
swc_common = { optional = true, version = "5.0.0", path = "../swc_common" }
swc_ecma_ast = { optional = true, version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { optional = true, version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_transforms = { optional = true, version = "9.0.0", path = "../swc_ecma_transforms" }
swc_ecma_visit = { optional = true, version = "5.0.0", path = "../swc_ecma_visit" }

Expand Down
2 changes: 1 addition & 1 deletion crates/dbg-swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ swc_common = { version = "5.0.0", features = [
"concurrent",
"tty-emitter",
], path = "../swc_common" }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "7.1.0", path = "../swc_ecma_minifier", features = [
"concurrent",
Expand Down
2 changes: 1 addition & 1 deletion crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ swc_common = { version = "5.0.0", path = "../swc_common" }
anyhow = { workspace = true }
dashmap = { workspace = true }

swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" }
testing = { version = "5.0.0", path = "../testing" }
6 changes: 3 additions & 3 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ swc_common = { version = "5.0.0", path = "../swc_common", features = [
] }
swc_compiler_base = { version = "8.0.0", path = "../swc_compiler_base" }
swc_config = { version = "1.0.0", path = "../swc_config" }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" }
swc_ecma_ext_transforms = { version = "7.0.0", path = "../swc_ecma_ext_transforms" }
swc_ecma_lints = { version = "7.0.0", path = "../swc_ecma_lints" }
Expand All @@ -102,7 +102,7 @@ swc_ecma_transforms = { version = "9.0.0", path = "../swc_ecma_transforms", feat
swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "8.0.0", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" }
swc_ecma_utils = { version = "7.0.2", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" }
swc_error_reporters = { version = "6.0.0", path = "../swc_error_reporters" }
swc_node_comments = { version = "5.0.0", path = "../swc_node_comments" }
Expand Down Expand Up @@ -136,7 +136,7 @@ rayon = { workspace = true }
walkdir = { workspace = true }

codspeed-criterion-compat = { workspace = true }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast", features = [
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast", features = [
"serde-impl",
] }
swc_ecma_lints = { version = "7.0.0", path = "../swc_ecma_lints", features = [
Expand Down
4 changes: 2 additions & 2 deletions crates/swc_bundler/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ tracing = { workspace = true }

swc_atoms = { version = "3.0.3", path = "../swc_atoms" }
swc_common = { version = "5.0.0", path = "../swc_common" }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" }
swc_ecma_loader = { version = "5.0.0", path = "../swc_ecma_loader" }
swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" }
swc_ecma_transforms_base = { version = "7.1.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_optimization = { version = "7.1.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "7.0.1", path = "../swc_ecma_utils" }
swc_ecma_utils = { version = "7.0.2", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "5.0.0", path = "../swc_ecma_visit" }
swc_fast_graph = { version = "6.0.0", path = "../swc_fast_graph/" }
swc_graph_analyzer = { version = "5.0.0", path = "../swc_graph_analyzer/" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_cli_impl/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ tracing-futures = { workspace = true }
tracing-subscriber = { workspace = true, features = ["env-filter"] }
walkdir = { workspace = true }

swc_core = { version = "10.2.1", features = [
swc_core = { version = "10.2.5", features = [
"trace_macro",
"common_concurrent",
"base_concurrent",
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_compiler_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ swc_common = { version = "5.0.0", path = "../swc_common", features = [
"sourcemap",
] }
swc_config = { version = "1.0.0", path = "../swc_config" }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "5.0.1", path = "../swc_ecma_codegen" }
swc_ecma_minifier = { version = "7.1.0", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "6.0.2", path = "../swc_ecma_parser" }
Expand Down
8 changes: 4 additions & 4 deletions crates/swc_core/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_core"
repository = { workspace = true }
version = "10.2.1"
version = "10.2.5"
[package.metadata.docs.rs]
features = [
"allocator_node",
Expand Down Expand Up @@ -353,7 +353,7 @@ swc_css_parser = { optional = true, version = "5.0.0", path =
swc_css_prefixer = { optional = true, version = "5.0.0", path = "../swc_css_prefixer" }
swc_css_utils = { optional = true, version = "5.0.0", path = "../swc_css_utils/" }
swc_css_visit = { optional = true, version = "5.0.0", path = "../swc_css_visit" }
swc_ecma_ast = { optional = true, version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { optional = true, version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen = { optional = true, version = "5.0.1", path = "../swc_ecma_codegen" }
swc_ecma_lints = { optional = true, version = "7.0.0", path = "../swc_ecma_lints" }
swc_ecma_loader = { optional = true, version = "5.0.0", path = "../swc_ecma_loader" }
Expand All @@ -367,10 +367,10 @@ swc_ecma_transforms_module = { optional = true, version = "8.0.0", path =
swc_ecma_transforms_optimization = { optional = true, version = "7.1.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_transforms_proposal = { optional = true, version = "7.0.1", path = "../swc_ecma_transforms_proposal" }
swc_ecma_transforms_react = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_react" }
swc_ecma_transforms_testing = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_testing" }
swc_ecma_transforms_testing = { optional = true, version = "7.0.1", path = "../swc_ecma_transforms_testing" }
swc_ecma_transforms_typescript = { optional = true, version = "7.0.0", path = "../swc_ecma_transforms_typescript" }
swc_ecma_usage_analyzer = { optional = true, version = "7.0.0", path = "../swc_ecma_usage_analyzer" }
swc_ecma_utils = { optional = true, version = "7.0.1", path = "../swc_ecma_utils" }
swc_ecma_utils = { optional = true, version = "7.0.2", path = "../swc_ecma_utils" }
swc_ecma_visit = { optional = true, version = "5.0.0", path = "../swc_ecma_visit" }
swc_malloc = { optional = true, version = "1.0.0", path = "../swc_malloc" }
swc_node_bundler = { optional = true, version = "10.0.0", path = "../swc_node_bundler" }
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_ast/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_ecma_ast"
repository = { workspace = true }
version = "5.0.1"
version = "5.0.2"

[package.metadata.docs.rs]
all-features = true
Expand Down
2 changes: 1 addition & 1 deletion crates/swc_ecma_codegen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tracing = { workspace = true }
swc_allocator = { version = "2.0.0", path = "../swc_allocator", default-features = false }
swc_atoms = { version = "3.0.3", path = "../swc_atoms" }
swc_common = { version = "5.0.0", path = "../swc_common" }
swc_ecma_ast = { version = "5.0.1", path = "../swc_ecma_ast" }
swc_ecma_ast = { version = "5.0.2", path = "../swc_ecma_ast" }
swc_ecma_codegen_macros = { version = "1.0.0", path = "../swc_ecma_codegen_macros" }

[dev-dependencies]
Expand Down
Loading

0 comments on commit 7fc59ae

Please sign in to comment.