mirror of
https://github.com/farcasterxyz/hub-monorepo.git
synced 2026-01-14 23:58:10 -05:00
## Motivation Gossip MessageBundles instead of individual messages ## Change Summary - The feature is in, but it is not turned on yet. It can be % rolled out via network config ## 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) <!-- start pr-codex --> --- ## PR-Codex overview This PR introduces gossip MessageBundles, adds `mergeMany` method, refactors message handling, and updates network configuration handling. ### Detailed summary - Added gossip `MessageBundle` in `gossip.proto` - Implemented `mergeMany` method in Rust functions - Refactored message handling in various files - Updated network configuration handling > The following files were skipped due to too many changes: `apps/hubble/src/network/p2p/bundleCreator.ts`, `apps/hubble/src/storage/stores/rustStoreBase.ts`, `apps/hubble/src/addon/src/store/store.rs`, `apps/hubble/src/network/p2p/gossipNode.ts`, `apps/hubble/src/storage/stores/castStore.test.ts`, `apps/hubble/src/storage/engine/index.test.ts`, `apps/hubble/src/test/e2e/hubbleNetwork.test.ts`, `apps/hubble/src/network/p2p/bundleCreator.test.ts`, `packages/hub-web/src/generated/gossip.ts`, `packages/hub-nodejs/src/generated/gossip.ts`, `packages/core/src/protobufs/generated/gossip.ts`, `apps/hubble/src/storage/stores/castStoreBundle.test.ts`, `apps/hubble/src/test/e2e/gossipNetworkBundle.test.ts`, `apps/hubble/src/storage/engine/index.ts`, `apps/hubble/src/network/p2p/gossipNodeWorker.ts`, `apps/hubble/src/network/utils/networkConfig.test.ts`, `apps/hubble/src/hubble.ts` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
51 lines
1.6 KiB
JSON
51 lines
1.6 KiB
JSON
{
|
|
"name": "hubble",
|
|
"description": "A monorepo for the Farcaster Hub",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"packageManager": "yarn@1.22.19",
|
|
"workspaces": ["apps/*", "packages/*"],
|
|
"scripts": {
|
|
"build": "./node_modules/.bin/turbo run build",
|
|
"clean": "./node_modules/.bin/turbo run clean",
|
|
"dev": "./node_modules/.bin/turbo run dev --parallel",
|
|
"protoc": "cd packages/core && yarn protoc && cd ../hub-nodejs && yarn protoc && cd ../hub-web && yarn protoc",
|
|
"test": "./node_modules/.bin/turbo run test",
|
|
"test:ci": "./node_modules/.bin/turbo run test:ci -- --passWithNoTests",
|
|
"lint": "./node_modules/.bin/turbo run lint --parallel",
|
|
"lint:ci": "./node_modules/.bin/turbo run lint:ci --parallel",
|
|
"prepare": "husky install",
|
|
"version-packages": "changeset version --ignore @farcaster/hubble",
|
|
"release-packages": "yarn build && changeset publish",
|
|
"release-all": "yarn build && changeset publish && changeset tag"
|
|
},
|
|
"engines": {
|
|
"npm": ">=8.0.0",
|
|
"node": ">=18.7"
|
|
},
|
|
"devDependencies": {
|
|
"@changesets/changelog-git": "^0.1.14",
|
|
"@changesets/cli": "^2.26.0",
|
|
"@swc/cli": "^0.1.57",
|
|
"@swc/core": "^1.3.64",
|
|
"@swc/jest": "^0.2.26",
|
|
"@types/jest": "^29.0.2",
|
|
"@types/node": "^18.7.14",
|
|
"husky": "^8.0.3",
|
|
"jest": "^29.6.1",
|
|
"lint-staged": "^13.2.2",
|
|
"rimraf": "^5.0.1",
|
|
"ts-node": "^10.9.1",
|
|
"tsup": "^6.5.0",
|
|
"turbo": "1.10.3",
|
|
"typescript": "^5.0.2"
|
|
},
|
|
"lint-staged": {
|
|
"*.ts": ["biome check"],
|
|
"*.rs": ["rustfmt --check"]
|
|
},
|
|
"dependencies": {
|
|
"semver": "^7.5.4"
|
|
}
|
|
}
|