Skip to content

Commit

Permalink
Version Packages (next)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 9, 2024
1 parent 5268ab2 commit 8c739b6
Show file tree
Hide file tree
Showing 63 changed files with 530 additions and 36 deletions.
16 changes: 16 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 Down Expand Up @@ -99,6 +103,7 @@
"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 +125,7 @@
"grumpy-icons-sleep",
"happy-ants-lay",
"happy-pants-try",
"happy-snails-sleep",
"heavy-eyes-smile",
"heavy-rings-punch",
"hip-files-sin",
Expand Down Expand Up @@ -148,6 +154,7 @@
"lazy-ladybugs-return",
"lemon-zoos-mate",
"light-bananas-deny",
"light-carrots-applaud",
"little-cherries-rule",
"little-cobras-yell",
"little-ravens-yawn",
Expand All @@ -168,6 +175,7 @@
"metal-pots-notice",
"metal-wombats-judge",
"mighty-eels-type",
"mighty-points-study",
"mighty-years-whisper",
"modern-bikes-build",
"modern-brooms-rule",
Expand All @@ -188,6 +196,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 +225,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 +243,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 +263,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 +313,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 +332,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
78 changes: 78 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,81 @@
## Version 2.0.0-next.17

Release date: Fri Feb 09 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(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.

**[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
78 changes: 78 additions & 0 deletions docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,81 @@
## Version 2.0.0-next.17

Release date: Fri Feb 09 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(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.

**[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/common@2.0.0-next.17

## 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
40 changes: 40 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
13 changes: 13 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading

0 comments on commit 8c739b6

Please sign in to comment.