All Versions
Latest Version
Avg Release Cycle
21 days
Latest Release

Changelog History
Page 1

  • v5.1.2 Changes

    ๐Ÿ”„ Changes

    • Refactoring of pagy_url_for and relative test:
      • Fix for ignoring the items_extra variable
      • Replaced request.GET with request.params to enable POST pagination
      • Refactoring of Mock test classes for better handling of params
  • v5.1.1 Changes

    ๐Ÿ”„ Changes

    • โช This reverts commit 1d77e672d5b7813108b40c13ca93fdec045f4c03. Generating the URL by using the application params method breakes rails apps because it requires manual changes in the apps.
  • v5.1.0 Changes

    ๐Ÿ”„ Changes

    • โšก๏ธ Countless extra: simplified code, internal renaming of locals and docs update
    • ๐Ÿ‘Œ Improved code comments, formatting and docs fixes
    • Fix and refactoring of pagy_url_for and relative test:
      • Fix for ignoring the params not coming from the request
      • Fix for ignoring the items_extra variable
      • Refactoring of Mock test classes for better handling of params
  • v5.0.1 Changes

    ๐Ÿ”„ Changes

    • โž• Added CHANGELOG_LEGACY
    • โ™ป๏ธ Refactoring of exceptions
    • ๐Ÿ“‡ Simplification of metadata extra
    • โ™ป๏ธ Refactoring of coverage to include 100% of line and condition branches covered
    • โž• Added cypress-dark theme to e2e test
    • โšก๏ธ Updated docs and issue templates
  • v5.0.0 Changes

    ๐Ÿ’ฅ Breaking changes - Simple search and replace

    ๐ŸŽ There are a few renaming that have not been deprecated in previous versions because they are extremely easy to fix with simple search and replace (while implementing deprecations would have been detrimental to performance and complex for no reason)

    Consistency renaming

    A few elements have been renamed: you code may or may not contain them. Just search and replace the following strings:

    • 0๏ธโƒฃ Rename Pagy::VARS to Pagy::DEFAULT
    • Rename enable_items_extra to items_extra
    • Rename enable_trim_extra to trim_extra
    • ๐Ÿ“‡ Rename Pagy::Helpers to Pagy::UrlHelpers
    • Rename pagy_get_params to pagy_massage_params

    Items accessor

    ๐Ÿ— The items accessor does not adjust for the actual items in the last page anymore. This should not affect normal usage, so you can ignore this change unless you build something on that assumption.

    If your code is relying on the actual number of items in the page, then just replace @pagy.items with wherever you meant that.

    FYI: The @pagy.items is now always equal to @pagy.vars[:items] (i.e. the requested items), while the returns the actual items in the page (which could be less than the items when the page is the last page)

    ๐Ÿ’ฅ Breaking changes - Code update

    ๐ŸŽ Pagy 4 dropped the compatibility for old ruby versions >2.5 and started to refactor the code using more modern syntax and paradigms and better performance. It deprecated the legacy ones, printing deprecation warnings and upgrading instruction in the log, but still supporting its legacy API. Pagy 5.0.0 cleans up and removes all that transitional support code.

    โฌ†๏ธ The changes for upgrading your app cannot be fixed with simple search and replace, but fear not! Fixing them should just take a few minutes with the following steps:

    • โฌ†๏ธ Upgrade to the latest version of pagy 4
    • โœ… Run your tests or app
    • ๐Ÿ—„ Check the log for any deprecations message starting with '[PAGY WARNING]'
    • โšก๏ธ Update your code as indicated by the messages
    • โš  Ensure that the log is now free from warnings
    • โฌ†๏ธ Upgrade to pagy 5

    ๐Ÿ—„ FYI: Here is the list of the deprecations that are not supported anymore:

    โœ‚ Removed support for deprecated variables

    • 0๏ธโƒฃ Pagy::VARS[:anchor] is now Pagy::DEFAULT[:fragment]

    โœ‚ Removed support for deprecated arguments order

    • The argument order in pagy_url_for(page, pagy) is now inverted: pagy_url_for(pagy, page)

    โœ‚ Removed support for deprecated positional arguments

    The following optional positional arguments are passed with keywords arguments in all the pagy helpers:

    • The id html attribute string with the pagy_id keyword
    • The url|absolute flag with the absolute keyword
    • The item_name string with the item_name keyword
    • The extra|link_extra string with the link_extra keyword
    • The text string with the text keyword

    ๐Ÿ”„ Changes

    • โœ‚ Removed support for deprecations
    • โ™ป๏ธ Refactoring of Pagy and Pagy::Countless classes, I18n, and url helpers
    • โ™ป๏ธ Refactoring of the docker environment, addition of ready to use VSCode setup
    • ๐Ÿ”„ Changed general module structure (use of prepend instead of re-opening modules)
    • โž• Added gearbox extra for geared pagination
    • โž• Added configuration files for a full working VSCode devcontainer environment
    • โž• Added Run Configurations for RubyMine
    • ๐Ÿ‘Œ Improved the usage of e2e tests
    • โšก๏ธ Updated doc, gemfiles and github workflow
    • ๐Ÿ›  Other minor fixes and improvements in code and doc
  • v4.11.0 Changes

    ๐Ÿ”„ Changes

    • โž• added countless_minimal feature
    • โž• added missing deprecation to countless class
    • doc improvements


    • 5103ee9: added countless_minimal feature
    • ๐Ÿ—„ ed6bc0b: added missing deprecation to countless class
    • ๐Ÿ“„ bedb2d6: Fix - link directly to docs ci-skip
    • ๐Ÿšš 74aa300: Remove minor extra parenthesis in trim docs ci-skip
    • ๐Ÿ“„ f8b96eb: docs - add links directly to docs page ci-skip
  • v4.10.2 Changes

    ๐Ÿ”„ Changes

    • ๐Ÿ‘Œ improve the customization of url when using the trim extra
    • ๐Ÿ‘ better tailwind rules
    • ๐Ÿ›  doc fixes and improvements


    • 9e7fd48: improve the customization of url when using the trim extra (closes #325)
    • ๐Ÿณ 0d48b5f: better handling of extra docker-compose run files
    • โ†ช f5ed8f6: added note about the possible workaround for bundler/inline bug
    • ๐Ÿ›  2715660: doc fixes
    • 7187101: Javascript doc improvements
    • ๐Ÿš€ 24b7e78: release workflow refactoring
    • 20d1d8e: chore: add github action - publish & tag versions (#322)
    • ๐Ÿ‘ 922fd7f: better tailwind rules
    • 28983e6: added doc for using Searchkick.pagy_search (closes #319)
  • v4.10.1 Changes

    ๐Ÿ”„ Changes

    • ๐Ÿ›  fixes for meilisearch extra


    • ๐Ÿ›  ec748c2: Fixes for Meilisearch extra (#318)
  • v4.10.0 Changes

    ๐Ÿ”„ Changes

    • โž• added arabic locale


    • 9bc548e: added missing keys for Arabic (#317) (closes #295)
    • โœ… 1b95674: Add arabic locale, pluralization and tests; alpha ordered tests
  • v4.9.0 Changes

    ๐Ÿ”„ Changes

    • โž• added meilisearch extra
    • ๐Ÿ“„ docs fixes


    • โšก๏ธ 572ed78: updated pagy-ci.yml
    • 8fe1d19: Fix documents for searchkick (#315)
    • 744717f: Meilisearch extra (#316)
    • โšก๏ธ fb65260: updated issue templates
    • 1c3d283: Added Pagy::Console links to README