Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move pagination plugin to core #1992

merged 5 commits into from Jul 15, 2019

Move pagination plugin to core #1992

merged 5 commits into from Jul 15, 2019


Copy link


Move the pagination plugin to core Bookshelf.


This is a very useful plugin and its functionality should be part of core since it's almost always used and, in fact, even the documentation has .fetchPage() as a Model method, even though it's currently only available if you call .plugin('pagination').

Proposed solution

Base functionality is moved to the lib/helpers.js file so it can be shared between model and collection methods. New fetchPage methods are added to Model and Collection. No functionality was removed.

@ricardograca ricardograca merged commit b89331c into master Jul 15, 2019
@ricardograca ricardograca deleted the rg-core-pagination branch July 15, 2019 21:38
@ricardograca ricardograca mentioned this pull request Aug 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

Successfully merging this pull request may close these issues.

None yet

1 participant