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 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]