Skip to content

Commit 12a9eb1

Browse files
Version Packages (next) (#1621)
1 parent 7987c94 commit 12a9eb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+378
-36
lines changed

.changeset/pre.json

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
"curly-numbers-talk",
5555
"curvy-tables-melt",
5656
"cyan-hats-try",
57+
"cyan-timers-tan",
5758
"dirty-items-retire",
5859
"dry-chicken-love",
5960
"eighty-pots-report",
@@ -110,10 +111,12 @@
110111
"nasty-trains-drop",
111112
"nasty-waves-divide",
112113
"nervous-walls-knock",
114+
"nice-bikes-double",
113115
"nice-fishes-perform",
114116
"nice-glasses-begin",
115117
"nice-moose-love",
116118
"nice-pandas-knock",
119+
"olive-foxes-shop",
117120
"olive-parrots-move",
118121
"olive-pigs-fold",
119122
"perfect-mangos-cry",
@@ -131,6 +134,7 @@
131134
"rare-lizards-sleep",
132135
"rare-planes-draw",
133136
"rare-trainers-fry",
137+
"real-crews-hide",
134138
"real-ducks-hope",
135139
"real-students-exercise",
136140
"red-falcons-do",
@@ -150,6 +154,7 @@
150154
"silly-snakes-fold",
151155
"silver-mangos-thank",
152156
"six-cats-agree",
157+
"six-kangaroos-sneeze",
153158
"small-boxes-rush",
154159
"small-chicken-repair",
155160
"small-pots-press",

CHANGELOG.md

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
## Version 2.0.0-next.10
2+
3+
### Major changes
4+
5+
**[refactor(world): expose library for WorldContextConsumer (#1624)](https://github.com/latticexyz/mud/commit/88b1a5a191b4adadf190de51cd47a5b033b6fb29)** (@latticexyz/world-modules, @latticexyz/world)
6+
7+
We now expose a `WorldContextConsumerLib` library with the same functionality as the `WorldContextConsumer` contract, but the ability to be used inside of internal libraries.
8+
We also renamed the `WorldContextProvider` library to `WorldContextProviderLib` for consistency.
9+
10+
### Minor changes
11+
12+
**[docs: changeset for indexer/store sync table IDs param (#1662)](https://github.com/latticexyz/mud/commit/4081493b84ab5c78a5147d4af8d41fc2d9e027a5)** (@latticexyz/store-indexer, @latticexyz/store-sync)
13+
14+
Added a `tableIds` parameter to store sync methods and indexer to allow filtering data streams by table IDs. Store sync methods automatically include all internal table IDs from Store and World.
15+
16+
```ts
17+
import { syncToRecs } from "@latticexyz/store-sync/recs";
18+
import { resourceIdToHex } from "@latticexyz/common";
19+
20+
syncToRecs({
21+
...
22+
tableIds: [resourceIdToHex(...)],
23+
});
24+
```
25+
26+
```ts
27+
import { createIndexerClient } from "@latticexyz/store-sync/trpc-indexer";
28+
import { resourceIdToHex } from "@latticexyz/common";
29+
30+
const client = createIndexerClient({ ... });
31+
client.findAll({
32+
...
33+
tableIds: [resourceIdToHex(...)],
34+
});
35+
```
36+
37+
**[feat(world): return world address from WorldFactory (#1675)](https://github.com/latticexyz/mud/commit/7987c94d61a2c759916a708774db9f3cf08edca8)** (@latticexyz/world)
38+
39+
Return address of the newly created World from `WorldFactory.deployWorld`.
40+
41+
### Patch changes
42+
43+
**[fix(cli): fix table IDs for module install (#1663)](https://github.com/latticexyz/mud/commit/87235a21b28fc831b5fb7a1546835ef08bd51655)** (@latticexyz/cli)
44+
45+
Fix table IDs for module install step of deploy
46+
47+
**[fix(cli): register namespace with namespaceId (#1619)](https://github.com/latticexyz/mud/commit/1d403962283c5b5f62410867be01f6adff277f41)** (@latticexyz/cli)
48+
49+
We fixed a bug in the deploy script that would cause the deployment to fail if a non-root namespace was used in the config.
50+
51+
---
52+
153
## Version 2.0.0-next.9
254

355
### Major changes

docs/pages/changelog.mdx

+52
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,55 @@
1+
## Version 2.0.0-next.10
2+
3+
### Major changes
4+
5+
**[refactor(world): expose library for WorldContextConsumer (#1624)](https://github.com/latticexyz/mud/commit/88b1a5a191b4adadf190de51cd47a5b033b6fb29)** (@latticexyz/world-modules, @latticexyz/world)
6+
7+
We now expose a `WorldContextConsumerLib` library with the same functionality as the `WorldContextConsumer` contract, but the ability to be used inside of internal libraries.
8+
We also renamed the `WorldContextProvider` library to `WorldContextProviderLib` for consistency.
9+
10+
### Minor changes
11+
12+
**[docs: changeset for indexer/store sync table IDs param (#1662)](https://github.com/latticexyz/mud/commit/4081493b84ab5c78a5147d4af8d41fc2d9e027a5)** (@latticexyz/store-indexer, @latticexyz/store-sync)
13+
14+
Added a `tableIds` parameter to store sync methods and indexer to allow filtering data streams by table IDs. Store sync methods automatically include all internal table IDs from Store and World.
15+
16+
```ts
17+
import { syncToRecs } from "@latticexyz/store-sync/recs";
18+
import { resourceIdToHex } from "@latticexyz/common";
19+
20+
syncToRecs({
21+
...
22+
tableIds: [resourceIdToHex(...)],
23+
});
24+
```
25+
26+
```ts
27+
import { createIndexerClient } from "@latticexyz/store-sync/trpc-indexer";
28+
import { resourceIdToHex } from "@latticexyz/common";
29+
30+
const client = createIndexerClient({ ... });
31+
client.findAll({
32+
...
33+
tableIds: [resourceIdToHex(...)],
34+
});
35+
```
36+
37+
**[feat(world): return world address from WorldFactory (#1675)](https://github.com/latticexyz/mud/commit/7987c94d61a2c759916a708774db9f3cf08edca8)** (@latticexyz/world)
38+
39+
Return address of the newly created World from `WorldFactory.deployWorld`.
40+
41+
### Patch changes
42+
43+
**[fix(cli): fix table IDs for module install (#1663)](https://github.com/latticexyz/mud/commit/87235a21b28fc831b5fb7a1546835ef08bd51655)** (@latticexyz/cli)
44+
45+
Fix table IDs for module install step of deploy
46+
47+
**[fix(cli): register namespace with namespaceId (#1619)](https://github.com/latticexyz/mud/commit/1d403962283c5b5f62410867be01f6adff277f41)** (@latticexyz/cli)
48+
49+
We fixed a bug in the deploy script that would cause the deployment to fail if a non-root namespace was used in the config.
50+
51+
---
52+
153
## Version 2.0.0-next.9
254

355
### Major changes

packages/abi-ts/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @latticexyz/abi-ts
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
## 2.0.0-next.8

packages/abi-ts/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/abi-ts",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.",
55
"repository": {
66
"type": "git",

packages/block-logs-stream/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @latticexyz/block-logs-stream
22

3+
## 2.0.0-next.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @latticexyz/common@2.0.0-next.10
9+
310
## 2.0.0-next.9
411

512
### Patch Changes

packages/block-logs-stream/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/block-logs-stream",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Create a stream of EVM block logs for events",
55
"repository": {
66
"type": "git",

packages/cli/CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
5+
### Patch Changes
6+
7+
- [#1663](https://github.com/latticexyz/mud/pull/1663) [`87235a21`](https://github.com/latticexyz/mud/commit/87235a21b28fc831b5fb7a1546835ef08bd51655) Thanks [@holic](https://github.com/holic)! - Fix table IDs for module install step of deploy
8+
9+
- [#1619](https://github.com/latticexyz/mud/pull/1619) [`1d403962`](https://github.com/latticexyz/mud/commit/1d403962283c5b5f62410867be01f6adff277f41) Thanks [@alvrs](https://github.com/alvrs)! - We fixed a bug in the deploy script that would cause the deployment to fail if a non-root namespace was used in the config.
10+
11+
- Updated dependencies [[`88b1a5a1`](https://github.com/latticexyz/mud/commit/88b1a5a191b4adadf190de51cd47a5b033b6fb29), [`7987c94d`](https://github.com/latticexyz/mud/commit/7987c94d61a2c759916a708774db9f3cf08edca8)]:
12+
- @latticexyz/world-modules@2.0.0-next.10
13+
- @latticexyz/world@2.0.0-next.10
14+
- @latticexyz/abi-ts@2.0.0-next.10
15+
- @latticexyz/common@2.0.0-next.10
16+
- @latticexyz/config@2.0.0-next.10
17+
- @latticexyz/gas-report@2.0.0-next.10
18+
- @latticexyz/protocol-parser@2.0.0-next.10
19+
- @latticexyz/schema-type@2.0.0-next.10
20+
- @latticexyz/services@2.0.0-next.10
21+
- @latticexyz/store@2.0.0-next.10
22+
- @latticexyz/utils@2.0.0-next.10
23+
324
## 2.0.0-next.9
425

526
### Major Changes

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/cli",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Command line interface for mud",
55
"repository": {
66
"type": "git",

packages/common/CHANGELOG.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @latticexyz/schema-type@2.0.0-next.10
9+
310
## 2.0.0-next.9
411

512
### Major Changes

packages/common/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/common",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Common low level logic shared between packages",
55
"repository": {
66
"type": "git",

packages/config/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @latticexyz/common@2.0.0-next.10
9+
- @latticexyz/schema-type@2.0.0-next.10
10+
311
## 2.0.0-next.9
412

513
### Major Changes

packages/config/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/config",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Config for Store and World",
55
"repository": {
66
"type": "git",

packages/create-mud/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
### Minor Changes

packages/create-mud/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-mud",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Create a new MUD project",
55
"license": "MIT",
66
"author": "Lattice <[email protected]>",

packages/dev-tools/CHANGELOG.md

+13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# @latticexyz/dev-tools
22

3+
## 2.0.0-next.10
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`4081493b`](https://github.com/latticexyz/mud/commit/4081493b84ab5c78a5147d4af8d41fc2d9e027a5), [`88b1a5a1`](https://github.com/latticexyz/mud/commit/88b1a5a191b4adadf190de51cd47a5b033b6fb29), [`7987c94d`](https://github.com/latticexyz/mud/commit/7987c94d61a2c759916a708774db9f3cf08edca8)]:
8+
- @latticexyz/store-sync@2.0.0-next.10
9+
- @latticexyz/world@2.0.0-next.10
10+
- @latticexyz/common@2.0.0-next.10
11+
- @latticexyz/react@2.0.0-next.10
12+
- @latticexyz/recs@2.0.0-next.10
13+
- @latticexyz/store@2.0.0-next.10
14+
- @latticexyz/utils@2.0.0-next.10
15+
316
## 2.0.0-next.9
417

518
### Major Changes

packages/dev-tools/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/dev-tools",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "MUD developer tools",
55
"repository": {
66
"type": "git",
@@ -51,12 +51,12 @@
5151
"vitest": "0.31.4"
5252
},
5353
"peerDependencies": {
54-
"@latticexyz/common": "2.0.0-next.9",
55-
"@latticexyz/recs": "2.0.0-next.9",
56-
"@latticexyz/store": "2.0.0-next.9",
57-
"@latticexyz/store-sync": "2.0.0-next.9",
58-
"@latticexyz/utils": "2.0.0-next.9",
59-
"@latticexyz/world": "2.0.0-next.9"
54+
"@latticexyz/common": "2.0.0-next.10",
55+
"@latticexyz/recs": "2.0.0-next.10",
56+
"@latticexyz/store": "2.0.0-next.10",
57+
"@latticexyz/store-sync": "2.0.0-next.10",
58+
"@latticexyz/utils": "2.0.0-next.10",
59+
"@latticexyz/world": "2.0.0-next.10"
6060
},
6161
"publishConfig": {
6262
"access": "public"

packages/ecs-browser/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @latticexyz/ecs-browser
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
## 2.0.0-next.8

packages/ecs-browser/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@latticexyz/ecs-browser",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"private": true
55
}

packages/faucet/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @latticexyz/faucet
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
### Minor Changes

packages/faucet/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/faucet",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Faucet API for Lattice testnet",
55
"repository": {
66
"type": "git",

packages/gas-report/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
### Major Changes

packages/gas-report/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@latticexyz/gas-report",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"description": "Gas reporter for specific lines within forge tests",
55
"repository": {
66
"type": "git",

packages/network/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @latticexyz/network
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
## 2.0.0-next.8

packages/network/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "@latticexyz/network",
3-
"version": "2.0.0-next.9",
3+
"version": "2.0.0-next.10",
44
"private": true
55
}

packages/noise/CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Change Log
22

3+
## 2.0.0-next.10
4+
35
## 2.0.0-next.9
46

57
### Major Changes

0 commit comments

Comments
 (0)