Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency pagy to v9 #121

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update dependency pagy to v9 #121

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 17, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pagy (changelog) "~> 6.0" -> "~> 9.0" age adoption passing confidence

Release Notes

ddnexus/pagy (pagy)

v9.0.8

Compare Source

  • Keep offset and limit variables untouched by the overflow extra in :empty_page mode (closes #​733)

v9.0.7

Compare Source

  • Absolutize generic define? to fix module resolution

v9.0.6

Compare Source

  • Fix docs (closes #​732)
  • Replace pluck with pick

v9.0.5

Compare Source

  • Fix for missing variables passed to pagy_anchor from pagy_nav (closes #​728)

v9.0.4

Compare Source

  • Fix groupdate timezone error on certain machines/config
  • Fix gem containing tmp files

v9.0.3

Compare Source

  • Remove legacy and unused javascript files
  • Improve pagy_get_page with force_integer option
  • Fix jsonapi with keyset
  • Complete the internal refactoring of version 9:
    • Remove the pagy*_get_vars methods now useless
    • Use to_i on the page variable for the search extras

v9.0.2

Compare Source

  • Rename and document the link header to pagy_link_header
  • Add first and next url helpers to the keyset extra; add the keyset section to config/pagy.rb
  • Fix nil page in keyset URL not overriding the params page
  • Extracted shared method

v9.0.1

Compare Source

  • Fix countless executing the count query
  • Rename row_comparison > tuple_comparison; ignore mixed orders

v9.0.0

Compare Source

Breaking Changes
Dropped support for deprecated stuff
  • The foundation, materialize, semantic and uikit CSS extras have been removed:
    (See the reasons)
  • Javascript renamed files
    • pagy.js: use pagy.min.js
    • pagy-module.js: use pagy.mjs
    • pagy-dev.js: use the pagy.min.jswith the pagy.min.js.map
    • pagy-module.d.ts: use pagy.d.ts
  • The Array type for the :size (e.g. size: [1, 4, 4, 1]) that generates the classic bar is not supported anymore: use the
    :size set to an integer with the ends: true variable (which are the default since 8.4.6). If a legacy bar remains REALLY
    a requirement, add require 'pagy/extras/size to your pagy.rb initalizer. (See the
    size extra)
Simple renaming

We used items for too many things that confused even maintainers. The "items" are now referencing only the records/elements
fetched from a collection (plural entity), so they are kept as before (e.g. pagy_*get_items methods).
The "number of items" (singular entity), are now unmistakably referenced as the limit everywhere (code, API, files, extras,
docs, etc.). The logic didn't change so you have just to globally search 'items' and replace with limit and you should be
done... or use the detailed table below:

Type Search Replace
Pagy Variable :items :limit
Extra Path pagy/extras/items pagy/extras/limit
Extra Variable :items_param :limit_param
Default URL param items limit
Extra Variable :items_extra :limit_extra
Extra Variable :max_items :limit_max (now inverted)
Extra Method pagy_items_selector_js pagy_limit_selector_js
Extra Variable :headers[:items] :headers[limit]
Code changes
  • The DEFAULT[:anchor_string] was useless and has been dropped.
  • The :anchor_stringand the :fragment are not instance variables anymore, but keyword arguments for all the helpers,
    because it is frontend code (see the discussion). Instead of passing them to the pagy* method in the controller, pass it to any pagy_*nav method in the view.
  • A general internal revamp has changed the positional argument for the Pagy::* objects and constructors methods to keyword
    arguments. If you get a wrong number of arguments (given 1, expected 0) (ArgumentError), just use a double splat **.
Possibly breaking overrides
  • The internal Pagy protected methods have been renamed and refactored. If you use custom Pagy
    classes, you may need to search into the code.

v8.6.3: Version 8.6.3

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • Deprecate the legacy nav bar, add features to the default faster nav bar series
  • See the CHANGELOG for possible breaking changes
Changes in 8.6.3
  • Add missing DEFAULT[:max_pages] hint to the config/pagy.rb
  • Improve activerecord handling in playground apps
  • Fix the missing "ar.pagy.aria_label.nav.other" (closes #​577)

CHANGELOG

v8.6.2: Version 8.6.2

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • Deprecate the legacy nav bar, add features to the default faster nav bar series
  • See the CHANGELOG for possible breaking changes
Changes in 8.6.2
  • Fix the legacy size in code and test
  • Improve code readability and size check in series
  • Fix the old terminology in the demo.ru app

CHANGELOG

v8.6.1: Version 8.6.1

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • Deprecate the legacy nav bar, add features to the default faster nav bar series
  • See the CHANGELOG for possible breaking changes
Changes in 8.6.1
  • Update playground apps and e2e tests
  • Update pagy.rb initializer

CHANGELOG

v8.6.0: Version 8.6.0

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • Deprecate the legacy nav bar, add features to the default faster nav bar series
  • See the CHANGELOG for possible breaking changes
Changes in 8.6.0
  • Add translated pluralized aria_label.nav for "ar" locale (close #​577)
  • Deprecate the legacy bar. Insert first and last pages and gaps when needed into the simple bar

CHANGELOG

v8.5.0: Version 8.5.0

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.5.0
  • Improve pagy playground launcher
  • Refactor calendar class structure
  • Remove automatic skipping of bundle install in playground apps
  • Update ruby calendar test
  • Update cypress calendar test
  • Refactor calendar test environment to use activerecord
  • Add code for calendar counts
  • Remove redundant Warning
  • Convert calendar.ru to calendar_rails.ru

CHANGELOG

v8.4.5: Version 8.4.5

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.5
  • Fix pluralization rule link on locale files (#​716)
  • Install gems in pagy CI
  • Indentation changes
  • Remove :cycle false default
  • Fill aria_label.nav ca pluralized entry (#​715) (Fixes #​581)
  • Fix typos (#​710)

CHANGELOG

v8.4.4: Version 8.4.4

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See
    the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.4
  • Update eslint: new configuration, stricter rules and javascript code

CHANGELOG

v8.4.3: Version 8.4.3

Compare Source

✴ What's new in 8.0+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See
    the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.3
  • Deprecate/rename javascript files keeping copies of old files to avoid production breaking changes; updates playground apps

CHANGELOG

v8.4.2: Version 8.4.2

Compare Source

✴ What's new in 8.3+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See
    the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.2
  • Limit the playground --rerun option to linux platforms
  • Simplify and improve the js environment by using bun

CHANGELOG

v8.4.1: Version 8.4.1

Compare Source

✴ What's new in 8.3+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See
    the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.1
  • Fix pagy.in in pagy_get_items method introduced in 8.4.0 (see #​696) (closes #​704) (closes #​708) (#​707)
  • Fix renamed Frontend Helpers to JS Tools and typo next_a "aria-label" (#​700)
  • Fix rubocop

CHANGELOG

v8.4.0: Version 8.4.0

Compare Source

✴ What's new in 8.3+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See
    the details)
  • See the CHANGELOG for possible breaking changes
Changes in 8.4.0
  • Retrieve only @​in items:
    • improve the performance of the last page in
      particular storage conditions (see #​696)
  • Improve pagy launcher for pagy devs

CHANGELOG

v8.3.0: Version 8.3.0

Compare Source

✴ What's new in 8.3+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • The foundation, materialize, semantic and uikit CSS extras have been discontinued and will be removed in v9 (See the details)
  • See the CHANGELOG for possible breaking changes
Changes in 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

CHANGELOG

v8.2.2: Version 8.2.2

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.
If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 8.2.2

CHANGELOG

v8.2.1: Version 8.2.1

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.
If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 8.2.1
  • Fix empty page param raising error (closes #​689)

CHANGELOG

v8.2.0: Version 8.2.0

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.
If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 8.2.0
  • Fix the '#pagy_url_for' method for calendar pagination (#​688)
  • Extend the use of pagy_get_page to the arel, array and countless extras
  • Add the pagy_get_count method to the backend

CHANGELOG

v8.1.2: Version 8.1.2

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.
If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 8.1.2
  • Added "da" locale for aria_label.nav (closes #​583)

CHANGELOG

v8.1.1: Version 8.1.1

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.
If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 8.1.1
  • Fixed broken aria-label for disabled links in Foundation (#​685)
  • Simplification of input variables and defaults: params and request_path are not instance variables

CHANGELOG

v8.1.0: Version 8.1.0

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.

If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • New :max_pages variable to limit the pagination regardless the actual count
  • Better frontend helpers
  • See the CHANGELOG for possible breaking changes
Changes in 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, aliased with @​last

CHANGELOG

v8.0.2: Version 8.0.2

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.

If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.+ ✴
  • Better frontend helpers
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • See the CHANGELOG for possible breaking changes
Changes in 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)
  • Docs improvement and fixes

CHANGELOG

v8.0.1: Version 8.0.1

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.

If you wish to keep your favorites alive, please, vote here

✴ What's new in 8.0+ ✴
  • Better frontend helpers
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • See the Changelog for possible breaking changes

v8.0.0: Version 8.0.0

Compare Source

⚠ WARNING

We may drop pagy's less used CSS extras.

If you wish to keep your favorites alive, please, vote here


✴ What's new in 8.0.0 ✴
  • Better frontend helpers
  • New Pagy Playground to showcase, clone and develop pagy APPs without any setup on
    your side (try the pagy demo)
  • See the Changelog for possible breaking changes

v7.0.11

Compare Source

v7.0.10

Compare Source

v7.0.9

Compare Source

v7.0.8

Compare Source

v7.0.7

Compare Source

v7.0.6

Compare Source

v7.0.5

Compare Source

v7.0.4

Compare Source

v7.0.3

Compare Source

v7.0.2

Compare Source

v7.0.1

Compare Source

v7.0.0

Compare Source

✴ What's new ✴

v6.5.0

Compare Source

v6.4.4

Compare Source

v6.4.3

Compare Source

v6.4.2

Compare Source

v6.4.1

Compare Source

v6.4.0

Compare Source

v6.3.0

Compare Source

v6.2.0

Compare Source


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 was generated by Mend Renovate. View the repository job log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants