Skip to content

Update kaminari 1.2.2 → 1.3.0 (minor) - #1951

Merged
hennevogel merged 1 commit into
masterfrom
depfu/update/kaminari-1.3.0
Oct 28, 2026
Merged

hennevogel merged 1 commit into
masterfrom
depfu/update/kaminari-1.3.0

Conversation

@depfu

@depfu depfu Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ kaminari (1.2.2 → 1.3.0) · Repo · Changelog

Release Notes

1.3.0

1.3.0

Security Fixes:

  • page ignores a Hash or an Array page number (e.g. ?page[]=1) instead of raising #1087 [@xiaohui-zhangxh]
  • page_entries_info escapes the entry_name, which could contain user input, while keeping an html_safe entry_name as is: d599c37

Incompatible Changes:

  • Dropped Ruby 2.0 support: 2f1f84b
  • The default English page_entries_info message now separates the range with an en dash (e.g. "1–25") instead of  -  #1105 [@jdufresne]
  • page_entries_info displays "No entries found" on out of range pages, instead of an inverted range like "Displaying users 81–80 of 50 in total": b712562

Enhancements:

  • Rails 7.1, 7.2, 8.0, and 8.1 support
  • Ruby 3.1, 3.2, 3.3, 3.4, and 4.0 support
  • Added paginated? to models, relations, and paginatable arrays #1118 [@jarenas9539]
  • Added the data: option to paginate for the links' data attributes #1095 [@theforestvn88]
  • Registered Kaminari's deprecator to Rails.application.deprecators #1103 [@etiennebarrie]
  • require 'kaminari' also loads Kaminari::VERSION #1079 [@d-otis]
  • The views generator warns when it falls back to erb for an unsupported template engine: 4c2991e
  • Improved performance of total_count for grouped relations by counting the groups in the database with a subquery #1157 (based on #1022 and #1023 [@bendilley])
  • Improved performance of total_count by removing irrelevant eager_load and preload that ran unwanted joins in the count query #1043 [@Viktor-Ivliev]
  • Improved performance of paginate by calling url_for only a few times per paginator: 7b5f079
  • Improved performance of paginate by looking up each partial template only once per paginator: c5cc1a1
  • Improved performance of paginate by reducing object allocations: 1cc6f98, ff07a28, b951069, 2e80453, 794724e, and 7f08863
  • Improved performance of page and per on Active Record by copying the Relation only once: 0cb494d, c35e5a1, and ae23bc6
  • Improved performance of page_entries_info #1109 [@jdufresne]

Bug Fixes:

  • Fixed ActionController::UrlGenerationError on Rails 8+ when the request params include route options such as subdomain or host #1147 [@hpanwar09]
  • Fixed view helpers called with keyword arguments inside the paginator templates on Ruby 3 #1114 [@diasjorge]
  • Fixed an error with a Symbol param_name other than :page #1121 [@magnum]
  • Fixed NameError when including Kaminari::Helpers::UrlHelper outside of the views #1100 [@hikonori07]
  • Fixed page_entries_info for a paginated empty array with total_count #1088 [@monfresh]
  • Fixed total_count on the last page of a loaded Relation with padding: c7a46f1
  • Fixed ZeroDivisionError from per after per(0) #1138 [@dpep]
  • Fixed per and max_paginates_per dropping the padding: c149803
  • Fixed per, max_paginates_per, and padding changing the receiver's values instead of the returned scope's: a9cbb2c
  • Fixed max_paginates_per returning no records after an ignored per value such as per('abc'): 0f2816a
  • Fixed per treating a value like "abc\n10" as per(0) instead of ignoring it: 8298351
  • Fixed Kaminari::ZeroPerPageOperation from total_count on a loaded per(0) Relation #1155 [@andreyruby]
  • Fixed total_count returning 0 with max_pages after per(0): 06e90d9
  • Fixed TypeError from total_count after unscope(:limit): 4fd263b
  • Fixed the Haml and Slim paginators rendering the next and last links on out of range pages, as the erb paginator doesn't: a44950d
  • Fixed the views generator generating nothing for an unsupported template engine, such as one set via config.generators.template_engine #1108 [@Xavier-IV]
  • Fixed the views generator crashing on network errors other than SocketError: 6d91911

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ crass (indirect, 1.0.7 → 1.0.8) · Repo · Changelog

Release Notes

1.0.8

Security

  • Moderate: Fixed a tokenizer bug in which a ) following an escaped backslash (\\) inside a bad URL didn't terminate the bad URL token, causing Crass to consume more input than a spec-compliant browser would. CSS sanitizers built on Crass could be tricked into passing through declarations, rules, or at-rules that a browser would then apply. (GHSA-pq4g-8rxf-4g29)

Full Changelog: v1.0.7...v1.0.8

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by 3 commits:

↗️ kaminari-actionview (indirect, 1.2.2 → 1.3.0) · Repo · Changelog

Release Notes

1.3.0

1.3.0

Security Fixes:

  • page ignores a Hash or an Array page number (e.g. ?page[]=1) instead of raising #1087 [@xiaohui-zhangxh]
  • page_entries_info escapes the entry_name, which could contain user input, while keeping an html_safe entry_name as is: d599c37

Incompatible Changes:

  • Dropped Ruby 2.0 support: 2f1f84b
  • The default English page_entries_info message now separates the range with an en dash (e.g. "1–25") instead of  -  #1105 [@jdufresne]
  • page_entries_info displays "No entries found" on out of range pages, instead of an inverted range like "Displaying users 81–80 of 50 in total": b712562

Enhancements:

  • Rails 7.1, 7.2, 8.0, and 8.1 support
  • Ruby 3.1, 3.2, 3.3, 3.4, and 4.0 support
  • Added paginated? to models, relations, and paginatable arrays #1118 [@jarenas9539]
  • Added the data: option to paginate for the links' data attributes #1095 [@theforestvn88]
  • Registered Kaminari's deprecator to Rails.application.deprecators #1103 [@etiennebarrie]
  • require 'kaminari' also loads Kaminari::VERSION #1079 [@d-otis]
  • The views generator warns when it falls back to erb for an unsupported template engine: 4c2991e
  • Improved performance of total_count for grouped relations by counting the groups in the database with a subquery #1157 (based on #1022 and #1023 [@bendilley])
  • Improved performance of total_count by removing irrelevant eager_load and preload that ran unwanted joins in the count query #1043 [@Viktor-Ivliev]
  • Improved performance of paginate by calling url_for only a few times per paginator: 7b5f079
  • Improved performance of paginate by looking up each partial template only once per paginator: c5cc1a1
  • Improved performance of paginate by reducing object allocations: 1cc6f98, ff07a28, b951069, 2e80453, 794724e, and 7f08863
  • Improved performance of page and per on Active Record by copying the Relation only once: 0cb494d, c35e5a1, and ae23bc6
  • Improved performance of page_entries_info #1109 [@jdufresne]

Bug Fixes:

  • Fixed ActionController::UrlGenerationError on Rails 8+ when the request params include route options such as subdomain or host #1147 [@hpanwar09]
  • Fixed view helpers called with keyword arguments inside the paginator templates on Ruby 3 #1114 [@diasjorge]
  • Fixed an error with a Symbol param_name other than :page #1121 [@magnum]
  • Fixed NameError when including Kaminari::Helpers::UrlHelper outside of the views #1100 [@hikonori07]
  • Fixed page_entries_info for a paginated empty array with total_count #1088 [@monfresh]
  • Fixed total_count on the last page of a loaded Relation with padding: c7a46f1
  • Fixed ZeroDivisionError from per after per(0) #1138 [@dpep]
  • Fixed per and max_paginates_per dropping the padding: c149803
  • Fixed per, max_paginates_per, and padding changing the receiver's values instead of the returned scope's: a9cbb2c
  • Fixed max_paginates_per returning no records after an ignored per value such as per('abc'): 0f2816a
  • Fixed per treating a value like "abc\n10" as per(0) instead of ignoring it: 8298351
  • Fixed Kaminari::ZeroPerPageOperation from total_count on a loaded per(0) Relation #1155 [@andreyruby]
  • Fixed total_count returning 0 with max_pages after per(0): 06e90d9
  • Fixed TypeError from total_count after unscope(:limit): 4fd263b
  • Fixed the Haml and Slim paginators rendering the next and last links on out of range pages, as the erb paginator doesn't: a44950d
  • Fixed the views generator generating nothing for an unsupported template engine, such as one set via config.generators.template_engine #1108 [@Xavier-IV]
  • Fixed the views generator crashing on network errors other than SocketError: 6d91911

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ kaminari-activerecord (indirect, 1.2.2 → 1.3.0) · Repo · Changelog

