Skip to content

fix: bound extension store pagination#11

Merged
ralyodio merged 1 commit into
mainfrom
fix/store-pagination-bounds
Jun 27, 2026
Merged

fix: bound extension store pagination#11
ralyodio merged 1 commit into
mainfrom
fix/store-pagination-bounds

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • add bounded integer normalization for extension store pagination
  • fall back for NaN and infinite limit/offset values
  • clamp/truncate finite values before they reach SQL LIMIT/OFFSET args
  • add regression coverage for non-finite and bounded pagination values

Fixes #10.

Validation

  • corepack pnpm@9.12.0 --filter @tronbrowser/api exec vitest run src/store/db.test.ts
  • corepack pnpm@9.12.0 --filter @tronbrowser/api typecheck
  • corepack pnpm@9.12.0 --filter @tronbrowser/api test

@github-actions

Copy link
Copy Markdown

vu1nz Security Review

0 finding(s) in PR #?

No security issues found.

@ralyodio ralyodio merged commit 8ba083c into main Jun 27, 2026
7 checks passed
@ralyodio ralyodio deleted the fix/store-pagination-bounds branch June 27, 2026 02: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.

Store extensions pagination accepts non-finite limits

2 participants