Releases: latticexyz/mud
@latticexyz/[email protected]
Patch Changes
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
-
1770620: Updated the
watchLogs
util to accept the updated RPC response type. -
5f493cd: Added an experimental
@latticexyz/store-sync/react
export with aSyncProvider
anduseSync
hook. This allows for easier syncing MUD data to React apps.Note that this is currently only usable with Stash and assumes you are also using Wagmi in your React app.
import { WagmiProvider } from "wagmi"; import { QueryClientProvider } from "@tanstack/react-query"; import { SyncProvider } from "@latticexyz/store-sync/react"; import { createSyncAdapter } from "@latticexyz/store-sync/internal"; export function App() { return ( <WagmiProvider config={wagmiConfig}> <QueryClientProvider client={queryClient}> <SyncProvider chainId={chainId} address={worldAddress} startBlock={startBlock} adapter={createSyncAdapter({ stash })} > {children} </SyncProvider> </QueryClientProvider> </WagmiProvider> ); }
-
cd9fd0a: Fixed a bug in
watchLogs
where logs from the buffer were not applied during the initial sync. -
09e9bd5: Moved viem to peer dependencies to ensure a single, consistent version is installed in downstream projects.
-
b819749: Added a
getRecords
util to fetch table records from an indexer or RPC.Migrated the
getFunctions
andgetWorldAbi
utils from@latticexyz/world
to@latticexyz/store-sync/world
to allowgetFunctions
andgetWorldAbi
to usegetRecords
internally without circular dependencies. -
9ddc874: Experimental pending logs watcher now reconnects if it loses connection or times out.
-
a6fe15c: All sync methods using a
publicClient
argument now accept a plain ViemClient
rather than a decoratedPublicClient
, allowing for more flexibility and better tree-shaking for lighter bundles. -
Updated dependencies [9580d29]
-
Updated dependencies [653f378]
-
Updated dependencies [2d2aa08]
-
Updated dependencies [09e9bd5]
-
Updated dependencies [96f1473]
-
Updated dependencies [ba5191c]
-
Updated dependencies [1b477d4]
-
Updated dependencies [b819749]
-
Updated dependencies [16242b7]
-
Updated dependencies [22674ad]
-
Updated dependencies [9d71887]
-
Updated dependencies [509a3cc]
-
Updated dependencies [09536b0]
-
Updated dependencies [88b9daf]
-
Updated dependencies [275c867]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- 09e9bd5: Moved viem to peer dependencies to ensure a single, consistent version is installed in downstream projects.
- Updated dependencies [1770620]
- Updated dependencies [5f493cd]
- Updated dependencies [cd9fd0a]
- Updated dependencies [09e9bd5]
- Updated dependencies [1b477d4]
- Updated dependencies [b819749]
- Updated dependencies [9d71887]
- Updated dependencies [9ddc874]
- Updated dependencies [09536b0]
- Updated dependencies [a6fe15c]
- Updated dependencies [88b9daf]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- d17a9be: Extracted StoreConsumer base contracts into an independent package.
Added aregisterNamespace
boolean toWithWorld
to provide more control over namespace registration. - Updated dependencies [653f378]
- Updated dependencies [2d2aa08]
- Updated dependencies [09e9bd5]
- Updated dependencies [ba5191c]
- Updated dependencies [1b477d4]
- Updated dependencies [b819749]
- Updated dependencies [22674ad]
- Updated dependencies [509a3cc]
- Updated dependencies [09536b0]
- Updated dependencies [275c867]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
-
09e9bd5: Moved viem to peer dependencies to ensure a single, consistent version is installed in downstream projects.
-
96f1473: Consolidated how state changes are applied and subscribers notified. Stash subscribers now receive an ordered list of state updates rather than an object.
-
16242b7: Added
useRecord
anduseRecords
hooks for convenience.import { useRecords } from "@latticexyz/stash/react"; const players = useRecords({ stash, table: Position });
import { useRecord } from "@latticexyz/stash/react"; const player = useRecord({ stash, table: Position, key: { player: "0x..." } });
-
Updated dependencies [9580d29]
-
Updated dependencies [09e9bd5]
-
Updated dependencies [1b477d4]
-
Updated dependencies [9d71887]
-
Updated dependencies [09536b0]
-
Updated dependencies [88b9daf]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- 09e9bd5: Moved viem to peer dependencies to ensure a single, consistent version is installed in downstream projects.