Releases: latticexyz/mud
@latticexyz/gas-report@2.0.0-next.0
Minor Changes
- #1147
66cc35a8
Thanks @dk1a! - Create gas-report package, move gas-report cli command and GasReporter contract to it
Patch Changes
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@latticexyz/ecs-browser@2.0.0-next.0
Patch Changes
- Updated dependencies [
1e2ad78e
,4e4a3415
,53522998
]:- @latticexyz/recs@2.0.0-next.0
- @latticexyz/utils@2.0.0-next.0
- @latticexyz/std-client@2.0.0-next.0
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
1.42.0 (2023-04-13)
Features
1.41.0 (2023-03-09)
Note: Version bump only for package @latticexyz/ecs-browser
1.40.0 (2023-03-03)
Bug Fixes
1.39.0 (2023-02-22)
Note: Version bump only for package @latticexyz/ecs-browser
1.38.0 (2023-02-22)
Note: Version bump only for package @latticexyz/ecs-browser
@latticexyz/dev-tools@2.0.0-next.0
Patch Changes
- #1179
53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3- move
@wagmi/chains
imports toviem/chains
- refine a few types
- move
- Updated dependencies [
8d51a034
,48909d15
,a7b30c79
,4e4a3415
,53522998
,0c4f9fea
,e019c776
]:- @latticexyz/common@2.0.0-next.0
- @latticexyz/world@2.0.0-next.0
- @latticexyz/utils@2.0.0-next.0
- @latticexyz/network@2.0.0-next.0
- @latticexyz/std-client@2.0.0-next.0
- @latticexyz/react@2.0.0-next.0
@latticexyz/config@2.0.0-next.0
Patch Changes
- Updated dependencies [
8d51a034
,48909d15
,f03531d9
,53522998
,0c4f9fea
]:- @latticexyz/common@2.0.0-next.0
- @latticexyz/schema-type@2.0.0-next.0
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
1.42.0 (2023-04-13)
Features
@latticexyz/common@2.0.0-next.0
Minor Changes
-
#1173
0c4f9fea
Thanks @holic! -TableId.toHex()
now truncates name/namespace to 16 bytes each, to properly fit into abytes32
hex string.Also adds a few utils we'll need in the indexer:
bigIntMin
is similar toMath.min
but forbigint
sbigIntMax
is similar toMath.max
but forbigint
sbigIntSort
for sorting an array ofbigint
schunk
to split an array into chunkswait
returns aPromise
that resolves after specified number of milliseconds
Patch Changes
-
#1153
8d51a034
Thanks @dk1a! - Clean up Memory.sol, make mcopy pure -
#1179
53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3- move
@wagmi/chains
imports toviem/chains
- refine a few types
- move
-
Updated dependencies [
48909d15
,f03531d9
,53522998
]:- @latticexyz/schema-type@2.0.0-next.0
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@latticexyz/cli@2.0.0-next.0
Minor Changes
-
#1147
66cc35a8
Thanks @dk1a! - Create gas-report package, move gas-report cli command and GasReporter contract to it -
#1157
c36ffd13
Thanks @alvrs! - - update theset-version
cli command to work with the new release process by adding two new options:--tag
: install the latest version of the given tag. For snapshot releases tags correspond to the branch name, commits tomain
result in an automatic snapshot release, so--tag main
is equivalent to what used to be-v canary
--commit
: install a version based on a given commit hash. Since commits frommain
result in an automatic snapshot release it works for all commits on main, and it works for manual snapshot releases from branches other than mainset-version
now updates allpackage.json
nested below the current working directory (expectnode_modules
), so no need for running it each workspace of a monorepo separately.
Example:
pnpm mud set-version --tag main && pnpm install pnpm mud set-version --commit db19ea39 && pnpm install
Patch Changes
-
#1153
8d51a034
Thanks @dk1a! - Clean up Memory.sol, make mcopy pure -
#1168
48909d15
Thanks @dk1a! - bump forge-std and ds-test dependencies -
#1165
4e4a3415
Thanks @holic! - bump to latest TS version (5.1.6) -
#1179
53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3- move
@wagmi/chains
imports toviem/chains
- refine a few types
- move
-
Updated dependencies [
904fd7d4
,8d51a034
,48909d15
,66cc35a8
,f03531d9
,a7b30c79
,4e4a3415
,53522998
,086be4ef
,0c4f9fea
]:- @latticexyz/store@2.0.0-next.0
- @latticexyz/common@2.0.0-next.0
- @latticexyz/world@2.0.0-next.0
- @latticexyz/gas-report@2.0.0-next.0
- @latticexyz/schema-type@2.0.0-next.0
- @latticexyz/solecs@2.0.0-next.0
- @latticexyz/std-contracts@2.0.0-next.0
- @latticexyz/utils@2.0.0-next.0
- @latticexyz/services@2.0.0-next.0
- @latticexyz/config@2.0.0-next.0
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
- cli: account for getRecord's trimming (#574) (9c5317a)
- cli: add back in resolveTableId export for use with mudConfig (#518) (4906d77)
- cli: handle static arrays in worldgen (#566) (b6a09f2)
- cli: remove node-dependent exports from base module (#517) (abb34a6)
- cli: use esbuild to load mud config (#565) (18a8c42)
- cli: use fileSelector in worldgen (#502) (fa021ed)
- cli: wait for tx confirmation on deploy txs (#606) (b92be71)
- recs,cli: fix bigint in recs and tsgen (#563) (29fefae)
Features
- add support for key schemas (#480) (37aec2e)
- align git dep versions (#577) (2b5fb5e)
- cli/recs/std-client: add ts definitions generator (#536) (dd1efa6)
- cli: add
mud test-v2
command (#554) (d6be8b0) - cli: add
set-version
to upgrade all MUD dependencies in a project (#527) (89731a6) - cli: add encode function to all tables (#498) (564604c)
- cli: add module config to CLI (#494) (263c828)
- cli: add mud2 cli entrypoint with only v2 commands (#567) (785a324)
- cli: add registerFunctionSelectors to deploy cli (#501) (de3d459)
- cli: add worldgen (#496) (e84c0c8)
- cli: allow customization of IWorld interface name via mud config, change
world/IWorld
toworld/IBaseWorld
(#545) (38b355c) - cli: allow passing world address and src dir to deploy cli (#586) (4b532be)
- cli: allow static arrays as abi types in store config and tablegen (#509) (588d037)
- cli: improve store config typehints, prepare for static array support (#508) (abb5eb2)
- cli: improve storeArgument, refactor cli (#500) (bb68670)
- cli: include stateMutability in worldgen (#571) (3a91292)
- cli: namespace deploy output by chain id (#516) (7687349)
- cli: rename deploymentInfoDirectory to deploysDirectory, default to ./deploys (#519) (1dba0d3)
- cli: set storeArgument to true by default (#553) (cb1ecbc)
- cli: use a central codegen dir for tablegen and worldgen (#585) (7500b11)
- cli: use abi types in store config (#507) ([1...
@latticexyz/block-logs-stream@2.0.0-next.0
Minor Changes
-
#1176
eeb15cc0
Thanks @holic! - - ReplaceblockEventsToStorage
withblockLogsToStorage
that exposes astoreOperations
callback to perform database writes from store operations. This helps encapsulates database adapters into a single wrapper/instance ofblockLogsToStorage
and allows for wrapping a block of store operations in a database transaction.- Add
toBlock
option togroupLogsByBlockNumber
and removeblockHash
from results. This helps track the last block number for a given set of logs when used in the context of RxJS streams.
- Add
-
#1070
72b80697
Thanks @holic! - Add block logs stream packageimport { filter, map, mergeMap } from "rxjs"; import { createPublicClient, parseAbi } from "viem"; import { createBlockStream, isNonPendingBlock, groupLogsByBlockNumber, blockRangeToLogs, } from "@latticexyz/block-logs-stream"; const publicClient = createPublicClient({ // your viem public client config here }); const latestBlock$ = await createBlockStream({ publicClient, blockTag: "latest" }); const latestBlockNumber$ = latestBlock$.pipe( filter(isNonPendingBlock), map((block) => block.number) ); latestBlockNumber$ .pipe( map((latestBlockNumber) => ({ startBlock: 0n, endBlock: latestBlockNumber })), blockRangeToLogs({ publicClient, address, events: parseAbi([ "event StoreDeleteRecord(bytes32 table, bytes32[] key)", "event StoreSetField(bytes32 table, bytes32[] key, uint8 schemaIndex, bytes data)", "event StoreSetRecord(bytes32 table, bytes32[] key, bytes data)", "event StoreEphemeralRecord(bytes32 table, bytes32[] key, bytes data)", ]), }), mergeMap(({ logs }) => from(groupLogsByBlockNumber(logs))) ) .subscribe((block) => { console.log("got events for block", block); });
Patch Changes
-
#1179
53522998
Thanks @holic! - - bump to viem 1.3.0 and abitype 0.9.3- move
@wagmi/chains
imports toviem/chains
- refine a few types
- move
-
Updated dependencies [
8d51a034
,48909d15
,f03531d9
,53522998
,0c4f9fea
]:- @latticexyz/common@2.0.0-next.0
- @latticexyz/schema-type@2.0.0-next.0
- @latticexyz/config@2.0.0-next.0
solhint-plugin-mud@1.42.0
Change Log
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
solhint-config-mud@1.42.0
Change Log
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.
@latticexyz/store-cache@1.42.0
Change Log
All notable changes to this project will be documented in this file.
See Conventional Commits for commit guidelines.