@latticexyz/store-sync@2.0.0-next.2
Pre-releaseMajor Changes
-
#1278
48c51b52
Thanks @holic! - RECS components are now dynamically created and inferred from your MUD config when usingsyncToRecs
.To migrate existing projects after upgrading to this MUD version:
-
Remove
contractComponents.ts
fromclient/src/mud
-
Remove
components
argument fromsyncToRecs
-
Update
build:mud
anddev
scripts incontracts/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 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
.
Patch Changes
-
#1302
5294a7d5
Thanks @holic! - Improves support for internal/client-only RECS components -
#1308
b8a6158d
Thanks @holic! - remove usages ofisNonPendingBlock
andisNonPendingLog
(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