From 4568ddf845a17dac140e8f5878512cee67a30b9f Mon Sep 17 00:00:00 2001 From: pajotg Date: Wed, 20 Dec 2023 14:50:44 +0100 Subject: [PATCH 1/2] Updated wasm bindgen getter for portal destinations to have the correct name --- src/objects/impls/structure_portal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects/impls/structure_portal.rs b/src/objects/impls/structure_portal.rs index 68d7129b..bf1b9082 100644 --- a/src/objects/impls/structure_portal.rs +++ b/src/objects/impls/structure_portal.rs @@ -17,7 +17,7 @@ extern "C" { #[derive(Clone, Debug)] pub type StructurePortal; - #[wasm_bindgen(method, getter)] + #[wasm_bindgen(method, getter = destination)] fn destination_internal(this: &StructurePortal) -> JsValue; /// The number of ticks until the portal will decay, if it's unstable, or 0 From f4ca1e31314030f6b10ff19d1e193b7e3fdba1fd Mon Sep 17 00:00:00 2001 From: Shane Madden Date: Wed, 20 Dec 2023 09:56:47 -0700 Subject: [PATCH 2/2] changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 237ca9d7..8d412b01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ Unreleased - An undefined `hits` or `hitsMax` value on an invulnerable wall or certain controllers will no longer cause a panic when building in dev mode +- Fixed incorrect JavaScript field name on `StructurePortal::destination()` getter 0.18.0 (2023-11-27) ===================