From 66b3f8f7d37b2294c0ca59b53886d9b7f7901132 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 3 Oct 2023 18:25:07 +0000 Subject: [PATCH] Version Packages (next) --- .changeset/pre.json | 8 +++ CHANGELOG.md | 75 ++++++++++++++++++++++++ docs/pages/changelog.mdx | 75 ++++++++++++++++++++++++ packages/abi-ts/CHANGELOG.md | 2 + packages/abi-ts/package.json | 2 +- packages/block-logs-stream/CHANGELOG.md | 10 ++++ packages/block-logs-stream/package.json | 2 +- packages/cli/CHANGELOG.md | 30 ++++++++++ packages/cli/package.json | 2 +- packages/common/CHANGELOG.md | 24 ++++++++ packages/common/package.json | 2 +- packages/config/CHANGELOG.md | 10 ++++ packages/config/package.json | 2 +- packages/create-mud/CHANGELOG.md | 6 ++ packages/create-mud/package.json | 2 +- packages/dev-tools/CHANGELOG.md | 16 +++++ packages/dev-tools/package.json | 14 ++--- packages/ecs-browser/CHANGELOG.md | 2 + packages/ecs-browser/package.json | 2 +- packages/faucet/CHANGELOG.md | 6 ++ packages/faucet/package.json | 2 +- packages/gas-report/CHANGELOG.md | 17 ++++++ packages/gas-report/package.json | 2 +- packages/network/CHANGELOG.md | 2 + packages/network/package.json | 2 +- packages/noise/CHANGELOG.md | 2 + packages/noise/package.json | 2 +- packages/phaserx/CHANGELOG.md | 6 ++ packages/phaserx/package.json | 2 +- packages/protocol-parser/CHANGELOG.md | 12 ++++ packages/protocol-parser/package.json | 2 +- packages/react/CHANGELOG.md | 8 +++ packages/react/package.json | 2 +- packages/recs/CHANGELOG.md | 8 +++ packages/recs/package.json | 2 +- packages/schema-type/CHANGELOG.md | 6 ++ packages/schema-type/package.json | 2 +- packages/services/CHANGELOG.md | 2 + packages/services/package.json | 2 +- packages/solecs/CHANGELOG.md | 2 + packages/solecs/package.json | 2 +- packages/solhint-config-mud/CHANGELOG.md | 2 + packages/solhint-config-mud/package.json | 2 +- packages/solhint-plugin-mud/CHANGELOG.md | 2 + packages/solhint-plugin-mud/package.json | 2 +- packages/std-client/CHANGELOG.md | 2 + packages/std-client/package.json | 2 +- packages/std-contracts/CHANGELOG.md | 2 + packages/std-contracts/package.json | 2 +- packages/store-cache/CHANGELOG.md | 2 + packages/store-cache/package.json | 2 +- packages/store-indexer/CHANGELOG.md | 13 ++++ packages/store-indexer/package.json | 2 +- packages/store-sync/CHANGELOG.md | 17 ++++++ packages/store-sync/package.json | 2 +- packages/store/CHANGELOG.md | 12 ++++ packages/store/package.json | 2 +- packages/utils/CHANGELOG.md | 2 + packages/utils/package.json | 2 +- packages/world-modules/CHANGELOG.md | 31 ++++++++++ packages/world-modules/package.json | 2 +- packages/world/CHANGELOG.md | 12 ++++ packages/world/package.json | 2 +- 63 files changed, 462 insertions(+), 36 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 564ad6445e..d8a6209243 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -46,6 +46,7 @@ "chilled-chicken-repair", "chilled-cougars-smash", "chilled-kangaroos-dream", + "chilly-kangaroos-clap", "clever-items-appear", "clever-rats-sip", "cold-years-itch", @@ -88,6 +89,7 @@ "khaki-houses-whisper", "large-drinks-sell", "large-hats-walk", + "large-nails-suffer", "large-sloths-camp", "late-geese-guess", "late-spies-cover", @@ -96,6 +98,7 @@ "long-lizards-admire", "lovely-buses-boil", "lovely-fireants-behave", + "lucky-clocks-love", "many-phones-study", "many-pumpkins-cry", "mean-islands-brake", @@ -107,10 +110,12 @@ "mighty-eels-type", "modern-bikes-build", "modern-hornets-jam", + "modern-stingrays-kneel", "modern-trains-remain", "nasty-trains-drop", "nasty-waves-divide", "nervous-walls-knock", + "nice-avocados-poke", "nice-bikes-double", "nice-fishes-perform", "nice-glasses-begin", @@ -139,6 +144,7 @@ "real-students-exercise", "red-falcons-do", "red-turkeys-develop", + "rotten-beers-learn", "rotten-cats-lay", "selfish-cycles-retire", "serious-ads-trade", @@ -152,6 +158,7 @@ "shy-sheep-wait", "silent-rice-argue", "silly-snakes-fold", + "silver-dolls-shave", "silver-mangos-thank", "six-cats-agree", "six-kangaroos-sneeze", @@ -196,6 +203,7 @@ "unlucky-guests-cover", "violet-insects-press", "weak-mails-cross", + "wicked-cheetahs-cough", "wicked-squids-do", "wicked-tigers-return", "wild-gorillas-care", diff --git a/CHANGELOG.md b/CHANGELOG.md index f5459f29d9..f1c5d10de3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,78 @@ +## Version 2.0.0-next.11 + +### Major changes + +**[feat(cli): remove backup/restore/force options from set-version (#1687)](https://github.com/latticexyz/mud/commit/3d0b3edb46b266fccb40e26e8243d7628bea8baf)** (@latticexyz/cli) + +Removes `.mudbackup` file handling and `--backup`, `--restore`, and `--force` options from `mud set-version` command. + +To revert to a previous MUD version, use `git diff` to find the version that you changed from and want to revert to and run `pnpm mud set-version ` again. + +### Minor changes + +**[feat(world-modules): add SystemSwitch util (#1665)](https://github.com/latticexyz/mud/commit/9352648b19800f28b1d96ec448283808342a41f7)** (@latticexyz/world-modules) + +Since [#1564](https://github.com/latticexyz/mud/pull/1564) the World can no longer call itself via an external call. +This made the developer experience of calling other systems via root systems worse, since calls from root systems are executed from the context of the World. +The recommended approach is to use `delegatecall` to the system if in the context of a root system, and an external call via the World if in the context of a non-root system. +To bring back the developer experience of calling systems from other sysyems without caring about the context in which the call is executed, we added the `SystemSwitch` util. + +```diff +- // Instead of calling the system via an external call to world... +- uint256 value = IBaseWorld(_world()).callMySystem(); + ++ // ...you can now use the `SystemSwitch` util. ++ // This works independent of whether used in a root system or non-root system. ++ uint256 value = abi.decode(SystemSwitch.call(abi.encodeCall(IBaseWorld.callMySystem, ()), (uint256)); +``` + +Note that if you already know your system is always executed as non-root system, you can continue to use the approach of calling other systems via the `IBaseWorld(world)`. + +**[refactor(common): move `createContract`'s internal write logic to `writeContract` (#1693)](https://github.com/latticexyz/mud/commit/d075f82f30f4969a353e4ea29ca2a25a04810523)** (@latticexyz/common) + +- Moves contract write logic out of `createContract` into its own `writeContract` method so that it can be used outside of the contract instance, and for consistency with viem. +- Deprecates `createContract` in favor of `getContract` for consistency with viem. +- Reworks `createNonceManager`'s `BroadcastChannel` setup and moves out the notion of a "nonce manager ID" to `getNonceManagerId` so we can create an internal cache with `getNonceManager` for use in `writeContract`. + +If you were using the `createNonceManager` before, you'll just need to rename `publicClient` argument to `client`: + +```diff + const publicClient = createPublicClient({ ... }); +- const nonceManager = createNonceManager({ publicClient, ... }); ++ const nonceManager = createNonceManager({ client: publicClient, ... }); +``` + +**[feat(gas-reporter): allow gas-reporter to parse stdin (#1688)](https://github.com/latticexyz/mud/commit/4385c5a4c0e2d5550c041acc4386ae7fc1cb4b7e)** (@latticexyz/gas-report) + +Allow the `gas-report` CLI to parse logs via `stdin`, so it can be used with custom test commands (e.g. `mud test`). + +Usage: + +```sh +# replace `forge test -vvv` with the custom test command +GAS_REPORTER_ENABLED=true forge test -vvv | pnpm gas-report --stdin +``` + +### Patch changes + +**[fix(common): workaround for zero base fee (#1689)](https://github.com/latticexyz/mud/commit/16b13ea8fc5e7f63ce08bc6baa2087cab9c8089f)** (@latticexyz/common) + +Adds viem workaround for zero base fee used by MUD's anvil config + +**[build: bump viem and abitype (#1684)](https://github.com/latticexyz/mud/commit/f99e889872e6881bf32bcb9a605b8b5c1b05fac4)** (@latticexyz/block-logs-stream, @latticexyz/cli, @latticexyz/common, @latticexyz/dev-tools, @latticexyz/faucet, @latticexyz/protocol-parser, @latticexyz/schema-type, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, create-mud) + +Bump viem to 1.14.0 and abitype to 0.9.8 + +**[feat(gas-report): add more logs to stdin piping (#1694)](https://github.com/latticexyz/mud/commit/ba17bdab5c8b2a3aa56e86722134174e2799ddfa)** (@latticexyz/gas-report) + +Pass through `stdin` logs in `gas-report`. Since the script piping in logs to `gas-report` can be long-running, it is useful to see its logs to know if it's stalling. + +**[fix(protocol-parser): allow arbitrary key order when encoding values (#1674)](https://github.com/latticexyz/mud/commit/a2f41ade977a5374c400ef8bfc2cb8c8698f185e)** (@latticexyz/protocol-parser) + +Allow arbitrary key order when encoding values + +--- + ## Version 2.0.0-next.10 ### Major changes diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index f5459f29d9..f1c5d10de3 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,3 +1,78 @@ +## Version 2.0.0-next.11 + +### Major changes + +**[feat(cli): remove backup/restore/force options from set-version (#1687)](https://github.com/latticexyz/mud/commit/3d0b3edb46b266fccb40e26e8243d7628bea8baf)** (@latticexyz/cli) + +Removes `.mudbackup` file handling and `--backup`, `--restore`, and `--force` options from `mud set-version` command. + +To revert to a previous MUD version, use `git diff` to find the version that you changed from and want to revert to and run `pnpm mud set-version ` again. + +### Minor changes + +**[feat(world-modules): add SystemSwitch util (#1665)](https://github.com/latticexyz/mud/commit/9352648b19800f28b1d96ec448283808342a41f7)** (@latticexyz/world-modules) + +Since [#1564](https://github.com/latticexyz/mud/pull/1564) the World can no longer call itself via an external call. +This made the developer experience of calling other systems via root systems worse, since calls from root systems are executed from the context of the World. +The recommended approach is to use `delegatecall` to the system if in the context of a root system, and an external call via the World if in the context of a non-root system. +To bring back the developer experience of calling systems from other sysyems without caring about the context in which the call is executed, we added the `SystemSwitch` util. + +```diff +- // Instead of calling the system via an external call to world... +- uint256 value = IBaseWorld(_world()).callMySystem(); + ++ // ...you can now use the `SystemSwitch` util. ++ // This works independent of whether used in a root system or non-root system. ++ uint256 value = abi.decode(SystemSwitch.call(abi.encodeCall(IBaseWorld.callMySystem, ()), (uint256)); +``` + +Note that if you already know your system is always executed as non-root system, you can continue to use the approach of calling other systems via the `IBaseWorld(world)`. + +**[refactor(common): move `createContract`'s internal write logic to `writeContract` (#1693)](https://github.com/latticexyz/mud/commit/d075f82f30f4969a353e4ea29ca2a25a04810523)** (@latticexyz/common) + +- Moves contract write logic out of `createContract` into its own `writeContract` method so that it can be used outside of the contract instance, and for consistency with viem. +- Deprecates `createContract` in favor of `getContract` for consistency with viem. +- Reworks `createNonceManager`'s `BroadcastChannel` setup and moves out the notion of a "nonce manager ID" to `getNonceManagerId` so we can create an internal cache with `getNonceManager` for use in `writeContract`. + +If you were using the `createNonceManager` before, you'll just need to rename `publicClient` argument to `client`: + +```diff + const publicClient = createPublicClient({ ... }); +- const nonceManager = createNonceManager({ publicClient, ... }); ++ const nonceManager = createNonceManager({ client: publicClient, ... }); +``` + +**[feat(gas-reporter): allow gas-reporter to parse stdin (#1688)](https://github.com/latticexyz/mud/commit/4385c5a4c0e2d5550c041acc4386ae7fc1cb4b7e)** (@latticexyz/gas-report) + +Allow the `gas-report` CLI to parse logs via `stdin`, so it can be used with custom test commands (e.g. `mud test`). + +Usage: + +```sh +# replace `forge test -vvv` with the custom test command +GAS_REPORTER_ENABLED=true forge test -vvv | pnpm gas-report --stdin +``` + +### Patch changes + +**[fix(common): workaround for zero base fee (#1689)](https://github.com/latticexyz/mud/commit/16b13ea8fc5e7f63ce08bc6baa2087cab9c8089f)** (@latticexyz/common) + +Adds viem workaround for zero base fee used by MUD's anvil config + +**[build: bump viem and abitype (#1684)](https://github.com/latticexyz/mud/commit/f99e889872e6881bf32bcb9a605b8b5c1b05fac4)** (@latticexyz/block-logs-stream, @latticexyz/cli, @latticexyz/common, @latticexyz/dev-tools, @latticexyz/faucet, @latticexyz/protocol-parser, @latticexyz/schema-type, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, create-mud) + +Bump viem to 1.14.0 and abitype to 0.9.8 + +**[feat(gas-report): add more logs to stdin piping (#1694)](https://github.com/latticexyz/mud/commit/ba17bdab5c8b2a3aa56e86722134174e2799ddfa)** (@latticexyz/gas-report) + +Pass through `stdin` logs in `gas-report`. Since the script piping in logs to `gas-report` can be long-running, it is useful to see its logs to know if it's stalling. + +**[fix(protocol-parser): allow arbitrary key order when encoding values (#1674)](https://github.com/latticexyz/mud/commit/a2f41ade977a5374c400ef8bfc2cb8c8698f185e)** (@latticexyz/protocol-parser) + +Allow arbitrary key order when encoding values + +--- + ## Version 2.0.0-next.10 ### Major changes diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index ea6c9d3fbc..0a87c998a3 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index cae0bcda0c..b34966591a 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.", "repository": { "type": "git", diff --git a/packages/block-logs-stream/CHANGELOG.md b/packages/block-logs-stream/CHANGELOG.md index 50cdf14432..19e9d62390 100644 --- a/packages/block-logs-stream/CHANGELOG.md +++ b/packages/block-logs-stream/CHANGELOG.md @@ -1,5 +1,15 @@ # @latticexyz/block-logs-stream +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 7a8bb5c061..c15804a37a 100644 --- a/packages/block-logs-stream/package.json +++ b/packages/block-logs-stream/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/block-logs-stream", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Create a stream of EVM block logs for events", "repository": { "type": "git", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 413ca20a9e..ceb981f408 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,35 @@ # Change Log +## 2.0.0-next.11 + +### Major Changes + +- 3d0b3edb: Removes `.mudbackup` file handling and `--backup`, `--restore`, and `--force` options from `mud set-version` command. + + To revert to a previous MUD version, use `git diff` to find the version that you changed from and want to revert to and run `pnpm mud set-version ` again. + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [9352648b] +- Updated dependencies [ba17bdab] +- Updated dependencies [d075f82f] +- Updated dependencies [4385c5a4] +- Updated dependencies [a2f41ade] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/protocol-parser@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/world-modules@2.0.0-next.11 + - @latticexyz/gas-report@2.0.0-next.11 + - @latticexyz/config@2.0.0-next.11 + - @latticexyz/world@2.0.0-next.11 + - @latticexyz/abi-ts@2.0.0-next.11 + - @latticexyz/services@2.0.0-next.11 + - @latticexyz/utils@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 7f1648e341..27f5840f40 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 09aed2803b..dd4a2461a6 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,29 @@ # Change Log +## 2.0.0-next.11 + +### Minor Changes + +- d075f82f: - Moves contract write logic out of `createContract` into its own `writeContract` method so that it can be used outside of the contract instance, and for consistency with viem. + + - Deprecates `createContract` in favor of `getContract` for consistency with viem. + - Reworks `createNonceManager`'s `BroadcastChannel` setup and moves out the notion of a "nonce manager ID" to `getNonceManagerId` so we can create an internal cache with `getNonceManager` for use in `writeContract`. + + If you were using the `createNonceManager` before, you'll just need to rename `publicClient` argument to `client`: + + ```diff + const publicClient = createPublicClient({ ... }); + - const nonceManager = createNonceManager({ publicClient, ... }); + + const nonceManager = createNonceManager({ client: publicClient, ... }); + ``` + +### Patch Changes + +- 16b13ea8: Adds viem workaround for zero base fee used by MUD's anvil config +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [f99e8898] + - @latticexyz/schema-type@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index de28924885..54c39676cf 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index 6e0eefd1ba..43ea9915e4 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index d23255fa32..0a28220db6 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 287ce84fdb..4f277f5719 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index 339db60733..2aaf771f78 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Create a new MUD project", "license": "MIT", "author": "Lattice ", diff --git a/packages/dev-tools/CHANGELOG.md b/packages/dev-tools/CHANGELOG.md index fefd9f8481..61a74c28ba 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,21 @@ # @latticexyz/dev-tools +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/store-sync@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/world@2.0.0-next.11 + - @latticexyz/recs@2.0.0-next.11 + - @latticexyz/react@2.0.0-next.11 + - @latticexyz/utils@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index 8c4d965627..433ba56676 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "MUD developer tools", "repository": { "type": "git", @@ -50,12 +50,12 @@ "vitest": "0.31.4" }, "peerDependencies": { - "@latticexyz/common": "2.0.0-next.10", - "@latticexyz/recs": "2.0.0-next.10", - "@latticexyz/store": "2.0.0-next.10", - "@latticexyz/store-sync": "2.0.0-next.10", - "@latticexyz/utils": "2.0.0-next.10", - "@latticexyz/world": "2.0.0-next.10" + "@latticexyz/common": "2.0.0-next.11", + "@latticexyz/recs": "2.0.0-next.11", + "@latticexyz/store": "2.0.0-next.11", + "@latticexyz/store-sync": "2.0.0-next.11", + "@latticexyz/utils": "2.0.0-next.11", + "@latticexyz/world": "2.0.0-next.11" }, "publishConfig": { "access": "public" diff --git a/packages/ecs-browser/CHANGELOG.md b/packages/ecs-browser/CHANGELOG.md index e63063661e..157df98b7e 100644 --- a/packages/ecs-browser/CHANGELOG.md +++ b/packages/ecs-browser/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/ecs-browser +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/ecs-browser/package.json b/packages/ecs-browser/package.json index 3cbba371bb..028e359999 100644 --- a/packages/ecs-browser/package.json +++ b/packages/ecs-browser/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/ecs-browser", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index f4ccba8d5b..b2fe964278 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,11 @@ # @latticexyz/faucet +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/faucet/package.json b/packages/faucet/package.json index f2b60deee1..470048f694 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index a74877cff3..50d945c4d6 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,22 @@ # Change Log +## 2.0.0-next.11 + +### Minor Changes + +- 4385c5a4: Allow the `gas-report` CLI to parse logs via `stdin`, so it can be used with custom test commands (e.g. `mud test`). + + Usage: + + ```sh + # replace `forge test -vvv` with the custom test command + GAS_REPORTER_ENABLED=true forge test -vvv | pnpm gas-report --stdin + ``` + +### Patch Changes + +- ba17bdab: Pass through `stdin` logs in `gas-report`. Since the script piping in logs to `gas-report` can be long-running, it is useful to see its logs to know if it's stalling. + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index 56be4fd793..c4d5f1c914 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Gas reporter for specific lines within forge tests", "repository": { "type": "git", diff --git a/packages/network/CHANGELOG.md b/packages/network/CHANGELOG.md index d8ac462af7..22843aa499 100644 --- a/packages/network/CHANGELOG.md +++ b/packages/network/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/network +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/network/package.json b/packages/network/package.json index 63b7e757c6..42985be783 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/network", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/noise/CHANGELOG.md b/packages/noise/CHANGELOG.md index f46a05789c..bd2fefe837 100644 --- a/packages/noise/CHANGELOG.md +++ b/packages/noise/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/noise/package.json b/packages/noise/package.json index 28d40fc36e..82ba0d968f 100644 --- a/packages/noise/package.json +++ b/packages/noise/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/noise", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "license": "MIT", "type": "module", "exports": { diff --git a/packages/phaserx/CHANGELOG.md b/packages/phaserx/CHANGELOG.md index d10e5a27f3..d8487bb999 100644 --- a/packages/phaserx/CHANGELOG.md +++ b/packages/phaserx/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- @latticexyz/utils@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/phaserx/package.json b/packages/phaserx/package.json index dcc703ff97..31be4ae6bb 100644 --- a/packages/phaserx/package.json +++ b/packages/phaserx/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/phaserx", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/protocol-parser/CHANGELOG.md b/packages/protocol-parser/CHANGELOG.md index 23a0851ada..ddf3f53da6 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,17 @@ # @latticexyz/protocol-parser +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- a2f41ade: Allow arbitrary key order when encoding values +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index e792fd7454..c8bb299a71 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index e8282e12c2..330921b5ea 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- Updated dependencies [f99e8898] + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/recs@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 82c8f4fb82..c9535acd09 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index 26987cd911..9bb7dc8fa2 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- Updated dependencies [f99e8898] + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/utils@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 9c46251216..e0f64d9f10 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/schema-type/CHANGELOG.md b/packages/schema-type/CHANGELOG.md index 2a2d9816fe..93fe5b6498 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index a213dbe3bf..8e5d3ff7e4 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/services/CHANGELOG.md b/packages/services/CHANGELOG.md index aa26d80d60..d607c14d66 100644 --- a/packages/services/CHANGELOG.md +++ b/packages/services/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/services/package.json b/packages/services/package.json index fa28b99534..d20f6e86c2 100644 --- a/packages/services/package.json +++ b/packages/services/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/services", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "MUD services for enhanced interactions with on-chain ECS state", "repository": { "type": "git", diff --git a/packages/solecs/CHANGELOG.md b/packages/solecs/CHANGELOG.md index 1a50bbf757..532ec4d3e4 100644 --- a/packages/solecs/CHANGELOG.md +++ b/packages/solecs/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/solecs +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/solecs/package.json b/packages/solecs/package.json index 382dbdbf46..378d397dda 100644 --- a/packages/solecs/package.json +++ b/packages/solecs/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/solecs", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/solhint-config-mud/CHANGELOG.md b/packages/solhint-config-mud/CHANGELOG.md index 70fd325bf9..17c8da0782 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index 416bf1f283..b6c93cec60 100644 --- a/packages/solhint-config-mud/package.json +++ b/packages/solhint-config-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-config-mud", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/solhint-plugin-mud/CHANGELOG.md b/packages/solhint-plugin-mud/CHANGELOG.md index 70fd325bf9..17c8da0782 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 0738247cad..5504f0b436 100644 --- a/packages/solhint-plugin-mud/package.json +++ b/packages/solhint-plugin-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-plugin-mud", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/std-client/CHANGELOG.md b/packages/std-client/CHANGELOG.md index d7666b0693..30b7f3b713 100644 --- a/packages/std-client/CHANGELOG.md +++ b/packages/std-client/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/std-client +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/std-client/package.json b/packages/std-client/package.json index 932cc55cc8..c64cf50e0a 100644 --- a/packages/std-client/package.json +++ b/packages/std-client/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/std-client", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/std-contracts/CHANGELOG.md b/packages/std-contracts/CHANGELOG.md index adbd2f11aa..ee2613c2eb 100644 --- a/packages/std-contracts/CHANGELOG.md +++ b/packages/std-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/std-contracts +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/std-contracts/package.json b/packages/std-contracts/package.json index b0f8e39168..dff9399ed1 100644 --- a/packages/std-contracts/package.json +++ b/packages/std-contracts/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/std-contracts", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/store-cache/CHANGELOG.md b/packages/store-cache/CHANGELOG.md index 5e689c8744..df007de0f2 100644 --- a/packages/store-cache/CHANGELOG.md +++ b/packages/store-cache/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/store-cache +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/store-cache/package.json b/packages/store-cache/package.json index f8ccfc9200..1f016ea247 100644 --- a/packages/store-cache/package.json +++ b/packages/store-cache/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/store-cache", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "private": true } diff --git a/packages/store-indexer/CHANGELOG.md b/packages/store-indexer/CHANGELOG.md index 9761b93c86..a00288fc69 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,18 @@ # @latticexyz/store-indexer +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/block-logs-stream@2.0.0-next.11 + - @latticexyz/store-sync@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + ## 2.0.0-next.10 ### Minor Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index 9f0032fc1f..30b68cfabd 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index 0cf68dfd06..4a3d234e15 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,22 @@ # @latticexyz/store-sync +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] +- Updated dependencies [a2f41ade] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/block-logs-stream@2.0.0-next.11 + - @latticexyz/protocol-parser@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/world@2.0.0-next.11 + - @latticexyz/recs@2.0.0-next.11 + ## 2.0.0-next.10 ### Minor Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index ec32d23b6c..76127ffffc 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Utilities to sync MUD Store events with a client or cache", "repository": { "type": "git", diff --git a/packages/store/CHANGELOG.md b/packages/store/CHANGELOG.md index a0bdec3c98..3590a1d04a 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- f99e8898: Bump viem to 1.14.0 and abitype to 0.9.8 +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/config@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/store/package.json b/packages/store/package.json index ae9a15cfce..4c2aa30993 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 0c9b0a1f5e..be636b805c 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.11 + ## 2.0.0-next.10 ## 2.0.0-next.9 diff --git a/packages/utils/package.json b/packages/utils/package.json index a1d082d41c..80b80a42d1 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/world-modules/CHANGELOG.md b/packages/world-modules/CHANGELOG.md index 3f52ce1bb9..0e6ff4d727 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,36 @@ # Change Log +## 2.0.0-next.11 + +### Minor Changes + +- 9352648b: Since [#1564](https://github.com/latticexyz/mud/pull/1564) the World can no longer call itself via an external call. + This made the developer experience of calling other systems via root systems worse, since calls from root systems are executed from the context of the World. + The recommended approach is to use `delegatecall` to the system if in the context of a root system, and an external call via the World if in the context of a non-root system. + To bring back the developer experience of calling systems from other sysyems without caring about the context in which the call is executed, we added the `SystemSwitch` util. + + ```diff + - // Instead of calling the system via an external call to world... + - uint256 value = IBaseWorld(_world()).callMySystem(); + + + // ...you can now use the `SystemSwitch` util. + + // This works independent of whether used in a root system or non-root system. + + uint256 value = abi.decode(SystemSwitch.call(abi.encodeCall(IBaseWorld.callMySystem, ()), (uint256)); + ``` + + Note that if you already know your system is always executed as non-root system, you can continue to use the approach of calling other systems via the `IBaseWorld(world)`. + +### Patch Changes + +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/config@2.0.0-next.11 + - @latticexyz/world@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index 70330b938c..5eca4dbc3d 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 9d0df8f22a..c95cf1f5bb 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## 2.0.0-next.11 + +### Patch Changes + +- Updated dependencies [16b13ea8] +- Updated dependencies [f99e8898] +- Updated dependencies [d075f82f] + - @latticexyz/common@2.0.0-next.11 + - @latticexyz/schema-type@2.0.0-next.11 + - @latticexyz/store@2.0.0-next.11 + - @latticexyz/config@2.0.0-next.11 + ## 2.0.0-next.10 ### Major Changes diff --git a/packages/world/package.json b/packages/world/package.json index e7169311d9..ffb779a9df 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "description": "World framework", "repository": { "type": "git",