Changelog History
Page 1
-
v1.2.2 Changes
โจ Enhancements:
๐ Bug Fixes:
- Restored
path_to_next_urlhelper that was accidentally deleted in v1.2.0 #1027 [@ryym] - Fixed invalid link tag HTML output from
rel_next_prev_link_tagshelper #1045 [@dlackty] - ๐ Fixed Errno::ENOENT error for views generator on Ruby 3 #1050 [@ar31an]
- โ Suppress warnings about keyword args on Ruby 2.7 #1053 [@mishina]
- Restored
-
v1.2.1 Changes
May 27, 2020๐ Security Fixes:
- Added
original_script_nameparameter to the ignore list: #1020 [@viseztrance] See CVE-2020-11082 for full details.
๐ Bug Fixes:
- ๐ Fixed a couple of grouped
total_countregressions by reverting #979
- Added
-
v1.2.0 Changes
January 30, 2020๐ Deprecations:
- Deprecated
current_per_pagein favor oflimit_value
โจ Enhancements:
- Added
#url_to_next_pageand#url_to_prev_pagehelper methods: 38e95a2 - Extracted url helper methods and packed them in
Kaminari::Helpers::UrlHelper: ff38bee - ๐ Improved performance of
total_countfor grouped queries by explicitly giving SQLselectclause #979 [@MmKolodziej] - Added
LIMITtototal_countquery whenmax_pagespresents #981 [@rymai]
๐ Bug Fixes:
- ๐ Fixed a bug where the
kaminari-mongoidgem was not loaded properly: kaminari/kaminari-mongoid#9 [@DenniJensen] - ๐ Fixed a bug where the
#total_countmethod incorrectly calculates the total count: #932 [@tumayun] - Fixed a bug where
empty?breaks subsequentlast_page?in without_count mode #1009 [@montdidier] - ๐ Fixed kwargs warnings on Ruby 2.7 #1010 [@connorshea]
- Deprecated
-
v1.1.1 Changes
October 22, 2017 -
v1.1.0 Changes
October 21, 2017โจ Enhancements:
- Now the
page_entries_infomethod respects theI18n.localevalue when pluralizing theentry_nameoption #899 [@hundred] require 'kaminari/core'is no longer necessary when usingrequire 'kaminari/activerecord'#896 [@yhara]- Added the
#current_per_pagemethod to inspect current value ofper_page#875 [@bfad] - ๐ Better accesibility support by adding accessibility roles to pagination nav #848 [@frrrances]
๐ Bug Fixes:
- Now the
-
v1.0.1 Changes
September 24, 2017๐ Bug Fixes:
๐ Added
required_ruby_versionto the gemspec #847 [@timoschilling]Fixed a regression where
per(nil)usesmax_per_pageinstead ofdefault_per_page#813 [@merqlove]๐ Fixed a regression where passing a String to
per()aborts with ArgumentError #849 [@rafaelgonzalez]Fixed a bug where calling deprecated
max_pages_percaused an Error on Rails 4 #852 [@tsuwatch] -
v1.0.0 Changes
September 24, 2017๐ฅ 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_pagesAPI in favor oftotal_pages๐ Deprecated
-e hamland-e slimoptions for the views generatorRenamed the model class method for configuring
max_pagesfrommax_pages_pertomax_pagesRaise ZeroPerPageOperation when The number of pages was incalculable of
total_pages,current_pagemethods
โจ Enhancements:
Exposed
path_to_prev_page,path_to_next_pagehelpers as public API #683 [@neilang]โ Added
--views_prefixoption for the views generator #668 [@antstorm]Added
max_paginates_perscope method to overwrite modelmax_paginates_perconfig #754 [@rubyonme]โ Added
:paginator_classoption 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_countif 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
paginatechanges request.format #540 [@jasonkim]Fixed a bug where
per(nil)didn't respectmax_per_pageconfiguration #800 [@jonathanhefner]Fixed a bug that model class'
max_paginates_perwas ignored when it's smaller than the defaultper_pagePreserve 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::OutputBufferif Action View is loaded #804 [@onemanstartup]๐ Fixed
padding()not to accept negative value #839 [@yo-gen]Fixed a bug where
total_countused to return a wrong value with larger page value than total pages inwithout_countmode #845 [@denislins]Coerce
padding()argument to Integer #840 [@pablocrivella]
-
v1.0.0.rc1 Changes
September 24, 2017No changes
-
v1.0.0.beta2 Changes
September 24, 2017๐ Bug fixes
- ๐ fixed an issue where kaminari couldn't be installed due to version constraints
-
v1.0.0.beta1 Changes
September 24, 2017๐ฅ 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_pagesAPI in favor oftotal_pages๐ Deprecated
-e hamland-e slimoptions for the views generatorRenamed the model class method for configuring
max_pagesfrommax_pages_pertomax_pagesโจ Enhancements:
Exposed
path_to_prev_page,path_to_next_pagehelpers as public API #683 [@neilang]โ Added
--views_prefixoption for the views generator #668 [@antstorm]Added
max_paginates_perscope method to overwrite modelmax_paginates_perconfig #754 [@rubyonme]โ Added
:paginator_classoption 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_countif 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
paginatechanges request.format #540 [@jasonkim]Fixed a bug where
per(nil)didn't respectmax_per_pageconfiguration #800 [@jonathanhefner]Fixed a bug that model class'
max_paginates_perwas ignored when it's smaller than the defaultper_pagePreserve 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::OutputBufferif Action View is loaded #804 [@onemanstartup]