@latticexyz/store-indexer@2.0.0-next.2
Pre-releaseMajor 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 (eithercreateIndexerClient
orindexerUrl
argument ofsyncToRecs
), 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 acreateStoreSync
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 withsyncToRecs
or SQLite withsyncToSqlite
and PostgreSQL support coming soon.There are no breaking changes if you were just using
syncToRecs
from@latticexyz/store-sync
or running thesqlite-indexer
binary from@latticexyz/store-indexer
.