Releases: mislav/will_paginate
will_paginate 4.0.1
What's Changed
- Ruby 3.4 compatibility: fix running with
RUBYOPT="--enable-frozen-string-literal"
by @jdelStrother in #651 - CI: test with Ruby 3.3, Rails 7.1 by @mislav in #659
- CI: Update GitHub Actions using dependabot by @olleolleolle in #653
- Bump actions/checkout from 3 to 4 by @dependabot in #654
- README.md: Avoid hashrockets for args by @olleolleolle in #650
- bootstrap: update for docker compose by @mislav in #660
New Contributors
- @olleolleolle made their first contribution in #653
- @dependabot made their first contribution in #654
- @jdelStrother made their first contribution in #651
Full Changelog: v4.0.0...v4.0.1
will_paginate 4.0.0
This release adds only minor new features, but bumps the major version number because some old functionality has been removed due to other frameworks not being maintained anymore. Namely, DataMapper and Merb integrations have been dropped since both projects haven't been maintained in a long while and it's been hard maintaining a test suite for them.
What's New
- Preserve query parameters in pagination links rendered from POST request by @mislav in #648
- Add
aria-label
for previous and next page links by @hammad-Ikhlaq-7vals in #645- Learn how to translate these new accessible labels in non-English applications
- Remove
aria-disabled
attribute from<span>
element by @mislav in #634 - Remove DataMapper integration by @orien in #641
- Remove Merb support by @mislav in #642
What's Changed
- Rails 7 compat in tests by @mislav in #629
- Test against Rails 7 by @mislav in #633
- Bump RSpec from 2.99.0 to 3.12.0 by @orien in #640
- Remove unneeded files from the gem package by @orien in #643
- Fix CI by @mislav in #647
New Contributors
- @hammad-Ikhlaq-7vals made their first contribution in #645
Full Changelog: v3.3.1...v4.0.0
will_paginate 3.3.1
- Accessibility fix: add the
aria-disabled
attribute to the pagination element marked with CSS classname "disabled".
will_paginate 3.3.0
will_paginate 3.2.1
- Ensure PageNumber is serialized as JSON number
will_paginate 3.2.0
-
Performance: avoid extending Numeric with PageNumber logic
BREAKING:
Integer === page_number
is no longer true. -
Make pagination markup more accessible:
- container div now has
role="navigation"
; - container div now has
aria-label="Pagination"
, translatable viawill_paginate.container_aria_label
i18n key; - individual page links now have
aria-label="Page {N}"
, translatable viawill_paginate.page_aria_label
i18n key; - current page now has
aria-current="page"
.
- container div now has
-
Add support for
will_paginate
view helpers in Hanami View -
Add
total_entries
support for Mongoid -
Rails: avoid circular require warning
-
Rails: fix serving HTTP 404s for WillPaginate::InvalidPage exceptions
will_paginate 3.1.8
- Avoid warnings on Ruby 2.7
will_paginate 3.1.7
- Rails 5.2.2.1 & 6.0.0 compatibility
will_paginate 3.1.6
Reference Integer instead of Fixnum to avoid Ruby 2.4 deprecation warning.
will_paginate 3.1.5
- Avoid Rails 5 deprecation warning about
original_exception
- No longer generates
<a rel="start">
for first page link since "start" is an invalid rel value