Changes in 43.7.0
- Refactor the Search::Arguments and Searcher classes to allow more flexibility in chaining queres.
- Fix the non-standard "previous" link relation in headers_hash and JSON:API urls_hash
- headers_hash emits the conventional rel="prev" in the link header
- urls_hash returns the :prev key with jsonapi: true, as the JSON:API specification requires
- urls_hash keeps the :previous key otherwise
- Fix series_nav_js ignoring the :slots and :compact helper options
- The :slots and :compact options passed to the series_nav_js helpers were silently ignored
- The :steps option overrides the :slots option, while the :compact option applies to all the steps
- Fix the playground doc URLs and make the playground apps consistent
- Add :rails_active_search paginator, test and docs
Version 43
We needed a leap version to unequivocally signal that it's not just a major version: it's a complete redesign of the legacy code at all levels, usage and API included.
Why 43? Because it's exactly one step beyond "The answer to the ultimate question of life, the Universe, and everything." 😉
Improvements
This version introduces several enhancements, such as new :countish and :keynav_js paginators and improved automation and configuration processes, reducing setup requirements by 99%. The update also includes a simpler API and new interactive development tools, making it a comprehensive upgrade from previous versions.
- New :countish Paginator
- Faster than OFFSET and supporting the full UI
- New Keynav Pagination
- The pagy-exclusive technique using the fastest keyset pagination alongside all frontend helpers.
- New interactive dev-tools
- New PagyWand to integrate the pagy CSS with your app themes.
- New Pagy AI available right inside your own app.
- Intelligent automation
- Configuration requirements reduced by 99%.
- Simplified JavaScript setup.
- Automatic I18n loading.
- Simpler API
- You solely need the pagy method and the @pagy instance to paginate any collection and use any navigation tag and helper.
- Methods are autoloaded only if used, and consume no memory otherwise.
- Methods have narrower scopes and can be overridden without deep knowledge.
- New documentation
- Very concise, straightforward, and easy to navigate and understand.
Upgrade to 43
See the Upgrade Guide