Skip to content

@latticexyz/store-indexer@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

  • #1232 b621fb97 Thanks @holic! - Adds a Fastify server in front of tRPC and puts tRPC endpoints under /trpc to make way for other top-level endpoints (e.g. tRPC panel or other API frontends like REST or gRPC).

    If you're using @latticexyz/store-sync packages with an indexer (either createIndexerClient or indexerUrl argument of syncToRecs), then you'll want to update your indexer URL:

     createIndexerClient({
    -  url: "https://indexer.dev.linfra.xyz",
    +  url: "https://indexer.dev.linfra.xyz/trpc",
     });
     syncToRecs({
       ...
    -  indexerUrl: "https://indexer.dev.linfra.xyz",
    +  indexerUrl: "https://indexer.dev.linfra.xyz/trpc",
     });

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