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 Jul 11, 2023
1 parent c6801b8 commit 86674cd
Show file tree
Hide file tree
Showing 27 changed files with 238 additions and 16 deletions.
39 changes: 39 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"mode": "pre",
"tag": "next",
"initialVersions": {
"@latticexyz/block-logs-stream": "1.42.0",
"@latticexyz/cli": "1.42.0",
"@latticexyz/common": "1.42.0",
"@latticexyz/config": "1.42.0",
"create-mud": "1.42.0",
"@latticexyz/dev-tools": "1.42.0",
"@latticexyz/ecs-browser": "1.42.0",
"@latticexyz/network": "1.42.0",
"@latticexyz/noise": "1.42.0",
"@latticexyz/phaserx": "1.42.0",
"@latticexyz/protocol-parser": "1.42.0",
"@latticexyz/react": "1.42.0",
"@latticexyz/recs": "1.42.0",
"@latticexyz/schema-type": "1.42.0",
"@latticexyz/services": "1.42.0",
"@latticexyz/solecs": "1.42.0",
"solhint-config-mud": "1.42.0",
"solhint-plugin-mud": "1.42.0",
"@latticexyz/std-client": "1.42.0",
"@latticexyz/std-contracts": "1.42.0",
"@latticexyz/store": "1.42.0",
"@latticexyz/store-cache": "1.42.0",
"@latticexyz/store-sync": "1.42.0",
"@latticexyz/utils": "1.42.0",
"@latticexyz/world": "1.42.0"
},
"changesets": [
"eighty-tigers-argue",
"fast-ears-hug",
"many-phones-study",
"nasty-waves-divide",
"strange-candles-shout",
"tricky-frogs-beam"
]
}
52 changes: 52 additions & 0 deletions packages/block-logs-stream/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# @latticexyz/block-logs-stream

## 1.43.0-next.0

### Minor Changes

