Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages (next) #2192

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
94 changes: 94 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
94 changes: 94 additions & 0 deletions docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 2 additions & 0 deletions packages/abi-ts/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @latticexyz/abi-ts

## 2.0.0-next.17

## 2.0.0-next.16

## 2.0.0-next.15
Expand Down
2 changes: 1 addition & 1 deletion packages/abi-ts/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
9 changes: 9 additions & 0 deletions packages/block-logs-stream/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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/[email protected]

## 2.0.0-next.16

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/block-logs-stream/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading