Kaminari v1.2.1 Release Notes

Release Date: 2020-05-27 // over 1 year ago
  • ๐Ÿ”’ 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

Previous changes from v1.2.0

  • ๐Ÿ—„ 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]