Skip to content

fix: publish ./pagination subpath with helpers and CursorPage type (Closes #411) - #455

Merged
David-patrick-chuks-02 merged 7 commits into
Lilly-Protocol:mainfrom
Zhiyilang074811:fix-pagination-411
Sep 6, 2026
Merged

fix: publish ./pagination subpath with helpers and CursorPage type (Closes #411)#455
David-patrick-chuks-02 merged 7 commits into
Lilly-Protocol:mainfrom
Zhiyilang074811:fix-pagination-411

Conversation

@Zhiyilang074811

Copy link
Copy Markdown
Contributor

Summary

Publishes the existing ./pagination\ subpath through \package.json\ exports and \src/index.ts, making \parseCursorPage, \�uildPaginationQuery, \paginate, and \CursorPage\ available to consumers.

Changes

  • package.json: Added ./pagination\ export entry with import/CJS/type conditions matching the existing pattern
  • src/index.ts: Added re-exports for all four pagination symbols
  • test/dist-smoke.mjs: Added runtime checks for all four exports in both ESM and CJS
  • tests/api-report-snapshot.test.ts: Added \pagination.d.ts\ to the subpath .d.ts existence check
  • tests/exports-subpath-resolves.test.ts: Added ./pagination\ to the expected subpaths assertion

Acceptance Criteria

  • Importing the three helpers and \CursorPage\ from the ./pagination\ subpath works against the built package
  • The emitted \pagination.d.ts\ contains the full typed signatures (via tsconfig declarations)
  • The exports-subpath and dist smoke tests cover ./pagination\

Closes #411

@Zhiyilang074811

Copy link
Copy Markdown
Contributor Author

Hi! Friendly ping — open for ~2 days, all checks passing. Ready for review when convenient. Thanks! 🙏

@David-patrick-chuks-02
David-patrick-chuks-02 merged commit dc3b076 into Lilly-Protocol:main Sep 6, 2026
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.

[Bounty: $100] Publish the pagination helpers and CursorPage type through a ./pagination subpath

3 participants