All Versions
52
Latest Version
Avg Release Cycle
129 days
Latest Release
-

Changelog History
Page 1

  • v1.2.2 Changes

    โœจ Enhancements:

    ๐Ÿ› Bug Fixes:

    • Restored path_to_next_url helper that was accidentally deleted in v1.2.0 #1027 [@ryym]
    • Fixed invalid link tag HTML output from rel_next_prev_link_tags helper #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]
  • v1.2.1 Changes

    May 27, 2020

    ๐Ÿ”’ Security Fixes:

    • Added original_script_name parameter to the ignore list: #1020 [@viseztrance] See CVE-2020-11082 for full details.

    ๐Ÿ› Bug Fixes:

    • ๐Ÿ›  Fixed a couple of grouped total_count regressions by reverting #979
  • v1.2.0 Changes

    January 30, 2020

    ๐Ÿ—„ Deprecations:

    • Deprecated current_per_page in favor of limit_value

    โœจ Enhancements:

    • Added #url_to_next_page and #url_to_prev_page helper methods: 38e95a2
    • Extracted url helper methods and packed them in Kaminari::Helpers::UrlHelper: ff38bee
    • ๐Ÿ‘Œ Improved performance of total_count for grouped queries by explicitly giving SQL select clause #979 [@MmKolodziej]
    • Added LIMIT to total_count query when max_pages presents #981 [@rymai]

    ๐Ÿ› Bug Fixes:

    • ๐Ÿ›  Fixed a bug where the kaminari-mongoid gem was not loaded properly: kaminari/kaminari-mongoid#9 [@DenniJensen]
    • ๐Ÿ›  Fixed a bug where the #total_count method incorrectly calculates the total count: #932 [@tumayun]
    • Fixed a bug where empty? breaks subsequent last_page? in without_count mode #1009 [@montdidier]
    • ๐Ÿ›  Fixed kwargs warnings on Ruby 2.7 #1010 [@connorshea]
  • v1.1.1 Changes

    October 22, 2017

    ๐Ÿ› Bug Fixes:

    • ๐Ÿ›  Fixed a bug where paginate ..., params: { controller: ..., action: ... } didn't override the params[:controller] and params[:action] #919 [@chao-mu]
  • v1.1.0 Changes

    October 21, 2017

    โœจ Enhancements:

    • Now the page_entries_info method respects the I18n.locale value when pluralizing the entry_name option #899 [@hundred]
    • require 'kaminari/core' is no longer necessary when using require 'kaminari/activerecord' #896 [@yhara]
    • Added the #current_per_page method to inspect current value of per_page #875 [@bfad]
    • ๐Ÿ‘ Better accesibility support by adding accessibility roles to pagination nav #848 [@frrrances]

    ๐Ÿ› Bug Fixes:

    • ๐Ÿ›  Fixed an issue where the command rails g kaminari:views ... stopped working due to a missing require #912 [@jvsoares]
    • Fixed a bug where passing in params to the link_to_next_page or link_to_previous_page method raises an exception #874 [@5t111111]
  • v1.0.1 Changes

    September 24, 2017

    ๐Ÿ› Bug Fixes:

    ๐Ÿ’Ž Added required_ruby_version to the gemspec #847 [@timoschilling]

    Fixed a regression where per(nil) uses max_per_page instead of default_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_per caused 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_pages API in favor of total_pages

    • ๐Ÿ—„ Deprecated -e haml and -e slim options for the views generator

    • Renamed the model class method for configuring max_pages from max_pages_per to max_pages

    • Raise ZeroPerPageOperation when The number of pages was incalculable of total_pages, current_page methods

    โœจ 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 model max_paginates_per config #754 [@rubyonme]

    • โž• Added :paginator_class option to specify a custom Paginator for paginate #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 respect max_per_page configuration #800 [@jonathanhefner]

    • Fixed a bug that model class' max_paginates_per was ignored when it's smaller than the default per_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]

    • ๐Ÿ›  Fixed padding() not to accept negative value #839 [@yo-gen]

    • Fixed a bug where total_count used to return a wrong value with larger page value than total pages in without_count mode #845 [@denislins]

    • Coerce padding() argument to Integer #840 [@pablocrivella]

  • v1.0.0.rc1 Changes

    September 24, 2017

    No 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_pages API in favor of total_pages

    ๐Ÿ—„ Deprecated -e haml and -e slim options for the views generator

    Renamed the model class method for configuring max_pages from max_pages_per to max_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 model max_paginates_per config #754 [@rubyonme]

    โž• Added :paginator_class option to specify a custom Paginator for paginate #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 respect max_per_page configuration #800 [@jonathanhefner]

    Fixed a bug that model class' max_paginates_per was ignored when it's smaller than the default per_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]