npm / mongoose-paginate-v2
mongoose-paginate-v2
What changed in mongoose-paginate-v2 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
1 new APIs and options9 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmongoose-paginate-v2 110 changes
New APIs and options 1
Supports the leanWithVirtuals option for use with the mongoose-lean-virtuals plugin.
Fixes and other changes 9
Passes collation as an option instead of chaining it, preserving session context.
Excludes limit and skip from countDocuments options.
Nulled or removed custom labels are no longer set.
Corrects the PaginateDocument type parameters.
Merges the PaginateModel interface.
Makes the offset field optional in the PaginateResult type definition.
Fixes concurrent pagination queries in transactions.
Makes Query interface generics consistent with Mongoose 8.15.
Updates the useCustomCountFn parameter type and implementation.