Releases: latticexyz/mud
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
Minor Changes
-
#1351
c14f8bf1
Thanks @holic! - - MovedcreateActionSystem
fromstd-client
torecs
package and updated it to better support v2 sync stack.If you want to use
createActionSystem
alongsidesyncToRecs
, 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'supdates
instead of just the component name.actions.add({ updates: () => [ { - component: "Resource", + component: Resource, ... } ], ... });
-
Patch Changes
-
#1340
ce7125a1
Thanks @holic! - Removessolecs
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 withpnpm create mud@next your-app-name
. -
Updated dependencies []:
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Major Changes
- #1343
e3de1a33
Thanks @holic! - RemovesuseRow
anduseRows
hooks, previously powered bystore-cache
, which is now deprecated. Please userecs
and the correspondinguseEntityQuery
anduseComponentValue
hooks. We'll have more hooks soon for SQL.js sync backends.
Patch Changes
- Updated dependencies [
ce7125a1
,c14f8bf1
]:- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- Updated dependencies []:
- @latticexyz/[email protected]
- @latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- Updated dependencies []:
- @latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
@latticexyz/[email protected]
Patch Changes
- Updated dependencies [
ce7125a1
,c14f8bf1
,e3de1a33
]:- @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 []:
- @latticexyz/[email protected]
- @latticexyz/[email protected]