Skip to content

Commit 5258763

Browse files
authoredAug 24, 2024··
chore(es/codegen): Bump minimum required swc_allocator version to 0.1.8 (#9492)
**Description:** `swc_ecma_codegen` uses `swc_allocator::collections` modules: https://github.com/swc-project/swc/blob/f500dd4530a1e214d787151689ef9ddb64fb7510/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs#L3 https://github.com/swc-project/swc/blob/f500dd4530a1e214d787151689ef9ddb64fb7510/crates/swc_ecma_codegen/tests/sourcemap.rs#L5 `collections` module was added to `swc_allocator` in 0.1.8. However, `swc_ecma_codegen` still says that the minimum required version of `swc_allocator` is 0.1.7: https://github.com/swc-project/swc/blob/f500dd4530a1e214d787151689ef9ddb64fb7510/crates/swc_ecma_codegen/Cargo.toml#L27 This can cause a compile error when someone has a lockfile that pins `swc_allocator` 0.1.7, which is supposed to work with `swc_ecma_codegen` according to the manifest, but actually not.
1 parent e0e9560 commit 5258763

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed
 

‎.changeset/bright-olives-sell.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
swc_ecma_codegen: patch
3+
swc_core: patch
4+
---
5+
6+
chore(es/codegen): bump minimum required swc_allocator version to 0.1.8

‎crates/swc_ecma_codegen/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ serde = { workspace = true }
2424
sourcemap = { workspace = true }
2525
tracing = { workspace = true }
2626

27-
swc_allocator = { version = "0.1.7", path = "../swc_allocator", default-features = false }
27+
swc_allocator = { version = "0.1.8", path = "../swc_allocator", default-features = false }
2828
swc_atoms = { version = "0.6.5", path = "../swc_atoms" }
2929
swc_common = { version = "0.37.0", path = "../swc_common" }
3030
swc_ecma_ast = { version = "0.118.0", path = "../swc_ecma_ast" }

0 commit comments

Comments
 (0)
Please sign in to comment.