Pagination library for Rails and other Ruby applications
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.
aria-label
for previous and next page links by @hammad-Ikhlaq-7vals in https://github.com/mislav/will_paginate/pull/645
aria-disabled
attribute from <span>
element by @mislav in https://github.com/mislav/will_paginate/pull/634
Full Changelog: https://github.com/mislav/will_paginate/compare/v3.3.1...v4.0.0
aria-disabled
attribute to the pagination element marked with CSS classname "disabled".ActiveRecord: Avoid a count query in empty?
#593
Support MS SQL Server #540
Avoid Ruby 2.7 warnings about keyword arguments #609
Breaking: drop Ruby 1.9 compatibility
Performance: avoid extending Numeric with PageNumber logic
BREAKING: Integer === page_number
is no longer true.
Make pagination markup more accessible:
role="navigation"
;aria-label="Pagination"
, translatable via will_paginate.container_aria_label
i18n key;aria-label="Page {N}"
, translatable via will_paginate.page_aria_label
i18n key;aria-current="page"
.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
Reference Integer instead of Fixnum to avoid Ruby 2.4 deprecation warning.
<a rel="start">
for first page link since "start" is an invalid rel valueoriginal_exception
<a rel="start">
for first page link since "start" is an invalid rel value