From bb8cc29a78117e840215dcaf9d51b8c9a11b4996 Mon Sep 17 00:00:00 2001 From: alvarius Date: Thu, 14 Sep 2023 18:08:16 +0100 Subject: [PATCH] Create metal-hounds-drum.md --- .changeset/metal-hounds-drum.md | 38 +++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .changeset/metal-hounds-drum.md diff --git a/.changeset/metal-hounds-drum.md b/.changeset/metal-hounds-drum.md new file mode 100644 index 0000000000..f041da2353 --- /dev/null +++ b/.changeset/metal-hounds-drum.md @@ -0,0 +1,38 @@ +--- +"@latticexyz/block-logs-stream": patch +"@latticexyz/store-sync": patch +"@latticexyz/store": patch +--- + +Renamed all occurrences of `table` where it is used as "table ID" to `tableId`. +This is only a breaking change for consumers who manually decode `Store` events, but not for consumers who use the MUD libraries. + +```diff +event StoreSetRecord( +- bytes32 table, ++ bytes32 tableId, + bytes32[] key, + bytes data +); + +event StoreSetField( +- bytes32 table, ++ bytes32 tableId, + bytes32[] key, + uint8 fieldIndex, + bytes data +); + +event StoreDeleteRecord( +- bytes32 table, ++ bytes32 tableId, + bytes32[] key +); + +event StoreEphemeralRecord( +- bytes32 table, ++ bytes32 tableId, + bytes32[] key, + bytes data +); +```