ddnexus/pagy (pagy)
### [`v8.4.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-840)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.3.0...8.4.0)
- Retrieve only [@in](https://togithub.com/in) items:
- improve the performance of the last page in
particular storage conditions (see [#696](https://togithub.com/ddnexus/pagy/issues/696))
- Improve pagy launcher for pagy devs
### [`v8.3.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-830)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.2...8.3.0)
- Discontinue foundation materialize, semantic and uikit CSS extras
- Improve playground:
- Add install option (automated in pagy development)
- Fix HTML validation for all apps
- Remove unused styles from the demo app
- Hardcode version in pagy.gemspec
### [`v8.2.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-822)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.1...8.2.2)
- Add nav translation for ko (closes [#592](https://togithub.com/ddnexus/pagy/issues/592)) ([#690](https://togithub.com/ddnexus/pagy/issues/690))
### [`v8.2.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-821)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.0...8.2.1)
- Fix empty page param raising error (closes [#689](https://togithub.com/ddnexus/pagy/issues/689))
### [`v8.2.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-820)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.2...8.2.0)
- Fix the '#pagy_url_for' method for calendar pagination ([#688](https://togithub.com/ddnexus/pagy/issues/688))
- Extend the use of pagy_get_page to the arel, array and countless extras
- Add the pagy_get_count method to the backend
### [`v8.1.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-812)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.1...8.1.2)
- Added "da" locale for aria_label.nav (closes [#583](https://togithub.com/ddnexus/pagy/issues/583))
### [`v8.1.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-811)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.0...8.1.1)
- Fixed broken aria-label for disabled links in Foundation ([#685](https://togithub.com/ddnexus/pagy/issues/685))
- Simplification of input variables and defaults: params and request_path are not instance variables
### [`v8.1.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-810)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.2...8.1.0)
- Implement max_pages to limit the pagination regardless the actual count
- Improve efficiency of params in pagy_url_for
- Remove nil variables from DEFAULT
- Removed redundant [@pages](https://togithub.com/pages), aliased with [@last](https://togithub.com/last)
### [`v8.0.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-802)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.1...8.0.2)
- Minor change in rails app and RM run config
- Fix canonical gem root:
- Correct script.build: "NODE_PATH="$(bundle show 'pagy')/javascripts"
- Move pagy.gemspec inside the gem root dir
- Fix for Turbo not intercepting changes in window.location
- Use require_relative for gem/lib files
- Complete translation of aria.nav for "ru" locale (close [#599](https://togithub.com/ddnexus/pagy/issues/599))
- Docs improvement and fixes
### [`v8.0.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-801)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.0...8.0.1)
- Reorganize the gem root dir: it was the lib dir (containing everything), now is the gem dir (containing lib and everything
else).
- Fix broken link in README
### [`v8.0.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-800)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.11...8.0.0)
##### Breaking changes
- Renamed/removed the following arguments for all the helpers:
- Search `pagy_id:`, replace with `id:`
- Search `nav_aria_label:`, replace with`aria_label:`
- The `nav_i18n_key` has been removed: pass the interpolated/pluralized value as the `aria_label:` argument
- The `item_i18n_key` has been removed: pass the interpolated/pluralized value as the `item_name:` argument
- The `link_extra:` has been removed: its cumulative mechanism was confusing and error prone. The `:anchor_string` pagy
variable substitutes it, however it's not an helper argument anymore, so you can assign it as the `DEFAULT[:anchor_string]`
and/or pass it as any other pagy variable at object construction. (
See [customize the link attributes](https://ddnexus.github.io/pagy/docs/how-to/#customize-the-link-attributes))
- HTML structure, classes and internal methods have been changed: they may break your views if you used custom stylesheets,
templates or helper overrides. See the complete changes below if you notice any cosmetic changes or get some exception.
- The `navs` and `support` extras has been merged into the new [pagy extra](https://ddnexus.github.io/pagy/docs/extras/pagy).
Search for `"extras/navs"` and
`"extras/support"` and replace with `"extras/pagy"` (remove the duplicate if you used both)
- The `"extras/frontend_helpers"` has been renamed to `"extras/js_tools"`
- The build path for javascript builders has been updated to the canonical paths for gems, and has moved from the `lib` to
the gem root. Notice that the correct setup in `package json` was still wrongly wrapped in the `gem` dir for 8.0.0-8.0.1, and it
has finally been fixed in 8.0.2 (sorry for that):
- 8.0.0-8.0.1 only: `build: "NODE_PATH=\"$(bundle show 'pagy')/gem/javascripts\" "`
- 8.0.2+: `build: "NODE_PATH=\"$(bundle show 'pagy')/javascripts\" "`
##### Changes
- Streamlined HTML and CSS helper structure. You may want to look at the actual output by running
the [pagy demo](https://ddnexus.github.io/pagy/playground.md#3-demo-app)
- The `pagy_nav` and `pagy_nav_js` helpers output a series of `a` tags inside a wrapper `nav` tag (nothing else)
- The disabled links are so because they are missing the `href` attributes. (They also have the `role="link"`
and `aria-disabled="true"` attributes)
- The `current` and `gap` classes are assigned to the specific `a` tags
- HTML changes
- All the pagy helper root classes have been changed according to the following rule. For example:
- `"pagy-nav"` > `"pagy nav"`
- `"pagy-bootstrap-nav-js"` > `"pagy-bootstrap nav-js"`
- and so on for all the helpers
- The `active` class of the `*nav`/`*nav_js` links as been renamed as `current`
- The `disabled`, `prev`, `next` and `pagy-combo-input` link classes have been removed (see
the [stylesheets](https://ddnexus.github.io/pagy/docs/api/stylesheets/#pagy-scss) for details)
- The `rel="prev"` and `rel="next"` attributes have been dropped (they are obsolete)
- The `` and ``/`` wrappers in the dictionary files have been removed
- The `pagy_link_proc` method (only used internally or in your custom overriding) has been renamed to `pagy_anchor` and it works
slightly differently:
- The `link_extra:` key argument has been removed
- The `extra` positional argument of the returned lambda has been removed
- The `classes:` and `aria_label:` keyword arguments have been added to the returned lambda
- The `nav_aria_label_attr` method has been renamed as `nav_aria_label`
- The internal `prev_aria_label_attr` and `next_aria_label_attr` methods have been removed
- The `gap` in the nav bars is a disabled anchor element (`a` tag without a `href` attribute)
- The `pagy_prev_html` and `pagy_next_html` have been renamed as `pagy_prev_a` and `pagy_next_a`
- The `pagy_prev_link_tag` and `pagy_next_link_tag` have been renamed as `pagy_prev_link` and `pagy_next_link`
- The `*combo_nav_js` and `pagy_items_selector_js` helpers use a more efficient code
- The `src/pagy.ts` and relative built javascript files have been adapted to the above changes
- The [stylesheets](https://ddnexus.github.io/pagy/docs/api/stylesheets/) are a lot simpler as a consequence of the changes above
- All the `*combo-nav_js` of the framework extras use simpler structure and improve the look and feel consistently with their
respective frameworks
- All the frontend extra have been normalized and are totally consistent with each other; a few may add the `classes:`
argument to a few components, when the framework allows it.
- Created the [pagy playground](https://ddnexus.github.io/pagy/playground) system of apps working with the `pagy` executable.
- Internal renaming `FrontendHelpers` > `JSTools`
- Fix broken link of pagy.rb in docs (closes [#668](https://togithub.com/ddnexus/pagy/issues/668), [#669](https://togithub.com/ddnexus/pagy/issues/669))
- Docs Improvements
- Better code issue template
[LEGACY CHANGELOG >>>](CHANGELOG_LEGACY.md)
### [`v7.0.11`](https://togithub.com/ddnexus/pagy/compare/7.0.10...7.0.11)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.10...7.0.11)
### [`v7.0.10`](https://togithub.com/ddnexus/pagy/compare/7.0.9...7.0.10)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.9...7.0.10)
### [`v7.0.9`](https://togithub.com/ddnexus/pagy/compare/7.0.8...7.0.9)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.8...7.0.9)
### [`v7.0.8`](https://togithub.com/ddnexus/pagy/compare/7.0.7...7.0.8)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.7...7.0.8)
### [`v7.0.7`](https://togithub.com/ddnexus/pagy/compare/7.0.6...7.0.7)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.6...7.0.7)
### [`v7.0.6`](https://togithub.com/ddnexus/pagy/compare/7.0.5...7.0.6)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.5...7.0.6)
### [`v7.0.5`](https://togithub.com/ddnexus/pagy/compare/7.0.4...7.0.5)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.4...7.0.5)
### [`v7.0.4`](https://togithub.com/ddnexus/pagy/compare/7.0.3...7.0.4)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.3...7.0.4)
### [`v7.0.3`](https://togithub.com/ddnexus/pagy/compare/7.0.2...7.0.3)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.2...7.0.3)
### [`v7.0.2`](https://togithub.com/ddnexus/pagy/compare/7.0.1...7.0.2)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.1...7.0.2)
### [`v7.0.1`](https://togithub.com/ddnexus/pagy/compare/7.0.0...7.0.1)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.0...7.0.1)
### [`v7.0.0`](https://togithub.com/ddnexus/pagy/releases/tag/7.0.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.5.0...7.0.0)
##### ✴ What's new ✴
- [JSON:API support](https://ddnexus.github.io/pagy/docs/extras/jsonapi/)
- [ARIA compliance](https://ddnexus.github.io/pagy/docs/api/aria/) and refactoring of dictionary files
- Added a simpler and faster nav without gaps (just pass an integer to the `:size`)
- Pagy follows the [ruby end-of-life](https://endoflife.date/ruby) supported rubies now (3.1+)
- See the [Changelog](https://ddnexus.github.io/pagy/changelog) for possible breaking changes
### [`v6.5.0`](https://togithub.com/ddnexus/pagy/compare/6.4.4...6.5.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.4.4...6.5.0)
### [`v6.4.4`](https://togithub.com/ddnexus/pagy/compare/6.4.3...6.4.4)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.4.3...6.4.4)
### [`v6.4.3`](https://togithub.com/ddnexus/pagy/compare/6.4.2...6.4.3)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.4.2...6.4.3)
### [`v6.4.2`](https://togithub.com/ddnexus/pagy/compare/6.4.1...6.4.2)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.4.1...6.4.2)
### [`v6.4.1`](https://togithub.com/ddnexus/pagy/compare/6.4.0...6.4.1)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.4.0...6.4.1)
### [`v6.4.0`](https://togithub.com/ddnexus/pagy/compare/6.3.0...6.4.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.3.0...6.4.0)
### [`v6.3.0`](https://togithub.com/ddnexus/pagy/compare/6.2.0...6.3.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.2.0...6.3.0)
### [`v6.2.0`](https://togithub.com/ddnexus/pagy/compare/6.1.0...6.2.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.1.0...6.2.0)
### [`v6.1.0`](https://togithub.com/ddnexus/pagy/compare/6.0.4...6.1.0)
[Compare Source](https://togithub.com/ddnexus/pagy/compare/6.0.4...6.1.0)
Configuration
📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
'~> 6.0'
->'~> 8.0'
Release Notes
ddnexus/pagy (pagy)
### [`v8.4.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-840) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.3.0...8.4.0) - Retrieve only [@in](https://togithub.com/in) items: - improve the performance of the last page in particular storage conditions (see [#696](https://togithub.com/ddnexus/pagy/issues/696)) - Improve pagy launcher for pagy devs ### [`v8.3.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-830) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.2...8.3.0) - Discontinue foundation materialize, semantic and uikit CSS extras - Improve playground: - Add install option (automated in pagy development) - Fix HTML validation for all apps - Remove unused styles from the demo app - Hardcode version in pagy.gemspec ### [`v8.2.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-822) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.1...8.2.2) - Add nav translation for ko (closes [#592](https://togithub.com/ddnexus/pagy/issues/592)) ([#690](https://togithub.com/ddnexus/pagy/issues/690)) ### [`v8.2.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-821) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.2.0...8.2.1) - Fix empty page param raising error (closes [#689](https://togithub.com/ddnexus/pagy/issues/689)) ### [`v8.2.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-820) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.2...8.2.0) - Fix the '#pagy_url_for' method for calendar pagination ([#688](https://togithub.com/ddnexus/pagy/issues/688)) - Extend the use of pagy_get_page to the arel, array and countless extras - Add the pagy_get_count method to the backend ### [`v8.1.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-812) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.1...8.1.2) - Added "da" locale for aria_label.nav (closes [#583](https://togithub.com/ddnexus/pagy/issues/583)) ### [`v8.1.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-811) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.1.0...8.1.1) - Fixed broken aria-label for disabled links in Foundation ([#685](https://togithub.com/ddnexus/pagy/issues/685)) - Simplification of input variables and defaults: params and request_path are not instance variables ### [`v8.1.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-810) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.2...8.1.0) - Implement max_pages to limit the pagination regardless the actual count - Improve efficiency of params in pagy_url_for - Remove nil variables from DEFAULT - Removed redundant [@pages](https://togithub.com/pages), aliased with [@last](https://togithub.com/last) ### [`v8.0.2`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-802) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.1...8.0.2) - Minor change in rails app and RM run config - Fix canonical gem root: - Correct script.build: "NODE_PATH="$(bundle show 'pagy')/javascripts" - Move pagy.gemspec inside the gem root dir - Fix for Turbo not intercepting changes in window.location - Use require_relative for gem/lib files - Complete translation of aria.nav for "ru" locale (close [#599](https://togithub.com/ddnexus/pagy/issues/599)) - Docs improvement and fixes ### [`v8.0.1`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-801) [Compare Source](https://togithub.com/ddnexus/pagy/compare/8.0.0...8.0.1) - Reorganize the gem root dir: it was the lib dir (containing everything), now is the gem dir (containing lib and everything else). - Fix broken link in README ### [`v8.0.0`](https://togithub.com/ddnexus/pagy/blob/HEAD/CHANGELOG.md#Version-800) [Compare Source](https://togithub.com/ddnexus/pagy/compare/7.0.11...8.0.0) ##### Breaking changes - Renamed/removed the following arguments for all the helpers: - Search `pagy_id:`, replace with `id:` - Search `nav_aria_label:`, replace with`aria_label:` - The `nav_i18n_key` has been removed: pass the interpolated/pluralized value as the `aria_label:` argument - The `item_i18n_key` has been removed: pass the interpolated/pluralized value as the `item_name:` argument - The `link_extra:` has been removed: its cumulative mechanism was confusing and error prone. The `:anchor_string` pagy variable substitutes it, however it's not an helper argument anymore, so you can assign it as the `DEFAULT[:anchor_string]` and/or pass it as any other pagy variable at object construction. ( See [customize the link attributes](https://ddnexus.github.io/pagy/docs/how-to/#customize-the-link-attributes)) - HTML structure, classes and internal methods have been changed: they may break your views if you used custom stylesheets, templates or helper overrides. See the complete changes below if you notice any cosmetic changes or get some exception. - The `navs` and `support` extras has been merged into the new [pagy extra](https://ddnexus.github.io/pagy/docs/extras/pagy). Search for `"extras/navs"` and `"extras/support"` and replace with `"extras/pagy"` (remove the duplicate if you used both) - The `"extras/frontend_helpers"` has been renamed to `"extras/js_tools"` - The build path for javascript builders has been updated to the canonical paths for gems, and has moved from the `lib` to the gem root. Notice that the correct setup in `package json` was still wrongly wrapped in the `gem` dir for 8.0.0-8.0.1, and it has finally been fixed in 8.0.2 (sorry for that): - 8.0.0-8.0.1 only: `build: "NODE_PATH=\"$(bundle show 'pagy')/gem/javascripts\"Configuration
📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.