Commit Graph

1780 Commits

Author SHA1 Message Date
Aditi Srinivasan
ff02ea884d chore: release new packages (#2605)
## Why is this change needed?

Release new versions of all packages. 

## 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 versions of various packages in the
`@farcaster` ecosystem, along with minor changes and enhancements
related to client library generation and type guards.

### Detailed summary
- Updated `@farcaster/core` version from `0.17.1` to `0.18.0`.
- Updated `@farcaster/hub-web` version from `0.10.0` to `0.11.0`.
- Updated `@farcaster/shuttle` version from `0.6.18` to `0.7.0`.
- Updated `@farcaster/hub-nodejs` version from `0.14.1` to `0.15.0`.
- Added changelog entries for versions `0.18.0`, `0.11.0`, `0.15.0`, and
`0.7.0`.
- Included minor changes for client library generation and type guards
for `BlockConfirmed` event.

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

<!-- end pr-codex -->
@farcaster/core@0.18.0 @farcaster/hub-nodejs@0.15.0 @farcaster/hub-web@0.11.0 @farcaster/shuttle@0.7.0
2025-06-23 19:13:38 -04:00
Aditi Srinivasan
56cf1302df chore: switch to generating client libraries off snapchain protos (#2603)
## Why is this change needed?

This eliminates the need to keep 2 sets of protos in sync with one
another. Generated files should be backwards compatible because we've
kept the protos in sync so far.

Some material updates
- Snapchain doesn't have the bulk streaming rpcs we used for
reconciliation in hubs. Deleted all the shuttle code that depends on
these rpcs
- In the Snapchain protos, admin rpcs are specified in a different
proto. This caused some small amount of churn.
- The admin rpcs in snapchain do not mirror the admin rpcs on hubs. 

## 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 removing outdated `.proto` files and updating the
generation of client libraries from new `snapchain` protobufs. It also
introduces type guards for the `BlockConfirmed` event and modifies
various message structures in the codebase.

### Detailed summary
- Deleted outdated `.proto` files in `protobufs/schemas`.
- Updated `package.json` scripts to generate clients from `snapchain`
instead of local schemas.
- Added type guards for `BlockConfirmed` events in `typeguards.ts`.
- Modified message structures to include `BlockConfirmedBody`.
- Updated comments for clarity in `message.ts`.
- Refactored `MessageReconciliation` class to remove streaming logic.
- Introduced new methods for handling on-chain events in `admin_rpc.ts`.

> The following files were skipped due to too many changes:
`packages/hub-web/src/generated/hub_event.ts`,
`packages/hub-nodejs/src/generated/hub_event.ts`,
`packages/core/src/protobufs/generated/hub_event.ts`,
`packages/hub-web/src/generated/rpc.ts`,
`packages/core/src/protobufs/generated/gossip.ts`,
`packages/hub-nodejs/src/generated/rpc.ts`,
`packages/hub-web/src/generated/blocks.ts`,
`packages/hub-nodejs/src/generated/blocks.ts`,
`packages/core/src/protobufs/generated/blocks.ts`,
`packages/hub-web/src/generated/request_response.ts`,
`packages/hub-nodejs/src/generated/request_response.ts`,
`packages/core/src/protobufs/generated/request_response.ts`

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

<!-- end pr-codex -->
2025-06-23 18:13:14 -04:00
Sanjay
d747f38e36 fix: shuttle should respect validate messages flag everywhere (#2602)
## Why is this change needed?

Shuttle was ignoring the should validate flag when reconciling link
compact state messages

## 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 version of the `@farcaster/shuttle`
package and making a modification in the `hubEventProcessor.ts` file to
include a new parameter in a function call, enhancing the validation of
messages.

### Detailed summary
- Updated `version` in `package.json` from `0.6.17` to `0.6.18`.
- Added a new entry in `CHANGELOG.md` for version `0.6.18`, noting a fix
for respecting validate messages flag.
- Modified the function call in `hubEventProcessor.ts` to include
`shouldValidate` as an additional argument in
`MessageProcessor.deleteDifferenceMessages`.

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

<!-- end pr-codex -->
@farcaster/shuttle@0.6.18
2025-06-20 21:02:30 +00:00
Sanjay
ecce6019d1 chore: Release client library and shuttle (#2600)
## Why is this change needed?

Release client and shuttle some snapchain bug fixes

## 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 versions of various packages and fixing
issues related to event timestamp calculations and type guards in the
`@farcaster/core` and `@farcaster/hub-nodejs` packages.

### Detailed summary
- Updated `@farcaster/core` version from `0.17.0` to `0.17.1`.
- Updated `@farcaster/hub-nodejs` version from `0.14.0` to `0.14.1`.
- Updated `@farcaster/shuttle` version from `0.6.16` to `0.6.17`.
- Fixed event timestamp calculation for snapchain.
- Added type guards for `TierPurchase` on-chain event.

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

<!-- end pr-codex -->
@farcaster/hub-nodejs@0.14.1 @farcaster/shuttle@0.6.17 @farcaster/core@0.17.1
2025-06-12 04:35:18 +00:00
Aditi Srinivasan
05733a44fe fix: add typeguards for TierPurchase onchain event (#2599)
## Why is this change needed?

The typeguard for the new tier purchase event is required for processing
these events cleanly out of the event stream.

## 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)
- [x] 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 enhancing type safety by adding type guards for the
`TierPurchaseOnChainEvent`, ensuring that the event structure is
validated correctly.

### Detailed summary
- Updated `TierPurchaseOnChainEvent` type in
`packages/core/src/protobufs/types.ts` to include specific properties.
- Introduced `isTierPurchaseOnChainEvent` type guard in
`packages/core/src/protobufs/typeguards.ts` to validate `OnChainEvent`
instances.

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

<!-- end pr-codex -->
2025-06-11 19:53:42 -04:00
Sanjay
1290c93c40 fix: Fix event timestamp calculation for snapchain (#2598)
## Why is this change needed?

Deprecate existing event timestamp functions that rely on event id, and
add a new one that fetch it from the itself itself.

## 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 event timestamp handling in the
`shuttle` and `core` packages. It replaces the deprecated
`extractEventTimestamp` function with `extractTimestampFromEvent`, which
aligns with the new event structure using timestamps instead of event
IDs.

### Detailed summary
- Changed function name from `extractEventTimestamp` to
`extractTimestampFromEvent` in `hubSubscriber.ts` and `eventStream.ts`.
- Updated calls to `extractEventTimestamp` to use
`extractTimestampFromEvent`.
- Marked `extractEventTimestamp` as deprecated in `time.ts` with a note
on using event timestamps.
- Added a new implementation for `extractTimestampFromEvent` in
`time.ts`.

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

<!-- end pr-codex -->
2025-06-11 22:42:40 +00:00
Sanjay
baf80c33ce chore: Release client libs for snapchain 0.3 (#2596)
## Why is this change needed?

Release client library for snapchain 0.3

## 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 versions of various `@farcaster`
packages, enhancing features related to the snapchain 0.3 protocol, and
adjusting dependencies.

### Detailed summary
- Deleted `.changeset/thick-radios-end.md`
- Updated `@farcaster/hub-nodejs` to version `0.14.0`
- Updated `@farcaster/core` to version `0.17.0`
- Updated `@farcaster/hub-web` to version `0.10.0`
- Updated version numbers in `package.json` files for `@farcaster/core`,
`@farcaster/hub-web`, `@farcaster/shuttle`, and `@farcaster/hub-nodejs`
- Added support for snapchain 0.3 protocol features in `CHANGELOG.md`
files

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

<!-- end pr-codex -->
@farcaster/core@0.17.0 @farcaster/hub-nodejs@0.14.0 @farcaster/hub-web@0.10.0 @farcaster/shuttle@0.6.16
2025-06-10 01:09:20 +00:00
Aditi Srinivasan
6307171a87 fix: update generated files and fix validations (#2595)
## Why is this change needed?

Fixes the previous release.

## 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
- [ ] 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)
- [x] 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 introduces new user data types, expands username validation, and
adds tier-related functionalities across multiple files. It enhances the
handling of usernames, addresses, and event types while improving
validations and error handling.

### Detailed summary
- Added `USERNAME_TYPE_BASENAME` to `UserNameType` enums.
- Introduced `BANNER`, `USER_DATA_PRIMARY_ADDRESS_ETHEREUM`, and
`USER_DATA_PRIMARY_ADDRESS_SOLANA` to `UserDataType` enums.
- Updated `CastType` enum to include `TEN_K_CAST`.
- Modified username validation to support `USERNAME_TYPE_BASENAME`.
- Enhanced user data validation for Ethereum and Solana addresses.
- Updated maximum username length from 20 to 25 characters.
- Changed embed limit from 2 to 4 in validations.
- Added `TierType` enum with `None` and `Pro` values.
- Introduced `TierPurchaseBody` interface for tier purchases.
- Added handling for `EVENT_TYPE_TIER_PURCHASE` in `OnChainEventType`.

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

<!-- end pr-codex -->

---------

Co-authored-by: Sanjay Raveendran <sanjayprabhu@gmail.com>
2025-06-10 01:01:36 +00:00
Aditi Srinivasan
d928ba27cd chore: release @farcaster/hub-nodejs 0.13.6 and @farcaster/core 0.16.5 (#2592)
## Why is this change needed?

Release hub-nodejs and core

## Merge Checklist

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

- [ ] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 version of the `@farcaster/core` and
`@farcaster/hub-nodejs` packages, along with their changelogs and
dependencies.

### Detailed summary
- Deleted `CHANGELOG.md` for `afraid-impalas-kiss`.
- Added version `0.13.6` for `@farcaster/hub-nodejs` with updated
dependencies.
- Added version `0.16.5` for `@farcaster/core` with a change to bring
protos to parity with Snapchain.
- Updated `version` in `package.json` for both packages.

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

<!-- end pr-codex -->
@farcaster/core@0.16.5 @farcaster/hub-nodejs@0.13.6
2025-06-06 14:10:12 -04:00
Aditi Srinivasan
7e742a8dbb chore: bring protos to parity with Snapchain for client library (#2591)
## Why is this change needed?

The new proto definitions need to be exposed via the client library to
build on new features.

## 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)
- [x] 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 protocol buffers in the client library
to align with the Snapchain implementation. It introduces new message
types, enums, and fields to enhance functionality, particularly around
tier management and user data handling.

### Detailed summary
- Added `USERNAME_TYPE_BASENAME` to `username_proof.proto`.
- Introduced `TierDetails` message and `tier_subscriptions` field in
`StorageLimitsResponse`.
- Updated error message date in `time.test.ts` to 01/01/2021.
- Added new user data types: `USER_DATA_TYPE_BANNER`,
`USER_DATA_PRIMARY_ADDRESS_ETHEREUM`, and
`USER_DATA_PRIMARY_ADDRESS_SOLANA`.
- Introduced `TEN_K_CAST` enum in `message.proto`.
- Added `EVENT_TYPE_TIER_PURCHASE` in `onchain_event.proto`.
- Created `TierPurchaseBody` message with relevant fields.
- Updated `OnChainEvent` to include `tierPurchaseEventBody`.
- Added methods for handling `TierType` in JSON conversions.
- Enhanced `StorageLimitsResponse` to include `tierSubscriptions`.

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

<!-- end pr-codex -->
2025-06-06 13:57:31 -04:00
bigbear
526210bef9 correction hubSubscriber.ts (#2543)
from beginning - from the beginning

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving the logging message in the
`hubSubscriber.ts` file for clarity.

### Detailed summary
- Updated the warning log message from `"No last hub event ID found,
starting from beginning"` to `"No last hub event ID found, starting from
the beginning"` for better readability.

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

<!-- end pr-codex -->
2025-05-16 22:45:48 -07:00
compusophy
14273447b6 change utils to core - Update README.md (#2532)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## Merge Checklist

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

- [ ] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 adds a new section to the `packages/core/README.md` file to
introduce the `@farcaster/core` package, which includes shared
hub-related methods and classes.

### Detailed summary
- Added a new header `# @farcaster/core` to the
`packages/core/README.md`.
- Included a description stating that the package contains shared
hub-related methods and classes.

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

<!-- end pr-codex -->
2025-05-16 22:38:30 -07:00
strmfos
401dde2503 “01/01/2022” instead of “01/01/2021” (#2516)
In the code, the epoch is set to January 1, 2021, but there's a typo in
the error message referencing “01/01/2022” instead of “01/01/2021”.


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the error message in the `toFarcasterTime` function to
reflect a change in the acceptable time range, adjusting the Farcaster
epoch date from "01/01/2022" to "01/01/2021".

### Detailed summary
- Updated the error message in the `toFarcasterTime` function.
- Changed the date in the message from "01/01/2022" to "01/01/2021" to
specify the new Farcaster epoch threshold.

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

<!-- end pr-codex -->

Co-authored-by: comfsrt <155266597+comfsrt@users.noreply.github.com>
2025-05-16 22:33:34 -07:00
Shane da Silva
7ac18a1375 chore: Refactor test targets (#2583)
## Why is this change needed?

Cleans up how we define our various build targets.

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 CI configuration in the
`.github/workflows/ci.yml` file to support a matrix strategy for
different architectures and Node.js versions.

### Detailed summary
- Changed `arch` from individual entries to a list: `['arm64', 'x64']`.
- Updated `node_version` to support multiple versions: `[22, 24]`.
- Adjusted `runs-on` to dynamically use `matrix.arch`.

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

<!-- end pr-codex -->
2025-05-16 22:25:37 -07:00
Shane da Silva
57544ddd88 chore: Remove more references to Hubble (#2582)
## Why is this change needed?

Remove more dangling references.

## Merge Checklist

- [ ] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 removing certain scripts and updating the `README.md`
to reflect a more concise description of the monorepo, specifically
regarding its contents and structure.

### Detailed summary
- Deleted the following scripts:
  - `scripts/hubble.sh`
  - `scripts/publish-image.sh`
  - `scripts/hubble-bootstrap.sh`
- Updated the `README.md`:
- Changed the description of the monorepo to focus on packages for
Farcaster Hub communication.
- Removed specific details about the `@farcaster/hubble` app and its
documentation.

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

<!-- end pr-codex -->
2025-05-16 22:12:31 -07:00
Shane da Silva
ae88a58ea4 chore: Remove references to Hubble (#2581)
## Why is this change needed?

Snapchain is the new implementation of a Farcaster hub.

Removing these references will reduce confusion and significantly speed
up the test suite for this repository.

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] PR includes
[documentation](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#32-writing-docs)
if necessary.
2025-05-16 21:41:45 -07:00
Shane da Silva
733894b774 chore: Release @farcaster/core@0.16.4 and @farcaster/hub-nodejs@0.13.5 (#2579)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## Merge Checklist

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

- [ ] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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.
@farcaster/core@0.16.4 @farcaster/hub-nodejs@0.13.5
2025-05-07 13:27:34 -07:00
Shane da Silva
7ec9ad4bdd fix: Update isMergeFailureHubEvent typeguard to return correct type (#2578)
## Why is this change needed?

The typeguard was incorrect.

## Merge Checklist

- [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 fixing the type guard `isMergeFailureHubEvent` to
correctly identify `MergeFailureHubEvent` instances in the codebase.

### Detailed summary
- Updated the return type of `isMergeFailureHubEvent` to correctly
reflect `types.MergeFailureHubEvent`.
- Introduced the `MergeFailureHubEvent` type in `types.ts`, which
includes the `mergeFailure` property.
- Ensured the type guard checks for the `MERGE_FAILURE` event type.

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

<!-- end pr-codex -->
2025-05-07 13:24:37 -07:00
Sanjay
cf8e743606 chore: Release hub-nodejs (#2577)
## Why is this change needed?

Release hub-nodejs version

## 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 version numbers and dependencies across
several packages in the `@farcaster` ecosystem, specifically enhancing
compatibility and adding features related to snapchain fields.

### Detailed summary
- Updated `@farcaster/core` version from `0.16.2` to `0.16.3`.
- Updated `@farcaster/hub-web` version from `0.9.6` to `0.9.7`.
- Updated `@farcaster/shuttle` version from `0.6.14` to `0.6.15`.
- Updated `@farcaster/hub-nodejs` version from `0.13.3` to `0.13.4`.
- Added snapchain fields to hub event and improved data compatibility in
changelogs for multiple packages.

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

<!-- end pr-codex -->
@farcaster/shuttle@0.6.15 @farcaster/core@0.16.3 @farcaster/hub-nodejs@0.13.4 @farcaster/hub-web@0.9.7
2025-04-29 22:33:46 +00:00
Sanjay
e26f69bff3 feat: More Snapchain updates (#2576)
## Why is this change needed?

- Add new fields from snapchain to hubble protos and libraries so
shuttle can access them
 - Update shuttle to use getInfo for max fid
- Populate data and databytes for convenience (snapchain updated to
prioritize dataBytes https://github.com/farcasterxyz/snapchain/pull/454)

## 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 introduces new fields related to `snapchain` events, enhances
compatibility by populating additional data, and modifies existing event
structures to include `block_number`, `shard_index`, and `timestamp`. It
also updates documentation for clarity.

### Detailed summary
- Added `block_number`, `shard_index`, and `timestamp` fields to various
stores and event structures.
- Introduced `MergeFailureBody` to handle merge failures with `message`,
`code`, and `reason`.
- Updated comments and documentation to reflect changes in event types.
- Enhanced `HubEventArgs` to omit additional fields for better
compatibility.
- Modified `makeMessageWithSignature` to use `dataBytes` for
serialization differences.
- Updated event type handling in generated files to include
`MERGE_FAILURE`.

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

<!-- end pr-codex -->
2025-04-29 15:20:02 -07:00
Sanjay
10ed100b37 chore: Release 1.19.3 (#2575)
## Why is this change needed?

Release 0.19.3

## 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 versions of various packages within the
Farcaster project, specifically enhancing dependencies and making minor
version increments to ensure compatibility and improvements.

### Detailed summary
- Updated `@farcaster/core` from `0.16.1` to `0.16.2`.
- Updated `@farcaster/hub-nodejs` from `0.13.2` to `0.13.3`.
- Updated `@farcaster/hubble` from `1.19.2` to `1.19.3`.
- Added changelog entries for versions `0.16.2`, `0.13.3`, and `1.19.3`.

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

<!-- end pr-codex -->
@farcaster/hubble@1.19.3 @farcaster/core@0.16.2 @farcaster/hub-nodejs@0.13.3
2025-04-28 15:54:44 -07:00
Sanjay
f63c019793 chore: Extend hubble expiry by a few weeks (#2574)
## Why is this change needed?

Extend expiry by a few weeks for those who need more time to migrate to
snapchain

## 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 expiry dates of certain versions in the
`hubble` application to extend their validity.

### Detailed summary
- Updated expiry date for version `2025.2.19` from `4/30/25` to
`5/16/25` in `apps/hubble/src/hubble.ts`.
- Added a patch entry for `@farcaster/hubble` in the changeset.

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

<!-- end pr-codex -->
2025-04-28 15:23:13 -07:00
Cassandra Heart
9164a98949 chore: release 0.16.1 (#2573)
## Why is this change needed?

Releases v0.16.1 of core

## 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.
2025-04-28 20:23:12 +00:00
Cassandra Heart
a4070feb9b fix: support removals for social usernames, already supported upstream (#2572)
## Why is this change needed?

Social usernames (twitter, github) have support for removals by setting
the value to empty string. The validator in core erroneously marks this
as an invalid message.

## 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 enhancing username validation for social media
platforms by allowing users to remove their usernames. It also updates
tests related to version expiry.

### Detailed summary
- Added support for removing social usernames in `validations.ts` for
`TWITTER` and `GITHUB`.
- Updated validation logic to check if the username value is not an
empty string before validation.
- Removed a test block in `versions.test.ts` related to version expiry
checks.

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

<!-- end pr-codex -->
2025-04-28 14:47:14 -05:00
Sanjay
be0e240eb9 chore: Release hub-nodejs 0.13.1 (#2568)
## Why is this change needed?

Release hub-nodejs 0.13.1

## 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 version of the `@farcaster/hub-nodejs`
package from `0.13.0` to `0.13.1` and includes a changelog entry for the
patch changes made.

### Detailed summary
- Deleted the file `.changeset/nasty-eagles-grin.md`.
- Updated `CHANGELOG.md` to include version `0.13.1` with a patch change
for snapchain error codes.
- Updated `packages/hub-nodejs/package.json` version from `0.13.0` to
`0.13.1`.
- Updated `apps/hubble/package.json` to reflect the new version
`^0.13.1` for `@farcaster/hub-nodejs`.

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

<!-- end pr-codex -->
@farcaster/hub-nodejs@0.13.1
2025-04-14 14:58:23 -07:00
Sanjay
b39166ec27 fix: Ensure snapchain error codes are passed through (#2567)
## Why is this change needed?

Snapchain sends the error codes back using a different header name. Read
that as well.

## 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 improving error handling in the `hub-nodejs` package
by ensuring that error codes from the snapchain are correctly passed
through to the `HubError`.

### Detailed summary
- Updated error handling in `packages/hub-nodejs/src/client.ts`.
- Modified the way `HubError` is instantiated to use `hubErrorCode`,
which retrieves error codes from both `err.metadata.get("errCode")` and
`err.metadata.get("x-err-code")`.

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

<!-- end pr-codex -->
2025-04-14 14:20:09 -07:00
Sanjay
9b0d11ccaf chore: Release snapchain patches (#2562)
## Why is this change needed?

Release snapchain updates

## 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 package versions and changelogs across
multiple modules in the `@farcaster` ecosystem, including new features
and dependency updates.

### Detailed summary
- Updated `@farcaster/core` version from `0.15.6` to `0.16.0`.
- Updated `@farcaster/hub-nodejs` version from `0.10.x` to `0.13.0`.
- Updated `@farcaster/hub-web` version from `0.9.5` to `0.9.6`.
- Updated `@farcaster/shuttle` version from `0.6.13` to `0.6.14`.
- Updated `@farcaster/hubble` version from `1.19.1` to `1.19.2`.
- Added changelog entries for each module reflecting the updates.

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

<!-- end pr-codex -->
@farcaster/hubble@1.19.2 @farcaster/hub-nodejs@0.13.0 @farcaster/core@0.16.0 @farcaster/shuttle@0.6.14 @farcaster/hub-web@0.9.6
2025-04-04 16:12:01 -07:00
Sanjay
8a34a18b52 fix: defer version expiry to April 30 (#2561)
## Why is this change needed?

Defer version expiry to April 30 to provide time to migrate to snapchain

## 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)
- [ ] 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 version expiry date for a specific
version in the `hubble.ts` file and includes a patch for the
`@farcaster/hubble` package.

### Detailed summary
- Updated the expiry date for version `2025.2.19` from `4/16/25` to
`4/30/25` in `hubble.ts`.
- Added a patch entry for `@farcaster/hubble` in the changeset file.

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

<!-- end pr-codex -->
2025-04-04 16:06:58 -07:00
Sanjay
846336eaee feat: Update builders and examples for snapchain (#2560)
## Why is this change needed?

Update builders to use dataBytes so messages work with snapchain

## 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 package versions and modifying various
`HUB_URL` configurations to support the `snapchain` functionality,
alongside some validation and message handling improvements.

### Detailed summary
- Updated package versions for `@farcaster/hub-nodejs` and
`@farcaster/core` to minor.
- Changed `HUB_URL` in multiple examples to point to
`juno.farcaster.xyz:3383`.
- Enhanced validation by checking both `message.data` and
`message.dataBytes`.
- Updated message creation to use `dataBytes` for `snapchain`
compatibility.
- Adjusted signature handling to use `_unsafeUnwrap()`.

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

<!-- end pr-codex -->
2025-04-04 22:59:33 +00:00
Aditi Srinivasan
6f04495f0f chore: upgrade hubble to v1.19.1 (#2551)
Release hubble 1.19.1

## 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 version of the `@farcaster/hubble`
package from `1.19.0` to `1.19.1`, along with a corresponding change in
the `CHANGELOG.md` to document a bug fix.

### Detailed summary
- Updated `version` in `apps/hubble/package.json` from `1.19.0` to
`1.19.1`.
- Added entry in `CHANGELOG.md` for version `1.19.1` noting a fix for
negative storage usage.
- Deleted `.changeset/empty-queens-bathe.md`.

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

<!-- end pr-codex -->
@farcaster/hubble@1.19.1
2025-03-12 12:33:57 -04:00
Aditi Srinivasan
b13e650c2e fix: stop producing negative storage usage (#2549)
Addresses the issue reported here:
https://github.com/farcasterxyz/hub-monorepo/issues/2547

## 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 fixing the storage usage calculations in the `hubble`
application to prevent negative values, enhancing cache management, and
adding tests to ensure accurate usage reporting.

### Detailed summary
- Added `clearCaches` method to `eventHandler` and `storageCache`.
- Updated logic in `StorageCache` to prevent negative counts.
- Introduced a test for accurate storage usage when a username proof is
revoked.
- Enhanced test coverage for storage usage scenarios.

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

<!-- end pr-codex -->
2025-03-12 10:43:48 -04:00
Sanjay
134b60c779 chore: Release 1.19 (#2537)
## Why is this change needed?

Release 1.19. This is a no-op release, and likely the final hub release
before snapchain goes live.

## 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 and release notes for the
`hubble` application, including a version bump in `package.json`, an
update to the `FARCASTER_VERSION`, and the addition of a new version in
the `FARCASTER_VERSIONS_SCHEDULE`.

### Detailed summary
- Updated `CHANGELOG.md` for version `1.19.0` release.
- Bumped `version` in `package.json` from `1.18.0` to `1.19.0`.
- Updated `FARCASTER_VERSION` in `hubble.ts` from `2025.1.8` to
`2025.2.19`.
- Added new version `2025.2.19` to `FARCASTER_VERSIONS_SCHEDULE`.

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

<!-- end pr-codex -->
@farcaster/hubble@1.19.0
2025-02-26 22:32:04 -08:00
Aditi Srinivasan
9c497b35f5 chore: release shuttle v0.6.13 (#2512)
Release shuttle v0.6.13

## 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)
- [x] 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 updates the version of the `@farcaster/shuttle` package from
`0.6.12` to `0.6.13`, adds a new feature related to environment
variables for `shuttle`, and removes an outdated changelog file.

### Detailed summary
- Updated `@farcaster/shuttle` version from `0.6.12` to `0.6.13` in
`package.json`.
- Added a new feature: environment variables for consuming from
`snapchain` in the changelog.
- Deleted the `.changeset/wild-rabbits-tap.md` file.

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

<!-- end pr-codex -->
@farcaster/shuttle@0.6.13
2025-02-03 13:42:24 -05:00
Aditi Srinivasan
63eb140798 feat: add envvars to shuttle for consuming from snapchain (#2510)
For subscribing to the snapchain cluster, it's useful to have a longer
subscribe rpc timeout given there isn't consistent activity on the
cluster and it's required to use the standard (non-streaming) bulk rpcs.
This feature adds config via envvars for these parameters.

## 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)
- [x] 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 adding environment variables to the `shuttle`
application for configuration, particularly for streaming RPCs and
timeout settings.

### Detailed summary
- Introduced `USE_STREAMING_RPCS_FOR_BACKFILL` and
`SUBSCRIBE_RPC_TIMEOUT` environment variables in `env.ts`.
- Modified the `constructor` in `MessageReconciliation` to accept a new
parameter `useStreamingRpcs`.
- Updated `establishStream` method call to conditionally execute based
on `useStreamingRpcs`.
- Adjusted the instantiation of `MessageReconciliation` in
`reconcileFids` to include `USE_STREAMING_RPCS_FOR_BACKFILL`.

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

<!-- end pr-codex -->
2025-02-01 15:42:59 -05:00
Shane da Silva
73d5dac561 fix: Correct typo in Factory builder (#2507)
## Why is this change needed?

Typo was breaking tests.

## Merge Checklist

- [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)
- [ ] 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 use of `Factories.Ed25519PPublicKey` to
`Factories.Ed25519PublicKey` in test files to ensure consistency and
correctness in the handling of public key types.

### Detailed summary
- In `apps/hubble/src/storage/db/message.test.ts`, changed
`Factories.Ed25519PPublicKey.build()` to
`Factories.Ed25519PublicKey.build()` in a test case.
- In `packages/core/src/validations.test.ts`, updated
`Factories.Ed25519PPublicKey.build()` to
`Factories.Ed25519PublicKey.build()` in two instances where a message is
created for validation testing.

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

<!-- end pr-codex -->
2025-01-28 22:09:46 +00:00
Pavel Zaborskii
bae108d80f Fix incorrect method call in the test (#2498)
## Why is this change needed?

In the test block "validateMessage", the test "fails without signer"
incorrectly calls the method submitMessage instead of validateMessage.
## 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
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 updates the test cases in the `messageService.test.ts` file to
replace calls to `client.submitMessage` with `client.validateMessage`,
ensuring that the validation logic is tested instead of the submission
logic.

### Detailed summary
- Changed `client.submitMessage(castAdd)` to
`client.validateMessage(castAdd)`.
- Changed `client.submitMessage(frameAction)` to
`client.validateMessage(frameAction)`.
- Updated the error handling expectations to reflect changes in the
message validation process.

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

<!-- end pr-codex -->
2025-01-27 13:56:50 -08:00
Frag
3f9c4a0a51 docs: Fix duplicate Number values in IdRegisterEventType table (#2500)
## Why is this change needed?
 
I noticed that the `Number` values for
`ID_REGISTER_EVENT_TYPE_REGISTER`, `ID_REGISTER_EVENT_TYPE_TRANSFER`,
and `ID_REGISTER_EVENT_TYPE_CHANGE_RECOVERY` in the
`IdRegisterEventType` table were all set to `0`, which conflicts with
`ID_REGISTER_EVENT_TYPE_NONE`. This is incorrect, as each event type
should have a unique value.

I've updated the table to assign the correct unique numbers:  
- `ID_REGISTER_EVENT_TYPE_REGISTER` → `1`  
- `ID_REGISTER_EVENT_TYPE_TRANSFER` → `2`  
- `ID_REGISTER_EVENT_TYPE_CHANGE_RECOVERY` → `3`  

This ensures consistency and avoids potential issues with event type
identification.

## Merge Checklist

- [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)
- [x] 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 updates the `onchain_events.md` documentation to reflect changes
in the event type IDs for registration, transfer, and recovery events.

### Detailed summary
- Updated `ID_REGISTER_EVENT_TYPE_REGISTER` from `0` to `1`.
- Updated `ID_REGISTER_EVENT_TYPE_TRANSFER` from `0` to `2`.
- Updated `ID_REGISTER_EVENT_TYPE_CHANGE_RECOVERY` from `0` to `3`.

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

<!-- end pr-codex -->
2025-01-27 13:56:11 -08:00
Voronor
a16743f1b2 docs: Fix typo in ETH-mainnet-RPC-url flag Update install.md (#2499)
## Why is this change needed?

I noticed a inconsistency in the documentation. The flag
`--eth-mainnet-rpc-url` uses a hyphen in `ETH-mainnet-RPC-URL`, while
the correct format (as seen in the `.env` file and other parts of the
docs) uses underscores: `ETH_MAINNET_RPC_URL`.

## Merge Checklist

- [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)
- [x] 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 command syntax in the installation
instructions for improved clarity by changing the placeholder format for
the Ethereum and Optimism RPC URLs.

### Detailed summary
- Updated the command in `install.md` from:
- `yarn start --eth-mainnet-rpc-url <your ETH-mainnet-RPC-URL>
--l2-rpc-url <your Optimism-L2-RPC-URL> --hub-operator-fid <your FID>`
- To:
- `yarn start --eth-mainnet-rpc-url <your_ETH_MAINNET_RPC_URL>
--l2-rpc-url <your_Optimism_L2_RPC_URL> --hub-operator-fid <your_FID>`

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

<!-- end pr-codex -->
2025-01-27 13:55:51 -08:00
antews
c19455d492 fix: errors in profileStorageUsed function (#2494)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## 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
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 enhancing the handling of potentially `undefined`
values in the `KeysProfile` constructor by providing a default empty
string when the value is `undefined`.

### Detailed summary
- Updated the `prefixKeys` array mapping to use `|| ""` for
`RootPrefix[i]?.toString()`.
- Updated the `userPostfixKeys` array mapping to use `|| ""` for
`UserPostfix[i]?.toString()`.

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

<!-- end pr-codex -->
2025-01-27 13:54:09 -08:00
FT
231c5724a1 Update LICENSE (#2492)
<!-- start pr-codex -->

## PR-Codex overview
This PR updates the copyright year in the `LICENSE` file to reflect the
current year.

### Detailed summary
- Updated the copyright year from `2022` to `2025` in the `LICENSE`
file.

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

<!-- end pr-codex -->
2025-01-27 13:52:57 -08:00
Pavel Zaborskii
b1bc259b5f Fix variables and registerDebugListeners method (#2488)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## 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
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] 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 fixing minor issues in the test descriptions and
correcting a typo in the `gossipNode.ts` file, as well as cleaning up
log messages for better clarity.

### Detailed summary
- Corrected the typo in the test description from `egnine` to `engine`
in `syncEngine.test.ts`.
- Fixed a typo in the condition check from `multiaddr.length` to
`multiaddrs.length` in `gossipNode.ts`.
- Cleaned up the log message formatting in `gossipNode.ts` by removing
an extra brace.

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

<!-- end pr-codex -->
2025-01-27 13:52:30 -08:00
Helen Grachtz
6517583d45 Fix error in function name (#2489)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## 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
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] 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 correcting a typo in the method name within the
`syncHealthJob.ts` file, improving code clarity and consistency.

### Detailed summary
- Renamed the method `processSumbitResults` to `processSubmitResults` in
the `MeasureSyncHealthJobScheduler` class.
- Updated the call to the method to reflect the corrected name.

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

<!-- end pr-codex -->
2025-01-27 13:51:27 -08:00
kilavvy
1ede3976a9 Improve Grammar in Docs (#2487)
Corrected `nodes only collect to peers` to `nodes only connect to peers`

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on correcting a typo in the documentation comment for
the `ConnectionFilter` class, ensuring clarity in the description of its
functionality.

### Detailed summary
- Updated the comment in `ConnectionFilter` to change "collect" to
"connect" for better accuracy in describing its purpose regarding peer
connections.

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

<!-- end pr-codex -->
2025-01-27 13:50:31 -08:00
Yauheni Kryshneu
ef80eb385c fix: update Twitter URL to x.com format (#2484)
Replaced the outdated Twitter URL (twitter) with the updated x.com
format (x) to align with the platform's rebranding.



<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates references from "twitter" to "x" across multiple files
to reflect the rebranding of Twitter to X.

### Detailed summary
- Updated `CHANGELOG.md` to change "twitter" to "x".
- In `message.ts` files (both `hub-nodejs` and `core`), modified the
comment for `TWITTER` from "Username of user on twitter" to "Username of
user on x".
- In `message.proto`, changed the comment for `USER_DATA_TYPE_TWITTER`
from "Username of user on twitter" to "Username of user on x".

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

<!-- end pr-codex -->
2025-01-27 13:49:40 -08:00
Maxim Evtush
cc2c9d9e7b fix typographical errors and improve code readability (#2483)
**This PR includes the following changes:**

1. Fixed typographical error in comment: changed `the` to `to`
2. Improved variable naming consistency for better code readability
3. Increased timeouts in `nightwatch` config to resolve test failures

**Changes made:**
- Fixed comment wording in `hubEventProcessor.ts`
- Updated variable names for consistency in
`validateOrRevokeMessagesJob.ts`
- Increased timeouts and retry attempts in `nightwatch` configuration

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on correcting typos in comments and variable names
related to time allocation in the `pruneMessagesJob.ts` and
`validateOrRevokeMessagesJob.ts` files, ensuring clarity and consistency
in the code.

### Detailed summary
- Corrected the comment in `hubEventProcessor.ts` from "consider" to "to
consider".
- Changed variable name `allotedTimeMs` to `allottedTimeMs` in:
  - `pruneMessagesJob.ts`
  - `validateOrRevokeMessagesJob.ts`

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

<!-- end pr-codex -->
2025-01-27 13:49:18 -08:00
fuder.eth
574d0322c7 Fix typo in connection filter tests (#2482)
Fixed a spelling error in the comments of `connectionFilter.test.ts`
where `Incepient` was incorrectly used instead of `Incipient` when
describing inbound connections behavior.

**Changes made:**
- Corrected spelling in multiple comment lines
- No functional changes, only comment fixes

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on correcting a spelling mistake in the comments of the
`connectionFilter.test.ts` file, changing "Incepient" to "Incipient." It
ensures clarity and accuracy in the test descriptions.

### Detailed summary
- Corrected the comment from "// Incepient Inbound Connections are
always allowed" to "// Incipient Inbound Connections are always allowed"
in multiple locations within the `connectionFilter.test.ts` file.

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

<!-- end pr-codex -->
2025-01-27 13:48:53 -08:00
Fallengirl
0a92fa0bca Corrected the number index.ts (#2480)
Corrected the numbering for accuracy and consistency.


<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the example number in the documentation comment of the
`index.ts` file within the `packages/hub-nodejs/examples/write-data`
directory.

### Detailed summary
- Changed the example number from 7 to 8 in the documentation comment.

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

<!-- end pr-codex -->
2025-01-27 13:48:22 -08:00
0x
32f913908d fix: Update broken links protobufs README.md (#2478)
## Description

This pull request fixes broken links in the `protobufs/README.md` file.

## Why is this change needed?

Broken links in the README can lead to confusion and inefficiencies when
trying to access documentation. This update resolves these issues by
correcting the file paths.

## Merge Checklist

- [x] PR title adheres to the [conventional
commits](https://www.conventionalcommits.org/en/v1.0.0/) standard.
- [x] PR includes a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets).
- [x] PR has been tagged with the appropriate change label(s).
- [x] Documentation updates have been included as necessary.

<!-- start pr-codex -->

---

## PR-Codex overview
This PR updates the links in the `protobufs/README.md` file to point to
the correct documentation paths for various schemas related to Farcaster
and gRPC APIs.

### Detailed summary
- Updated the documentation links for:
- `Message` schema to point to
`../apps/hubble/www/docs/docs/messages.md`
- `OnChainEvent` schema to point to
`../apps/hubble/www/docs/docs/onchain_events.md`
- `HubEvent` schema to point to `../apps/hubble/www/docs/docs/events.md`
  - `RPC` schema to point to `../apps/hubble/www/docs/docs/api.md`

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

<!-- end pr-codex -->
2025-01-27 13:48:01 -08:00
PixelPilot
622aa2caa6 Update gossipNode.ts (#2479)
Fixed variable reference:
- if (!multiaddrs || multiaddr.length === 0)
+ if (!multiaddrs || multiaddrs.length === 0) 
Reason: Fixes incorrect array length check by using proper multiaddrs
variable

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing a bug in the `connect` method of the
`GossipNode` class. It corrects a typo in the conditional check for the
`multiaddrs` array.

### Detailed summary
- Changed `multiaddr.length === 0` to `multiaddrs.length === 0` in the
`connect` method.
- Ensures proper validation of the `multiaddrs` before returning an
error.

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

<!-- end pr-codex -->
2025-01-27 13:46:48 -08:00
Anonim
48dd88a332 fix: bug report error (#2477)
## Why is this change needed?

Describe why this issue should be fixed and link to any relevant design
docs, issues or other relevant items.

## 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
- [ ] PR has a
[changeset](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#35-adding-changesets)
- [ ] PR has been tagged with a change label(s) (i.e. documentation,
feature, bugfix, or chore)
- [x] 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 correcting a typo in the error message of the
`UserDataStore` within the `user_data_store.rs` file.

### Detailed summary
- Fixed typo in error message from `"UserDataStoree doesn't support
merging removes"` to `"UserDataStore doesn't support merging removes"`.

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

<!-- end pr-codex -->
2025-01-27 13:45:11 -08:00