- [#1070](https://github.com/latticexyz/mud/pull/1070) [`72b80697`](https://github.com/latticexyz/mud/commit/72b806979db6eb2880772193898351d657b94f75) Thanks [@holic](https://github.com/holic)! - Add block logs stream package

```ts
import { filter, map, mergeMap } from "rxjs";
import { createPublicClient, parseAbi } from "viem";
import {
createBlockStream,
isNonPendingBlock,
groupLogsByBlockNumber,
blockRangeToLogs,
} from "@latticexyz/block-logs-stream";

const publicClient = createPublicClient({
// your viem public client config here
});

const latestBlock$ = await createBlockStream({ publicClient, blockTag: "latest" });

const latestBlockNumber$ = latestBlock$.pipe(
filter(isNonPendingBlock),
map((block) => block.number)
);

latestBlockNumber$
.pipe(
map((latestBlockNumber) => ({ startBlock: 0n, endBlock: latestBlockNumber })),
blockRangeToLogs({
publicClient,
address,
events: parseAbi([
"event StoreDeleteRecord(bytes32 table, bytes32[] key)",
"event StoreSetField(bytes32 table, bytes32[] key, uint8 schemaIndex, bytes data)",
"event StoreSetRecord(bytes32 table, bytes32[] key, bytes data)",
"event StoreEphemeralRecord(bytes32 table, bytes32[] key, bytes data)",
]),
}),
mergeMap(({ logs }) => from(groupLogsByBlockNumber(logs)))
)
.subscribe((block) => {
console.log("got events for block", block);
});
```

### Patch Changes

- [#1075](https://github.com/latticexyz/mud/pull/1075) [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9) Thanks [@holic](https://github.com/holic)! - Add store sync package
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": "1.42.0",
"version": "1.43.0-next.0",
"description": "Create a stream of EVM block logs for events",
"repository": {
"type": "git",
Expand Down
9 changes: 9 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9), [`086be4ef`](https://github.com/latticexyz/mud/commit/086be4ef4f3c1ecb3eac0e9554d7d4eb64531fc2)]:
- @latticexyz/store@1.42.1-next.0
- @latticexyz/services@1.42.1-next.0
- @latticexyz/world@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

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": "1.42.0",
"version": "1.42.1-next.0",
"description": "Command line interface for mud",
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions packages/dev-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# @latticexyz/dev-tools

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`e019c776`](https://github.com/latticexyz/mud/commit/e019c77619f0ace6b7ee01f6ce96498446895934)]:
- @latticexyz/network@1.42.1-next.0
- @latticexyz/react@1.42.1-next.0
- @latticexyz/std-client@1.42.1-next.0
- @latticexyz/world@1.42.1-next.0
8 changes: 4 additions & 4 deletions packages/dev-tools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/dev-tools",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "MUD developer tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -49,10 +49,10 @@
"vitest": "0.31.4"
},
"peerDependencies": {
"@latticexyz/network": "*",
"@latticexyz/std-client": "*",
"@latticexyz/network": "1.42.1-next.0",
"@latticexyz/std-client": "1.42.1-next.0",
"@latticexyz/utils": "*",
"@latticexyz/world": "*"
"@latticexyz/world": "1.42.1-next.0"
},
"publishConfig": {
"access": "public"
Expand Down
7 changes: 7 additions & 0 deletions packages/ecs-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies []:
- @latticexyz/std-client@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/ecs-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/ecs-browser",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "Component Browser for RECS",
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions packages/network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- [#1109](https://github.com/latticexyz/mud/pull/1109) [`e019c776`](https://github.com/latticexyz/mud/commit/e019c77619f0ace6b7ee01f6ce96498446895934) Thanks [@Kooshaba](https://github.com/Kooshaba)! - Remove devEmit function when sending network events from SyncWorker because they can't be serialized across the web worker boundary.

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9), [`086be4ef`](https://github.com/latticexyz/mud/commit/086be4ef4f3c1ecb3eac0e9554d7d4eb64531fc2)]:
- @latticexyz/store@1.42.1-next.0
- @latticexyz/services@1.42.1-next.0
- @latticexyz/world@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/network",
"version": "1.42.0",
"version": "1.42.1-next.0",
"repository": {
"type": "git",
"url": "https://github.com/latticexyz/mud.git",
Expand Down
33 changes: 33 additions & 0 deletions packages/protocol-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# @latticexyz/protocol-parser

## 1.43.0-next.0

### Minor Changes

- [#1100](https://github.com/latticexyz/mud/pull/1100) [`b98e5180`](https://github.com/latticexyz/mud/commit/b98e51808aaa29f922ac215cf666cf6049e692d6) Thanks [@alvrs](https://github.com/alvrs)! - feat: add abiTypesToSchema, a util to turn a list of abi types into a Schema by separating static and dynamic types

- [#1111](https://github.com/latticexyz/mud/pull/1111) [`ca50fef8`](https://github.com/latticexyz/mud/commit/ca50fef8108422a121d03571fb4679060bd4891a) Thanks [@alvrs](https://github.com/alvrs)! - feat: add `encodeKeyTuple`, a util to encode key tuples in Typescript (equivalent to key tuple encoding in Solidity and inverse of `decodeKeyTuple`).
Example:

```ts
encodeKeyTuple({ staticFields: ["uint256", "int32", "bytes16", "address", "bool", "int8"], dynamicFields: [] }, [
42n,
-42,
"0x12340000000000000000000000000000",
"0xFFfFfFffFFfffFFfFFfFFFFFffFFFffffFfFFFfF",
true,
3,
]);
// [
// "0x000000000000000000000000000000000000000000000000000000000000002a",
// "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6",
// "0x1234000000000000000000000000000000000000000000000000000000000000",
// "0x000000000000000000000000ffffffffffffffffffffffffffffffffffffffff",
// "0x0000000000000000000000000000000000000000000000000000000000000001",
// "0x0000000000000000000000000000000000000000000000000000000000000003",
// ]
```

### Patch Changes

- [#1075](https://github.com/latticexyz/mud/pull/1075) [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9) Thanks [@holic](https://github.com/holic)! - Add store sync package
2 changes: 1 addition & 1 deletion packages/protocol-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/protocol-parser",
"version": "1.42.0",
"version": "1.43.0-next.0",
"description": "Parser utilities for the MUD protocol",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9)]:
- @latticexyz/store@1.42.1-next.0
- @latticexyz/store-cache@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/react",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "React tools for MUD client.",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/services/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- [#1074](https://github.com/latticexyz/mud/pull/1074) [`086be4ef`](https://github.com/latticexyz/mud/commit/086be4ef4f3c1ecb3eac0e9554d7d4eb64531fc2) Thanks [@alvrs](https://github.com/alvrs)! - fix a bug related to encoding negative bigints in MODE

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/services/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/services",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "MUD services for enhanced interactions with on-chain ECS state",
"repository": {
"type": "git",
Expand Down
11 changes: 11 additions & 0 deletions packages/std-client/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9), [`e019c776`](https://github.com/latticexyz/mud/commit/e019c77619f0ace6b7ee01f6ce96498446895934)]:
- @latticexyz/store@1.42.1-next.0
- @latticexyz/network@1.42.1-next.0
- @latticexyz/cli@1.42.1-next.0
- @latticexyz/store-cache@1.42.1-next.0
- @latticexyz/world@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/std-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/std-client",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "Standard library for MUD client.",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/store-cache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9)]:
- @latticexyz/store@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
2 changes: 1 addition & 1 deletion packages/store-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/store-cache",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "Database to replicate Store contract state on a TypeScript client",
"repository": {
"type": "git",
Expand Down
15 changes: 15 additions & 0 deletions packages/store-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# @latticexyz/store-sync

## 1.43.0-next.0

### Minor Changes

- [#1075](https://github.com/latticexyz/mud/pull/1075) [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9) Thanks [@holic](https://github.com/holic)! - Add store sync package

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9), [`b98e5180`](https://github.com/latticexyz/mud/commit/b98e51808aaa29f922ac215cf666cf6049e692d6), [`ca50fef8`](https://github.com/latticexyz/mud/commit/ca50fef8108422a121d03571fb4679060bd4891a), [`72b80697`](https://github.com/latticexyz/mud/commit/72b806979db6eb2880772193898351d657b94f75)]:
- @latticexyz/block-logs-stream@1.43.0-next.0
- @latticexyz/protocol-parser@1.43.0-next.0
- @latticexyz/store@1.42.1-next.0
- @latticexyz/store-cache@1.42.1-next.0
2 changes: 1 addition & 1 deletion packages/store-sync/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/store-sync",
"version": "1.42.0",
"version": "1.43.0-next.0",
"description": "Utilities to sync MUD Store events with a client or cache",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/store/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- [#1075](https://github.com/latticexyz/mud/pull/1075) [`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9) Thanks [@holic](https://github.com/holic)! - Add store sync package

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/store/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/store",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "Store",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/world/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 1.42.1-next.0

### Patch Changes

- Updated dependencies [[`904fd7d4`](https://github.com/latticexyz/mud/commit/904fd7d4ee06a86e481e3e02fd5744224376d0c9)]:
- @latticexyz/store@1.42.1-next.0

All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

Expand Down
2 changes: 1 addition & 1 deletion packages/world/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/world",
"version": "1.42.0",
"version": "1.42.1-next.0",
"description": "World framework",
"repository": {
"type": "git",
Expand Down

0 comments on commit 86674cd

Please sign in to comment.