Skip to content

Add paginator support from convex-helpers for component migrations#27

Draft
ianmacartney wants to merge 10 commits into
mainfrom
ian/paginator-migration
Draft

Add paginator support from convex-helpers for component migrations#27
ianmacartney wants to merge 10 commits into
mainfrom
ian/paginator-migration

Conversation

@ianmacartney
Copy link
Copy Markdown
Member

@ianmacartney ianmacartney commented Jan 30, 2026

Add convex-helpers pagination support

  • Add convex-helpers to use paginator instead of .paginate
  • Add optional schema parameter to Migrations constructor enabling customRange and component support
  • Detect cursor format with isNewFormatCursor() helper to handle both new JSON array cursors and legacy encrypted cursors
  • Create local component example in example/convex/localComponent/ demonstrating migrations within a Convex component
  • Require schema parameter when using customRange functionality
  • Add tests for cursor format detection

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 30, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 284f55f0-993f-4008-a26e-d11c1b17e7f9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ian/paginator-migration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member Author

ianmacartney commented Jan 30, 2026

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jan 30, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@convex-dev/migrations@27

commit: f0968bf

Copy link
Copy Markdown
Member Author

@ianmacartney ianmacartney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs some work

Comment thread example/convex/localComponent/example.ts Outdated
Comment thread example/convex/tsconfig.json Outdated
Comment thread package-lock.json Outdated
Comment thread package-lock.json Outdated
Comment thread package.json Outdated
Comment thread README.md Outdated
Comment thread README.md Outdated
Comment thread src/client/index.ts Outdated
Comment thread src/client/index.ts Outdated
Comment thread src/client/index.ts Outdated
@ianmacartney ianmacartney changed the base branch from main to graphite-base/27 April 16, 2026 06:59
@ianmacartney ianmacartney force-pushed the ian/paginator-migration branch from f514088 to 6035d49 Compare April 16, 2026 06:59
@ianmacartney ianmacartney changed the base branch from graphite-base/27 to ian/call-directly April 16, 2026 06:59
@ianmacartney ianmacartney force-pushed the ian/paginator-migration branch 2 times, most recently from 35d8dc0 to d290baa Compare April 16, 2026 07:07
@ianmacartney ianmacartney changed the base branch from ian/call-directly to graphite-base/27 April 20, 2026 22:32
@ianmacartney ianmacartney force-pushed the ian/paginator-migration branch from 73988f0 to 90a7812 Compare April 22, 2026 04:44
@graphite-app graphite-app Bot changed the base branch from graphite-base/27 to main April 22, 2026 04:45
@ianmacartney ianmacartney force-pushed the ian/paginator-migration branch from 90a7812 to 80b30d6 Compare April 22, 2026 04:45
ianmacartney and others added 10 commits April 29, 2026 00:08
- Add convex-helpers as peer dependency for improved pagination
- Add optional `schema` parameter to Migrations constructor
- Use paginator from convex-helpers when schema is provided
- Detect cursor format for backwards compatibility with old migrations
- Add isNewFormatCursor() helper with tests
- Add SchemaForDataModel type helper
- Create local component example demonstrating component migrations
- Update README with component migration documentation
- Add AGENTS.md with development tips

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@ianmacartney ianmacartney force-pushed the ian/paginator-migration branch from 80b30d6 to f0968bf Compare April 29, 2026 07:09
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.

1 participant