Kaminari v1.0.0.beta1 Release Notes
Release Date: 2017-09-24 // over 6 years ago-
๐ฅ Breaking Changes:
โฌ๏ธ Dropped Ruby 1.9 support
โฌ๏ธ Dropped Rails 3.2 support
โฌ๏ธ Dropped Rails 4.0 support
โ Removed Sinatra support that has been extracted to kaminari-sinatra gem
โ Removed Mongoid support that has been extracted to kaminari-mongoid gem
โ Removed MongoMapper support that has been extracted to kaminari-mongo_mapper gem
โ Removed DataMapper support that has been extracted to kaminari-data_mapper gem
๐ Extracted Grape support to kaminari-grape gem and removed it from the core
Splitted the gem into 3 internal gems:
- The core pagination logic (kaminari-core)
- Active Record adapter (kaminari-activerecord)
- Action View adapter (kaminari-actionview)
Removed deprecated
num_pages
API in favor oftotal_pages
๐ Deprecated
-e haml
and-e slim
options for the views generatorRenamed the model class method for configuring
max_pages
frommax_pages_per
tomax_pages
โจ Enhancements:
Exposed
path_to_prev_page
,path_to_next_page
helpers as public API #683 [@neilang]โ Added
--views_prefix
option for the views generator #668 [@antstorm]Added
max_paginates_per
scope method to overwrite modelmax_paginates_per
config #754 [@rubyonme]โ Added
:paginator_class
option to specify a custom Paginator forpaginate
#740 [@watsonbox]Use I18n to pluralize entries in
page_entries_info
#694 [@Linuus]โ Added
without_count
#681 [@bryanrite]๐ Omit select count query for
total_count
if it's calculable in Ruby level from loaded records๐ Bug Fixes:
๐ Fixed a bug that a single page gap was displayed as "โฆ"
before: โน 1 2 โฆ 4 5 [6] 7 8 โฆ 15 16 โบ after: โน 1 2 3 4 5 [6] 7 8 โฆ 15 16 โบ
๐ Fixed a bug where
paginate
changes request.format #540 [@jasonkim]Fixed a bug where
per(nil)
didn't respectmax_per_page
configuration #800 [@jonathanhefner]Fixed a bug that model class'
max_paginates_per
was ignored when it's smaller than the defaultper_page
Preserve source location of the pagination method #812 [@ka8725]
Preserve source location of the tag helpers
Hide Next & Last buttons if page is out of range #712 [@igorkasyanchuk]
Always buffer with
ActionView::OutputBuffer
if Action View is loaded #804 [@onemanstartup]