Skip to content

Releases: latticexyz/mud

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release
@latticexyz/[email protected]

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

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

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #1284 939916bc Thanks @holic! - createContract now has an onWrite 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! - - adds defaultPriorityFee to mudFoundry for better support with MUD's default anvil config and removes workaround in createContract

    • improves nonce error detection using viem's custom errors

Patch Changes

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #1278 48c51b52 Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when using syncToRecs.

    To migrate existing projects after upgrading to this MUD version:

    1. Remove contractComponents.ts from client/src/mud

    2. Remove components argument from syncToRecs

    3. Update build:mud and dev scripts in contracts/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

@latticexyz/[email protected]

15 Aug 16:53
5e744f2
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #1308 b8a6158d Thanks @holic! - - removes our own getLogs function now that viem's getLogs supports using multiple events per RPC call.
    • removes isNonPendingBlock and isNonPendingLog helpers now that viem narrows Block and Log types based on inputs
    • simplifies groupLogsByBlockNumber types and tests

Patch Changes

[email protected]

09 Aug 21:07
788de8d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release
[email protected]

[email protected]

09 Aug 21:07
788de8d
Compare
Choose a tag to compare
[email protected] Pre-release
Pre-release
[email protected]