# Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

# 1.42.0 (2023-04-13)

# Bug Fixes

  • network: fall back to RPC sync if MODE is not available (#555) (4de4b6d)
  • network: fix mode decoding (#562) (fb82313)
  • network: handle singleton/empty keys (#541) (1e0ddb9)
  • network: skip sync from cache in dev mode (#521) (818c1e2)

# Features

  • create-mud: use pnpm in templates, move to root so they can be installed/run (#599) (010740d)
  • network,recs,std-client: support StoreSetField before StoreSetRecord (#581) (f259f90), closes #479 #523
  • network: add fastTxExecute util (#543) (f05a70a)
  • network: add option to sync in main thread instead of worker (#522) (4e8e7d7)
  • network: integrate initial sync from MODE (#493) (7d06c1b)
  • use viem when creating burner wallet (#576) (d5d22e0)
  • v2 event decoding (#415) (374ed54)

# 1.41.0 (2023-03-09)

Note: Version bump only for package @latticexyz/network

# 1.40.0 (2023-03-03)

Note: Version bump only for package @latticexyz/network

# 1.39.0 (2023-02-22)

Note: Version bump only for package @latticexyz/network

# 1.38.0 (2023-02-22)

Note: Version bump only for package @latticexyz/network

# 1.37.1 (2023-02-17)

Note: Version bump only for package @latticexyz/network

# 1.37.0 (2023-02-16)

# Bug Fixes

  • package entry points, peer dep versions (#409) (66a7fd6)

# Reverts

  • Revert "chore(release): publish v1.37.0" (c934f53)

# 1.36.1 (2023-02-16)

Note: Version bump only for package @latticexyz/network

# 1.35.0 (2023-02-15)

# Bug Fixes

  • network: add explicit return type to createFaucetService (#399) (cae82e5)
  • network: use current block number while waiting for new blocks (#368) (09b77a7)

# 1.34.0 (2023-01-29)

# Bug Fixes

# Features

  • network: add support for external wallets (eg MetaMask) (#256) (bf0b5cf)

# 1.33.1 (2023-01-12)

Note: Version bump only for package @latticexyz/network

# 1.33.0 (2023-01-12)

Note: Version bump only for package @latticexyz/network

# 1.32.0 (2023-01-06)

Note: Version bump only for package @latticexyz/network

# 1.31.3 (2022-12-16)

Note: Version bump only for package @latticexyz/network

# 1.31.2 (2022-12-15)

Note: Version bump only for package @latticexyz/network

# 1.31.1 (2022-12-15)

Note: Version bump only for package @latticexyz/network

# 1.31.0 (2022-12-14)

Note: Version bump only for package @latticexyz/network

# 1.30.1 (2022-12-02)

Note: Version bump only for package @latticexyz/network

# 1.30.0 (2022-12-02)

Note: Version bump only for package @latticexyz/network

# 1.29.0 (2022-11-29)

Note: Version bump only for package @latticexyz/network

# 1.28.1 (2022-11-24)

# Bug Fixes

# 1.28.0 (2022-11-20)

# Features

  • network: system call stream available in streaming service (0244eb8), closes #254

# 1.27.0 (2022-11-15)

# Bug Fixes

  • network: disable browser cache in dev mode (#213) (ba9e6bc)

# 1.26.0 (2022-11-07)

Note: Version bump only for package @latticexyz/network

# 1.25.1 (2022-11-03)

Note: Version bump only for package @latticexyz/network

# 1.25.0 (2022-11-03)

# Features

  • network,std-client: add support for SystemCall events in default MUD network setup (#232) (93d947b)
  • network: export createBlockNumberStream (#230) (c227e5d)

# 1.24.1 (2022-10-29)

Note: Version bump only for package @latticexyz/network

# 1.24.0 (2022-10-28)

# Features

  • v2 endpoint for pruned snapshot that returns entities as raw bytes (#215) (28cce1e)

# 1.23.1 (2022-10-28)

Note: Version bump only for package @latticexyz/network

# 1.23.0 (2022-10-26)

Note: Version bump only for package @latticexyz/network

# 1.22.0 (2022-10-26)

# Features

  • network: expose method to register new system contracts on the client (#224) (4583767)
  • network: simplify calling untyped systems (#223) (94e4788)

# 1.21.0 (2022-10-26)

# Features

  • network: send ack between main thread and sync worker (#220) (e06978a)

# 1.20.0 (2022-10-22)

Note: Version bump only for package @latticexyz/network

# 1.19.0 (2022-10-21)

# Features

  • network: only create encoders if asked for it (c5af08c)

# 1.18.0 (2022-10-21)

# Features

  • service stabilizations, send ecs tx on drip, new pruned snapshot endpoint (#204) (d0de185)

# 1.17.0 (2022-10-19)

# Features

# 1.16.0 (2022-10-19)

# Features

# 1.15.0 (2022-10-18)

# Features

  • network): expose relay ping method, feat(std-client: add tx hash to action component (#209) (3e0b4a7)

# 1.14.2 (2022-10-18)

Note: Version bump only for package @latticexyz/network

# 1.14.1 (2022-10-18)

Note: Version bump only for package @latticexyz/network

# 1.14.0 (2022-10-18)

Note: Version bump only for package @latticexyz/network

# 1.13.0 (2022-10-15)

Note: Version bump only for package @latticexyz/network

# 1.12.0 (2022-10-12)

Note: Version bump only for package @latticexyz/network

# 1.11.0 (2022-10-11)

Note: Version bump only for package @latticexyz/network

# 1.10.0 (2022-10-11)

Note: Version bump only for package @latticexyz/network

# 1.9.0 (2022-10-11)

# Features

  • network: fall back to rpc if stream service errors (#190) (414e777)

# 1.8.0 (2022-10-07)

# Bug Fixes

  • network: use websocket to subscribe to relayer messages (8218249)

# Features

# 1.7.1 (2022-10-06)

Note: Version bump only for package @latticexyz/network

# 1.7.0 (2022-10-06)

# Features

# 1.6.0 (2022-10-04)

Note: Version bump only for package @latticexyz/network

# 1.5.1 (2022-10-03)

Note: Version bump only for package @latticexyz/network

# 1.5.0 (2022-10-03)

# Features

# 1.4.1 (2022-10-03)

Note: Version bump only for package @latticexyz/network

# 1.4.0 (2022-10-03)

# Features

  • add signature verification for all client actions via relay service (#167) (7920d6e)
  • network: add util for creating faucet service (#171) (9f50d9c)

# 1.3.0 (2022-09-30)

Note: Version bump only for package @latticexyz/network

# 1.2.0 (2022-09-29)

# Bug Fixes

  • network: check event type instead of just value before decoding (#166) (f4dedd9)

# Features

  • network: increase network performance by reducing unnecessary rpc calls (#165) (195b710)

# 1.1.0 (2022-09-28)

# Features

  • add createRelayService, add utils to work with Uint8Arrays (#164) (b02992b)
  • initial implementation of ecs relay service (#157) (140aec3)

# 1.0.0 (2022-09-27)

Note: Version bump only for package @latticexyz/network

# 0.16.4 (2022-09-26)

# Bug Fixes

  • network: cancel tx request if gas estimation failed (565b37f)

# 0.16.3 (2022-09-26)

# Bug Fixes

  • do gas estimation right before sending tx to avoid invalid gas estimations (f251642)

# 0.16.2 (2022-09-26)

Note: Version bump only for package @latticexyz/network

# 0.16.1 (2022-09-26)

Note: Version bump only for package @latticexyz/network

# 0.16.0 (2022-09-26)

# Features

# 0.15.1 (2022-09-23)

Note: Version bump only for package @latticexyz/network

# 0.15.0 (2022-09-21)

Note: Version bump only for package @latticexyz/network

# 0.14.2 (2022-09-21)

Note: Version bump only for package @latticexyz/network

# 0.14.1 (2022-09-21)

# Bug Fixes

# 0.14.0 (2022-09-20)

Note: Version bump only for package @latticexyz/network

# 0.13.0 (2022-09-19)

Note: Version bump only for package @latticexyz/network

# 0.12.0 (2022-09-16)

# Features

  • cli: forge bulk upload ecs state script (#142) (bbd6e1f)

# 0.11.1 (2022-09-15)

# Bug Fixes

  • do not run prepack multiple times when publishing (4f6f4c3)

# 0.11.0 (2022-09-15)

# Features

  • add more granularity to initial sync state report (#146) (d4ba338)

# 0.10.0 (2022-09-14)

# Features

  • add chunk snapshot and stream service (#139) (8c9d4b3)

# 0.9.0 (2022-09-13)

# Bug Fixes

  • network: align hex entity id formatting (#140) (93b1bd6)

# Features

  • network: add loading state component update stream to SyncWorker (#141) (824c4f3)

# BREAKING CHANGES

  • network: The loading state component is attached to the entity with id 0x060D (GodID). The std-client package previously exported a different mudwar specific GodID, which has been replaced with the 0x060D GodID exported by the network package.

  • test(network): add test for LoadingState and fix existing tests

# 0.8.1 (2022-08-22)

# Bug Fixes

  • start from initialBlockNumber, build settings, fix github actions, and other minor additions (#137) (08eab5c)

# 0.8.0 (2022-08-22)

# Features

# 0.7.0 (2022-08-19)

Note: Version bump only for package @latticexyz/network

# 0.6.0 (2022-08-15)

# Code Refactoring

  • sync worker (+ integrated snapshot service) (#125) (6173b59)

# BREAKING CHANGES

  • sync worker update stream returns component id instead of component key

  • test(network): add tests for sync utils and SyncWorker logic

  • chore: remove logs and improve comments

  • chore: add logs

Co-authored-by: andrii dobroshynski 24281657+andriidski@users.noreply.github.com

# 0.5.1 (2022-08-05)

Note: Version bump only for package @latticexyz/network

# 0.5.0 (2022-08-05)

# Bug Fixes

  • CacheWorker (#118) (bfe006e)
  • optimism, cancel action if gas check fails, add noise utils, fix ecs-browser entry point (#119) (f35d3c3)

# Features

  • logging library with support for topics/filters (#123) (4eac3c6)

# 0.4.3 (2022-07-30)

Note: Version bump only for package @latticexyz/network

# 0.4.2 (2022-07-29)

Note: Version bump only for package @latticexyz/network

# 0.4.1 (2022-07-29)

Note: Version bump only for package @latticexyz/network

# 0.4.0 (2022-07-29)

# Bug Fixes

  • cli: extract encoded arguments from signature (#116) (f630319)

# Features

  • network: faster execution of multiple tx, better revert message logging (#111) (bee34dc)

# 0.3.2 (2022-07-26)

Note: Version bump only for package @latticexyz/network

# 0.3.1 (2022-07-26)

Note: Version bump only for package @latticexyz/network

# 0.3.0 (2022-07-26)

# Bug Fixes

  • use hardhat as node (better logs) and make hardhat compatible with forge (#54) (45a5981)

# Features

# 0.2.0 (2022-07-05)

# Features

# BREAKING CHANGES

  • Components have to implement a getSchema() function

  • feat(network): make Sync worker return a stream of ECS events (prev contract events)

  • feat(ri-contracts): integrate solecs change (add getSchema to components)

  • feat(ri-client): integrate network package changes

  • feat(network): store ECS state in cache

  • feat(network): load state from cache

  • feat(utils): add more utils for iterables

  • refactor(network): clean up

  • feat(network): generalize component value decoder function, add tests

  • fix(network): make it possible to subscribe to ecsStream from sync worker multiple times

  • fix(network): start sync from provided initial block number

  • feat(network): move storing ecs to indexDB to its own Cache worker

  • feat(network): create separate cache for every World contract address

  • fix(network): fix issues discovered during live review

  • chore: remove unused import

  • Update packages/network/src/createBlockNumberStream.ts

Co-authored-by: ludens ludens@lattice.xyz

  • feat(network): add clock syncInterval as config parameter

  • feat(utils): emit values through componentToStream and observableToStream only if non-null

  • feat(network): add chain id to cache id, disable loading from cache on hardhat

  • fix(contracts): change Position and EntityType schema to int32/uint32 to fit in js number

  • docs(client): fix typos in comments

  • fix(network): fix tests

  • fix(scripting): integrate new network package into ri scripting

  • fix(network): fix sending multiple requests for component schema if many events get reduced

# 0.1.8 (2022-05-25)

Note: Version bump only for package @latticexyz/network

# 0.1.7 (2022-05-25)

Note: Version bump only for package @latticexyz/network

# 0.1.6 (2022-05-25)

Note: Version bump only for package @latticexyz/network

# 0.1.5 (2022-05-24)

Note: Version bump only for package @latticexyz/network

# 0.1.4 (2022-05-24)

Note: Version bump only for package @latticexyz/network

# 0.1.3 (2022-05-23)

Note: Version bump only for package @latticexyz/network

# 0.1.2 (2022-05-23)

Note: Version bump only for package @latticexyz/network

# 0.1.1 (2022-05-23)

Note: Version bump only for package @latticexyz/network

# 0.1.0 (2022-05-23)

# Bug Fixes

  • @mud/network: do not increase nonce for view functions (233c4b5)
  • @mud/network: use component id for ecs event mapping (instead of address) (baa5f10)
  • @mud/network: use component id instead of address for mapping (39b516c)

# Features

  • @mud/network: add @mud/network (9a29452)
  • @mud/network: add option to ignore tx confirmation to txQueue, add ready state, add fetch log (438549a)

# Performance Improvements

  • @mud/network: add initial sync in stages (d0c026a)
  • @mud/network: move sync and processing of chain events to a webworker (dad52ea)