From deed7d447e53ea62bddef5e6dad9515252829fd4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 1 Apr 2024 12:08:03 +0000 Subject: [PATCH] Version Packages --- .changeset/cold-apes-play.md | 9 ----- .changeset/cold-tools-admire.md | 5 --- .changeset/nervous-nails-notice.md | 37 ------------------ .changeset/silver-dancers-compete.md | 5 --- .changeset/tender-jars-brush.md | 5 --- CHANGELOG.md | 6 +++ docs/pages/changelog.mdx | 6 +++ packages/abi-ts/CHANGELOG.md | 2 + packages/abi-ts/package.json | 2 +- packages/block-logs-stream/CHANGELOG.md | 6 +++ packages/block-logs-stream/package.json | 2 +- packages/cli/CHANGELOG.md | 23 ++++++++++++ packages/cli/package.json | 2 +- packages/common/CHANGELOG.md | 6 +++ packages/common/package.json | 2 +- packages/config/CHANGELOG.md | 7 ++++ packages/config/package.json | 2 +- packages/create-mud/CHANGELOG.md | 7 ++++ packages/create-mud/package.json | 2 +- packages/dev-tools/CHANGELOG.md | 15 ++++++++ packages/dev-tools/package.json | 14 +++---- packages/faucet/CHANGELOG.md | 6 +++ packages/faucet/package.json | 2 +- packages/gas-report/CHANGELOG.md | 2 + packages/gas-report/package.json | 2 +- packages/protocol-parser/CHANGELOG.md | 8 ++++ packages/protocol-parser/package.json | 2 +- packages/query/CHANGELOG.md | 9 +++++ packages/query/package.json | 2 +- packages/react/CHANGELOG.md | 7 ++++ 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 | 10 +++++ packages/store-indexer/package.json | 2 +- packages/store-sync/CHANGELOG.md | 16 ++++++++ packages/store-sync/package.json | 2 +- packages/store/CHANGELOG.md | 9 +++++ packages/store/package.json | 2 +- packages/utils/CHANGELOG.md | 2 + packages/utils/package.json | 2 +- packages/world-modules/CHANGELOG.md | 16 ++++++++ packages/world-modules/package.json | 2 +- packages/world/CHANGELOG.md | 48 ++++++++++++++++++++++++ packages/world/package.json | 2 +- test/mock-game-contracts/CHANGELOG.md | 2 + test/mock-game-contracts/package.json | 2 +- 55 files changed, 258 insertions(+), 91 deletions(-) delete mode 100644 .changeset/cold-apes-play.md delete mode 100644 .changeset/cold-tools-admire.md delete mode 100644 .changeset/nervous-nails-notice.md delete mode 100644 .changeset/silver-dancers-compete.md delete mode 100644 .changeset/tender-jars-brush.md diff --git a/.changeset/cold-apes-play.md b/.changeset/cold-apes-play.md deleted file mode 100644 index b84a424b76..0000000000 --- a/.changeset/cold-apes-play.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@latticexyz/cli": patch -"@latticexyz/world-modules": patch -"@latticexyz/world": patch ---- - -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. diff --git a/.changeset/cold-tools-admire.md b/.changeset/cold-tools-admire.md deleted file mode 100644 index e991ae8962..0000000000 --- a/.changeset/cold-tools-admire.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Changed the controls in the `threejs` template from arrow keys to WASD and added text to explain what the app does. diff --git a/.changeset/nervous-nails-notice.md b/.changeset/nervous-nails-notice.md deleted file mode 100644 index ac3e29b7e0..0000000000 --- a/.changeset/nervous-nails-notice.md +++ /dev/null @@ -1,37 +0,0 @@ ---- -"@latticexyz/world": patch ---- - -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, - }; - }, - }), -); -``` diff --git a/.changeset/silver-dancers-compete.md b/.changeset/silver-dancers-compete.md deleted file mode 100644 index 410357e65e..0000000000 --- a/.changeset/silver-dancers-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Remove workaround for generating `IWorld` interface from cached forge files as this was fixed by forge. diff --git a/.changeset/tender-jars-brush.md b/.changeset/tender-jars-brush.md deleted file mode 100644 index fb41f473c2..0000000000 --- a/.changeset/tender-jars-brush.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Templates now run anvil in its own process (via mprocs) for better visibility into anvil logs. diff --git a/CHANGELOG.md b/CHANGELOG.md index e16b29f045..e30f7338ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## Version 2.0.2 + +Release date: Mon Apr 01 2024 + +--- + ## Version 2.0.1 Release date: Thu Mar 21 2024 diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index e16b29f045..e30f7338ed 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,3 +1,9 @@ +## Version 2.0.2 + +Release date: Mon Apr 01 2024 + +--- + ## Version 2.0.1 Release date: Thu Mar 21 2024 diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index 7b21ed6218..fcb62d5338 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index 26cd134251..e6bc7816a9 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.1", + "version": "2.0.2", "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 442b44aab9..b6d4de0af5 100644 --- a/packages/block-logs-stream/CHANGELOG.md +++ b/packages/block-logs-stream/CHANGELOG.md @@ -1,5 +1,11 @@ # @latticexyz/block-logs-stream +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 517ddddc9e..9e0583e6d1 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.1", + "version": "2.0.2", "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 730770e171..68d8fe7d30 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: 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. + +- 3b845d6b: Remove workaround for generating `IWorld` interface from cached forge files as this was fixed by forge. +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world-modules@2.0.2 + - @latticexyz/world@2.0.2 + - @latticexyz/abi-ts@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/gas-report@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/services@2.0.2 + - @latticexyz/store@2.0.2 + - @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 5a143ff90c..82888ff83e 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.1", + "version": "2.0.2", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index aa12f98fb7..f95b3747c1 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index 41a6302598..4df1144430 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.1", + "version": "2.0.2", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index fda6d61a15..3444c822f0 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index 3c11e91734..39509e0ff6 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.1", + "version": "2.0.2", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 1b43bf3228..153b503551 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- a1101f78: Changed the controls in the `threejs` template from arrow keys to WASD and added text to explain what the app does. +- 9e239765: Templates now run anvil in its own process (via mprocs) for better visibility into anvil logs. + ## 2.0.1 ## 2.0.0 diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index 8270920144..12280b4b9d 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.1", + "version": "2.0.2", "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 0d70d51fe9..02a118e4a0 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,20 @@ # @latticexyz/dev-tools +## 2.0.2 + +### Patch Changes + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/store-sync@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/react@2.0.2 + - @latticexyz/recs@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + - @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index 91575a6052..725ce7855a 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.1", + "version": "2.0.2", "description": "MUD developer tools", "repository": { "type": "git", @@ -51,12 +51,12 @@ "vitest": "0.34.6" }, "peerDependencies": { - "@latticexyz/common": "2.0.1", - "@latticexyz/recs": "2.0.1", - "@latticexyz/store": "2.0.1", - "@latticexyz/store-sync": "2.0.1", - "@latticexyz/utils": "2.0.1", - "@latticexyz/world": "2.0.1" + "@latticexyz/common": "2.0.2", + "@latticexyz/recs": "2.0.2", + "@latticexyz/store": "2.0.2", + "@latticexyz/store-sync": "2.0.2", + "@latticexyz/utils": "2.0.2", + "@latticexyz/world": "2.0.2" }, "publishConfig": { "access": "public" diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index 25e933986c..2208283a6e 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,11 @@ # @latticexyz/faucet +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/faucet/package.json b/packages/faucet/package.json index b31c60f999..4725154a74 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.1", + "version": "2.0.2", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index 602a214773..c5ecd14af3 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index fc969a0833..937931df8a 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.1", + "version": "2.0.2", "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 48f60dec10..817a20a74c 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,13 @@ # @latticexyz/protocol-parser +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index 96aa6ffb2e..28fafa9cb3 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.1", + "version": "2.0.2", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index 8e24139965..e7201ac654 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -1,5 +1,14 @@ # @latticexyz/query +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/schema-type@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/query/package.json b/packages/query/package.json index 6e182d476c..3fddee6b08 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/query", - "version": "2.0.1", + "version": "2.0.2", "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 60cbf17a81..c011b5116a 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/recs@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index fd81d41884..9a720ccaa3 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.1", + "version": "2.0.2", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index 12177655cc..a23bb27c41 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/schema-type@2.0.2 +- @latticexyz/utils@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 8b13ddce65..7ffdeccae5 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.1", + "version": "2.0.2", "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 5463853cf0..f73a201aa7 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index d42d7e4958..48491c51e7 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.1", + "version": "2.0.2", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/services/CHANGELOG.md b/packages/services/CHANGELOG.md index 5c77b01c97..cd6cb2d723 100644 --- a/packages/services/CHANGELOG.md +++ b/packages/services/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/services/package.json b/packages/services/package.json index 268d331c31..46462e94ed 100644 --- a/packages/services/package.json +++ b/packages/services/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/services", - "version": "2.0.1", + "version": "2.0.2", "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 2b9c162e1e..4ee9a7be51 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index e6466c810b..c197d766d9 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.1", + "version": "2.0.2", "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 2b9c162e1e..4ee9a7be51 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 5617b10c1c..6a971091c2 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.1", + "version": "2.0.2", "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 657c1643a2..e5c6112502 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,15 @@ # @latticexyz/store-indexer +## 2.0.2 + +### Patch Changes + +- @latticexyz/store-sync@2.0.2 +- @latticexyz/block-logs-stream@2.0.2 +- @latticexyz/common@2.0.2 +- @latticexyz/protocol-parser@2.0.2 +- @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index 17e553191e..5ad9d15dd6 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.1", + "version": "2.0.2", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index 206e720e8d..c7992434c7 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,21 @@ # @latticexyz/store-sync +## 2.0.2 + +### Patch Changes + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/block-logs-stream@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/query@2.0.2 + - @latticexyz/recs@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index 591ed9cd0e..478660333c 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.1", + "version": "2.0.2", "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 1cf743bede..b6c365ef37 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- @latticexyz/common@2.0.2 +- @latticexyz/config@2.0.2 +- @latticexyz/protocol-parser@2.0.2 +- @latticexyz/schema-type@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/store/package.json b/packages/store/package.json index d648a5cfb6..19b9a76f97 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.1", + "version": "2.0.2", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 8ac0cd2d3d..5d6f7ef733 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/packages/utils/package.json b/packages/utils/package.json index c5ae3e9225..18dabb1db3 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.1", + "version": "2.0.2", "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 6755cc54e1..0e63c2d34e 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,21 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: 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. + +- Updated dependencies [e86bd14d] +- Updated dependencies [a09bf251] + - @latticexyz/world@2.0.2 + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index b8e4869abf..2b1fe0eab3 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.1", + "version": "2.0.2", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 591ebf40e8..ede1086575 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,53 @@ # Change Log +## 2.0.2 + +### Patch Changes + +- e86bd14d: 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. + +- a09bf251: 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, + }; + }, + }), + ); + ``` + + - @latticexyz/common@2.0.2 + - @latticexyz/config@2.0.2 + - @latticexyz/protocol-parser@2.0.2 + - @latticexyz/schema-type@2.0.2 + - @latticexyz/store@2.0.2 + ## 2.0.1 ### Patch Changes diff --git a/packages/world/package.json b/packages/world/package.json index 701c7340df..7b586e70e8 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.1", + "version": "2.0.2", "description": "World framework", "repository": { "type": "git", diff --git a/test/mock-game-contracts/CHANGELOG.md b/test/mock-game-contracts/CHANGELOG.md index 3621818c08..f0ff2f31cb 100644 --- a/test/mock-game-contracts/CHANGELOG.md +++ b/test/mock-game-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # mock-game-contracts +## 2.0.2 + ## 2.0.1 ## 2.0.0 diff --git a/test/mock-game-contracts/package.json b/test/mock-game-contracts/package.json index 3d3249a235..572b05390e 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.1", + "version": "2.0.2", "private": true, "license": "MIT", "scripts": {