Skip to content

@latticexyz/store-sync@2.0.0-next.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Aug 16:54
· 1184 commits to main since this release
5e744f2

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",

Minor Changes

  • #1240 753bdce4 Thanks @holic! - Store sync logic is now consolidated into a createStoreSync 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 with syncToRecs or SQLite with syncToSqlite and PostgreSQL support coming soon.

    There are no breaking changes if you were just using syncToRecs from @latticexyz/store-sync or running the sqlite-indexer binary from @latticexyz/store-indexer.

Patch Changes

  • #1308 b8a6158d Thanks @holic! - bump viem to 1.6.0

  • #1302 5294a7d5 Thanks @holic! - Improves support for internal/client-only RECS components

  • #1308 b8a6158d Thanks @holic! - remove usages of isNonPendingBlock and isNonPendingLog (fixed with more specific viem types)

  • Updated dependencies [a2588116, 939916bc, b8a6158d, 48c51b52, b8a6158d, b8a6158d]:

    • @latticexyz/store@2.0.0-next.2
    • @latticexyz/common@2.0.0-next.2
    • @latticexyz/world@2.0.0-next.2
    • @latticexyz/block-logs-stream@2.0.0-next.2
    • @latticexyz/protocol-parser@2.0.0-next.2
    • @latticexyz/schema-type@2.0.0-next.2
    • @latticexyz/recs@2.0.0-next.2