GitBulletin

Repository: farcasterxyz/hub-monorepo

"HTTP API Revamped: New 1K Size Limit Set to Enhance Speed and Efficiency!"

2024-03-05 22:08:55 UTC

"Major Update Streamlines Data Handling, Promises a Faster, Smoother Experience for Users"

Commit Details:

chore: Set maximum & default page size for HTTP API requests to 1K (#1776) ## Motivation Serializing JSON can be slow. ## Change Summary Reduce the maximum size of each page, and set an explicit default. ## 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. - [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 sets a maximum and default page size of 1K for HTTP API requests in the `@farcaster/hubble` package. ### Detailed summary - Set maximum and default page size for HTTP API requests to 1K in `@farcaster/hubble` - Updated pagination logic in `httpapi.md` - Added `DEFAULT_PAGE_SIZE` constant in `httpServer.ts` - Ensured page size does not exceed global maximum > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> --------- Co-authored-by: zachterrell57 <[email protected]>

Search Similar