Skip to content

Releases: latticexyz/mud

@latticexyz/[email protected]

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

@latticexyz/[email protected]

15 Aug 16:54
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
@latticexyz/[email protected]

@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

Patch Changes

@latticexyz/[email protected]

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

Minor Changes

  • #1284 939916bc Thanks @holic! - Adds a usePromise hook that returns a native PromiseSettledResult object.

    const promise = fetch(url);
    const result = usePromise(promise);
    
    if (result.status === "idle" || result.status === "pending") {
      return <>fetching</>;
    }
    
    if (result.status === "rejected") {
      return <>error fetching: {String(result.reason)}</>;
    }
    
    if (result.status === "fulfilled") {
      return <>fetch status: {result.value.status}</>;
    }

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

Patch Changes

@latticexyz/[email protected]

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