All Versions
83
Latest Version
Avg Release Cycle
21 days
Latest Release
-

Changelog History
Page 5

  • v5.0.0 Changes

    ๐Ÿ’ฅ Breaking changes - 1. 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

    ๐Ÿ’ฅ Breaking changes - 2. 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 @pagy.in wherever you meant that.

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

    ๐Ÿ”„ 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

    Commits

    • 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

    Commits

    • 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

    Commits

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

    ๐Ÿ”„ Changes

    • โž• added arabic locale

    Commits

    • 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

    Commits

    • โšก๏ธ 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
  • v4.8.1 Changes

    ๐Ÿ”„ Changes

    • ๐Ÿ›  fix for deprecation and test improvements

    Commits

    • ๐Ÿ‘€ 0f1a7f2: improved deprecation_tests (see #311)
    • ๐Ÿ—„ 7e9c9cd: fix(pagy): deprecated_var is a class method (#311)
  • v4.8.0 Changes

    ๐Ÿ”„ Changes

    • ๐Ÿ’Ž Lowered minimal ruby version requirement to 2.5+
    • โœ… Simpler tests using the rematch gem
    • ๐Ÿณ Docker environment improvements

    Commits

    • ๐Ÿ”€ b5b500a: Merge branch 'backport-to-2.5' into dev
    • ๐Ÿ’Ž 001f22f: fix for different handling of module prepend in ruby <3
    • ๐Ÿ’Ž d6d71a5: fix for frozen error handled differently on ruby <3
    • ๐Ÿ’Ž 8a2cf76: replaced syntax not available in ruby 2.5
    • ๐Ÿ’Ž 14b3a0c: lowered the minimum ruby version requirement to 2.5
    • โšก๏ธ 8c76943: updated Gemfile.lock
    • 934f602: added comment in doc example about the inverted order of arguments in previous versions
    • ๐Ÿณ acd59f5: moved command out of default docker-compose to its own file in order to avoid error before first bundle install
    • โšก๏ธ 527a14f: Gemfile update
    • โœ… 842de05: better tests and stricter rubocop
    • โšก๏ธ d82e95c: Gemfile updated and used for CI
    • โšก๏ธ 675f587: Gemfile: added gemspec and updated rematch
    • โšก๏ธ b0a6603: Updated to rematch 1.0 and copyright year
    • 8bda6a9: added rematch gem and reset rematch stores
    • โœ… f62fa88: added e2e tests to ci
    • โšก๏ธ 04755aa: updated puma
    • ๐Ÿ’… 4ec03f1: added HTML validation for all the helpers and styles
    • ๐Ÿ”จ 87b2f62: refactoring e2e: replaced snapshot plugin; updated to cypress 7.3.0
  • v4.7.1 Changes

    ๐Ÿ”„ Changes

    • Fixed a couple of HTML validity issues with uikit and materialize combo_nav_js
    • ๐Ÿ‘Œ Improved rematch testing
    • ๐Ÿ“š Updated the documentation

    Commits

    • ๐Ÿ›  8cb4193: fixed and simplified uikit combo nav
    • f762aca: used chip class for materialized combo nav
    • โœ… 064a2b5: rematched tests
    • 2a45321: expanded the combo nav label to the whole text
    • ๐Ÿ›  37c65a8: fixed and simplified materialize combo nav
    • 789773b: removed faulty PAGY_REMATCH variable function; added rematch_all rake task
    • โšก๏ธ eb2df6d: updated docs [skip ci]
  • v4.7.0 Changes

    ๐Ÿ”„ Changes

    • ๐Ÿ”จ Refactoring of pagy-json tags into data attributes
    • โž• Added the rematch testing system to ease maintenance of tests
    • โž• Added Ukrainian locale
    • โšก๏ธ updated Gemfile and doc

    Commits

    • โœ… 887c783: better doc for E2E testing
    • โšก๏ธ 738fd93: updated manifest
    • 0110e3a: Ukrainian locale (#310)
    • โœ… 9265cd2: extended must_rematch to other tests
    • d217965: refactoring of pagy_json_tag to pagy_json_attr: from script tag to data attribute
    • ๐Ÿšง 57e6f91: added rematch test to ease maintenance of tests
    • โšก๏ธ 94561a0: updated puma