From 43cde886e016b541a4afafa0818498f9e17774fc Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 25 Apr 2024 19:23:33 +0100 Subject: [PATCH] Version Packages (#2694) Co-authored-by: github-actions[bot] --- .changeset/afraid-eagles-learn.md | 5 - .changeset/angry-ties-travel.md | 5 - .changeset/dry-cycles-film.md | 5 - .changeset/early-teachers-greet.md | 5 - .changeset/few-glasses-rhyme.md | 5 - .changeset/five-pots-switch.md | 5 - .changeset/forty-rocks-rescue.md | 5 - .changeset/kind-fireants-battle.md | 5 - .changeset/many-bulldogs-pay.md | 5 - .changeset/perfect-actors-flow.md | 14 -- .changeset/proud-apes-explain.md | 5 - .changeset/shiny-donuts-matter.md | 5 - .changeset/spicy-bags-cough.md | 6 - .changeset/strong-lobsters-shake.md | 5 - .changeset/tender-cherries-hammer.md | 6 - .changeset/three-zoos-laugh.md | 5 - .changeset/wise-cows-check.md | 5 - CHANGELOG.md | 85 ++++++++ docs/pages/changelog.mdx | 247 +++++++++++++++++++++++ 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 | 19 ++ 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 | 20 ++ packages/dev-tools/package.json | 14 +- packages/faucet/CHANGELOG.md | 9 + packages/faucet/package.json | 2 +- packages/gas-report/CHANGELOG.md | 2 + packages/gas-report/package.json | 2 +- packages/protocol-parser/CHANGELOG.md | 11 + packages/protocol-parser/package.json | 2 +- packages/query/CHANGELOG.md | 13 ++ packages/query/package.json | 2 +- packages/react/CHANGELOG.md | 8 + packages/react/package.json | 2 +- packages/recs/CHANGELOG.md | 7 + packages/recs/package.json | 2 +- packages/schema-type/CHANGELOG.md | 2 + packages/schema-type/package.json | 2 +- packages/services/CHANGELOG.md | 2 + packages/services/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/store-indexer/CHANGELOG.md | 17 ++ packages/store-indexer/package.json | 2 +- packages/store-sync/CHANGELOG.md | 22 ++ packages/store-sync/package.json | 2 +- packages/store/CHANGELOG.md | 13 ++ packages/store/package.json | 2 +- packages/utils/CHANGELOG.md | 2 + packages/utils/package.json | 2 +- packages/world-modules/CHANGELOG.md | 18 ++ packages/world-modules/package.json | 2 +- packages/world/CHANGELOG.md | 16 ++ packages/world/package.json | 2 +- test/mock-game-contracts/CHANGELOG.md | 2 + test/mock-game-contracts/package.json | 2 +- 67 files changed, 607 insertions(+), 126 deletions(-) delete mode 100644 .changeset/afraid-eagles-learn.md delete mode 100644 .changeset/angry-ties-travel.md delete mode 100644 .changeset/dry-cycles-film.md delete mode 100644 .changeset/early-teachers-greet.md delete mode 100644 .changeset/few-glasses-rhyme.md delete mode 100644 .changeset/five-pots-switch.md delete mode 100644 .changeset/forty-rocks-rescue.md delete mode 100644 .changeset/kind-fireants-battle.md delete mode 100644 .changeset/many-bulldogs-pay.md delete mode 100644 .changeset/perfect-actors-flow.md delete mode 100644 .changeset/proud-apes-explain.md delete mode 100644 .changeset/shiny-donuts-matter.md delete mode 100644 .changeset/spicy-bags-cough.md delete mode 100644 .changeset/strong-lobsters-shake.md delete mode 100644 .changeset/tender-cherries-hammer.md delete mode 100644 .changeset/three-zoos-laugh.md delete mode 100644 .changeset/wise-cows-check.md diff --git a/.changeset/afraid-eagles-learn.md b/.changeset/afraid-eagles-learn.md deleted file mode 100644 index 53625d7a3f..0000000000 --- a/.changeset/afraid-eagles-learn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/store-indexer": patch ---- - -Add Prometheus metrics at `/metrics` to the Postgres indexer backend and frontend, as well as the SQLite indexer. diff --git a/.changeset/angry-ties-travel.md b/.changeset/angry-ties-travel.md deleted file mode 100644 index ed3a710042..0000000000 --- a/.changeset/angry-ties-travel.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/common": patch ---- - -Added asynchronous polling for current fees to `sendTransaction`. diff --git a/.changeset/dry-cycles-film.md b/.changeset/dry-cycles-film.md deleted file mode 100644 index 11f2074539..0000000000 --- a/.changeset/dry-cycles-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/block-logs-stream": patch ---- - -Added detection and handling for proxyd rate limit and block range errors. diff --git a/.changeset/early-teachers-greet.md b/.changeset/early-teachers-greet.md deleted file mode 100644 index 816f97716b..0000000000 --- a/.changeset/early-teachers-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Added a `--awsKmsKeyId` flag to `mud deploy` that deploys the world using an AWS KMS key as a transaction signer. diff --git a/.changeset/few-glasses-rhyme.md b/.changeset/few-glasses-rhyme.md deleted file mode 100644 index e01311a191..0000000000 --- a/.changeset/few-glasses-rhyme.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/store-sync": patch ---- - -Partially revert [#2665](https://github.com/latticexyz/mud/pull/2665) to guarantee logs are stored in order. diff --git a/.changeset/five-pots-switch.md b/.changeset/five-pots-switch.md deleted file mode 100644 index a2551cbaa8..0000000000 --- a/.changeset/five-pots-switch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Deploying now retries on "block is out of range" errors, for cases where the RPC is load balanced and out of sync. diff --git a/.changeset/forty-rocks-rescue.md b/.changeset/forty-rocks-rescue.md deleted file mode 100644 index 75cf10feb1..0000000000 --- a/.changeset/forty-rocks-rescue.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Deploy will now fetch and set the gas price during execution of PostDeploy script. This should greatly reduce the fees paid for L2s. diff --git a/.changeset/kind-fireants-battle.md b/.changeset/kind-fireants-battle.md deleted file mode 100644 index 08df8f5e30..0000000000 --- a/.changeset/kind-fireants-battle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/world-modules": patch ---- - -Fixed ERC721 module to properly encode token ID as part of token URI. diff --git a/.changeset/many-bulldogs-pay.md b/.changeset/many-bulldogs-pay.md deleted file mode 100644 index 8a3bf24eb2..0000000000 --- a/.changeset/many-bulldogs-pay.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Added a new `mud verify` command which verifies all contracts in a project. This includes systems, modules, the WorldFactory and World. diff --git a/.changeset/perfect-actors-flow.md b/.changeset/perfect-actors-flow.md deleted file mode 100644 index cf79fb3b00..0000000000 --- a/.changeset/perfect-actors-flow.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@latticexyz/common": patch ---- - -Added `kmsKeyToAccount`, a [viem custom account](https://viem.sh/docs/accounts/custom#custom-account) that signs transactions using AWS KMS. - -To use it, you must first install `@aws-sdk/client-kms@3.x` and `asn1.js@5.x` dependencies into your project. Then create a KMS account with: - -```ts -import { kmsKeyToAccount } from "@latticexyz/common/kms"; -const account = kmsKeyToAccount({ keyId: ... }); -``` - -By default, a `KMSClient` will be created, but you can also pass one in via the `client` option. The default KMS client will use [your environment's AWS SDK configuration](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html). diff --git a/.changeset/proud-apes-explain.md b/.changeset/proud-apes-explain.md deleted file mode 100644 index e6ef77caeb..0000000000 --- a/.changeset/proud-apes-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Fixed an issue where deploys were warning about mismatched bytecode when the bytecode was correct and what we expect. diff --git a/.changeset/shiny-donuts-matter.md b/.changeset/shiny-donuts-matter.md deleted file mode 100644 index feb581c6da..0000000000 --- a/.changeset/shiny-donuts-matter.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Made `worlds.json`'s `address` type more like viem's `Hex` type so it's easy to pass through as an argument. diff --git a/.changeset/spicy-bags-cough.md b/.changeset/spicy-bags-cough.md deleted file mode 100644 index 5c2d4877ca..0000000000 --- a/.changeset/spicy-bags-cough.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@latticexyz/world": patch -"@latticexyz/cli": patch ---- - -Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`. diff --git a/.changeset/strong-lobsters-shake.md b/.changeset/strong-lobsters-shake.md deleted file mode 100644 index 3f657a2adb..0000000000 --- a/.changeset/strong-lobsters-shake.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/store": patch ---- - -Added a check to `registerTable` that prevents registering both an offchain and onchain table with the same name, making it easier to use human-readable names in indexers. diff --git a/.changeset/tender-cherries-hammer.md b/.changeset/tender-cherries-hammer.md deleted file mode 100644 index 0cf0459c20..0000000000 --- a/.changeset/tender-cherries-hammer.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@latticexyz/world-modules": patch -"@latticexyz/world": patch ---- - -Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields. diff --git a/.changeset/three-zoos-laugh.md b/.changeset/three-zoos-laugh.md deleted file mode 100644 index 40a38a4dd4..0000000000 --- a/.changeset/three-zoos-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Added a `--forgeScriptOptions` flag to deploy and dev commands to allow passing in additional CLI flags to `forge script` command. diff --git a/.changeset/wise-cows-check.md b/.changeset/wise-cows-check.md deleted file mode 100644 index d253df9bc9..0000000000 --- a/.changeset/wise-cows-check.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/common": patch ---- - -`Resource` type props are now readonly. diff --git a/CHANGELOG.md b/CHANGELOG.md index 522704d0d6..cc0071118c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,88 @@ +## Version 2.0.7 + +Release date: Thu Apr 25 2024 + +### Patch changes + +**[feat(store-indexer): add prometheus metrics (#2739)](https://github.com/latticexyz/mud/commit/27c4fdee6e04d6d61bef320673bed22b2872b51c)** (@latticexyz/store-indexer) + +Add Prometheus metrics at `/metrics` to the Postgres indexer backend and frontend, as well as the SQLite indexer. + +**[fix(common): use feeRef for sendTransaction calls (#2725)](https://github.com/latticexyz/mud/commit/375d902ed02541fa5add7012465e05da079d4d95)** (@latticexyz/common) + +Added asynchronous polling for current fees to `sendTransaction`. + +**[fix(block-logs-stream): handle proxyd errors (#2726)](https://github.com/latticexyz/mud/commit/bf16e729fea1830659b81a6a0ea5fccb6429ea42)** (@latticexyz/block-logs-stream) + +Added detection and handling for proxyd rate limit and block range errors. + +**[feat(cli): deploy with kms (#2704)](https://github.com/latticexyz/mud/commit/c74a66474169d16a2ed4b7fd9046984d4ceabc3f)** (@latticexyz/cli) + +Added a `--awsKmsKeyId` flag to `mud deploy` that deploys the world using an AWS KMS key as a transaction signer. + +**[fix(store-sync): await fetchAndStoreLogs (#2702)](https://github.com/latticexyz/mud/commit/16695fea8a0a8d80179c3fbe68120b34de076659)** (@latticexyz/store-sync) + +Partially revert [#2665](https://github.com/latticexyz/mud/pull/2665) to guarantee logs are stored in order. + +**[fix(cli): add retry to getLogs when getting resource ID's (#2709)](https://github.com/latticexyz/mud/commit/dbc7e066d0bd344a5d9b2586c7f2875d21cfd0ca)** (@latticexyz/cli) + +Deploying now retries on "block is out of range" errors, for cases where the RPC is load balanced and out of sync. + +**[feat(cli): manually fetch gas price from rpc before PostDeploy runs (#2638)](https://github.com/latticexyz/mud/commit/189050bd2c61ba645325d45a6a4040153d361412)** (@latticexyz/cli) + +Deploy will now fetch and set the gas price during execution of PostDeploy script. This should greatly reduce the fees paid for L2s. + +**[fix(world-modules): properly concat baseURI and tokenURI in ERC721 module (#2686)](https://github.com/latticexyz/mud/commit/78a94d715af427b77f52a7e2ff4be2cb3752e2a9)** (@latticexyz/world-modules) + +Fixed ERC721 module to properly encode token ID as part of token URI. + +**[feat(cli): verify command (#2662)](https://github.com/latticexyz/mud/commit/fce741b07dd68f4a0a553bee5d63f1d6b0546283)** (@latticexyz/cli) + +Added a new `mud verify` command which verifies all contracts in a project. This includes systems, modules, the WorldFactory and World. + +**[fix(common): kms correctly serializes transactions (#2721)](https://github.com/latticexyz/mud/commit/182d70608fce514ae1aec5366a7bbae1dc936844)** (@latticexyz/common) + +Added `kmsKeyToAccount`, a [viem custom account](https://viem.sh/docs/accounts/custom#custom-account) that signs transactions using AWS KMS. + +To use it, you must first install `@aws-sdk/client-kms@3.x` and `asn1.js@5.x` dependencies into your project. Then create a KMS account with: + +```ts +import { kmsKeyToAccount } from "@latticexyz/common/kms"; +const account = kmsKeyToAccount({ keyId: ... }); +``` + +By default, a `KMSClient` will be created, but you can also pass one in via the `client` option. The default KMS client will use [your environment's AWS SDK configuration](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html). + +**[fix(cli): fix deployer warning (#2683)](https://github.com/latticexyz/mud/commit/632a7525ab2f125ed01a612987ece58cb1fd9740)** (@latticexyz/cli) + +Fixed an issue where deploys were warning about mismatched bytecode when the bytecode was correct and what we expect. + +**[fix(create-mud): make worlds.json address type more specific (#2685)](https://github.com/latticexyz/mud/commit/534e7729a7e727575bb7db99c4acda55e8ceb295)** (create-mud) + +Made `worlds.json`'s `address` type more like viem's `Hex` type so it's easy to pass through as an argument. + +**[refactor(world,cli): rename `useProxy` to `upgradeableWorldImplementation` (#2732)](https://github.com/latticexyz/mud/commit/1ccd627676cb94a07e29e511db037a5f855c3096)** (@latticexyz/world, @latticexyz/cli) + +Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`. + +**[fix(store): enforce unique table names across types (#2736)](https://github.com/latticexyz/mud/commit/ed404b7d840db755f7513d4a7d32b85eaa3dd058)** (@latticexyz/store) + +Added a check to `registerTable` that prevents registering both an offchain and onchain table with the same name, making it easier to use human-readable names in indexers. + +**[feat(world-modules): string systemId in `callWithSignature` typehash (#2700)](https://github.com/latticexyz/mud/commit/2c9b16c77aca12e4c23e96de83e5820c09cb3b9d)** (@latticexyz/world-modules, @latticexyz/world) + +Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields. + +**[feat(cli): add user-specified PostDeploy forge options (#2703)](https://github.com/latticexyz/mud/commit/8493f88f8db972ef2a7c1caa49f8231c60ed2ba5)** (@latticexyz/cli) + +Added a `--forgeScriptOptions` flag to deploy and dev commands to allow passing in additional CLI flags to `forge script` command. + +**[fix(common): make `Resource` type props readonly (#2516)](https://github.com/latticexyz/mud/commit/f736c43dbc39edff51957a298b563576237429df)** (@latticexyz/common) + +`Resource` type props are now readonly. + +--- + ## Version 2.0.6 Release date: Wed Apr 17 2024 diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index be94d5d6e4..cc0071118c 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,37 +1,284 @@ +## Version 2.0.7 + +Release date: Thu Apr 25 2024 + +### Patch changes + +**[feat(store-indexer): add prometheus metrics (#2739)](https://github.com/latticexyz/mud/commit/27c4fdee6e04d6d61bef320673bed22b2872b51c)** (@latticexyz/store-indexer) + +Add Prometheus metrics at `/metrics` to the Postgres indexer backend and frontend, as well as the SQLite indexer. + +**[fix(common): use feeRef for sendTransaction calls (#2725)](https://github.com/latticexyz/mud/commit/375d902ed02541fa5add7012465e05da079d4d95)** (@latticexyz/common) + +Added asynchronous polling for current fees to `sendTransaction`. + +**[fix(block-logs-stream): handle proxyd errors (#2726)](https://github.com/latticexyz/mud/commit/bf16e729fea1830659b81a6a0ea5fccb6429ea42)** (@latticexyz/block-logs-stream) + +Added detection and handling for proxyd rate limit and block range errors. + +**[feat(cli): deploy with kms (#2704)](https://github.com/latticexyz/mud/commit/c74a66474169d16a2ed4b7fd9046984d4ceabc3f)** (@latticexyz/cli) + +Added a `--awsKmsKeyId` flag to `mud deploy` that deploys the world using an AWS KMS key as a transaction signer. + +**[fix(store-sync): await fetchAndStoreLogs (#2702)](https://github.com/latticexyz/mud/commit/16695fea8a0a8d80179c3fbe68120b34de076659)** (@latticexyz/store-sync) + +Partially revert [#2665](https://github.com/latticexyz/mud/pull/2665) to guarantee logs are stored in order. + +**[fix(cli): add retry to getLogs when getting resource ID's (#2709)](https://github.com/latticexyz/mud/commit/dbc7e066d0bd344a5d9b2586c7f2875d21cfd0ca)** (@latticexyz/cli) + +Deploying now retries on "block is out of range" errors, for cases where the RPC is load balanced and out of sync. + +**[feat(cli): manually fetch gas price from rpc before PostDeploy runs (#2638)](https://github.com/latticexyz/mud/commit/189050bd2c61ba645325d45a6a4040153d361412)** (@latticexyz/cli) + +Deploy will now fetch and set the gas price during execution of PostDeploy script. This should greatly reduce the fees paid for L2s. + +**[fix(world-modules): properly concat baseURI and tokenURI in ERC721 module (#2686)](https://github.com/latticexyz/mud/commit/78a94d715af427b77f52a7e2ff4be2cb3752e2a9)** (@latticexyz/world-modules) + +Fixed ERC721 module to properly encode token ID as part of token URI. + +**[feat(cli): verify command (#2662)](https://github.com/latticexyz/mud/commit/fce741b07dd68f4a0a553bee5d63f1d6b0546283)** (@latticexyz/cli) + +Added a new `mud verify` command which verifies all contracts in a project. This includes systems, modules, the WorldFactory and World. + +**[fix(common): kms correctly serializes transactions (#2721)](https://github.com/latticexyz/mud/commit/182d70608fce514ae1aec5366a7bbae1dc936844)** (@latticexyz/common) + +Added `kmsKeyToAccount`, a [viem custom account](https://viem.sh/docs/accounts/custom#custom-account) that signs transactions using AWS KMS. + +To use it, you must first install `@aws-sdk/client-kms@3.x` and `asn1.js@5.x` dependencies into your project. Then create a KMS account with: + +```ts +import { kmsKeyToAccount } from "@latticexyz/common/kms"; +const account = kmsKeyToAccount({ keyId: ... }); +``` + +By default, a `KMSClient` will be created, but you can also pass one in via the `client` option. The default KMS client will use [your environment's AWS SDK configuration](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html). + +**[fix(cli): fix deployer warning (#2683)](https://github.com/latticexyz/mud/commit/632a7525ab2f125ed01a612987ece58cb1fd9740)** (@latticexyz/cli) + +Fixed an issue where deploys were warning about mismatched bytecode when the bytecode was correct and what we expect. + +**[fix(create-mud): make worlds.json address type more specific (#2685)](https://github.com/latticexyz/mud/commit/534e7729a7e727575bb7db99c4acda55e8ceb295)** (create-mud) + +Made `worlds.json`'s `address` type more like viem's `Hex` type so it's easy to pass through as an argument. + +**[refactor(world,cli): rename `useProxy` to `upgradeableWorldImplementation` (#2732)](https://github.com/latticexyz/mud/commit/1ccd627676cb94a07e29e511db037a5f855c3096)** (@latticexyz/world, @latticexyz/cli) + +Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`. + +**[fix(store): enforce unique table names across types (#2736)](https://github.com/latticexyz/mud/commit/ed404b7d840db755f7513d4a7d32b85eaa3dd058)** (@latticexyz/store) + +Added a check to `registerTable` that prevents registering both an offchain and onchain table with the same name, making it easier to use human-readable names in indexers. + +**[feat(world-modules): string systemId in `callWithSignature` typehash (#2700)](https://github.com/latticexyz/mud/commit/2c9b16c77aca12e4c23e96de83e5820c09cb3b9d)** (@latticexyz/world-modules, @latticexyz/world) + +Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields. + +**[feat(cli): add user-specified PostDeploy forge options (#2703)](https://github.com/latticexyz/mud/commit/8493f88f8db972ef2a7c1caa49f8231c60ed2ba5)** (@latticexyz/cli) + +Added a `--forgeScriptOptions` flag to deploy and dev commands to allow passing in additional CLI flags to `forge script` command. + +**[fix(common): make `Resource` type props readonly (#2516)](https://github.com/latticexyz/mud/commit/f736c43dbc39edff51957a298b563576237429df)** (@latticexyz/common) + +`Resource` type props are now readonly. + +--- + ## Version 2.0.6 Release date: Wed Apr 17 2024 +### Patch changes + +**[feat(store-indexer): add cache headers (#2669)](https://github.com/latticexyz/mud/commit/36354994f702f22c569e52524ea4a3f523050c5a)** (@latticexyz/store-indexer) + +Added `Cache-Control` and `Content-Type` headers to the postgres indexer API. + +**[fix(common): latency improvements (#2641)](https://github.com/latticexyz/mud/commit/6c8ab471adfb522e841b679072c7ff53fe105034)** (@latticexyz/common) + +Reduced the number of RPC requests before sending a transaction in the `transactionQueue` viem decorator. + +**[fix(store,world): fix StoreRead.getDynamicFieldLength (#2680)](https://github.com/latticexyz/mud/commit/103db6ced9815b61e1b40348f814958f240f66fc)** (@latticexyz/store) + +Patched `StoreRead.getDynamicFieldLength` to properly read `StoreCore.getDynamicFieldLength`. + +Previously `StoreRead.getDynamicFieldLength` incorrectly read from `StoreCore.getFieldLength`, which expected a `fieldIndex` instead of a `dynamicFieldIndex`, and thereby returned an invalid result if the table had both static and dynamic fields (in which case `fieldIndex` != `dynamicFieldIndex`). `StoreRead` is used for external reads from the `Store`/`World` contract, so this bug only materialized in external table reads (ie from `Systems` outside the root namespace) of the dynamic length of a field in a table with both static and dynamic fields. + +**[feat(world-modules): callWithSignature chain id is salt (#2648)](https://github.com/latticexyz/mud/commit/96e82b7f11ef30a331941c202fe09591d348cb41)** (@latticexyz/world-modules) + +Moved the chain ID in `CallWithSignature` from the `domain.chainId` to the `domain.salt` field to allow for cross-chain signing without requiring wallets to switch networks. The value of this field should be the chain on which the world lives, rather than the chain the wallet is connected to. + +**[refactor(store,world): refactor types, remove redundant casts (#2555)](https://github.com/latticexyz/mud/commit/9720b568cd302c597fd0030e59eceab2bb833e39)** (@latticexyz/store, @latticexyz/world) + +Internal type improvements. + +**[chore: bump viem to 2.9.20 (#2681)](https://github.com/latticexyz/mud/commit/c18e93c5e1fb6987f31369f2e81f26ea2ac196d8)** (@latticexyz/block-logs-stream, @latticexyz/cli, @latticexyz/common, @latticexyz/config, @latticexyz/dev-tools, @latticexyz/faucet, @latticexyz/protocol-parser, @latticexyz/query, @latticexyz/schema-type, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world, create-mud) + +Bumped viem to 2.9.20. + +**[docs: add changeset for #2645 (#2647)](https://github.com/latticexyz/mud/commit/d95028a6d1233557ee605f4691f0d47ced47a681)** (create-mud, @latticexyz/block-logs-stream, @latticexyz/protocol-parser, @latticexyz/store-indexer, @latticexyz/schema-type, @latticexyz/store-sync, @latticexyz/dev-tools, @latticexyz/common, @latticexyz/config, @latticexyz/faucet, @latticexyz/query, @latticexyz/store, @latticexyz/world, @latticexyz/cli) + +Bumped viem to 2.9.16. + +**[docs: add changeset for devtools top up (#2658)](https://github.com/latticexyz/mud/commit/77d3b30942e8593b4aeb5d7921494ca0d627786b)** (@latticexyz/dev-tools) + +Added a "top up" button to account balance when running on anvil. + +**[fix(store-sync): reduce latency in waitForTransaction (#2665)](https://github.com/latticexyz/mud/commit/de3bc3d1fe78762e43b692f6f3334dee9b632c8f)** (@latticexyz/store-sync) + +Small optimizations in `waitForTransaction` to parallelize network requests. + +**[feat(store-sync): add status and block number to return type of waitForTransaction (#2668)](https://github.com/latticexyz/mud/commit/8c3dcf77c2481b11622a0603c8a09a5b1fb5f787)** (@latticexyz/store-sync) + +`waitForTransaction` now returns a `Promise<{ blockNumber: bigint, status: "success" | "reverted" }>` instead of `Promise`, to allow consumers to react to reverted transactions without refetching the transaction receipt. + --- ## Version 2.0.5 Release date: Fri Apr 12 2024 +### Patch changes + +**[fix(world-modules): add missing interfaces (#2605)](https://github.com/latticexyz/mud/commit/e2e8ec8b3e7152337cb81a5d54c9bb36486c462e)** (@latticexyz/world-modules) + +Added missing system interfaces for ERC721, UniqueEntity, and CallWithSignature modules. + +**[fix(common): pass through rest of nonce manager opts (#2616)](https://github.com/latticexyz/mud/commit/a9e8a407b5d6f356d7d0a1c1f093de926ffb072f)** (@latticexyz/common) + +Fixed `getNonceManager` to correctly pass all options to `createNonceManager`. + +**[feat(world-modules): add `validateCallWithSignature` to `Unstable_CallWithSignatureModule` (#2614)](https://github.com/latticexyz/mud/commit/081c396790a0b68d85ef7735f0e7e643b99721c3)** (@latticexyz/world-modules) + +Added `validateCallWithSignature` function to `Unstable_CallWithSignatureModule` to validate a signature without executing the call. + +**[fix(world-modules): explicitly export mud config (#2598)](https://github.com/latticexyz/mud/commit/e3c3a118e60e8c4de6b16c521d2d78b0b9f670c2)** (@latticexyz/world-modules) + +Exported mud config as internal. + +**[feat(create-mud): change `anvil` to create a block every two seconds (#2635)](https://github.com/latticexyz/mud/commit/aa6ecf7b1157a61c21e0bb15c060eb2fc5936e12)** (create-mud) + +Updated `anvil` args with two second block time to better reflect L2s + +**[fix(store): return zero for uninitialised static array elements (#2613)](https://github.com/latticexyz/mud/commit/b798ccb2b19bdda2995f188912258c7563747e42)** (@latticexyz/store) + +Fixed the behaviour of static arrays, so that they return zero for uninitialised values, to mirror the native Solidity behavior. Previously they reverted with `Store_IndexOutOfBounds` if the index had not been set yet. + +**[chore: changeset for `callWithSignature` (#2601)](https://github.com/latticexyz/mud/commit/d02efd80292db1c671fca5261560fdf525871475)** (@latticexyz/cli, @latticexyz/world-modules, @latticexyz/world) + +Replaced the `Unstable_DelegationWithSignatureModule` preview module with a more generalized `Unstable_CallWithSignatureModule` that allows making arbitrary calls (similar to `callFrom`). + +This module is still marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. + --- ## Version 2.0.4 Release date: Tue Apr 02 2024 +### Patch changes + +**[feat(common): allow specifying concurrency in transactionQueue (#2589)](https://github.com/latticexyz/mud/commit/620e4ec13ca73ceecefc257ef8a8eadb2bdf6aa4)** (@latticexyz/common) + +`transactionQueue` now accepts a `queueConcurrency` to allow adjusting the number of concurrent calls to the mempool. This defaults to `1` to ensure transactions are ordered and nonces are handled properly. Any number greater than that is likely to see nonce errors and transactions arriving out of order, but this may be an acceptable trade-off for some applications that can safely retry. + --- ## Version 2.0.3 Release date: Tue Apr 02 2024 +### Patch changes + +**[feat(common,world): improvements for smart accounts (#2578)](https://github.com/latticexyz/mud/commit/d2e4d0fbbc011e64e593b0dd784cb8f2d0da7522)** (@latticexyz/common) + +`transactionQueue` decorator now accepts an optional `publicClient` argument, which will be used in place of the extended viem client for making public action calls (`getChainId`, `getTransactionCount`, `simulateContract`, `call`). This helps in cases where the extended viem client is a smart account client, like in [permissionless.js](https://github.com/pimlicolabs/permissionless.js), where the transport is the bundler, not an RPC. + +`writeObserver` decorator now accepts any `Client`, not just a `WalletClient`. + +`createBurnerAccount` now returns a `PrivateKeyAccount`, the more specific `Account` type. + +**[feat(common,world): improvements for smart accounts (#2578)](https://github.com/latticexyz/mud/commit/d2e4d0fbbc011e64e593b0dd784cb8f2d0da7522)** (@latticexyz/world) + +`callFrom` decorator now accepts any `Client`, not just a `WalletClient`. It also no longer attempts to wrap/redirect calls to `call`, `callFrom`, and `registerDelegationWithSignature`. + --- ## Version 2.0.2 Release date: Mon Apr 01 2024 +### Patch changes + +**[feat(world-modules): register delegation with signature (#2480)](https://github.com/latticexyz/mud/commit/e86bd14db092331454a604183be5f5739563f449)** (@latticexyz/cli, @latticexyz/world-modules, @latticexyz/world) + +Added a new preview module, `Unstable_DelegationWithSignatureModule`, which allows registering delegations with a signature. + +Note: this module is marked as `Unstable`, because it will be removed and included in the default `World` deployment once it is audited. + +**[chore: threejs template changeset (#2529)](https://github.com/latticexyz/mud/commit/a1101f785719f6b61449db62e265bf0f90665ccb)** (create-mud) + +Changed the controls in the `threejs` template from arrow keys to WASD and added text to explain what the app does. + +**[docs: clarify `callFrom` changelog (#2579)](https://github.com/latticexyz/mud/commit/090a099bf4891dfa3cd95f88b68dcfd5ea14bdea)** (@latticexyz/world) + +Added a viem client decorator for account delegation. By extending viem clients with this function after delegation, the delegation is automatically applied to World contract writes. This means that these writes are made on behalf of the delegator. Internally, it transforms the write arguments to use `callFrom`. + +This is an internal feature and is not ready for stable consumption yet, so it's not yet exported. Its API may change. + +When using with a viem public client, system function selectors will be fetched from the world: + +```ts +walletClient.extend( + callFrom({ + worldAddress, + delegatorAddress, + publicClient, + }), +); +``` + +Alternatively, a `worldFunctionToSystemFunction` handler can be passed in that will translate between world function selectors and system function selectors for cases where you want to provide your own behavior or use data already cached in e.g. Zustand or RECS. + +```ts +walletClient.extend( + callFrom({ + worldAddress, + delegatorAddress, + worldFunctionToSystemFunction: async (worldFunctionSelector) => { + const systemFunction = useStore.getState().getValue(tables.FunctionSelectors, { worldFunctionSelector })!; + return { + systemId: systemFunction.systemId, + systemFunctionSelector: systemFunction.systemFunctionSelector, + }; + }, + }), +); +``` + +**[refactor(cli): remove forge cache workaround (#2576)](https://github.com/latticexyz/mud/commit/3b845d6b23b950e30310886407de11bb33fd028c)** (@latticexyz/cli) + +Remove workaround for generating `IWorld` interface from cached forge files as this was fixed by forge. + +**[fix(create-mud): run anvil in its own process (#2538)](https://github.com/latticexyz/mud/commit/9e239765e6dd253819a7aa77a87caa528be549db)** (create-mud) + +Templates now run anvil in its own process (via mprocs) for better visibility into anvil logs. + --- ## Version 2.0.1 Release date: Thu Mar 21 2024 +### Patch changes + +**[fix(store,world): minor config validation fixes (#2517)](https://github.com/latticexyz/mud/commit/4a6b45985c5da66145078dc92884f65403ecd697)** (@latticexyz/store, @latticexyz/world) + +Minor fixes to config input validations: + +- `systems.openAccess` incorrectly expected `true` as the only valid input. It now allows `boolean`. +- The config complained if parts of it were defined `as const` outside the config input. This is now possible. +- Shorthand inputs are now enabled. + --- ## Version 2.0.0 diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index b846a33d99..c6d04c7c57 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index e6f480372c..8468019d8b 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.6", + "version": "2.0.7", "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 1d8ac2a5cc..e47ade704f 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.7 + +### Patch Changes + +- bf16e729: Added detection and handling for proxyd rate limit and block range errors. +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 1bf22955ff..06c4e30dee 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.6", + "version": "2.0.7", "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 0dd2692927..07fc1bd846 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,35 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- c74a6647: Added a `--awsKmsKeyId` flag to `mud deploy` that deploys the world using an AWS KMS key as a transaction signer. +- dbc7e066: Deploying now retries on "block is out of range" errors, for cases where the RPC is load balanced and out of sync. +- 189050bd: Deploy will now fetch and set the gas price during execution of PostDeploy script. This should greatly reduce the fees paid for L2s. +- fce741b0: Added a new `mud verify` command which verifies all contracts in a project. This includes systems, modules, the WorldFactory and World. +- 632a7525: Fixed an issue where deploys were warning about mismatched bytecode when the bytecode was correct and what we expect. +- 3d1d5905: Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`. +- 8493f88f: Added a `--forgeScriptOptions` flag to deploy and dev commands to allow passing in additional CLI flags to `forge script` command. +- Updated dependencies [375d902e] +- Updated dependencies [78a94d71] +- Updated dependencies [38c61158] +- Updated dependencies [3d1d5905] +- Updated dependencies [ed404b7d] +- Updated dependencies [2c9b16c7] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/world-modules@2.0.7 + - @latticexyz/world@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/protocol-parser@2.0.7 + - @latticexyz/abi-ts@2.0.7 + - @latticexyz/gas-report@2.0.7 + - @latticexyz/schema-type@2.0.7 + - @latticexyz/services@2.0.7 + - @latticexyz/utils@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 768b8401d6..957bb52991 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.6", + "version": "2.0.7", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 2fa16c9c5f..af8b096b98 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,24 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- 375d902e: Added asynchronous polling for current fees to `sendTransaction`. +- 38c61158: Added `kmsKeyToAccount`, a [viem custom account](https://viem.sh/docs/accounts/custom#custom-account) that signs transactions using AWS KMS. + + To use it, you must first install `@aws-sdk/client-kms@3.x` and `asn1.js@5.x` dependencies into your project. Then create a KMS account with: + + ```ts + import { kmsKeyToAccount } from "@latticexyz/common/kms"; + const account = kmsKeyToAccount({ keyId: ... }); + ``` + + By default, a `KMSClient` will be created, but you can also pass one in via the `client` option. The default KMS client will use [your environment's AWS SDK configuration](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/configuring-the-jssdk.html). + +- f736c43d: `Resource` type props are now readonly. + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index f00c94c85a..c5d49870aa 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.6", + "version": "2.0.7", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index d01849829d..e00921eba2 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index e7d35b6408..1ec5a804e5 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.6", + "version": "2.0.7", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 7f58dfb442..c98055da7b 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- 534e7729: Made `worlds.json`'s `address` type more like viem's `Hex` type so it's easy to pass through as an argument. + ## 2.0.6 ### Patch Changes diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index 9d441229f9..2c7e86599f 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.6", + "version": "2.0.7", "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 86179c64a0..419e6869a4 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,25 @@ # @latticexyz/dev-tools +## 2.0.7 + +### Patch Changes + +- Updated dependencies [375d902e] +- Updated dependencies [16695fea] +- Updated dependencies [38c61158] +- Updated dependencies [3d1d5905] +- Updated dependencies [ed404b7d] +- Updated dependencies [2c9b16c7] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/store-sync@2.0.7 + - @latticexyz/world@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/react@2.0.7 + - @latticexyz/recs@2.0.7 + - @latticexyz/schema-type@2.0.7 + - @latticexyz/utils@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index 291a200acd..439a17f9c1 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.6", + "version": "2.0.7", "description": "MUD developer tools", "repository": { "type": "git", @@ -51,12 +51,12 @@ "vitest": "0.34.6" }, "peerDependencies": { - "@latticexyz/common": "2.0.6", - "@latticexyz/recs": "2.0.6", - "@latticexyz/store": "2.0.6", - "@latticexyz/store-sync": "2.0.6", - "@latticexyz/utils": "2.0.6", - "@latticexyz/world": "2.0.6" + "@latticexyz/common": "2.0.7", + "@latticexyz/recs": "2.0.7", + "@latticexyz/store": "2.0.7", + "@latticexyz/store-sync": "2.0.7", + "@latticexyz/utils": "2.0.7", + "@latticexyz/world": "2.0.7" }, "publishConfig": { "access": "public" diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index 4d23350b24..9648ad2df0 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,14 @@ # @latticexyz/faucet +## 2.0.7 + +### Patch Changes + +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/faucet/package.json b/packages/faucet/package.json index a6f8c84fcb..07a37d23da 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.6", + "version": "2.0.7", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index be89280fef..a87f4f4588 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index 65d816358f..98628bb313 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.6", + "version": "2.0.7", "description": "Gas reporter for specific lines within forge tests", "repository": { "type": "git", diff --git a/packages/protocol-parser/CHANGELOG.md b/packages/protocol-parser/CHANGELOG.md index 14aa464f65..5bd3c915bf 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,16 @@ # @latticexyz/protocol-parser +## 2.0.7 + +### Patch Changes + +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index 1d2d79f0c3..1b9d13e6f7 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.6", + "version": "2.0.7", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index d36ab35152..cb66b14df4 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -1,5 +1,18 @@ # @latticexyz/query +## 2.0.7 + +### Patch Changes + +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [ed404b7d] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/query/package.json b/packages/query/package.json index 768bc8dce8..79aba5ac4f 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/query", - "version": "2.0.6", + "version": "2.0.7", "description": "Tools for interacting with the MUD query API", "repository": { "type": "git", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 00d6e845d0..e05415edbc 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- Updated dependencies [ed404b7d] + - @latticexyz/store@2.0.7 + - @latticexyz/recs@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index d79735454f..ab438786f5 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.6", + "version": "2.0.7", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index 1547c6f8fd..1bf51f5cc6 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- @latticexyz/schema-type@2.0.7 +- @latticexyz/utils@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 9f0e5f918d..9c0d473b9a 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.6", + "version": "2.0.7", "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 4f1c40307a..7a27c6ff5a 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index 775c7d4a73..9c6fa1fe2c 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.6", + "version": "2.0.7", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/services/CHANGELOG.md b/packages/services/CHANGELOG.md index 63ad393cc9..d2c5b04495 100644 --- a/packages/services/CHANGELOG.md +++ b/packages/services/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/services/package.json b/packages/services/package.json index c82bff02cf..dd0a5836a3 100644 --- a/packages/services/package.json +++ b/packages/services/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/services", - "version": "2.0.6", + "version": "2.0.7", "description": "MUD services for enhanced interactions with on-chain ECS state", "repository": { "type": "git", diff --git a/packages/solhint-config-mud/CHANGELOG.md b/packages/solhint-config-mud/CHANGELOG.md index 5fbd452244..0ac5e07783 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index 029867a75f..0b923666a5 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.6", + "version": "2.0.7", "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 5fbd452244..0ac5e07783 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 2ad751f84e..b195cd5dd7 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.6", + "version": "2.0.7", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/store-indexer/CHANGELOG.md b/packages/store-indexer/CHANGELOG.md index ce1a20bd73..5a983ee900 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,22 @@ # @latticexyz/store-indexer +## 2.0.7 + +### Patch Changes + +- 27c4fdee: Add Prometheus metrics at `/metrics` to the Postgres indexer backend and frontend, as well as the SQLite indexer. +- Updated dependencies [375d902e] +- Updated dependencies [bf16e729] +- Updated dependencies [16695fea] +- Updated dependencies [38c61158] +- Updated dependencies [ed404b7d] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/block-logs-stream@2.0.7 + - @latticexyz/store-sync@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/protocol-parser@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index cde241dac2..c818ac0f01 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.6", + "version": "2.0.7", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index 3784d1448e..9c3315ced4 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,27 @@ # @latticexyz/store-sync +## 2.0.7 + +### Patch Changes + +- 16695fea: Partially revert [#2665](https://github.com/latticexyz/mud/pull/2665) to guarantee logs are stored in order. +- Updated dependencies [375d902e] +- Updated dependencies [bf16e729] +- Updated dependencies [38c61158] +- Updated dependencies [3d1d5905] +- Updated dependencies [ed404b7d] +- Updated dependencies [2c9b16c7] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/block-logs-stream@2.0.7 + - @latticexyz/world@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/protocol-parser@2.0.7 + - @latticexyz/query@2.0.7 + - @latticexyz/recs@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index 8085ef2846..30487ad1a7 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.6", + "version": "2.0.7", "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 9b7ca2ac4e..83a6b7100f 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- ed404b7d: Added a check to `registerTable` that prevents registering both an offchain and onchain table with the same name, making it easier to use human-readable names in indexers. +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/protocol-parser@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/store/package.json b/packages/store/package.json index 3c04f17c41..c2af2eef7a 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.6", + "version": "2.0.7", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 5a5d0cc9ed..dbfe6a370e 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/packages/utils/package.json b/packages/utils/package.json index 59334f6905..64b664e9c9 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.6", + "version": "2.0.7", "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 df88229563..c486209c88 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- 78a94d71: Fixed ERC721 module to properly encode token ID as part of token URI. +- 2c9b16c7: Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields. +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [3d1d5905] +- Updated dependencies [ed404b7d] +- Updated dependencies [2c9b16c7] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/world@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index 6ce5551154..f0accb92f8 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.6", + "version": "2.0.7", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 0a9a2dd39f..f50a2ae1d7 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 2.0.7 + +### Patch Changes + +- 3d1d5905: Added a `deploy.upgradeableWorldImplementation` option to the MUD config that deploys the World as an upgradeable proxy contract. The proxy behaves like a regular World contract, but the underlying implementation can be upgraded by calling `setImplementation`. +- 2c9b16c7: Replaced the `systemId` field in the `Unstable_CallWithSignatureSystem` typehash with individual `systemNamespace` and `systemName` string fields. +- Updated dependencies [375d902e] +- Updated dependencies [38c61158] +- Updated dependencies [ed404b7d] +- Updated dependencies [f736c43d] + - @latticexyz/common@2.0.7 + - @latticexyz/store@2.0.7 + - @latticexyz/config@2.0.7 + - @latticexyz/protocol-parser@2.0.7 + - @latticexyz/schema-type@2.0.7 + ## 2.0.6 ### Patch Changes diff --git a/packages/world/package.json b/packages/world/package.json index 44a4631fde..456d4f2910 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.6", + "version": "2.0.7", "description": "World framework", "repository": { "type": "git", diff --git a/test/mock-game-contracts/CHANGELOG.md b/test/mock-game-contracts/CHANGELOG.md index 4caf4aaf60..a70bd6d48d 100644 --- a/test/mock-game-contracts/CHANGELOG.md +++ b/test/mock-game-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # mock-game-contracts +## 2.0.7 + ## 2.0.6 ## 2.0.5 diff --git a/test/mock-game-contracts/package.json b/test/mock-game-contracts/package.json index 73f6e9ec45..85fff5a1a1 100644 --- a/test/mock-game-contracts/package.json +++ b/test/mock-game-contracts/package.json @@ -1,6 +1,6 @@ { "name": "mock-game-contracts", - "version": "2.0.6", + "version": "2.0.7", "private": true, "license": "MIT", "scripts": {