From 7fd6bbb402330df8865c0f1e6e79b95d6f6b017e Mon Sep 17 00:00:00 2001 From: Sanjay Date: Wed, 20 Mar 2024 15:48:05 -0700 Subject: [PATCH] chore: Release 1.11 (#1834) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Motivation Release 1.11 ## Change Summary Describe the changes being made in 1-2 concise sentences. ## 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. - [x] All [commits have been signed](https://github.com/farcasterxyz/hub-monorepo/blob/main/CONTRIBUTING.md#22-signing-commits) ## Additional Context If this is a relatively large or complex change, provide more details here that will help reviewers --- ## PR-Codex overview This PR updates the version of `@farcaster/hubble` to `1.11.0`, introduces Rust migrations and optimizations, and updates `FARCASTER_VERSION` in `hubble.ts`. ### Detailed summary - Updated `@farcaster/hubble` version to `1.11.0` - Migrated verifications store, username proof store, cast store, link store to Rust - Added stats for hub restarts - Updated `FARCASTER_VERSION` in `hubble.ts` to `2024.3.20` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` --- .changeset/famous-poets-speak.md | 5 ----- .changeset/fluffy-bulldogs-vanish.md | 5 ----- .changeset/lovely-islands-sit.md | 5 ----- .changeset/orange-starfishes-fry.md | 5 ----- .changeset/popular-garlics-warn.md | 5 ----- .changeset/popular-suits-joke.md | 5 ----- .changeset/rare-carpets-itch.md | 5 ----- .changeset/serious-cats-compete.md | 5 ----- .changeset/shaggy-bags-film.md | 5 ----- apps/hubble/CHANGELOG.md | 18 ++++++++++++++++++ apps/hubble/package.json | 2 +- apps/hubble/src/hubble.ts | 3 ++- 12 files changed, 21 insertions(+), 47 deletions(-) delete mode 100644 .changeset/famous-poets-speak.md delete mode 100644 .changeset/fluffy-bulldogs-vanish.md delete mode 100644 .changeset/lovely-islands-sit.md delete mode 100644 .changeset/orange-starfishes-fry.md delete mode 100644 .changeset/popular-garlics-warn.md delete mode 100644 .changeset/popular-suits-joke.md delete mode 100644 .changeset/rare-carpets-itch.md delete mode 100644 .changeset/serious-cats-compete.md delete mode 100644 .changeset/shaggy-bags-film.md diff --git a/.changeset/famous-poets-speak.md b/.changeset/famous-poets-speak.md deleted file mode 100644 index 133cbc22b2..0000000000 --- a/.changeset/famous-poets-speak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -chore: Migrate verifications store to rust diff --git a/.changeset/fluffy-bulldogs-vanish.md b/.changeset/fluffy-bulldogs-vanish.md deleted file mode 100644 index 4c170e851d..0000000000 --- a/.changeset/fluffy-bulldogs-vanish.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: Generate grpc rust code from protobufs diff --git a/.changeset/lovely-islands-sit.md b/.changeset/lovely-islands-sit.md deleted file mode 100644 index 903ddbcd59..0000000000 --- a/.changeset/lovely-islands-sit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -perf: Move username proof store to rust diff --git a/.changeset/orange-starfishes-fry.md b/.changeset/orange-starfishes-fry.md deleted file mode 100644 index f734497dd2..0000000000 --- a/.changeset/orange-starfishes-fry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -perf: Throttle prune job diff --git a/.changeset/popular-garlics-warn.md b/.changeset/popular-garlics-warn.md deleted file mode 100644 index f1ca4ace6a..0000000000 --- a/.changeset/popular-garlics-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -perf: Migrate cast store to rust diff --git a/.changeset/popular-suits-joke.md b/.changeset/popular-suits-joke.md deleted file mode 100644 index d432994904..0000000000 --- a/.changeset/popular-suits-joke.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -fix: Read data_bytes properly when pruning diff --git a/.changeset/rare-carpets-itch.md b/.changeset/rare-carpets-itch.md deleted file mode 100644 index e1372351d1..0000000000 --- a/.changeset/rare-carpets-itch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -Migrate link store to Rust diff --git a/.changeset/serious-cats-compete.md b/.changeset/serious-cats-compete.md deleted file mode 100644 index b5809380be..0000000000 --- a/.changeset/serious-cats-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -feat: stats for hub restarts diff --git a/.changeset/shaggy-bags-film.md b/.changeset/shaggy-bags-film.md deleted file mode 100644 index 8e95a680b8..0000000000 --- a/.changeset/shaggy-bags-film.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@farcaster/hubble": patch ---- - -chore: Add rustfmt check before git commit diff --git a/apps/hubble/CHANGELOG.md b/apps/hubble/CHANGELOG.md index 582ffe196a..db06511267 100644 --- a/apps/hubble/CHANGELOG.md +++ b/apps/hubble/CHANGELOG.md @@ -1,5 +1,23 @@ # @farcaster/hubble +## 1.11.0 + +### Minor Changes + +- chore: Release 1.11 + +### Patch Changes + +- dd1a3e46: chore: Migrate verifications store to rust +- f115bce1: feat: Generate grpc rust code from protobufs +- 63e2abe6: perf: Move username proof store to rust +- 70603192: perf: Throttle prune job +- ca42eaf0: perf: Migrate cast store to rust +- 0b523281: fix: Read data_bytes properly when pruning +- eb2b0e1d: Migrate link store to Rust +- cfa701c9: feat: stats for hub restarts +- d2b2f726: chore: Add rustfmt check before git commit + ## 1.10.11 ### Patch Changes diff --git a/apps/hubble/package.json b/apps/hubble/package.json index 5f60bab072..3f7cc8beca 100644 --- a/apps/hubble/package.json +++ b/apps/hubble/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/hubble", - "version": "1.10.11", + "version": "1.11.0", "description": "Farcaster Hub", "author": "", "license": "", diff --git a/apps/hubble/src/hubble.ts b/apps/hubble/src/hubble.ts index 20668847a8..aa137a7c04 100644 --- a/apps/hubble/src/hubble.ts +++ b/apps/hubble/src/hubble.ts @@ -92,7 +92,7 @@ export const APP_NICKNAME = process.env["HUBBLE_NAME"] ?? "Farcaster Hub"; export const SNAPSHOT_S3_DEFAULT_BUCKET = "download.farcaster.xyz"; export const S3_REGION = "us-east-1"; -export const FARCASTER_VERSION = "2024.2.7"; +export const FARCASTER_VERSION = "2024.3.20"; export const FARCASTER_VERSIONS_SCHEDULE: VersionSchedule[] = [ { version: "2023.3.1", expiresAt: 1682553600000 }, // expires at 4/27/23 00:00 UTC { version: "2023.4.19", expiresAt: 1686700800000 }, // expires at 6/14/23 00:00 UTC @@ -103,6 +103,7 @@ export const FARCASTER_VERSIONS_SCHEDULE: VersionSchedule[] = [ { version: "2023.11.15", expiresAt: 1704844800000 }, // expires at 1/10/24 00:00 UTC { version: "2023.12.27", expiresAt: 1708473600000 }, // expires at 2/21/24 00:00 UTC { version: "2024.2.7", expiresAt: 1712102400000 }, // expires at 4/3/24 00:00 UTC + { version: "2024.3.20", expiresAt: 1715731200000 }, // expires at 5/15/24 00:00 UTC ]; const MAX_CONTACT_INFO_AGE_MS = GOSSIP_SEEN_TTL;