Skip to content

Releases: latticexyz/mud

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release
@latticexyz/[email protected]

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release
@latticexyz/[email protected]

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Minor Changes

  • #1351 c14f8bf1 Thanks @holic! - - Moved createActionSystem from std-client to recs package and updated it to better support v2 sync stack.

    If you want to use createActionSystem alongside syncToRecs, you'll need to pass in arguments like so:

    import { syncToRecs } from "@latticexyz/store-sync/recs";
    import { createActionSystem } from "@latticexyz/recs/deprecated";
    import { from, mergeMap } from "rxjs";
    
    const { blockLogsStorage$, waitForTransaction } = syncToRecs({
      world,
      ...
    });
    
    const txReduced$ = blockLogsStorage$.pipe(
      mergeMap(({ operations }) => from(operations.map((op) => op.log?.transactionHash).filter(isDefined)))
    );
    
    const actionSystem = createActionSystem(world, txReduced$, waitForTransaction);
    • Fixed a bug in waitForComponentValueIn that caused the promise to not resolve if the component value was already set when the function was called.

    • Fixed a bug in createActionSystem that caused optimistic updates to be incorrectly propagated to requirement checks. To fix the bug, you must now pass in the full component object to the action's updates instead of just the component name.

        actions.add({
          updates: () => [
            {
      -       component: "Resource",
      +       component: Resource,
              ...
            }
          ],
          ...
        });

Patch Changes

  • #1340 ce7125a1 Thanks @holic! - Removes solecs package. These were v1 contracts, now entirely replaced by our v2 tooling. See the MUD docs for building with v2 or create a new project from our v2 templates with pnpm create mud@next your-app-name.

  • Updated dependencies []:

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Major Changes

  • #1343 e3de1a33 Thanks @holic! - Removes useRow and useRows hooks, previously powered by store-cache, which is now deprecated. Please use recs and the corresponding useEntityQuery and useComponentValue hooks. We'll have more hooks soon for SQL.js sync backends.

Patch Changes

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release
@latticexyz/[email protected]

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release
@latticexyz/[email protected]

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Patch Changes

@latticexyz/[email protected]

23 Aug 10:15
57ee7f9
Compare
Choose a tag to compare
Pre-release

Patch Changes