diff --git a/.changeset/blue-countries-drive.md b/.changeset/blue-countries-drive.md deleted file mode 100644 index 4061d2d9ce..0000000000 --- a/.changeset/blue-countries-drive.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -The deploy CLI now uses logs to find registered function selectors and their corresponding function signatures. -Previously only function signatures were fetched via logs and then mapped to function selectors via `getRecord` calls, -but this approach failed for namespaced function selectors of non-root system, -because the function signature table includes both the namespaced and non-namespaced signature but the function selector table only includes the namespaced selector that is registered on the world. diff --git a/.changeset/chatty-frogs-smash.md b/.changeset/chatty-frogs-smash.md deleted file mode 100644 index be634b4108..0000000000 --- a/.changeset/chatty-frogs-smash.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -"@latticexyz/cli": patch -"@latticexyz/world": patch ---- - -Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm. - -```diff - defineWorld({ - // … - modules: [ - { -- name: "KeysWithValueModule", -+ artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json", - root: true, - args: [resolveTableId("Inventory")], - }, - ], - }); -``` - -Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project. diff --git a/.changeset/dirty-ears-happen.md b/.changeset/dirty-ears-happen.md deleted file mode 100644 index 93d4c3bb32..0000000000 --- a/.changeset/dirty-ears-happen.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@latticexyz/world-modules": patch -"@latticexyz/store": patch -"@latticexyz/cli": patch ---- - -Removed the unused `ejs` dependency. diff --git a/.changeset/fuzzy-tools-explain.md b/.changeset/fuzzy-tools-explain.md deleted file mode 100644 index 9f2fd1727b..0000000000 --- a/.changeset/fuzzy-tools-explain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Templates now use an `app` namespace by default, instead of the root namespace. This helps keep the root namespace clear for intentionally root-level things and avoids pitfalls with root systems calling other root systems. diff --git a/.changeset/heavy-toes-attend.md b/.changeset/heavy-toes-attend.md deleted file mode 100644 index 9a291c160a..0000000000 --- a/.changeset/heavy-toes-attend.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/world": patch ---- - -Upgraded the `ejs` dependency to 3.1.10. diff --git a/.changeset/lazy-rivers-live.md b/.changeset/lazy-rivers-live.md deleted file mode 100644 index 9ad8dbb0ce..0000000000 --- a/.changeset/lazy-rivers-live.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/store-indexer": patch ---- - -Fixed the `distance_from_follow_block` gauge to be a positive number if the latest processed block is lagging behind the latest remote block. diff --git a/.changeset/plenty-peas-love.md b/.changeset/plenty-peas-love.md deleted file mode 100644 index 27ca0eb4e6..0000000000 --- a/.changeset/plenty-peas-love.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/common": patch ---- - -Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config. diff --git a/.changeset/rotten-turtles-laugh.md b/.changeset/rotten-turtles-laugh.md deleted file mode 100644 index a9a89b29c1..0000000000 --- a/.changeset/rotten-turtles-laugh.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/cli": patch ---- - -Removed broken `mud faucet` command. diff --git a/.changeset/seven-windows-tickle.md b/.changeset/seven-windows-tickle.md deleted file mode 100644 index 4ca8c2e6f6..0000000000 --- a/.changeset/seven-windows-tickle.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/world": patch ---- - -Updated World config types to use readonly arrays. diff --git a/.changeset/silver-mugs-talk.md b/.changeset/silver-mugs-talk.md deleted file mode 100644 index 59e6d79a82..0000000000 --- a/.changeset/silver-mugs-talk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@latticexyz/store-sync": patch ---- - -Both `encodeEntity` and `decodeEntity` now use an LRU cache to avoid repeating work during iterations of thousands of entities. diff --git a/.changeset/silver-toys-roll.md b/.changeset/silver-toys-roll.md deleted file mode 100644 index 190623c482..0000000000 --- a/.changeset/silver-toys-roll.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@latticexyz/store": patch -"@latticexyz/world": patch ---- - -`defineStore` and `defineWorld` will now throw a type error if an unexpected config option is used. diff --git a/.changeset/sixty-frogs-greet.md b/.changeset/sixty-frogs-greet.md deleted file mode 100644 index 1c30b8a653..0000000000 --- a/.changeset/sixty-frogs-greet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"create-mud": patch ---- - -Removed usages of old testnet faucet in templates. The previous testnet faucet is broken, deprecated, and going offline soon. We'll be replacing the burner account pattern with something better very soon! diff --git a/.changeset/small-turkeys-deliver.md b/.changeset/small-turkeys-deliver.md deleted file mode 100644 index 1a1b305a8b..0000000000 --- a/.changeset/small-turkeys-deliver.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -"@latticexyz/cli": patch -"@latticexyz/config": patch -"@latticexyz/faucet": patch -"@latticexyz/store-indexer": patch -"@latticexyz/store-sync": patch -"@latticexyz/store": patch -"@latticexyz/world-modules": patch -"@latticexyz/world": patch ---- - -Bumped zod dependency to comply with abitype peer dependencies. diff --git a/.changeset/sweet-lemons-eat.md b/.changeset/sweet-lemons-eat.md deleted file mode 100644 index 2364a3c173..0000000000 --- a/.changeset/sweet-lemons-eat.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -"@latticexyz/store": patch -"@latticexyz/world": patch ---- - -`defineStore` and `defineWorld` now maps your `enums` to usable, strongly-typed enums on `enumValues`. - -```ts -const config = defineStore({ - enums: { - TerrainType: ["Water", "Grass", "Sand"], - }, -}); - -config.enumValues.TerrainType.Water; -// ^? (property) Water: 0 - -config.enumValues.TerrainType.Grass; -// ^? (property) Grass: 1 -``` - -This allows for easier referencing of enum values (i.e. `uint8` equivalent) in contract calls. - -```ts -writeContract({ - // … - functionName: "setTerrainType", - args: [config.enumValues.TerrainType.Grass], -}); -``` diff --git a/CHANGELOG.md b/CHANGELOG.md index a2eea78b17..c3ce90b39c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,110 @@ +## Version 2.0.10 + +Release date: Tue May 14 2024 + +### Patch changes + +**[fix(cli): function selector lookup during deploy (#2800)](https://github.com/latticexyz/mud/commit/0ae9189ca60e86f7b12994bcc89bc196871d0e7c)** (@latticexyz/cli) + +The deploy CLI now uses logs to find registered function selectors and their corresponding function signatures. +Previously only function signatures were fetched via logs and then mapped to function selectors via `getRecord` calls, +but this approach failed for namespaced function selectors of non-root system, +because the function signature table includes both the namespaced and non-namespaced signature but the function selector table only includes the namespaced selector that is registered on the world. + +**[feat(cli): deploy with external modules (#2803)](https://github.com/latticexyz/mud/commit/a1b1ebf67367f91cea4000c073bc6b8da4601e3e)** (@latticexyz/cli, @latticexyz/world) + +Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm. + +```diff + defineWorld({ + // … + modules: [ + { +- name: "KeysWithValueModule", ++ artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json", + root: true, + args: [resolveTableId("Inventory")], + }, + ], + }); +``` + +Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project. + +**[chore: upgrade to ejs 3.1.10 (#2786)](https://github.com/latticexyz/mud/commit/4e4e9104e84a7cb7d041d2401f0a937e06251985)** (@latticexyz/world-modules, @latticexyz/store, @latticexyz/cli) + +Removed the unused `ejs` dependency. + +**[docs: fix create-mud package name in changeset (#2825)](https://github.com/latticexyz/mud/commit/de03e2a78e209c7eb509f986aa0ed0d1c2ae068d)** (create-mud) + +Templates now use an `app` namespace by default, instead of the root namespace. This helps keep the root namespace clear for intentionally root-level things and avoids pitfalls with root systems calling other root systems. + +**[chore: upgrade to ejs 3.1.10 (#2786)](https://github.com/latticexyz/mud/commit/4e4e9104e84a7cb7d041d2401f0a937e06251985)** (@latticexyz/world) + +Upgraded the `ejs` dependency to 3.1.10. + +**[fix(store-indexer): fix distance from follow block metric (#2791)](https://github.com/latticexyz/mud/commit/0d4e302f44c2ee52e9e14d24552499b7fb04306e)** (@latticexyz/store-indexer) + +Fixed the `distance_from_follow_block` gauge to be a positive number if the latest processed block is lagging behind the latest remote block. + +**[fix(common): extend OP contracts, add redstone ones (#2792)](https://github.com/latticexyz/mud/commit/51b137d3498a5d6235938cb93dc06ed0131fd7be)** (@latticexyz/common) + +Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config. + +**[chore: remove cli faucet command and services package (#2811)](https://github.com/latticexyz/mud/commit/4a61a128ca752aac5d86578573211304fbaf3c27)** (@latticexyz/cli) + +Removed broken `mud faucet` command. + +**[fix(world): config uses readonly arrays (#2805)](https://github.com/latticexyz/mud/commit/3dbf3bf3a3295ad63264044e315dec075de528fd)** (@latticexyz/world) + +Updated World config types to use readonly arrays. + +**[docs(store-sync): add changeset for #2808 (#2809)](https://github.com/latticexyz/mud/commit/36e1f7664f9234bf454e6d1f9c3806dfc695f219)** (@latticexyz/store-sync) + +Both `encodeEntity` and `decodeEntity` now use an LRU cache to avoid repeating work during iterations of thousands of entities. + +**[fix(store,world): throw on unexpected config keys (#2797)](https://github.com/latticexyz/mud/commit/32c1cda666bc8ccd6e083d8d94d96a42e65c3983)** (@latticexyz/store, @latticexyz/world) + +`defineStore` and `defineWorld` will now throw a type error if an unexpected config option is used. + +**[chore: remove cli faucet command and services package (#2811)](https://github.com/latticexyz/mud/commit/4a61a128ca752aac5d86578573211304fbaf3c27)** (create-mud) + +Removed usages of old testnet faucet in templates. The previous testnet faucet is broken, deprecated, and going offline soon. We'll be replacing the burner account pattern with something better very soon! + +**[chore: bump zod (#2804)](https://github.com/latticexyz/mud/commit/4caca05e34fd3647122bf2864f2c736e646614b6)** (@latticexyz/cli, @latticexyz/config, @latticexyz/faucet, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world-modules, @latticexyz/world) + +Bumped zod dependency to comply with abitype peer dependencies. + +**[feat(store,world): usable enum values from config (#2807)](https://github.com/latticexyz/mud/commit/27f888c70a712cea7f9a157cc82892a884ecc1df)** (@latticexyz/store, @latticexyz/world) + +`defineStore` and `defineWorld` now maps your `enums` to usable, strongly-typed enums on `enumValues`. + +```ts +const config = defineStore({ + enums: { + TerrainType: ["Water", "Grass", "Sand"], + }, +}); + +config.enumValues.TerrainType.Water; +// ^? (property) Water: 0 + +config.enumValues.TerrainType.Grass; +// ^? (property) Grass: 1 +``` + +This allows for easier referencing of enum values (i.e. `uint8` equivalent) in contract calls. + +```ts +writeContract({ + // … + functionName: "setTerrainType", + args: [config.enumValues.TerrainType.Grass], +}); +``` + +--- + ## Version 2.0.9 Release date: Wed May 01 2024 diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index a2eea78b17..c3ce90b39c 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,3 +1,110 @@ +## Version 2.0.10 + +Release date: Tue May 14 2024 + +### Patch changes + +**[fix(cli): function selector lookup during deploy (#2800)](https://github.com/latticexyz/mud/commit/0ae9189ca60e86f7b12994bcc89bc196871d0e7c)** (@latticexyz/cli) + +The deploy CLI now uses logs to find registered function selectors and their corresponding function signatures. +Previously only function signatures were fetched via logs and then mapped to function selectors via `getRecord` calls, +but this approach failed for namespaced function selectors of non-root system, +because the function signature table includes both the namespaced and non-namespaced signature but the function selector table only includes the namespaced selector that is registered on the world. + +**[feat(cli): deploy with external modules (#2803)](https://github.com/latticexyz/mud/commit/a1b1ebf67367f91cea4000c073bc6b8da4601e3e)** (@latticexyz/cli, @latticexyz/world) + +Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm. + +```diff + defineWorld({ + // … + modules: [ + { +- name: "KeysWithValueModule", ++ artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json", + root: true, + args: [resolveTableId("Inventory")], + }, + ], + }); +``` + +Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project. + +**[chore: upgrade to ejs 3.1.10 (#2786)](https://github.com/latticexyz/mud/commit/4e4e9104e84a7cb7d041d2401f0a937e06251985)** (@latticexyz/world-modules, @latticexyz/store, @latticexyz/cli) + +Removed the unused `ejs` dependency. + +**[docs: fix create-mud package name in changeset (#2825)](https://github.com/latticexyz/mud/commit/de03e2a78e209c7eb509f986aa0ed0d1c2ae068d)** (create-mud) + +Templates now use an `app` namespace by default, instead of the root namespace. This helps keep the root namespace clear for intentionally root-level things and avoids pitfalls with root systems calling other root systems. + +**[chore: upgrade to ejs 3.1.10 (#2786)](https://github.com/latticexyz/mud/commit/4e4e9104e84a7cb7d041d2401f0a937e06251985)** (@latticexyz/world) + +Upgraded the `ejs` dependency to 3.1.10. + +**[fix(store-indexer): fix distance from follow block metric (#2791)](https://github.com/latticexyz/mud/commit/0d4e302f44c2ee52e9e14d24552499b7fb04306e)** (@latticexyz/store-indexer) + +Fixed the `distance_from_follow_block` gauge to be a positive number if the latest processed block is lagging behind the latest remote block. + +**[fix(common): extend OP contracts, add redstone ones (#2792)](https://github.com/latticexyz/mud/commit/51b137d3498a5d6235938cb93dc06ed0131fd7be)** (@latticexyz/common) + +Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config. + +**[chore: remove cli faucet command and services package (#2811)](https://github.com/latticexyz/mud/commit/4a61a128ca752aac5d86578573211304fbaf3c27)** (@latticexyz/cli) + +Removed broken `mud faucet` command. + +**[fix(world): config uses readonly arrays (#2805)](https://github.com/latticexyz/mud/commit/3dbf3bf3a3295ad63264044e315dec075de528fd)** (@latticexyz/world) + +Updated World config types to use readonly arrays. + +**[docs(store-sync): add changeset for #2808 (#2809)](https://github.com/latticexyz/mud/commit/36e1f7664f9234bf454e6d1f9c3806dfc695f219)** (@latticexyz/store-sync) + +Both `encodeEntity` and `decodeEntity` now use an LRU cache to avoid repeating work during iterations of thousands of entities. + +**[fix(store,world): throw on unexpected config keys (#2797)](https://github.com/latticexyz/mud/commit/32c1cda666bc8ccd6e083d8d94d96a42e65c3983)** (@latticexyz/store, @latticexyz/world) + +`defineStore` and `defineWorld` will now throw a type error if an unexpected config option is used. + +**[chore: remove cli faucet command and services package (#2811)](https://github.com/latticexyz/mud/commit/4a61a128ca752aac5d86578573211304fbaf3c27)** (create-mud) + +Removed usages of old testnet faucet in templates. The previous testnet faucet is broken, deprecated, and going offline soon. We'll be replacing the burner account pattern with something better very soon! + +**[chore: bump zod (#2804)](https://github.com/latticexyz/mud/commit/4caca05e34fd3647122bf2864f2c736e646614b6)** (@latticexyz/cli, @latticexyz/config, @latticexyz/faucet, @latticexyz/store-indexer, @latticexyz/store-sync, @latticexyz/store, @latticexyz/world-modules, @latticexyz/world) + +Bumped zod dependency to comply with abitype peer dependencies. + +**[feat(store,world): usable enum values from config (#2807)](https://github.com/latticexyz/mud/commit/27f888c70a712cea7f9a157cc82892a884ecc1df)** (@latticexyz/store, @latticexyz/world) + +`defineStore` and `defineWorld` now maps your `enums` to usable, strongly-typed enums on `enumValues`. + +```ts +const config = defineStore({ + enums: { + TerrainType: ["Water", "Grass", "Sand"], + }, +}); + +config.enumValues.TerrainType.Water; +// ^? (property) Water: 0 + +config.enumValues.TerrainType.Grass; +// ^? (property) Grass: 1 +``` + +This allows for easier referencing of enum values (i.e. `uint8` equivalent) in contract calls. + +```ts +writeContract({ + // … + functionName: "setTerrainType", + args: [config.enumValues.TerrainType.Grass], +}); +``` + +--- + ## Version 2.0.9 Release date: Wed May 01 2024 diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index 0958792731..12044fac5e 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index 75f4dbcc4b..ca9cc8f6b1 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.9", + "version": "2.0.10", "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 e2e4ba8f46..d3aa903c43 100644 --- a/packages/block-logs-stream/CHANGELOG.md +++ b/packages/block-logs-stream/CHANGELOG.md @@ -1,5 +1,12 @@ # @latticexyz/block-logs-stream +## 2.0.10 + +### Patch Changes + +- Updated dependencies [51b137d3] + - @latticexyz/common@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 5e279cd842..9b16cfaf96 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.9", + "version": "2.0.10", "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 023dc6d8e4..8f6425b709 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,53 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 0ae9189c: The deploy CLI now uses logs to find registered function selectors and their corresponding function signatures. + Previously only function signatures were fetched via logs and then mapped to function selectors via `getRecord` calls, + but this approach failed for namespaced function selectors of non-root system, + because the function signature table includes both the namespaced and non-namespaced signature but the function selector table only includes the namespaced selector that is registered on the world. +- a1b1ebf6: Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm. + + ```diff + defineWorld({ + // … + modules: [ + { + - name: "KeysWithValueModule", + + artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json", + root: true, + args: [resolveTableId("Inventory")], + }, + ], + }); + ``` + + Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project. + +- 4e4e9104: Removed the unused `ejs` dependency. +- 4a61a128: Removed broken `mud faucet` command. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [a1b1ebf6] +- Updated dependencies [4e4e9104] +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [3dbf3bf3] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/world@2.0.10 + - @latticexyz/world-modules@2.0.10 + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/protocol-parser@2.0.10 + - @latticexyz/abi-ts@2.0.10 + - @latticexyz/gas-report@2.0.10 + - @latticexyz/schema-type@2.0.10 + - @latticexyz/utils@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 2897a06bd2..07f6f09e9b 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.9", + "version": "2.0.10", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index 1ed07550f1..427b25b018 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 51b137d3: Added OP predeploy contracts for Redstone and Garnet chain configs and added chain-specific contracts for Redstone chain config. + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index df16238389..a75d69f58f 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.9", + "version": "2.0.10", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index b18960f72f..b540b47f52 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [51b137d3] + - @latticexyz/common@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index fd447e1cd6..2cc2df8f82 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.9", + "version": "2.0.10", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 30c36cd8c6..774a557fad 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 18360244: Templates now use an `app` namespace by default, instead of the root namespace. This helps keep the root namespace clear for intentionally root-level things and avoids pitfalls with root systems calling other root systems. +- 4a61a128: Removed usages of old testnet faucet in templates. The previous testnet faucet is broken, deprecated, and going offline soon. We'll be replacing the burner account pattern with something better very soon! + ## 2.0.9 ### Patch Changes diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index 120a01bd08..478550b5b2 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.9", + "version": "2.0.10", "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 c514832177..4864315fa6 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,27 @@ # @latticexyz/dev-tools +## 2.0.10 + +### Patch Changes + +- Updated dependencies [a1b1ebf6] +- Updated dependencies [4e4e9104] +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [3dbf3bf3] +- Updated dependencies [36e1f766] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/world@2.0.10 + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/store-sync@2.0.10 + - @latticexyz/react@2.0.10 + - @latticexyz/recs@2.0.10 + - @latticexyz/schema-type@2.0.10 + - @latticexyz/utils@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index e4fd7ab570..4f388aef1b 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.9", + "version": "2.0.10", "description": "MUD developer tools", "repository": { "type": "git", @@ -51,12 +51,12 @@ "vitest": "0.34.6" }, "peerDependencies": { - "@latticexyz/common": "2.0.9", - "@latticexyz/recs": "2.0.9", - "@latticexyz/store": "2.0.9", - "@latticexyz/store-sync": "2.0.9", - "@latticexyz/utils": "2.0.9", - "@latticexyz/world": "2.0.9" + "@latticexyz/common": "2.0.10", + "@latticexyz/recs": "2.0.10", + "@latticexyz/store": "2.0.10", + "@latticexyz/store-sync": "2.0.10", + "@latticexyz/utils": "2.0.10", + "@latticexyz/world": "2.0.10" }, "publishConfig": { "access": "public" diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index cc90301fab..fb43b10afd 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,13 @@ # @latticexyz/faucet +## 2.0.10 + +### Patch Changes + +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [51b137d3] + - @latticexyz/common@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/faucet/package.json b/packages/faucet/package.json index 9b84745986..e2e626e03c 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.9", + "version": "2.0.10", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index d6b3536914..56d354f399 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index 5dd75bddcc..c2d6b49345 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.9", + "version": "2.0.10", "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 424669e660..486ac7f402 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,15 @@ # @latticexyz/protocol-parser +## 2.0.10 + +### Patch Changes + +- Updated dependencies [51b137d3] +- Updated dependencies [4caca05e] + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index 9dfa224879..3ce8c71478 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.9", + "version": "2.0.10", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/query/CHANGELOG.md b/packages/query/CHANGELOG.md index 2942cc756b..330524f62d 100644 --- a/packages/query/CHANGELOG.md +++ b/packages/query/CHANGELOG.md @@ -1,5 +1,19 @@ # @latticexyz/query +## 2.0.10 + +### Patch Changes + +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/query/package.json b/packages/query/package.json index b24bc6a0c8..1bc9561927 100644 --- a/packages/query/package.json +++ b/packages/query/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/query", - "version": "2.0.9", + "version": "2.0.10", "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 694063f052..fe957ab873 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,16 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- Updated dependencies [4e4e9104] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/store@2.0.10 + - @latticexyz/recs@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 9471a7aedd..5e6303bbec 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.9", + "version": "2.0.10", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index 527450fa7c..49e2e3d6c7 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,12 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- @latticexyz/schema-type@2.0.10 +- @latticexyz/utils@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 31ad69f272..4a1bd1e4f5 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.9", + "version": "2.0.10", "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 a65865c09a..13e8415c6c 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index aa6da407ca..6c933e4287 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.9", + "version": "2.0.10", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/solhint-config-mud/CHANGELOG.md b/packages/solhint-config-mud/CHANGELOG.md index 0db8ce1148..9b07dddcae 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index a8f98ceaf5..025ea44cf8 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.9", + "version": "2.0.10", "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 0db8ce1148..9b07dddcae 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 78bea9466a..0592b69d4a 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.9", + "version": "2.0.10", "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 28b22ac5a5..bb3b646b4a 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,23 @@ # @latticexyz/store-indexer +## 2.0.10 + +### Patch Changes + +- 0d4e302f: Fixed the `distance_from_follow_block` gauge to be a positive number if the latest processed block is lagging behind the latest remote block. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [36e1f766] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/store-sync@2.0.10 + - @latticexyz/block-logs-stream@2.0.10 + - @latticexyz/protocol-parser@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index eb7d45a8d6..fd4a9a8214 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.9", + "version": "2.0.10", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index 7155fd35c9..21352c9d86 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,29 @@ # @latticexyz/store-sync +## 2.0.10 + +### Patch Changes + +- 36e1f766: Both `encodeEntity` and `decodeEntity` now use an LRU cache to avoid repeating work during iterations of thousands of entities. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [a1b1ebf6] +- Updated dependencies [4e4e9104] +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [3dbf3bf3] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/world@2.0.10 + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/query@2.0.10 + - @latticexyz/block-logs-stream@2.0.10 + - @latticexyz/protocol-parser@2.0.10 + - @latticexyz/recs@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index 3fba04a5c6..b9dfad57aa 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.9", + "version": "2.0.10", "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 f820a3c034..736d6129bb 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,45 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 4e4e9104: Removed the unused `ejs` dependency. +- 32c1cda6: `defineStore` and `defineWorld` will now throw a type error if an unexpected config option is used. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- 27f888c7: `defineStore` and `defineWorld` now maps your `enums` to usable, strongly-typed enums on `enumValues`. + + ```ts + const config = defineStore({ + enums: { + TerrainType: ["Water", "Grass", "Sand"], + }, + }); + + config.enumValues.TerrainType.Water; + // ^? (property) Water: 0 + + config.enumValues.TerrainType.Grass; + // ^? (property) Grass: 1 + ``` + + This allows for easier referencing of enum values (i.e. `uint8` equivalent) in contract calls. + + ```ts + writeContract({ + // … + functionName: "setTerrainType", + args: [config.enumValues.TerrainType.Grass], + }); + ``` + +- Updated dependencies [51b137d3] +- Updated dependencies [4caca05e] + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/protocol-parser@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/store/package.json b/packages/store/package.json index 7840af94eb..965afe9fb6 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.9", + "version": "2.0.10", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 26b5f09ade..c774139945 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/packages/utils/package.json b/packages/utils/package.json index ab90fe2259..7df3358883 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.9", + "version": "2.0.10", "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 3e75d8eede..80c98bae4f 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- 4e4e9104: Removed the unused `ejs` dependency. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- Updated dependencies [a1b1ebf6] +- Updated dependencies [4e4e9104] +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [3dbf3bf3] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/world@2.0.10 + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index e8f1a49348..4c433f3292 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.9", + "version": "2.0.10", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 0e20cffaf9..4ffdb380ff 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,68 @@ # Change Log +## 2.0.10 + +### Patch Changes + +- a1b1ebf6: Worlds can now be deployed with external modules, defined by a module's `artifactPath` in your MUD config, resolved with Node's module resolution. This allows for modules to be published to and imported from npm. + + ```diff + defineWorld({ + // … + modules: [ + { + - name: "KeysWithValueModule", + + artifactPath: "@latticexyz/world-modules/out/KeysWithValueModule.sol/KeysWithValueModule.json", + root: true, + args: [resolveTableId("Inventory")], + }, + ], + }); + ``` + + Note that the above assumes `@latticexyz/world-modules` is included as a dependency of your project. + +- 4e4e9104: Upgraded the `ejs` dependency to 3.1.10. +- 3dbf3bf3: Updated World config types to use readonly arrays. +- 32c1cda6: `defineStore` and `defineWorld` will now throw a type error if an unexpected config option is used. +- 4caca05e: Bumped zod dependency to comply with abitype peer dependencies. +- 27f888c7: `defineStore` and `defineWorld` now maps your `enums` to usable, strongly-typed enums on `enumValues`. + + ```ts + const config = defineStore({ + enums: { + TerrainType: ["Water", "Grass", "Sand"], + }, + }); + + config.enumValues.TerrainType.Water; + // ^? (property) Water: 0 + + config.enumValues.TerrainType.Grass; + // ^? (property) Grass: 1 + ``` + + This allows for easier referencing of enum values (i.e. `uint8` equivalent) in contract calls. + + ```ts + writeContract({ + // … + functionName: "setTerrainType", + args: [config.enumValues.TerrainType.Grass], + }); + ``` + +- Updated dependencies [4e4e9104] +- Updated dependencies [51b137d3] +- Updated dependencies [32c1cda6] +- Updated dependencies [4caca05e] +- Updated dependencies [27f888c7] + - @latticexyz/store@2.0.10 + - @latticexyz/common@2.0.10 + - @latticexyz/config@2.0.10 + - @latticexyz/protocol-parser@2.0.10 + - @latticexyz/schema-type@2.0.10 + ## 2.0.9 ### Patch Changes diff --git a/packages/world/package.json b/packages/world/package.json index 45a5c62196..c92780482f 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.9", + "version": "2.0.10", "description": "World framework", "repository": { "type": "git", diff --git a/test/mock-game-contracts/CHANGELOG.md b/test/mock-game-contracts/CHANGELOG.md index 116c75a46a..78a10d4426 100644 --- a/test/mock-game-contracts/CHANGELOG.md +++ b/test/mock-game-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # mock-game-contracts +## 2.0.10 + ## 2.0.9 ## 2.0.8 diff --git a/test/mock-game-contracts/package.json b/test/mock-game-contracts/package.json index b2580c5d5c..5b1ef29584 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.9", + "version": "2.0.10", "private": true, "license": "MIT", "scripts": {