Skip to content

Commit

Permalink
Version Packages (#3328)
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 Oct 25, 2024
1 parent d0aea26 commit facdaaf
Show file tree
Hide file tree
Showing 55 changed files with 334 additions and 68 deletions.
5 changes: 0 additions & 5 deletions .changeset/gentle-carrots-kneel.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/little-ways-change.md

This file was deleted.

32 changes: 0 additions & 32 deletions .changeset/twenty-boats-burn.md

This file was deleted.

47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## Version 2.2.14

Release date: Thu Oct 24 2024

### Patch changes

**[fix(cli): support public library methods in modules (#3308)](https://github.com/latticexyz/mud/commit/8eaad304db2fe9ae79f087ec7860928f734039d4)** (@latticexyz/cli)

Added support for deploying public libraries used within modules.

**[fix(cli): support public library methods in modules (#3308)](https://github.com/latticexyz/mud/commit/8eaad304db2fe9ae79f087ec7860928f734039d4)** (@latticexyz/world-module-erc20, @latticexyz/world-modules)

Changed ERC20 and ERC721 related modules to use public library methods instead of manual `delegatecall`s.

**[feat(stash): add useStash and improve other helpers (#3320)](https://github.com/latticexyz/mud/commit/93d0e763cca0facaaa20d7bde861c98c298f08ad)** (@latticexyz/stash)

Added `useStash` React hook. It's heavily inspired by Zustand's `useStore` and accepts a stash, a state selector, an an optional equality function to avoid unnecessary re-render cycles when returning unstable values.

Also updated `getRecord` and `getRecords` to each take either a `stash` or `state` object for more ergonomic use with `useStash`.

```ts
import { useStash } from "@latticexyz/stash/react";
import { getRecord } from "@latticexyz/stash";
import config from "../mud.config";

const tables = config.namespaces.app.tables;

export function PlayerName({ playerId }) {
const record = useStash(stash, (state) => getRecord({ state, table: tables.Player, key: { playerId } }));
...
}
```

```ts
import isEqual from "fast-deep-equal";
import { useStash } from "@latticexyz/stash/react";
import { getRecords } from "@latticexyz/stash";
import config from "../mud.config";

export function PlayerNames() {
const record = useStash(stash, (state) => getRecords({ state, table: tables.Player }), { isEqual });
...
}
```

---

## Version 2.2.13

Release date: Wed Oct 23 2024
Expand Down
47 changes: 47 additions & 0 deletions docs/pages/changelog.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
## Version 2.2.14

Release date: Thu Oct 24 2024

### Patch changes

**[fix(cli): support public library methods in modules (#3308)](https://github.com/latticexyz/mud/commit/8eaad304db2fe9ae79f087ec7860928f734039d4)** (@latticexyz/cli)

Added support for deploying public libraries used within modules.

**[fix(cli): support public library methods in modules (#3308)](https://github.com/latticexyz/mud/commit/8eaad304db2fe9ae79f087ec7860928f734039d4)** (@latticexyz/world-module-erc20, @latticexyz/world-modules)

Changed ERC20 and ERC721 related modules to use public library methods instead of manual `delegatecall`s.

**[feat(stash): add useStash and improve other helpers (#3320)](https://github.com/latticexyz/mud/commit/93d0e763cca0facaaa20d7bde861c98c298f08ad)** (@latticexyz/stash)

Added `useStash` React hook. It's heavily inspired by Zustand's `useStore` and accepts a stash, a state selector, an an optional equality function to avoid unnecessary re-render cycles when returning unstable values.

Also updated `getRecord` and `getRecords` to each take either a `stash` or `state` object for more ergonomic use with `useStash`.

```ts
import { useStash } from "@latticexyz/stash/react";
import { getRecord } from "@latticexyz/stash";
import config from "../mud.config";

const tables = config.namespaces.app.tables;

export function PlayerName({ playerId }) {
const record = useStash(stash, (state) => getRecord({ state, table: tables.Player, key: { playerId } }));
...
}
```

```ts
import isEqual from "fast-deep-equal";
import { useStash } from "@latticexyz/stash/react";
import { getRecords } from "@latticexyz/stash";
import config from "../mud.config";

export function PlayerNames() {
const record = useStash(stash, (state) => getRecords({ state, table: tables.Player }), { isEqual });
...
}
```

---

## Version 2.2.13

Release date: Wed Oct 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.2.14

## 2.2.13

### Patch Changes
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.2.13",
"version": "2.2.14",
"description": "Create TypeScript type declaration files (`.d.ts`) for your ABI JSON files.",
"repository": {
"type": "git",
Expand Down
6 changes: 6 additions & 0 deletions packages/block-logs-stream/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @latticexyz/block-logs-stream

## 2.2.14

### Patch Changes

- @latticexyz/common@2.2.14

## 2.2.13

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

## 2.2.14

### Patch Changes

- 8eaad30: Added support for deploying public libraries used within modules.
- @latticexyz/abi-ts@2.2.14
- @latticexyz/block-logs-stream@2.2.14
- @latticexyz/common@2.2.14
- @latticexyz/config@2.2.14
- @latticexyz/gas-report@2.2.14
- @latticexyz/protocol-parser@2.2.14
- @latticexyz/schema-type@2.2.14
- @latticexyz/store@2.2.14
- @latticexyz/utils@2.2.14
- @latticexyz/world@2.2.14
- @latticexyz/world-module-metadata@2.2.14

## 2.2.13

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

## 2.2.14

### Patch Changes

- @latticexyz/schema-type@2.2.14

## 2.2.13

### Patch 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.2.13",
"version": "2.2.14",
"description": "Common low level logic shared between packages",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.2.14

### Patch Changes

- @latticexyz/common@2.2.14
- @latticexyz/schema-type@2.2.14

## 2.2.13

### 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.2.13",
"version": "2.2.14",
"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.2.14

## 2.2.13

## 2.2.12
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.2.13",
"version": "2.2.14",
"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.2.14

### Patch Changes

- @latticexyz/store-sync@2.2.14
- @latticexyz/common@2.2.14
- @latticexyz/react@2.2.14
- @latticexyz/recs@2.2.14
- @latticexyz/schema-type@2.2.14
- @latticexyz/store@2.2.14
- @latticexyz/utils@2.2.14
- @latticexyz/world@2.2.14

## 2.2.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion 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.2.13",
"version": "2.2.14",
"description": "MUD developer tools",
"repository": {
"type": "git",
Expand Down
13 changes: 13 additions & 0 deletions packages/explorer/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# @latticexyz/explorer

## 2.2.14

### Patch Changes

- @latticexyz/store-sync@2.2.14
- @latticexyz/store-indexer@2.2.14
- @latticexyz/common@2.2.14
- @latticexyz/config@2.2.14
- @latticexyz/protocol-parser@2.2.14
- @latticexyz/schema-type@2.2.14
- @latticexyz/store@2.2.14
- @latticexyz/world@2.2.14

## 2.2.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/explorer",
"version": "2.2.13",
"version": "2.2.14",
"description": "World Explorer is a tool for visually exploring and manipulating the state of worlds",
"type": "module",
"exports": {
Expand Down
6 changes: 6 additions & 0 deletions packages/faucet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @latticexyz/faucet

## 2.2.14

### Patch Changes

- @latticexyz/common@2.2.14

## 2.2.13

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/faucet/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@latticexyz/faucet",
"version": "2.2.13",
"version": "2.2.14",
"description": "Faucet API for Lattice testnet",
"repository": {
"type": "git",
Expand Down
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.2.14

## 2.2.13

### Patch Changes
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.2.13",
"version": "2.2.14",
"description": "Gas reporter for specific lines within forge tests",
"repository": {
"type": "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.2.14

### Patch Changes

- @latticexyz/common@2.2.14
- @latticexyz/config@2.2.14
- @latticexyz/schema-type@2.2.14

## 2.2.13

### Patch 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.2.13",
"version": "2.2.14",
"description": "Parser utilities for the MUD protocol",
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 2.2.14

### Patch Changes

- @latticexyz/recs@2.2.14
- @latticexyz/store@2.2.14

## 2.2.13

### Patch Changes
Expand Down
Loading

0 comments on commit facdaaf

Please sign in to comment.