# What changed in mongoose-paginate-v2

> 10 changes in mongoose-paginate-v2 1 from its official release notes, upgrade guides and advisories: 1 new APIs and options. Each one cited. Sources checked 2026-10-28. HTML: https://unstale.sh/npm/mongoose-paginate-v2/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## mongoose-paginate-v2 1

### New APIs and options

- Supports the leanWithVirtuals option for use with the mongoose-lean-virtuals plugin. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)

### Fixes and other changes

- Passes collation as an option instead of chaining it, preserving session context. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Excludes limit and skip from countDocuments options. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Nulled or removed custom labels are no longer set. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Corrects the PaginateDocument type parameters. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Merges the PaginateModel interface. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Makes the offset field optional in the PaginateResult type definition. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Fixes concurrent pagination queries in transactions. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Makes Query interface generics consistent with Mongoose 8.15. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
- Updates the useCustomCountFn parameter type and implementation. (1.9.5) — [release notes](https://github.com/aravindnc/mongoose-paginate-v2/releases/tag/v1.9.5)
