feat: Update protos to support new storage unit type in snapchain v0.4.0 (#2625)

## Why is this change needed?

Update protos to support new storage unit type in snapchain v0.4.0

## Merge Checklist

_Choose all relevant options below by adding an `x` now or at any time
before submitting for review_

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [x] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [x] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [ ] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.


<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the versioning of various packages,
enhancing the `StorageUnitType` enumeration with a new type, and
updating dependencies across the project. It also includes changes to
configuration files for better package management.

### Detailed summary
- Updated `@farcaster/core` version to `0.18.3`.
- Updated `@farcaster/hub-nodejs` version to `0.15.3`.
- Updated `@farcaster/hub-web` version to `0.11.3`.
- Added `UNIT_TYPE_2025` to `StorageUnitType` in multiple files.
- Updated changelogs for `core`, `hub-web`, and `hub-nodejs`.
- Updated `PROTO_REV` in `generate-protos.sh`.
- Added `overrides` in `pnpm-workspace.yaml` and `pnpm-lock.yaml`.

>  Ask PR-Codex anything about this PR by commenting with `/codex {your
question}`

<!-- end pr-codex -->
This commit is contained in:
Sanjay
2025-07-09 17:50:35 -07:00
committed by GitHub
parent fa4bf3be50
commit 94eba62b91
12 changed files with 372 additions and 6 deletions

View File

@@ -1,6 +1,6 @@
PROTO_REPO=https://github.com/farcasterxyz/snapchain
PROTO_PATH=src/proto
PROTO_REV=0455a15b0c278a08835b7b58d0b616d263b15f2e # Update this if you want to generate off updated snapchain protos
PROTO_REV=3c5924b1e470fe90ffd82bee4baa2ea39ff7c0a2 # Update this if you want to generate off updated snapchain protos
TMPDIR=tmp-protogen
git clone $PROTO_REPO $TMPDIR

View File

@@ -1,5 +1,11 @@
# @farcaster/core
## 0.18.3
### Patch Changes
- feat: update protos to support new storage unit type in snapchain v0.4.0
## 0.18.2
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@farcaster/core",
"version": "0.18.2",
"version": "0.18.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",

View File

@@ -86,6 +86,7 @@ export function storeTypeToJSON(object: StoreType): string {
export enum StorageUnitType {
UNIT_TYPE_LEGACY = 0,
UNIT_TYPE_2024 = 1,
UNIT_TYPE_2025 = 2,
}
export function storageUnitTypeFromJSON(object: any): StorageUnitType {
@@ -96,6 +97,9 @@ export function storageUnitTypeFromJSON(object: any): StorageUnitType {
case 1:
case "UNIT_TYPE_2024":
return StorageUnitType.UNIT_TYPE_2024;
case 2:
case "UNIT_TYPE_2025":
return StorageUnitType.UNIT_TYPE_2025;
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}
@@ -107,6 +111,8 @@ export function storageUnitTypeToJSON(object: StorageUnitType): string {
return "UNIT_TYPE_LEGACY";
case StorageUnitType.UNIT_TYPE_2024:
return "UNIT_TYPE_2024";
case StorageUnitType.UNIT_TYPE_2025:
return "UNIT_TYPE_2025";
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}

View File

@@ -1,5 +1,13 @@
# @farcaster/hub-nodejs
## 0.15.3
### Patch Changes
- feat: update protos to support new storage unit type in snapchain v0.4.0
- Updated dependencies
- @farcaster/core@0.18.3
## 0.15.2
### Patch Changes

View File

@@ -0,0 +1,324 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
overrides:
'@farcaster/hub-nodejs': link:../..
importers:
.:
dependencies:
'@farcaster/hub-nodejs':
specifier: link:../..
version: link:../..
devDependencies:
tsx:
specifier: ^4.20.3
version: 4.20.3
typescript:
specifier: ^5.0.0
version: 5.8.3
packages:
'@esbuild/aix-ppc64@0.25.5':
resolution: {integrity: sha512-9o3TMmpmftaCMepOdA5k/yDw8SfInyzWWTjYTFCX3kPSDJMROQTb8jg+h9Cnwnmm1vOzvxN7gIfB5V2ewpjtGA==}
engines: {node: '>=18'}
cpu: [ppc64]
os: [aix]
'@esbuild/android-arm64@0.25.5':
resolution: {integrity: sha512-VGzGhj4lJO+TVGV1v8ntCZWJktV7SGCs3Pn1GRWI1SBFtRALoomm8k5E9Pmwg3HOAal2VDc2F9+PM/rEY6oIDg==}
engines: {node: '>=18'}
cpu: [arm64]
os: [android]
'@esbuild/android-arm@0.25.5':
resolution: {integrity: sha512-AdJKSPeEHgi7/ZhuIPtcQKr5RQdo6OO2IL87JkianiMYMPbCtot9fxPbrMiBADOWWm3T2si9stAiVsGbTQFkbA==}
engines: {node: '>=18'}
cpu: [arm]
os: [android]
'@esbuild/android-x64@0.25.5':
resolution: {integrity: sha512-D2GyJT1kjvO//drbRT3Hib9XPwQeWd9vZoBJn+bu/lVsOZ13cqNdDeqIF/xQ5/VmWvMduP6AmXvylO/PIc2isw==}
engines: {node: '>=18'}
cpu: [x64]
os: [android]
'@esbuild/darwin-arm64@0.25.5':
resolution: {integrity: sha512-GtaBgammVvdF7aPIgH2jxMDdivezgFu6iKpmT+48+F8Hhg5J/sfnDieg0aeG/jfSvkYQU2/pceFPDKlqZzwnfQ==}
engines: {node: '>=18'}
cpu: [arm64]
os: [darwin]
'@esbuild/darwin-x64@0.25.5':
resolution: {integrity: sha512-1iT4FVL0dJ76/q1wd7XDsXrSW+oLoquptvh4CLR4kITDtqi2e/xwXwdCVH8hVHU43wgJdsq7Gxuzcs6Iq/7bxQ==}
engines: {node: '>=18'}
cpu: [x64]
os: [darwin]
'@esbuild/freebsd-arm64@0.25.5':
resolution: {integrity: sha512-nk4tGP3JThz4La38Uy/gzyXtpkPW8zSAmoUhK9xKKXdBCzKODMc2adkB2+8om9BDYugz+uGV7sLmpTYzvmz6Sw==}
engines: {node: '>=18'}
cpu: [arm64]
os: [freebsd]
'@esbuild/freebsd-x64@0.25.5':
resolution: {integrity: sha512-PrikaNjiXdR2laW6OIjlbeuCPrPaAl0IwPIaRv+SMV8CiM8i2LqVUHFC1+8eORgWyY7yhQY+2U2fA55mBzReaw==}
engines: {node: '>=18'}
cpu: [x64]
os: [freebsd]
'@esbuild/linux-arm64@0.25.5':
resolution: {integrity: sha512-Z9kfb1v6ZlGbWj8EJk9T6czVEjjq2ntSYLY2cw6pAZl4oKtfgQuS4HOq41M/BcoLPzrUbNd+R4BXFyH//nHxVg==}
engines: {node: '>=18'}
cpu: [arm64]
os: [linux]
'@esbuild/linux-arm@0.25.5':
resolution: {integrity: sha512-cPzojwW2okgh7ZlRpcBEtsX7WBuqbLrNXqLU89GxWbNt6uIg78ET82qifUy3W6OVww6ZWobWub5oqZOVtwolfw==}
engines: {node: '>=18'}
cpu: [arm]
os: [linux]
'@esbuild/linux-ia32@0.25.5':
resolution: {integrity: sha512-sQ7l00M8bSv36GLV95BVAdhJ2QsIbCuCjh/uYrWiMQSUuV+LpXwIqhgJDcvMTj+VsQmqAHL2yYaasENvJ7CDKA==}
engines: {node: '>=18'}
cpu: [ia32]
os: [linux]
'@esbuild/linux-loong64@0.25.5':
resolution: {integrity: sha512-0ur7ae16hDUC4OL5iEnDb0tZHDxYmuQyhKhsPBV8f99f6Z9KQM02g33f93rNH5A30agMS46u2HP6qTdEt6Q1kg==}
engines: {node: '>=18'}
cpu: [loong64]
os: [linux]
'@esbuild/linux-mips64el@0.25.5':
resolution: {integrity: sha512-kB/66P1OsHO5zLz0i6X0RxlQ+3cu0mkxS3TKFvkb5lin6uwZ/ttOkP3Z8lfR9mJOBk14ZwZ9182SIIWFGNmqmg==}
engines: {node: '>=18'}
cpu: [mips64el]
os: [linux]
'@esbuild/linux-ppc64@0.25.5':
resolution: {integrity: sha512-UZCmJ7r9X2fe2D6jBmkLBMQetXPXIsZjQJCjgwpVDz+YMcS6oFR27alkgGv3Oqkv07bxdvw7fyB71/olceJhkQ==}
engines: {node: '>=18'}
cpu: [ppc64]
os: [linux]
'@esbuild/linux-riscv64@0.25.5':
resolution: {integrity: sha512-kTxwu4mLyeOlsVIFPfQo+fQJAV9mh24xL+y+Bm6ej067sYANjyEw1dNHmvoqxJUCMnkBdKpvOn0Ahql6+4VyeA==}
engines: {node: '>=18'}
cpu: [riscv64]
os: [linux]
'@esbuild/linux-s390x@0.25.5':
resolution: {integrity: sha512-K2dSKTKfmdh78uJ3NcWFiqyRrimfdinS5ErLSn3vluHNeHVnBAFWC8a4X5N+7FgVE1EjXS1QDZbpqZBjfrqMTQ==}
engines: {node: '>=18'}
cpu: [s390x]
os: [linux]
'@esbuild/linux-x64@0.25.5':
resolution: {integrity: sha512-uhj8N2obKTE6pSZ+aMUbqq+1nXxNjZIIjCjGLfsWvVpy7gKCOL6rsY1MhRh9zLtUtAI7vpgLMK6DxjO8Qm9lJw==}
engines: {node: '>=18'}
cpu: [x64]
os: [linux]
'@esbuild/netbsd-arm64@0.25.5':
resolution: {integrity: sha512-pwHtMP9viAy1oHPvgxtOv+OkduK5ugofNTVDilIzBLpoWAM16r7b/mxBvfpuQDpRQFMfuVr5aLcn4yveGvBZvw==}
engines: {node: '>=18'}
cpu: [arm64]
os: [netbsd]
'@esbuild/netbsd-x64@0.25.5':
resolution: {integrity: sha512-WOb5fKrvVTRMfWFNCroYWWklbnXH0Q5rZppjq0vQIdlsQKuw6mdSihwSo4RV/YdQ5UCKKvBy7/0ZZYLBZKIbwQ==}
engines: {node: '>=18'}
cpu: [x64]
os: [netbsd]
'@esbuild/openbsd-arm64@0.25.5':
resolution: {integrity: sha512-7A208+uQKgTxHd0G0uqZO8UjK2R0DDb4fDmERtARjSHWxqMTye4Erz4zZafx7Di9Cv+lNHYuncAkiGFySoD+Mw==}
engines: {node: '>=18'}
cpu: [arm64]
os: [openbsd]
'@esbuild/openbsd-x64@0.25.5':
resolution: {integrity: sha512-G4hE405ErTWraiZ8UiSoesH8DaCsMm0Cay4fsFWOOUcz8b8rC6uCvnagr+gnioEjWn0wC+o1/TAHt+It+MpIMg==}
engines: {node: '>=18'}
cpu: [x64]
os: [openbsd]
'@esbuild/sunos-x64@0.25.5':
resolution: {integrity: sha512-l+azKShMy7FxzY0Rj4RCt5VD/q8mG/e+mDivgspo+yL8zW7qEwctQ6YqKX34DTEleFAvCIUviCFX1SDZRSyMQA==}
engines: {node: '>=18'}
cpu: [x64]
os: [sunos]
'@esbuild/win32-arm64@0.25.5':
resolution: {integrity: sha512-O2S7SNZzdcFG7eFKgvwUEZ2VG9D/sn/eIiz8XRZ1Q/DO5a3s76Xv0mdBzVM5j5R639lXQmPmSo0iRpHqUUrsxw==}
engines: {node: '>=18'}
cpu: [arm64]
os: [win32]
'@esbuild/win32-ia32@0.25.5':
resolution: {integrity: sha512-onOJ02pqs9h1iMJ1PQphR+VZv8qBMQ77Klcsqv9CNW2w6yLqoURLcgERAIurY6QE63bbLuqgP9ATqajFLK5AMQ==}
engines: {node: '>=18'}
cpu: [ia32]
os: [win32]
'@esbuild/win32-x64@0.25.5':
resolution: {integrity: sha512-TXv6YnJ8ZMVdX+SXWVBo/0p8LTcrUYngpWjvm91TMjjBQii7Oz11Lw5lbDV5Y0TzuhSJHwiH4hEtC1I42mMS0g==}
engines: {node: '>=18'}
cpu: [x64]
os: [win32]
esbuild@0.25.5:
resolution: {integrity: sha512-P8OtKZRv/5J5hhz0cUAdu/cLuPIKXpQl1R9pZtvmHWQvrAUVd0UNIPT4IB4W3rNOqVO0rlqHmCIbSwxh/c9yUQ==}
engines: {node: '>=18'}
hasBin: true
fsevents@2.3.3:
resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
os: [darwin]
get-tsconfig@4.10.1:
resolution: {integrity: sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==}
resolve-pkg-maps@1.0.0:
resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==}
tsx@4.20.3:
resolution: {integrity: sha512-qjbnuR9Tr+FJOMBqJCW5ehvIo/buZq7vH7qD7JziU98h6l3qGy0a/yPFjwO+y0/T7GFpNgNAvEcPPVfyT8rrPQ==}
engines: {node: '>=18.0.0'}
hasBin: true
typescript@5.8.3:
resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==}
engines: {node: '>=14.17'}
hasBin: true
snapshots:
'@esbuild/aix-ppc64@0.25.5':
optional: true
'@esbuild/android-arm64@0.25.5':
optional: true
'@esbuild/android-arm@0.25.5':
optional: true
'@esbuild/android-x64@0.25.5':
optional: true
'@esbuild/darwin-arm64@0.25.5':
optional: true
'@esbuild/darwin-x64@0.25.5':
optional: true
'@esbuild/freebsd-arm64@0.25.5':
optional: true
'@esbuild/freebsd-x64@0.25.5':
optional: true
'@esbuild/linux-arm64@0.25.5':
optional: true
'@esbuild/linux-arm@0.25.5':
optional: true
'@esbuild/linux-ia32@0.25.5':
optional: true
'@esbuild/linux-loong64@0.25.5':
optional: true
'@esbuild/linux-mips64el@0.25.5':
optional: true
'@esbuild/linux-ppc64@0.25.5':
optional: true
'@esbuild/linux-riscv64@0.25.5':
optional: true
'@esbuild/linux-s390x@0.25.5':
optional: true
'@esbuild/linux-x64@0.25.5':
optional: true
'@esbuild/netbsd-arm64@0.25.5':
optional: true
'@esbuild/netbsd-x64@0.25.5':
optional: true
'@esbuild/openbsd-arm64@0.25.5':
optional: true
'@esbuild/openbsd-x64@0.25.5':
optional: true
'@esbuild/sunos-x64@0.25.5':
optional: true
'@esbuild/win32-arm64@0.25.5':
optional: true
'@esbuild/win32-ia32@0.25.5':
optional: true
'@esbuild/win32-x64@0.25.5':
optional: true
esbuild@0.25.5:
optionalDependencies:
'@esbuild/aix-ppc64': 0.25.5
'@esbuild/android-arm': 0.25.5
'@esbuild/android-arm64': 0.25.5
'@esbuild/android-x64': 0.25.5
'@esbuild/darwin-arm64': 0.25.5
'@esbuild/darwin-x64': 0.25.5
'@esbuild/freebsd-arm64': 0.25.5
'@esbuild/freebsd-x64': 0.25.5
'@esbuild/linux-arm': 0.25.5
'@esbuild/linux-arm64': 0.25.5
'@esbuild/linux-ia32': 0.25.5
'@esbuild/linux-loong64': 0.25.5
'@esbuild/linux-mips64el': 0.25.5
'@esbuild/linux-ppc64': 0.25.5
'@esbuild/linux-riscv64': 0.25.5
'@esbuild/linux-s390x': 0.25.5
'@esbuild/linux-x64': 0.25.5
'@esbuild/netbsd-arm64': 0.25.5
'@esbuild/netbsd-x64': 0.25.5
'@esbuild/openbsd-arm64': 0.25.5
'@esbuild/openbsd-x64': 0.25.5
'@esbuild/sunos-x64': 0.25.5
'@esbuild/win32-arm64': 0.25.5
'@esbuild/win32-ia32': 0.25.5
'@esbuild/win32-x64': 0.25.5
fsevents@2.3.3:
optional: true
get-tsconfig@4.10.1:
dependencies:
resolve-pkg-maps: 1.0.0
resolve-pkg-maps@1.0.0: {}
tsx@4.20.3:
dependencies:
esbuild: 0.25.5
get-tsconfig: 4.10.1
optionalDependencies:
fsevents: 2.3.3
typescript@5.8.3: {}

View File

@@ -0,0 +1,2 @@
overrides:
'@farcaster/hub-nodejs': link:../..

View File

@@ -1,6 +1,6 @@
{
"name": "@farcaster/hub-nodejs",
"version": "0.15.2",
"version": "0.15.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -20,7 +20,7 @@
"url": "https://github.com/farcasterxyz/hub-monorepo/blob/main/packages/hub-nodejs"
},
"dependencies": {
"@farcaster/core": "0.18.2",
"@farcaster/core": "0.18.3",
"@grpc/grpc-js": "~1.11.1",
"@noble/hashes": "^1.3.0",
"neverthrow": "^6.0.0"

View File

@@ -86,6 +86,7 @@ export function storeTypeToJSON(object: StoreType): string {
export enum StorageUnitType {
UNIT_TYPE_LEGACY = 0,
UNIT_TYPE_2024 = 1,
UNIT_TYPE_2025 = 2,
}
export function storageUnitTypeFromJSON(object: any): StorageUnitType {
@@ -96,6 +97,9 @@ export function storageUnitTypeFromJSON(object: any): StorageUnitType {
case 1:
case "UNIT_TYPE_2024":
return StorageUnitType.UNIT_TYPE_2024;
case 2:
case "UNIT_TYPE_2025":
return StorageUnitType.UNIT_TYPE_2025;
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}
@@ -107,6 +111,8 @@ export function storageUnitTypeToJSON(object: StorageUnitType): string {
return "UNIT_TYPE_LEGACY";
case StorageUnitType.UNIT_TYPE_2024:
return "UNIT_TYPE_2024";
case StorageUnitType.UNIT_TYPE_2025:
return "UNIT_TYPE_2025";
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}

View File

@@ -1,5 +1,13 @@
# @farcaster/hub-web
## 0.11.3
### Patch Changes
- feat: update protos to support new storage unit type in snapchain v0.4.0
- Updated dependencies
- @farcaster/core@0.18.3
## 0.11.2
### Patch Changes

View File

@@ -1,6 +1,6 @@
{
"name": "@farcaster/hub-web",
"version": "0.11.2",
"version": "0.11.3",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
"ts-proto": "^1.146.0"
},
"dependencies": {
"@farcaster/core": "^0.18.2",
"@farcaster/core": "^0.18.3",
"@improbable-eng/grpc-web": "^0.15.0",
"rxjs": "^7.8.0"
}

View File

@@ -86,6 +86,7 @@ export function storeTypeToJSON(object: StoreType): string {
export enum StorageUnitType {
UNIT_TYPE_LEGACY = 0,
UNIT_TYPE_2024 = 1,
UNIT_TYPE_2025 = 2,
}
export function storageUnitTypeFromJSON(object: any): StorageUnitType {
@@ -96,6 +97,9 @@ export function storageUnitTypeFromJSON(object: any): StorageUnitType {
case 1:
case "UNIT_TYPE_2024":
return StorageUnitType.UNIT_TYPE_2024;
case 2:
case "UNIT_TYPE_2025":
return StorageUnitType.UNIT_TYPE_2025;
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}
@@ -107,6 +111,8 @@ export function storageUnitTypeToJSON(object: StorageUnitType): string {
return "UNIT_TYPE_LEGACY";
case StorageUnitType.UNIT_TYPE_2024:
return "UNIT_TYPE_2024";
case StorageUnitType.UNIT_TYPE_2025:
return "UNIT_TYPE_2025";
default:
throw new tsProtoGlobalThis.Error("Unrecognized enum value " + object + " for enum StorageUnitType");
}