diff --git a/.changeset/pre.json b/.changeset/pre.json index c14853d86c..6b1ef44bcb 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -44,11 +44,13 @@ "beige-rockets-return", "big-goats-prove", "blue-forks-move", + "blue-roses-listen", "blue-seals-relate", "brave-islands-wash", "brave-needles-love", "brave-rings-tickle", "breezy-cameras-switch", + "breezy-days-greet", "breezy-garlics-decide", "breezy-seahorses-prove", "bright-flies-hug", @@ -60,6 +62,7 @@ "chilled-chicken-repair", "chilled-cougars-smash", "chilled-kangaroos-dream", + "chilly-fishes-speak", "chilly-kangaroos-clap", "clean-bananas-hug", "clever-icons-cough", @@ -69,6 +72,7 @@ "cool-snakes-reply", "curly-countries-obey", "curly-numbers-talk", + "curvy-dingos-draw", "curvy-tables-melt", "cyan-baboons-breathe", "cyan-hats-try", @@ -95,10 +99,12 @@ "few-jars-turn", "few-mirrors-reflect", "few-papayas-leave", + "fifty-guests-rescue", "fifty-squids-eat", "fifty-suits-itch", "fifty-suits-shout", "five-emus-battle", + "five-vans-try", "flat-trainers-marry", "fluffy-days-carry", "fluffy-moles-march", @@ -120,6 +126,7 @@ "grumpy-icons-sleep", "happy-ants-lay", "happy-pants-try", + "happy-snails-sleep", "heavy-eyes-smile", "heavy-rings-punch", "hip-files-sin", @@ -146,11 +153,14 @@ "late-spies-cover", "lazy-foxes-applaud", "lazy-ladybugs-return", + "lemon-numbers-design", "lemon-zoos-mate", "light-bananas-deny", + "light-carrots-applaud", "little-cherries-rule", "little-cobras-yell", "little-ravens-yawn", + "long-dots-think", "long-lizards-admire", "long-tips-marry", "loud-mayflies-divide", @@ -168,6 +178,7 @@ "metal-pots-notice", "metal-wombats-judge", "mighty-eels-type", + "mighty-points-study", "mighty-years-whisper", "modern-bikes-build", "modern-brooms-rule", @@ -177,6 +188,7 @@ "modern-trains-remain", "nasty-crabs-explode", "nasty-owls-sneeze", + "nasty-rice-pull", "nasty-trains-drop", "nasty-waves-divide", "neat-tools-check", @@ -188,6 +200,7 @@ "nice-glasses-begin", "nice-moose-love", "nice-pandas-knock", + "nine-plants-carry", "ninety-lions-double", "odd-bags-compete", "olive-bugs-add", @@ -216,6 +229,7 @@ "quiet-dancers-prove", "quiet-guests-approve", "quiet-squids-share", + "rare-dragons-walk", "rare-lizards-sleep", "rare-planes-draw", "rare-trainers-fry", @@ -233,11 +247,13 @@ "rotten-cats-lay", "rude-cycles-travel", "selfish-cycles-retire", + "selfish-pears-marry", "serious-ads-trade", "serious-plants-itch", "seven-carpets-develop", "seven-flies-chew", "seven-mangos-roll", + "seven-pears-walk", "seven-points-mate", "seven-rice-dance", "shaggy-pianos-fetch", @@ -251,6 +267,7 @@ "silent-carrots-glow", "silent-rice-argue", "silly-snakes-fold", + "silver-adults-sip", "silver-dolls-shave", "silver-ligers-grin", "silver-mangos-thank", @@ -300,6 +317,7 @@ "thin-rice-trade", "thin-terms-lay", "thirty-cups-provide", + "thirty-shoes-run", "three-lizards-shave", "three-llamas-sin", "three-scissors-smile", @@ -318,11 +336,13 @@ "tricky-oranges-pump", "twelve-boats-kick", "twelve-monkeys-juggle", + "twelve-terms-lay", "twenty-birds-scream", "two-feet-jam", "unlucky-cups-fetch", "unlucky-guests-cover", "violet-insects-press", + "warm-colts-sleep", "weak-mails-cross", "weak-otters-turn", "wet-crabs-punch", diff --git a/CHANGELOG.md b/CHANGELOG.md index b6bde46943..9e3efbf55d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,97 @@ +## Version 2.0.0-next.17 + +Release date: Tue Feb 20 2024 + +### Major changes + +**[chore: upgrade to Solidity 0.8.24 (#2202)](https://github.com/latticexyz/mud/commit/aabd30767cdda7ce0c32663e7cc483db1b66d967)** (@latticexyz/world-modules, @latticexyz/schema-type, @latticexyz/gas-report, @latticexyz/common, @latticexyz/noise, @latticexyz/store, @latticexyz/world, @latticexyz/cli, create-mud) + +Bumped Solidity version to 0.8.24. + +**[feat(world): rename CoreModule to InitModule (#2227)](https://github.com/latticexyz/mud/commit/db7798be2181c1b9e55380a195a04100aab627fd)** (@latticexyz/world) + +Renamed `CoreModule` to `InitModule` and `CoreRegistrationSystem` to `RegistrationSystem`. + +**[feat(cli,world): add user defined salt in WorldFactory.deployWorld() (#2219)](https://github.com/latticexyz/mud/commit/618dd0e89232896326c30ce55f183fceb0edabdb)** (@latticexyz/cli, @latticexyz/world) + +`WorldFactory` now expects a user-provided `salt` when calling `deployWorld(...)` (instead of the previous globally incrementing counter). This enables deterministic world addresses across different chains. + +When using `mud deploy`, you can provide a `bytes32` hex-encoded salt using the `--salt` option, otherwise it defaults to a random hex value. + +**[feat(store): rename StoreCore.registerCoreTables to registerInternalTables (#2225)](https://github.com/latticexyz/mud/commit/5c52bee094fe5dad445a2d600cbea83e29302c40)** (@latticexyz/store, @latticexyz/world) + +Renamed `StoreCore`'s `registerCoreTables` method to `registerInternalTables`. + +### Minor changes + +**[fix(world-modules): `SystemSwitch` properly calls systems from root (#2205)](https://github.com/latticexyz/mud/commit/c4fc850416df72f055be9fb1eb36a0edfaa1febc)** (@latticexyz/world-modules) + +Fixed `SystemSwitch` to properly call non-root systems from root systems. + +**[feat(store-sync): wait for idle after each chunk of logs in a block (#2254)](https://github.com/latticexyz/mud/commit/997286bacafa43bd997c3c752b445acc23726bde)** (@latticexyz/store-sync) + +`createStoreSync` now [waits for idle](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) between each chunk of logs in a block to allow for downstream render cycles to trigger. This means that hydrating logs from an indexer will no longer block until hydration completes, but rather allow for `onProgress` callbacks to trigger. + +**[feat(world): deployment salt by msg.sender (#2210)](https://github.com/latticexyz/mud/commit/6470fe1fd1fc73104cfdd01d79793203bffe5d1c)** (@latticexyz/world) + +`WorldFactory` now derives a salt based on number of worlds deployed by `msg.sender`, which should help with predictable world deployments across chains. + +### Patch changes + +**[feat(cli): hardcode table ID with codegen (#2229)](https://github.com/latticexyz/mud/commit/a35c05ea95395e9c7da3e18030fc200c2cde1353)** (@latticexyz/cli, @latticexyz/common, @latticexyz/store, @latticexyz/world-modules, @latticexyz/world, create-mud) + +Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. + +**[fix(store): reorder core table registration (#2164)](https://github.com/latticexyz/mud/commit/05b3e8882ef846e26dbf18946f64533f70d3bf41)** (@latticexyz/store) + +Fixed a race condition when registering core tables, where we would set a record in the `ResourceIds` table before the table was registered. + +**[fix(world): check table exists for register store and system hook [L-09] (#2195)](https://github.com/latticexyz/mud/commit/745485cda0d3a46e3d63d05c0149b2448e578010)** (@latticexyz/world) + +Updated `WorldRegistrationSystem` to check that systems exist before registering system hooks. + +**[fix(store-sync): fix overflowing column types, bump postgres sync version (#2270)](https://github.com/latticexyz/mud/commit/6c615b608e73d3bdabde3ad03823f1dce87f2ac6)** (@latticexyz/store-sync) + +Bumped the Postgres column size for `int32`, `uint32`, `int64`, and `uint64` types to avoid overflows + +**[feat(store-sync): bool array column types for decoded indexer (#2283)](https://github.com/latticexyz/mud/commit/4e445a1abb764de970381f5c5570ce135b712c4c)** (@latticexyz/store-sync) + +Moved boolean array types to use array column types (instead of JSON columns) for the Postgres decoded indexer + +**[docs: add missing changeset (#2282)](https://github.com/latticexyz/mud/commit/669fa43e5adcd2b3e44a298544c62ef9e0df642a)** (@latticexyz/store-sync) + +Moved numerical array types to use array column types (instead of JSON columns) for the Postgres decoded indexer + +**[docs: changeset for #2187 (#2188)](https://github.com/latticexyz/mud/commit/78a837167e527511d1a03fe67f60eb1d2e80aaa2)** (@latticexyz/cli) + +Fixed registration of world signatures/selectors for namespaced systems. We changed these signatures in [#2160](https://github.com/latticexyz/mud/pull/2160), but missed updating part of the deploy step. + +**[fix(common): include only errors defined in the contract (#2194)](https://github.com/latticexyz/mud/commit/c162ad5a546a92009aafc6150d9449738234b1ef)** (@latticexyz/common) + +Prevented errors not included in the contract (but present in the file) from being included in the interface by `contractToInterface` + +**[refactor(store): push to StoreHooks with StoreCore method (#2201)](https://github.com/latticexyz/mud/commit/55a05fd7af2abe68d2a041f55bafdd03f5d68788)** (@latticexyz/store) + +Refactored `StoreCore.registerStoreHook` to use `StoreHooks._push` for gas efficiency. + +**[refactor(world,world-modules): rename module args to encodedArgs (#2199)](https://github.com/latticexyz/mud/commit/e2d089c6d3970094e0310e84b096db0487967cc9)** (@latticexyz/world-modules, @latticexyz/world) + +Renamed the Module `args` parameter to `encodedArgs` to better reflect that it is ABI-encoded arguments. + +**[feat(world): rename CoreModule to InitModule (#2227)](https://github.com/latticexyz/mud/commit/db7798be2181c1b9e55380a195a04100aab627fd)** (@latticexyz/cli) + +Updated deployer with world's new `InitModule` naming. + +**[fix(world): prevent namespace from ending with underscore [M-05] (#2182)](https://github.com/latticexyz/mud/commit/17f98720928444ce8f82639b6d1f1eb01012a1c8)** (@latticexyz/world) + +Added a check to prevent namespaces from ending with an underscore (which could cause problems with world function signatures). + +**[fix(world): check table exists for register store and system hook [L-09] (#2195)](https://github.com/latticexyz/mud/commit/745485cda0d3a46e3d63d05c0149b2448e578010)** (@latticexyz/store) + +Updated `StoreCore` to check that tables exist before registering store hooks. + +--- + ## Version 2.0.0-next.16 Release date: Tue Jan 23 2024 diff --git a/docs/pages/changelog.mdx b/docs/pages/changelog.mdx index b6bde46943..9e3efbf55d 100644 --- a/docs/pages/changelog.mdx +++ b/docs/pages/changelog.mdx @@ -1,3 +1,97 @@ +## Version 2.0.0-next.17 + +Release date: Tue Feb 20 2024 + +### Major changes + +**[chore: upgrade to Solidity 0.8.24 (#2202)](https://github.com/latticexyz/mud/commit/aabd30767cdda7ce0c32663e7cc483db1b66d967)** (@latticexyz/world-modules, @latticexyz/schema-type, @latticexyz/gas-report, @latticexyz/common, @latticexyz/noise, @latticexyz/store, @latticexyz/world, @latticexyz/cli, create-mud) + +Bumped Solidity version to 0.8.24. + +**[feat(world): rename CoreModule to InitModule (#2227)](https://github.com/latticexyz/mud/commit/db7798be2181c1b9e55380a195a04100aab627fd)** (@latticexyz/world) + +Renamed `CoreModule` to `InitModule` and `CoreRegistrationSystem` to `RegistrationSystem`. + +**[feat(cli,world): add user defined salt in WorldFactory.deployWorld() (#2219)](https://github.com/latticexyz/mud/commit/618dd0e89232896326c30ce55f183fceb0edabdb)** (@latticexyz/cli, @latticexyz/world) + +`WorldFactory` now expects a user-provided `salt` when calling `deployWorld(...)` (instead of the previous globally incrementing counter). This enables deterministic world addresses across different chains. + +When using `mud deploy`, you can provide a `bytes32` hex-encoded salt using the `--salt` option, otherwise it defaults to a random hex value. + +**[feat(store): rename StoreCore.registerCoreTables to registerInternalTables (#2225)](https://github.com/latticexyz/mud/commit/5c52bee094fe5dad445a2d600cbea83e29302c40)** (@latticexyz/store, @latticexyz/world) + +Renamed `StoreCore`'s `registerCoreTables` method to `registerInternalTables`. + +### Minor changes + +**[fix(world-modules): `SystemSwitch` properly calls systems from root (#2205)](https://github.com/latticexyz/mud/commit/c4fc850416df72f055be9fb1eb36a0edfaa1febc)** (@latticexyz/world-modules) + +Fixed `SystemSwitch` to properly call non-root systems from root systems. + +**[feat(store-sync): wait for idle after each chunk of logs in a block (#2254)](https://github.com/latticexyz/mud/commit/997286bacafa43bd997c3c752b445acc23726bde)** (@latticexyz/store-sync) + +`createStoreSync` now [waits for idle](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) between each chunk of logs in a block to allow for downstream render cycles to trigger. This means that hydrating logs from an indexer will no longer block until hydration completes, but rather allow for `onProgress` callbacks to trigger. + +**[feat(world): deployment salt by msg.sender (#2210)](https://github.com/latticexyz/mud/commit/6470fe1fd1fc73104cfdd01d79793203bffe5d1c)** (@latticexyz/world) + +`WorldFactory` now derives a salt based on number of worlds deployed by `msg.sender`, which should help with predictable world deployments across chains. + +### Patch changes + +**[feat(cli): hardcode table ID with codegen (#2229)](https://github.com/latticexyz/mud/commit/a35c05ea95395e9c7da3e18030fc200c2cde1353)** (@latticexyz/cli, @latticexyz/common, @latticexyz/store, @latticexyz/world-modules, @latticexyz/world, create-mud) + +Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. + +**[fix(store): reorder core table registration (#2164)](https://github.com/latticexyz/mud/commit/05b3e8882ef846e26dbf18946f64533f70d3bf41)** (@latticexyz/store) + +Fixed a race condition when registering core tables, where we would set a record in the `ResourceIds` table before the table was registered. + +**[fix(world): check table exists for register store and system hook [L-09] (#2195)](https://github.com/latticexyz/mud/commit/745485cda0d3a46e3d63d05c0149b2448e578010)** (@latticexyz/world) + +Updated `WorldRegistrationSystem` to check that systems exist before registering system hooks. + +**[fix(store-sync): fix overflowing column types, bump postgres sync version (#2270)](https://github.com/latticexyz/mud/commit/6c615b608e73d3bdabde3ad03823f1dce87f2ac6)** (@latticexyz/store-sync) + +Bumped the Postgres column size for `int32`, `uint32`, `int64`, and `uint64` types to avoid overflows + +**[feat(store-sync): bool array column types for decoded indexer (#2283)](https://github.com/latticexyz/mud/commit/4e445a1abb764de970381f5c5570ce135b712c4c)** (@latticexyz/store-sync) + +Moved boolean array types to use array column types (instead of JSON columns) for the Postgres decoded indexer + +**[docs: add missing changeset (#2282)](https://github.com/latticexyz/mud/commit/669fa43e5adcd2b3e44a298544c62ef9e0df642a)** (@latticexyz/store-sync) + +Moved numerical array types to use array column types (instead of JSON columns) for the Postgres decoded indexer + +**[docs: changeset for #2187 (#2188)](https://github.com/latticexyz/mud/commit/78a837167e527511d1a03fe67f60eb1d2e80aaa2)** (@latticexyz/cli) + +Fixed registration of world signatures/selectors for namespaced systems. We changed these signatures in [#2160](https://github.com/latticexyz/mud/pull/2160), but missed updating part of the deploy step. + +**[fix(common): include only errors defined in the contract (#2194)](https://github.com/latticexyz/mud/commit/c162ad5a546a92009aafc6150d9449738234b1ef)** (@latticexyz/common) + +Prevented errors not included in the contract (but present in the file) from being included in the interface by `contractToInterface` + +**[refactor(store): push to StoreHooks with StoreCore method (#2201)](https://github.com/latticexyz/mud/commit/55a05fd7af2abe68d2a041f55bafdd03f5d68788)** (@latticexyz/store) + +Refactored `StoreCore.registerStoreHook` to use `StoreHooks._push` for gas efficiency. + +**[refactor(world,world-modules): rename module args to encodedArgs (#2199)](https://github.com/latticexyz/mud/commit/e2d089c6d3970094e0310e84b096db0487967cc9)** (@latticexyz/world-modules, @latticexyz/world) + +Renamed the Module `args` parameter to `encodedArgs` to better reflect that it is ABI-encoded arguments. + +**[feat(world): rename CoreModule to InitModule (#2227)](https://github.com/latticexyz/mud/commit/db7798be2181c1b9e55380a195a04100aab627fd)** (@latticexyz/cli) + +Updated deployer with world's new `InitModule` naming. + +**[fix(world): prevent namespace from ending with underscore [M-05] (#2182)](https://github.com/latticexyz/mud/commit/17f98720928444ce8f82639b6d1f1eb01012a1c8)** (@latticexyz/world) + +Added a check to prevent namespaces from ending with an underscore (which could cause problems with world function signatures). + +**[fix(world): check table exists for register store and system hook [L-09] (#2195)](https://github.com/latticexyz/mud/commit/745485cda0d3a46e3d63d05c0149b2448e578010)** (@latticexyz/store) + +Updated `StoreCore` to check that tables exist before registering store hooks. + +--- + ## Version 2.0.0-next.16 Release date: Tue Jan 23 2024 diff --git a/packages/abi-ts/CHANGELOG.md b/packages/abi-ts/CHANGELOG.md index 7ef1deccbc..0fe9042d41 100644 --- a/packages/abi-ts/CHANGELOG.md +++ b/packages/abi-ts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/abi-ts +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/abi-ts/package.json b/packages/abi-ts/package.json index e80e9d631e..e0200e313c 100644 --- a/packages/abi-ts/package.json +++ b/packages/abi-ts/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/abi-ts", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 a486f7b315..545ea08a88 100644 --- a/packages/block-logs-stream/CHANGELOG.md +++ b/packages/block-logs-stream/CHANGELOG.md @@ -1,5 +1,14 @@ # @latticexyz/block-logs-stream +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] + - @latticexyz/common@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/block-logs-stream/package.json b/packages/block-logs-stream/package.json index 4e59b5c36d..578f9a2c7e 100644 --- a/packages/block-logs-stream/package.json +++ b/packages/block-logs-stream/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/block-logs-stream", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 b5cc64b5e9..0bec448c15 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,45 @@ # Change Log +## 2.0.0-next.17 + +### Minor Changes + +- aabd3076: Bumped Solidity version to 0.8.24. +- 618dd0e8: `WorldFactory` now expects a user-provided `salt` when calling `deployWorld(...)` (instead of the previous globally incrementing counter). This enables deterministic world addresses across different chains. + + When using `mud deploy`, you can provide a `bytes32` hex-encoded salt using the `--salt` option, otherwise it defaults to a random hex value. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. +- 78a83716: Fixed registration of world signatures/selectors for namespaced systems. We changed these signatures in [#2160](https://github.com/latticexyz/mud/pull/2160), but missed updating part of the deploy step. +- db7798be: Updated deployer with world's new `InitModule` naming. +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [745485cd] +- Updated dependencies [aabd3076] +- Updated dependencies [db7798be] +- Updated dependencies [618dd0e8] +- Updated dependencies [c4fc8504] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [6470fe1f] +- Updated dependencies [e2d089c6] +- Updated dependencies [17f98720] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/world-modules@2.0.0-next.17 + - @latticexyz/world@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/gas-report@2.0.0-next.17 + - @latticexyz/config@2.0.0-next.17 + - @latticexyz/protocol-parser@2.0.0-next.17 + - @latticexyz/abi-ts@2.0.0-next.17 + - @latticexyz/services@2.0.0-next.17 + - @latticexyz/utils@2.0.0-next.17 + ## 2.0.0-next.16 ### Major Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index a59f92db27..ccd00d61ae 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/cli", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Command line interface for mud", "repository": { "type": "git", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index ef40e2b793..042dabaa3c 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 2.0.0-next.17 + +### Minor Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. +- c162ad5a: Prevented errors not included in the contract (but present in the file) from being included in the interface by `contractToInterface` +- Updated dependencies [aabd3076] + - @latticexyz/schema-type@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/common/package.json b/packages/common/package.json index 3a61a05177..e59867e710 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/common", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Common low level logic shared between packages", "repository": { "type": "git", diff --git a/packages/config/CHANGELOG.md b/packages/config/CHANGELOG.md index 8b2ca78ebd..37b00f95a6 100644 --- a/packages/config/CHANGELOG.md +++ b/packages/config/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/config/package.json b/packages/config/package.json index 5a6bb45837..db81380a7a 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/config", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Config for Store and World", "repository": { "type": "git", diff --git a/packages/create-mud/CHANGELOG.md b/packages/create-mud/CHANGELOG.md index 1ac2caf09b..71ccd47861 100644 --- a/packages/create-mud/CHANGELOG.md +++ b/packages/create-mud/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 2.0.0-next.17 + +### Minor Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/create-mud/package.json b/packages/create-mud/package.json index d0eefb5833..d0e501575b 100644 --- a/packages/create-mud/package.json +++ b/packages/create-mud/package.json @@ -1,6 +1,6 @@ { "name": "create-mud", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 b947194aec..23318d4128 100644 --- a/packages/dev-tools/CHANGELOG.md +++ b/packages/dev-tools/CHANGELOG.md @@ -1,5 +1,35 @@ # @latticexyz/dev-tools +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [745485cd] +- Updated dependencies [aabd3076] +- Updated dependencies [6c615b60] +- Updated dependencies [db7798be] +- Updated dependencies [618dd0e8] +- Updated dependencies [4e445a1a] +- Updated dependencies [669fa43e] +- Updated dependencies [997286ba] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [6470fe1f] +- Updated dependencies [e2d089c6] +- Updated dependencies [17f98720] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/world@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/store-sync@2.0.0-next.17 + - @latticexyz/react@2.0.0-next.17 + - @latticexyz/recs@2.0.0-next.17 + - @latticexyz/utils@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/dev-tools/package.json b/packages/dev-tools/package.json index df86f3a7c5..52ca25b39e 100644 --- a/packages/dev-tools/package.json +++ b/packages/dev-tools/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/dev-tools", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "MUD developer tools", "repository": { "type": "git", @@ -51,12 +51,12 @@ "vitest": "0.34.6" }, "peerDependencies": { - "@latticexyz/common": "2.0.0-next.16", - "@latticexyz/recs": "2.0.0-next.16", - "@latticexyz/store": "2.0.0-next.16", - "@latticexyz/store-sync": "2.0.0-next.16", - "@latticexyz/utils": "2.0.0-next.16", - "@latticexyz/world": "2.0.0-next.16" + "@latticexyz/common": "2.0.0-next.17", + "@latticexyz/recs": "2.0.0-next.17", + "@latticexyz/store": "2.0.0-next.17", + "@latticexyz/store-sync": "2.0.0-next.17", + "@latticexyz/utils": "2.0.0-next.17", + "@latticexyz/world": "2.0.0-next.17" }, "publishConfig": { "access": "public" diff --git a/packages/ecs-browser/CHANGELOG.md b/packages/ecs-browser/CHANGELOG.md index e352e37742..a2152aac61 100644 --- a/packages/ecs-browser/CHANGELOG.md +++ b/packages/ecs-browser/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/ecs-browser +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/ecs-browser/package.json b/packages/ecs-browser/package.json index d8b1a38079..ae7692a648 100644 --- a/packages/ecs-browser/package.json +++ b/packages/ecs-browser/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/ecs-browser", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/faucet/CHANGELOG.md b/packages/faucet/CHANGELOG.md index cbccac65c1..496ab421c9 100644 --- a/packages/faucet/CHANGELOG.md +++ b/packages/faucet/CHANGELOG.md @@ -1,5 +1,14 @@ # @latticexyz/faucet +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] + - @latticexyz/common@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/faucet/package.json b/packages/faucet/package.json index 01a2f79c30..beb31c37a2 100644 --- a/packages/faucet/package.json +++ b/packages/faucet/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/faucet", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Faucet API for Lattice testnet", "repository": { "type": "git", diff --git a/packages/gas-report/CHANGELOG.md b/packages/gas-report/CHANGELOG.md index b2e74e5bc8..1c1c30219e 100644 --- a/packages/gas-report/CHANGELOG.md +++ b/packages/gas-report/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/gas-report/package.json b/packages/gas-report/package.json index 50bcb6ab3c..d366a4dc25 100644 --- a/packages/gas-report/package.json +++ b/packages/gas-report/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/gas-report", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Gas reporter for specific lines within forge tests", "repository": { "type": "git", diff --git a/packages/network/CHANGELOG.md b/packages/network/CHANGELOG.md index 7e26a657e2..85c828bf36 100644 --- a/packages/network/CHANGELOG.md +++ b/packages/network/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/network +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/network/package.json b/packages/network/package.json index 80e98015fd..19f067b607 100644 --- a/packages/network/package.json +++ b/packages/network/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/network", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/noise/CHANGELOG.md b/packages/noise/CHANGELOG.md index 790b66408c..ce434a927d 100644 --- a/packages/noise/CHANGELOG.md +++ b/packages/noise/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/noise/package.json b/packages/noise/package.json index bf7ef3696a..d09d623a97 100644 --- a/packages/noise/package.json +++ b/packages/noise/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/noise", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "license": "MIT", "type": "module", "exports": { diff --git a/packages/phaserx/CHANGELOG.md b/packages/phaserx/CHANGELOG.md index b951e18cbd..9d739ad864 100644 --- a/packages/phaserx/CHANGELOG.md +++ b/packages/phaserx/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.17 + +### Patch Changes + +- @latticexyz/utils@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/phaserx/package.json b/packages/phaserx/package.json index d3719f652e..8aac974e54 100644 --- a/packages/phaserx/package.json +++ b/packages/phaserx/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/phaserx", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/protocol-parser/CHANGELOG.md b/packages/protocol-parser/CHANGELOG.md index 59ce694b37..8436897373 100644 --- a/packages/protocol-parser/CHANGELOG.md +++ b/packages/protocol-parser/CHANGELOG.md @@ -1,5 +1,15 @@ # @latticexyz/protocol-parser +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/protocol-parser/package.json b/packages/protocol-parser/package.json index cb35576d74..274a677926 100644 --- a/packages/protocol-parser/package.json +++ b/packages/protocol-parser/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/protocol-parser", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Parser utilities for the MUD protocol", "repository": { "type": "git", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index 726c9b48ae..bb7b65527a 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [aabd3076] +- Updated dependencies [55a05fd7] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/recs@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index f05e7d5be5..c9f2be5006 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/react", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "React tools for MUD client.", "repository": { "type": "git", diff --git a/packages/recs/CHANGELOG.md b/packages/recs/CHANGELOG.md index e055f7e24c..4de2c01b38 100644 --- a/packages/recs/CHANGELOG.md +++ b/packages/recs/CHANGELOG.md @@ -1,5 +1,13 @@ # Change Log +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [aabd3076] + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/utils@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/recs/package.json b/packages/recs/package.json index 3399f2ea5e..16d7c1b8b6 100644 --- a/packages/recs/package.json +++ b/packages/recs/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/recs", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 46c5d522cc..2f3c17ae49 100644 --- a/packages/schema-type/CHANGELOG.md +++ b/packages/schema-type/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/schema-type/package.json b/packages/schema-type/package.json index d7ca283538..dc4d877804 100644 --- a/packages/schema-type/package.json +++ b/packages/schema-type/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/schema-type", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "SchemaType enum for various languages", "repository": { "type": "git", diff --git a/packages/services/CHANGELOG.md b/packages/services/CHANGELOG.md index 7edb1b1d50..f8f862c112 100644 --- a/packages/services/CHANGELOG.md +++ b/packages/services/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/services/package.json b/packages/services/package.json index 30bfa5a347..96eccd36b8 100644 --- a/packages/services/package.json +++ b/packages/services/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/services", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "MUD services for enhanced interactions with on-chain ECS state", "repository": { "type": "git", diff --git a/packages/solecs/CHANGELOG.md b/packages/solecs/CHANGELOG.md index b669f5248f..560aa4a722 100644 --- a/packages/solecs/CHANGELOG.md +++ b/packages/solecs/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/solecs +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/solecs/package.json b/packages/solecs/package.json index 5a71b5d759..0b7e693df8 100644 --- a/packages/solecs/package.json +++ b/packages/solecs/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/solecs", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/solhint-config-mud/CHANGELOG.md b/packages/solhint-config-mud/CHANGELOG.md index 048b83363b..dbcdf88e02 100644 --- a/packages/solhint-config-mud/CHANGELOG.md +++ b/packages/solhint-config-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/solhint-config-mud/package.json b/packages/solhint-config-mud/package.json index 07f238e97e..82d6c3e8cf 100644 --- a/packages/solhint-config-mud/package.json +++ b/packages/solhint-config-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-config-mud", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 048b83363b..dbcdf88e02 100644 --- a/packages/solhint-plugin-mud/CHANGELOG.md +++ b/packages/solhint-plugin-mud/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/solhint-plugin-mud/package.json b/packages/solhint-plugin-mud/package.json index 131ae4263c..826f37a866 100644 --- a/packages/solhint-plugin-mud/package.json +++ b/packages/solhint-plugin-mud/package.json @@ -1,6 +1,6 @@ { "name": "solhint-plugin-mud", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "repository": { "type": "git", "url": "https://github.com/latticexyz/mud.git", diff --git a/packages/std-client/CHANGELOG.md b/packages/std-client/CHANGELOG.md index 30f9cae59e..4211742479 100644 --- a/packages/std-client/CHANGELOG.md +++ b/packages/std-client/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/std-client +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/std-client/package.json b/packages/std-client/package.json index b5bc843426..5d1fa246e3 100644 --- a/packages/std-client/package.json +++ b/packages/std-client/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/std-client", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/std-contracts/CHANGELOG.md b/packages/std-contracts/CHANGELOG.md index dabff6b285..5f4b08a1b4 100644 --- a/packages/std-contracts/CHANGELOG.md +++ b/packages/std-contracts/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/std-contracts +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/std-contracts/package.json b/packages/std-contracts/package.json index 3f2f6d1413..c2364e2977 100644 --- a/packages/std-contracts/package.json +++ b/packages/std-contracts/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/std-contracts", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/store-cache/CHANGELOG.md b/packages/store-cache/CHANGELOG.md index bb8e646981..5f275cb8d5 100644 --- a/packages/store-cache/CHANGELOG.md +++ b/packages/store-cache/CHANGELOG.md @@ -1,5 +1,7 @@ # @latticexyz/store-cache +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/store-cache/package.json b/packages/store-cache/package.json index 247d1aaa19..6d45812c9f 100644 --- a/packages/store-cache/package.json +++ b/packages/store-cache/package.json @@ -1,5 +1,5 @@ { "name": "@latticexyz/store-cache", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "private": true } diff --git a/packages/store-indexer/CHANGELOG.md b/packages/store-indexer/CHANGELOG.md index 99864a157c..10ee41a923 100644 --- a/packages/store-indexer/CHANGELOG.md +++ b/packages/store-indexer/CHANGELOG.md @@ -1,5 +1,26 @@ # @latticexyz/store-indexer +## 2.0.0-next.17 + +### Patch Changes + +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [aabd3076] +- Updated dependencies [6c615b60] +- Updated dependencies [4e445a1a] +- Updated dependencies [669fa43e] +- Updated dependencies [997286ba] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/store-sync@2.0.0-next.17 + - @latticexyz/block-logs-stream@2.0.0-next.17 + - @latticexyz/protocol-parser@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/store-indexer/package.json b/packages/store-indexer/package.json index 5c5c726e6c..8ec5d4e2c3 100644 --- a/packages/store-indexer/package.json +++ b/packages/store-indexer/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-indexer", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Minimal Typescript indexer for Store", "repository": { "type": "git", diff --git a/packages/store-sync/CHANGELOG.md b/packages/store-sync/CHANGELOG.md index edde16ccf2..ea034b955d 100644 --- a/packages/store-sync/CHANGELOG.md +++ b/packages/store-sync/CHANGELOG.md @@ -1,5 +1,37 @@ # @latticexyz/store-sync +## 2.0.0-next.17 + +### Minor Changes + +- 997286ba: `createStoreSync` now [waits for idle](https://developer.mozilla.org/en-US/docs/Web/API/Window/requestIdleCallback) between each chunk of logs in a block to allow for downstream render cycles to trigger. This means that hydrating logs from an indexer will no longer block until hydration completes, but rather allow for `onProgress` callbacks to trigger. + +### Patch Changes + +- 6c615b60: Bumped the Postgres column size for `int32`, `uint32`, `int64`, and `uint64` types to avoid overflows +- 4e445a1a: Moved boolean array types to use array column types (instead of JSON columns) for the Postgres decoded indexer +- 669fa43e: Moved numerical array types to use array column types (instead of JSON columns) for the Postgres decoded indexer +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [745485cd] +- Updated dependencies [aabd3076] +- Updated dependencies [db7798be] +- Updated dependencies [618dd0e8] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [6470fe1f] +- Updated dependencies [e2d089c6] +- Updated dependencies [17f98720] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/world@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/block-logs-stream@2.0.0-next.17 + - @latticexyz/protocol-parser@2.0.0-next.17 + - @latticexyz/recs@2.0.0-next.17 + ## 2.0.0-next.16 ### Patch Changes diff --git a/packages/store-sync/package.json b/packages/store-sync/package.json index 0e334e92e3..5162e29f9c 100644 --- a/packages/store-sync/package.json +++ b/packages/store-sync/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store-sync", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 be1b231fe6..7d643bf934 100644 --- a/packages/store/CHANGELOG.md +++ b/packages/store/CHANGELOG.md @@ -1,5 +1,25 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. +- 5c52bee0: Renamed `StoreCore`'s `registerCoreTables` method to `registerInternalTables`. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. +- 05b3e888: Fixed a race condition when registering core tables, where we would set a record in the `ResourceIds` table before the table was registered. +- 55a05fd7: Refactored `StoreCore.registerStoreHook` to use `StoreHooks._push` for gas efficiency. +- 745485cd: Updated `StoreCore` to check that tables exist before registering store hooks. +- Updated dependencies [a35c05ea] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/config@2.0.0-next.17 + ## 2.0.0-next.16 ### Minor Changes diff --git a/packages/store/package.json b/packages/store/package.json index 9cc0f011ec..86aa4b9471 100644 --- a/packages/store/package.json +++ b/packages/store/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/store", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "Store", "repository": { "type": "git", diff --git a/packages/utils/CHANGELOG.md b/packages/utils/CHANGELOG.md index 06eaef412c..f40f1fa377 100644 --- a/packages/utils/CHANGELOG.md +++ b/packages/utils/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 2.0.0-next.17 + ## 2.0.0-next.16 ## 2.0.0-next.15 diff --git a/packages/utils/package.json b/packages/utils/package.json index b6add7f37e..8d5e0d0a30 100644 --- a/packages/utils/package.json +++ b/packages/utils/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/utils", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "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 b6ae49b739..7bd6ad0f6a 100644 --- a/packages/world-modules/CHANGELOG.md +++ b/packages/world-modules/CHANGELOG.md @@ -1,5 +1,38 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. + +### Minor Changes + +- c4fc8504: Fixed `SystemSwitch` to properly call non-root systems from root systems. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. +- e2d089c6: Renamed the Module `args` parameter to `encodedArgs` to better reflect that it is ABI-encoded arguments. +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [745485cd] +- Updated dependencies [aabd3076] +- Updated dependencies [db7798be] +- Updated dependencies [618dd0e8] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [6470fe1f] +- Updated dependencies [e2d089c6] +- Updated dependencies [17f98720] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/world@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/config@2.0.0-next.17 + ## 2.0.0-next.16 ### Major Changes diff --git a/packages/world-modules/package.json b/packages/world-modules/package.json index 26e3b00a57..c8d17bdd15 100644 --- a/packages/world-modules/package.json +++ b/packages/world-modules/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world-modules", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "World modules", "repository": { "type": "git", diff --git a/packages/world/CHANGELOG.md b/packages/world/CHANGELOG.md index 29ce062713..d264a8e757 100644 --- a/packages/world/CHANGELOG.md +++ b/packages/world/CHANGELOG.md @@ -1,5 +1,38 @@ # Change Log +## 2.0.0-next.17 + +### Major Changes + +- aabd3076: Bumped Solidity version to 0.8.24. +- db7798be: Renamed `CoreModule` to `InitModule` and `CoreRegistrationSystem` to `RegistrationSystem`. +- 618dd0e8: `WorldFactory` now expects a user-provided `salt` when calling `deployWorld(...)` (instead of the previous globally incrementing counter). This enables deterministic world addresses across different chains. + + When using `mud deploy`, you can provide a `bytes32` hex-encoded salt using the `--salt` option, otherwise it defaults to a random hex value. + +### Minor Changes + +- 6470fe1f: `WorldFactory` now derives a salt based on number of worlds deployed by `msg.sender`, which should help with predictable world deployments across chains. + +### Patch Changes + +- a35c05ea: Table libraries now hardcode the `bytes32` table ID value rather than computing it in Solidity. This saves a bit of gas across all storage operations. +- 745485cd: Updated `WorldRegistrationSystem` to check that systems exist before registering system hooks. +- e2d089c6: Renamed the Module `args` parameter to `encodedArgs` to better reflect that it is ABI-encoded arguments. +- 17f98720: Added a check to prevent namespaces from ending with an underscore (which could cause problems with world function signatures). +- 5c52bee0: Renamed `StoreCore`'s `registerCoreTables` method to `registerInternalTables`. +- Updated dependencies [a35c05ea] +- Updated dependencies [05b3e888] +- Updated dependencies [aabd3076] +- Updated dependencies [c162ad5a] +- Updated dependencies [55a05fd7] +- Updated dependencies [5c52bee0] +- Updated dependencies [745485cd] + - @latticexyz/common@2.0.0-next.17 + - @latticexyz/store@2.0.0-next.17 + - @latticexyz/schema-type@2.0.0-next.17 + - @latticexyz/config@2.0.0-next.17 + ## 2.0.0-next.16 ### Major Changes diff --git a/packages/world/package.json b/packages/world/package.json index 7f969720de..5d2424c0af 100644 --- a/packages/world/package.json +++ b/packages/world/package.json @@ -1,6 +1,6 @@ { "name": "@latticexyz/world", - "version": "2.0.0-next.16", + "version": "2.0.0-next.17", "description": "World framework", "repository": { "type": "git",