Release Notes

1.3.0

1.3.0

Security Fixes:

  • page ignores a Hash or an Array page number (e.g. ?page[]=1) instead of raising #1087 [@xiaohui-zhangxh]
  • page_entries_info escapes the entry_name, which could contain user input, while keeping an html_safe entry_name as is: d599c37

Incompatible Changes:

  • Dropped Ruby 2.0 support: 2f1f84b
  • The default English page_entries_info message now separates the range with an en dash (e.g. "1–25") instead of  -  #1105 [@jdufresne]
  • page_entries_info displays "No entries found" on out of range pages, instead of an inverted range like "Displaying users 81–80 of 50 in total": b712562

Enhancements:

  • Rails 7.1, 7.2, 8.0, and 8.1 support
  • Ruby 3.1, 3.2, 3.3, 3.4, and 4.0 support
  • Added paginated? to models, relations, and paginatable arrays #1118 [@jarenas9539]
  • Added the data: option to paginate for the links' data attributes #1095 [@theforestvn88]
  • Registered Kaminari's deprecator to Rails.application.deprecators #1103 [@etiennebarrie]
  • require 'kaminari' also loads Kaminari::VERSION #1079 [@d-otis]
  • The views generator warns when it falls back to erb for an unsupported template engine: 4c2991e
  • Improved performance of total_count for grouped relations by counting the groups in the database with a subquery #1157 (based on #1022 and #1023 [@bendilley])
  • Improved performance of total_count by removing irrelevant eager_load and preload that ran unwanted joins in the count query #1043 [@Viktor-Ivliev]
  • Improved performance of paginate by calling url_for only a few times per paginator: 7b5f079
  • Improved performance of paginate by looking up each partial template only once per paginator: c5cc1a1
  • Improved performance of paginate by reducing object allocations: 1cc6f98, ff07a28, b951069, 2e80453, 794724e, and 7f08863
  • Improved performance of page and per on Active Record by copying the Relation only once: 0cb494d, c35e5a1, and ae23bc6
  • Improved performance of page_entries_info #1109 [@jdufresne]

Bug Fixes:

  • Fixed ActionController::UrlGenerationError on Rails 8+ when the request params include route options such as subdomain or host #1147 [@hpanwar09]
  • Fixed view helpers called with keyword arguments inside the paginator templates on Ruby 3 #1114 [@diasjorge]
  • Fixed an error with a Symbol param_name other than :page #1121 [@magnum]
  • Fixed NameError when including Kaminari::Helpers::UrlHelper outside of the views #1100 [@hikonori07]
  • Fixed page_entries_info for a paginated empty array with total_count #1088 [@monfresh]
  • Fixed total_count on the last page of a loaded Relation with padding: c7a46f1
  • Fixed ZeroDivisionError from per after per(0) #1138 [@dpep]
  • Fixed per and max_paginates_per dropping the padding: c149803
  • Fixed per, max_paginates_per, and padding changing the receiver's values instead of the returned scope's: a9cbb2c
  • Fixed max_paginates_per returning no records after an ignored per value such as per('abc'): 0f2816a
  • Fixed per treating a value like "abc\n10" as per(0) instead of ignoring it: 8298351
  • Fixed Kaminari::ZeroPerPageOperation from total_count on a loaded per(0) Relation #1155 [@andreyruby]
  • Fixed total_count returning 0 with max_pages after per(0): 06e90d9
  • Fixed TypeError from total_count after unscope(:limit): 4fd263b
  • Fixed the Haml and Slim paginators rendering the next and last links on out of range pages, as the erb paginator doesn't: a44950d
  • Fixed the views generator generating nothing for an unsupported template engine, such as one set via config.generators.template_engine #1108 [@Xavier-IV]
  • Fixed the views generator crashing on network errors other than SocketError: 6d91911

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.

↗️ kaminari-core (indirect, 1.2.2 → 1.3.0) · Repo · Changelog

Release Notes

1.3.0

1.3.0

Security Fixes:

  • page ignores a Hash or an Array page number (e.g. ?page[]=1) instead of raising #1087 [@xiaohui-zhangxh]
  • page_entries_info escapes the entry_name, which could contain user input, while keeping an html_safe entry_name as is: d599c37

Incompatible Changes:

  • Dropped Ruby 2.0 support: 2f1f84b
  • The default English page_entries_info message now separates the range with an en dash (e.g. "1–25") instead of  -  #1105 [@jdufresne]
  • page_entries_info displays "No entries found" on out of range pages, instead of an inverted range like "Displaying users 81–80 of 50 in total": b712562

Enhancements:

  • Rails 7.1, 7.2, 8.0, and 8.1 support
  • Ruby 3.1, 3.2, 3.3, 3.4, and 4.0 support
  • Added paginated? to models, relations, and paginatable arrays #1118 [@jarenas9539]
  • Added the data: option to paginate for the links' data attributes #1095 [@theforestvn88]
  • Registered Kaminari's deprecator to Rails.application.deprecators #1103 [@etiennebarrie]
  • require 'kaminari' also loads Kaminari::VERSION #1079 [@d-otis]
  • The views generator warns when it falls back to erb for an unsupported template engine: 4c2991e
  • Improved performance of total_count for grouped relations by counting the groups in the database with a subquery #1157 (based on #1022 and #1023 [@bendilley])
  • Improved performance of total_count by removing irrelevant eager_load and preload that ran unwanted joins in the count query #1043 [@Viktor-Ivliev]
  • Improved performance of paginate by calling url_for only a few times per paginator: 7b5f079
  • Improved performance of paginate by looking up each partial template only once per paginator: c5cc1a1
  • Improved performance of paginate by reducing object allocations: 1cc6f98, ff07a28, b951069, 2e80453, 794724e, and 7f08863
  • Improved performance of page and per on Active Record by copying the Relation only once: 0cb494d, c35e5a1, and ae23bc6
  • Improved performance of page_entries_info #1109 [@jdufresne]

Bug Fixes:

  • Fixed ActionController::UrlGenerationError on Rails 8+ when the request params include route options such as subdomain or host #1147 [@hpanwar09]
  • Fixed view helpers called with keyword arguments inside the paginator templates on Ruby 3 #1114 [@diasjorge]
  • Fixed an error with a Symbol param_name other than :page #1121 [@magnum]
  • Fixed NameError when including Kaminari::Helpers::UrlHelper outside of the views #1100 [@hikonori07]
  • Fixed page_entries_info for a paginated empty array with total_count #1088 [@monfresh]
  • Fixed total_count on the last page of a loaded Relation with padding: c7a46f1
  • Fixed ZeroDivisionError from per after per(0) #1138 [@dpep]
  • Fixed per and max_paginates_per dropping the padding: c149803
  • Fixed per, max_paginates_per, and padding changing the receiver's values instead of the returned scope's: a9cbb2c
  • Fixed max_paginates_per returning no records after an ignored per value such as per('abc'): 0f2816a
  • Fixed per treating a value like "abc\n10" as per(0) instead of ignoring it: 8298351
  • Fixed Kaminari::ZeroPerPageOperation from total_count on a loaded per(0) Relation #1155 [@andreyruby]
  • Fixed total_count returning 0 with max_pages after per(0): 06e90d9
  • Fixed TypeError from total_count after unscope(:limit): 4fd263b
  • Fixed the Haml and Slim paginators rendering the next and last links on out of range pages, as the erb paginator doesn't: a44950d
  • Fixed the views generator generating nothing for an unsupported template engine, such as one set via config.generators.template_engine #1108 [@Xavier-IV]
  • Fixed the views generator crashing on network errors other than SocketError: 6d91911

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu cancel merge
Cancels automatic merging of this PR
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)

@depfu depfu Bot added the depfu label Oct 27, 2026
@hennevogel
hennevogel merged commit 36d9a30 into master Oct 28, 2026
3 checks passed
@depfu
depfu Bot deleted the depfu/update/kaminari-1.3.0 branch October 28, 2026 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant