Skip to content

Commit

Permalink
Version Packages (next) (#1349)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Aug 23, 2023
1 parent c03aff3 commit 57ee7f9
Show file tree
Hide file tree
Showing 56 changed files with 395 additions and 33 deletions.
8 changes: 8 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,14 @@
"changesets": [
"afraid-hotels-bathe",
"big-goats-prove",
"brave-needles-love",
"brave-rings-tickle",
"brown-icons-burn",
"chilled-chicken-repair",
"cool-snakes-reply",
"dirty-items-retire",
"eighty-tigers-argue",
"empty-planes-kiss",
"fast-ears-hug",
"few-mirrors-reflect",
"fifty-squids-eat",
Expand All @@ -48,6 +53,7 @@
"grumpy-geckos-raise",
"itchy-kids-relax",
"itchy-shoes-appear",
"khaki-doors-refuse",
"large-hats-walk",
"large-sloths-camp",
"late-geese-guess",
Expand All @@ -57,6 +63,7 @@
"many-phones-study",
"mean-pans-study",
"metal-cats-double",
"metal-wombats-judge",
"modern-bikes-build",
"modern-hornets-jam",
"nasty-waves-divide",
Expand All @@ -77,6 +84,7 @@
"smooth-pots-nail",
"soft-boxes-smile",
"soft-dryers-invite",
"spicy-bees-teach",
"spotty-cups-destroy",
"spotty-sheep-warn",
"stale-cooks-reflect",
Expand Down
76 changes: 76 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,79 @@
# Version 2.0.0-next.4

## Major changes

**[docs: changeset for deleted network package (#1348)](https://github.com/latticexyz/mud/commit/42c7d898630c93805a5e345bdc8d87c2674b5110)** (@latticexyz/network)

Removes `network` package. Please see the [changelog](https://mud.dev/changelog) for how to migrate your app to the new `store-sync` package. Or create a new project from an up-to-date template with `pnpm create mud@next your-app-name`.

**[chore: delete std-contracts package (#1341)](https://github.com/latticexyz/mud/commit/c32c8e8f2ccac02c4242f715f296bffd5465bd71)** (@latticexyz/cli, @latticexyz/std-contracts)

Removes `std-contracts` package. These were v1 contracts, now entirely replaced by our v2 tooling. See the [MUD docs](https://mud.dev/) for building with v2 or create a new project from our v2 templates with `pnpm create mud@next your-app-name`.

**[chore: delete solecs package (#1340)](https://github.com/latticexyz/mud/commit/ce7125a1b97efd3db47c5ea1593d5a37ba143f64)** (@latticexyz/cli, @latticexyz/recs, @latticexyz/solecs, @latticexyz/std-client)

Removes `solecs` package. These were v1 contracts, now entirely replaced by our v2 tooling. See the [MUD docs](https://mud.dev/) for building with v2 or create a new project from our v2 templates with `pnpm create mud@next your-app-name`.

**[feat(recs,std-client): move action system to recs (#1351)](https://github.com/latticexyz/mud/commit/c14f8bf1ec8c199902c12899853ac144aa69bb9c)** (@latticexyz/recs, @latticexyz/std-client)

- Moved `createActionSystem` from `std-client` to `recs` package and updated it to better support v2 sync stack.

If you want to use `createActionSystem` alongside `syncToRecs`, you'll need to pass in arguments like so:

```ts
import { syncToRecs } from "@latticexyz/store-sync/recs";
import { createActionSystem } from "@latticexyz/recs/deprecated";
import { from, mergeMap } from "rxjs";

const { blockLogsStorage$, waitForTransaction } = syncToRecs({
world,
...
});

const txReduced$ = blockLogsStorage$.pipe(
mergeMap(({ operations }) => from(operations.map((op) => op.log?.transactionHash).filter(isDefined)))
);

const actionSystem = createActionSystem(world, txReduced$, waitForTransaction);
```

- Fixed a bug in `waitForComponentValueIn` that caused the promise to not resolve if the component value was already set when the function was called.

- Fixed a bug in `createActionSystem` that caused optimistic updates to be incorrectly propagated to requirement checks. To fix the bug, you must now pass in the full component object to the action's `updates` instead of just the component name.

```diff
actions.add({
updates: () => [
{
- component: "Resource",
+ component: Resource,
...
}
],
...
});
```

**[chore: delete std-client package (#1342)](https://github.com/latticexyz/mud/commit/c03aff39e9882c8a827a3ed1ee81816231973816)** (@latticexyz/std-client)

Removes `std-client` package. Please see the [changelog](https://mud.dev/changelog) for how to migrate your app to the new `store-sync` package. Or create a new project from an up-to-date template with `pnpm create mud@next your-app-name`.

**[chore: delete ecs-browser package (#1339)](https://github.com/latticexyz/mud/commit/6255a314240b1d36a8735f3dc7eb1672e16bac1a)** (@latticexyz/ecs-browser)

Removes `ecs-browser` package. This has now been replaced by `dev-tools`, which comes out-of-the-box when creating a new MUD app from the templates (`pnpm create mud@next your-app-name`). We'll be adding deeper RECS support (querying for entities) in a future release.

**[chore: delete store-cache package (#1343)](https://github.com/latticexyz/mud/commit/e3de1a338fe110ac33ba9fb833366541e4cf4cf1)** (@latticexyz/store-cache)

Removes `store-cache` package. Please see the [changelog](https://mud.dev/changelog) for how to migrate your app to the new `store-sync` package. Or create a new project from an up-to-date template with `pnpm create mud@next your-app-name`.

If you need reactivity, we recommend using `recs` package and `syncToRecs`. We'll be adding reactivity to `syncToSqlite` in a future release.

**[chore: delete store-cache package (#1343)](https://github.com/latticexyz/mud/commit/e3de1a338fe110ac33ba9fb833366541e4cf4cf1)** (@latticexyz/react)

Removes `useRow` and `useRows` hooks, previously powered by `store-cache`, which is now deprecated. Please use `recs` and the corresponding `useEntityQuery` and `useComponentValue` hooks. We'll have more hooks soon for SQL.js sync backends.

---

# Version 2.0.0-next.3

## Major changes
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.4

### Patch Changes

- Updated dependencies []:
- @latticexyz/common@2.0.0-next.4
- @latticexyz/config@2.0.0-next.4
- @latticexyz/schema-type@2.0.0-next.4

## 2.0.0-next.3

### 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.3",
"version": "2.0.0-next.4",
"description": "Create a stream of EVM block logs for events",
"repository": {
"type": "git",
Expand Down
19 changes: 19 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Change Log

## 2.0.0-next.4

### Patch Changes

- [#1341](https://github.com/latticexyz/mud/pull/1341) [`c32c8e8f`](https://github.com/latticexyz/mud/commit/c32c8e8f2ccac02c4242f715f296bffd5465bd71) Thanks [@holic](https://github.com/holic)! - Removes `std-contracts` package. These were v1 contracts, now entirely replaced by our v2 tooling. See the [MUD docs](https://mud.dev/) for building with v2 or create a new project from our v2 templates with `pnpm create mud@next your-app-name`.

- [#1340](https://github.com/latticexyz/mud/pull/1340) [`ce7125a1`](https://github.com/latticexyz/mud/commit/ce7125a1b97efd3db47c5ea1593d5a37ba143f64) Thanks [@holic](https://github.com/holic)! - Removes `solecs` package. These were v1 contracts, now entirely replaced by our v2 tooling. See the [MUD docs](https://mud.dev/) for building with v2 or create a new project from our v2 templates with `pnpm create mud@next your-app-name`.

- Updated dependencies []:
- @latticexyz/common@2.0.0-next.4
- @latticexyz/config@2.0.0-next.4
- @latticexyz/gas-report@2.0.0-next.4
- @latticexyz/protocol-parser@2.0.0-next.4
- @latticexyz/schema-type@2.0.0-next.4
- @latticexyz/services@2.0.0-next.4
- @latticexyz/store@2.0.0-next.4
- @latticexyz/utils@2.0.0-next.4
- @latticexyz/world@2.0.0-next.4

## 2.0.0-next.3

### 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.3",
"version": "2.0.0-next.4",
"description": "Command line interface for mud",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.0.0-next.4

### Patch Changes

- Updated dependencies []:
- @latticexyz/schema-type@2.0.0-next.4

## 2.0.0-next.3

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/common",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "Common low level logic shared between packages",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 2.0.0-next.4

### Patch Changes

- Updated dependencies []:
- @latticexyz/common@2.0.0-next.4
- @latticexyz/schema-type@2.0.0-next.4

## 2.0.0-next.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/config",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "Config for Store and World",
"repository": {
"type": "git",
Expand Down
2 changes: 2 additions & 0 deletions packages/create-mud/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 2.0.0-next.4

## 2.0.0-next.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-mud/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-mud",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "Create a new MUD project",
"license": "MIT",
"author": "Lattice <[email protected]>",
Expand Down
13 changes: 13 additions & 0 deletions packages/dev-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @latticexyz/dev-tools

## 2.0.0-next.4

### Patch Changes

- Updated dependencies [[`ce7125a1`](https://github.com/latticexyz/mud/commit/ce7125a1b97efd3db47c5ea1593d5a37ba143f64), [`c14f8bf1`](https://github.com/latticexyz/mud/commit/c14f8bf1ec8c199902c12899853ac144aa69bb9c), [`e3de1a33`](https://github.com/latticexyz/mud/commit/e3de1a338fe110ac33ba9fb833366541e4cf4cf1)]:
- @latticexyz/recs@2.0.0-next.4
- @latticexyz/react@2.0.0-next.4
- @latticexyz/store-sync@2.0.0-next.4
- @latticexyz/common@2.0.0-next.4
- @latticexyz/store@2.0.0-next.4
- @latticexyz/utils@2.0.0-next.4
- @latticexyz/world@2.0.0-next.4

## 2.0.0-next.3

### Patch Changes
Expand Down
14 changes: 7 additions & 7 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": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "MUD developer tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -50,12 +50,12 @@
"vitest": "0.31.4"
},
"peerDependencies": {
"@latticexyz/common": "2.0.0-next.3",
"@latticexyz/recs": "2.0.0-next.3",
"@latticexyz/store": "2.0.0-next.3",
"@latticexyz/store-sync": "2.0.0-next.3",
"@latticexyz/utils": "2.0.0-next.3",
"@latticexyz/world": "2.0.0-next.3"
"@latticexyz/common": "2.0.0-next.4",
"@latticexyz/recs": "2.0.0-next.4",
"@latticexyz/store": "2.0.0-next.4",
"@latticexyz/store-sync": "2.0.0-next.4",
"@latticexyz/utils": "2.0.0-next.4",
"@latticexyz/world": "2.0.0-next.4"
},
"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
@@ -0,0 +1,7 @@
# @latticexyz/ecs-browser

## 2.0.0-next.4

### Major Changes

- [#1339](https://github.com/latticexyz/mud/pull/1339) [`6255a314`](https://github.com/latticexyz/mud/commit/6255a314240b1d36a8735f3dc7eb1672e16bac1a) Thanks [@holic](https://github.com/holic)! - Removes `ecs-browser` package. This has now been replaced by `dev-tools`, which comes out-of-the-box when creating a new MUD app from the templates (`pnpm create mud@next your-app-name`). We'll be adding deeper RECS support (querying for entities) in a future release.
2 changes: 1 addition & 1 deletion packages/ecs-browser/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@latticexyz/ecs-browser",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"private": true
}
2 changes: 2 additions & 0 deletions packages/gas-report/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 2.0.0-next.4

## 2.0.0-next.3

## 2.0.0-next.2
Expand Down
2 changes: 1 addition & 1 deletion packages/gas-report/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/gas-report",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "Gas reporter for specific lines within forge tests",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/network/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# @latticexyz/network

## 2.0.0-next.4

### Major Changes

- [#1348](https://github.com/latticexyz/mud/pull/1348) [`42c7d898`](https://github.com/latticexyz/mud/commit/42c7d898630c93805a5e345bdc8d87c2674b5110) Thanks [@holic](https://github.com/holic)! - Removes `network` package. Please see the [changelog](https://mud.dev/changelog) for how to migrate your app to the new `store-sync` package. Or create a new project from an up-to-date template with `pnpm create mud@next your-app-name`.

## 2.0.0-next.3
2 changes: 1 addition & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@latticexyz/network",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"private": true
}
2 changes: 2 additions & 0 deletions packages/noise/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 2.0.0-next.4

## 2.0.0-next.3

## 2.0.0-next.2
Expand Down
2 changes: 1 addition & 1 deletion packages/noise/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/noise",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"license": "MIT",
"type": "module",
"exports": {
Expand Down
7 changes: 7 additions & 0 deletions packages/phaserx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.0.0-next.4

### Patch Changes

- Updated dependencies []:
- @latticexyz/utils@2.0.0-next.4

## 2.0.0-next.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/phaserx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/phaserx",
"version": "2.0.0-next.3",
"version": "2.0.0-next.4",
"repository": {
"type": "git",
"url": "https://github.com/latticexyz/mud.git",
Expand Down
8 changes: 8 additions & 0 deletions packages/protocol-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @latticexyz/protocol-parser

## 2.0.0-next.4

### Patch Changes

- Updated dependencies []:
- @latticexyz/common@2.0.0-next.4
- @latticexyz/schema-type@2.0.0-next.4

## 2.0.0-next.3

### Major Changes
Expand Down
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": "2.0.0-next.3",
"version": "2.0.0-next.4",
"description": "Parser utilities for the MUD protocol",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 57ee7f9

Please sign in to comment.