Skip to content

fix: page size and cursor in getNextPage - #605

Merged
Justin Hammond (Justintime50) merged 5 commits into
masterfrom
fix_next_page_size
Nov 30, 2026
Merged

Justin Hammond (Justintime50) merged 5 commits into
masterfrom
fix_next_page_size

Conversation

@Justintime50

@Justintime50 Justin Hammond (Justintime50) commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes two next-page bugs:

  • getNextPage (and User.getNextPage for child users) built the next-page params with defaultParams.page_size ?? pageSize, so the page_size of the original all call always won over the pageSize passed in. The order is now pageSize ?? defaultParams.page_size, so an explicit pageSize wins and the original one is still reused when none is given.
  • Both re-sent the params of the original all call, so a first call with after_id (or before_id for child users) made the next page send both cursors, which the API rejects with a 400. The opposite cursor is now dropped.

Also bumps the version to 9.2.1 and moves the changelog entries under v9.2.1.

Testing

  • just lint and the type tests pass.

Pull Request Type

  • Bug fix (non-breaking change which fixes an issue)

@Justintime50 Justin Hammond (Justintime50) changed the title fix: use the page size passed into getNextPage fix: page size and cursor in getNextPage Nov 30, 2026
@Justintime50
Justin Hammond (Justintime50) marked this pull request as ready for review November 30, 2026 19:15
@Justintime50
Justin Hammond (Justintime50) merged commit c2b9486 into master Nov 30, 2026
13 checks passed
@Justintime50
Justin Hammond (Justintime50) deleted the fix_next_page_size branch November 30, 2026 20:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants