Releases: latticexyz/mud
@latticexyz/[email protected]
Patch Changes
-
Updated dependencies [
a2588116
,939916bc
,b8a6158d
,48c51b52
,b8a6158d
]:- @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]
@latticexyz/[email protected]
Patch Changes
- Updated dependencies [
48c51b52
,b8a6158d
]:- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Major Changes
-
#1284
939916bc
Thanks @holic! - MUD dev tools is updated to latest sync stack. You must now pass in all of its data requirements rather than relying on magic globals.import { mount as mountDevTools } from "@latticexyz/dev-tools"; - mountDevTools(); + mountDevTools({ + config, + publicClient, + walletClient, + latestBlock$, + blockStorageOperations$, + worldAddress, + worldAbi, + write$, + // if you're using recs + recsWorld, + });
It's also advised to wrap dev tools so that it is only mounted during development mode. Here's how you do this with Vite:
// https://vitejs.dev/guide/env-and-mode.html if (import.meta.env.DEV) { mountDevTools({ ... }); }
Patch Changes
-
#1240
753bdce4
Thanks @holic! - Store sync logic is now consolidated into acreateStoreSync
function exported from@latticexyz/store-sync
. This simplifies each storage sync strategy to just a simple wrapper around the storage adapter. You can now sync to RECS withsyncToRecs
or SQLite withsyncToSqlite
and PostgreSQL support coming soon.There are no breaking changes if you were just using
syncToRecs
from@latticexyz/store-sync
or running thesqlite-indexer
binary from@latticexyz/store-indexer
. -
#1302
5294a7d5
Thanks @holic! - Improves support for internal/client-only RECS components -
Updated dependencies [
a2588116
,939916bc
,b8a6158d
,48c51b52
,b8a6158d
,753bdce4
,5294a7d5
,b8a6158d
,939916bc
]:- @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
- Updated dependencies [
939916bc
,b8a6158d
,b8a6158d
]:- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Minor Changes
-
#1284
939916bc
Thanks @holic! -createContract
now has anonWrite
callback so you can observe writes. This is useful for wiring up the transanction log in MUD dev tools.import { createContract, ContractWrite } from "@latticexyz/common"; import { Subject } from "rxjs"; const write$ = new Subject<ContractWrite>(); creactContract({ ... onWrite: (write) => write$.next(write), });
-
#1308
b8a6158d
Thanks @holic! - - addsdefaultPriorityFee
tomudFoundry
for better support with MUD's default anvil config and removes workaround increateContract
- improves nonce error detection using viem's custom errors
Patch Changes
-
Updated dependencies [
b8a6158d
]:- @latticexyz/[email protected]
@latticexyz/[email protected]
Major Changes
-
#1278
48c51b52
Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when usingsyncToRecs
.To migrate existing projects after upgrading to this MUD version:
-
Remove
contractComponents.ts
fromclient/src/mud
-
Remove
components
argument fromsyncToRecs
-
Update
build:mud
anddev
scripts incontracts/package.json
to remove tsgen- "build:mud": "mud tablegen && mud worldgen && mud tsgen --configPath mud.config.ts --out ../client/src/mud", + "build:mud": "mud tablegen && mud worldgen",
- "dev": "pnpm mud dev-contracts --tsgenOutput ../client/src/mud", + "dev": "pnpm mud dev-contracts",
-
Patch Changes
- Updated dependencies [
a2588116
,939916bc
,b8a6158d
,48c51b52
,b8a6158d
]:- @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]
@latticexyz/[email protected]
Major Changes
- #1308
b8a6158d
Thanks @holic! - - removes our owngetLogs
function now that viem'sgetLogs
supports using multipleevents
per RPC call.- removes
isNonPendingBlock
andisNonPendingLog
helpers now that viem narrowsBlock
andLog
types based on inputs - simplifies
groupLogsByBlockNumber
types and tests
- removes
Patch Changes
-
Updated dependencies [
939916bc
,b8a6158d
,b8a6158d
]:- @latticexyz/[email protected]
- @latticexyz/[email protected]
- @latticexyz/[email protected]