Skip to content

Upgrade Pagy to version 43#40

Closed
an-lee wants to merge 2 commits into
mbajur:mainfrom
an-lee:main
Closed

Upgrade Pagy to version 43#40
an-lee wants to merge 2 commits into
mbajur:mainfrom
an-lee:main

Conversation

@an-lee
Copy link
Copy Markdown

@an-lee an-lee commented Nov 19, 2025

BREAKING CHANGE: Upgrade from Pagy 9.3.1 to 43.0.6

This upgrade implements the breaking changes required by Pagy 43, which is a complete redesign of the legacy code. The changes include:

  • Replace Pagy::Backend with Pagy::Method in EventsController

    • The backend module has been renamed to Method in v43
  • Remove Pagy::Frontend include from ApplicationHelper

    • Frontend functionality is now integrated into the core and no longer requires explicit inclusion
  • Update pagy_nav helper to use new instance method syntax

    • Changed from pagy_nav(@pagy) to @pagy.series_nav
    • This follows the new pattern where helpers are now instance methods on the @pagy object
  • Update gemspec to require Pagy >= 43.0.6

    • Updated minimum version requirement to support the new API

All changes follow the official Pagy 43 upgrade guide: https://ddnexus.github.io/pagy/guides/upgrade-guide/

Refs: https://ddnexus.github.io/pagy/guides/upgrade-guide/

BREAKING CHANGE: Upgrade from Pagy 9.3.1 to 43.0.6

This upgrade implements the breaking changes required by Pagy 43,
which is a complete redesign of the legacy code. The changes include:

- Replace Pagy::Backend with Pagy::Method in EventsController
  * The backend module has been renamed to Method in v43

- Remove Pagy::Frontend include from ApplicationHelper
  * Frontend functionality is now integrated into the core and no longer
    requires explicit inclusion

- Update pagy_nav helper to use new instance method syntax
  * Changed from pagy_nav(@pagy) to @pagy.series_nav
  * This follows the new pattern where helpers are now instance methods
    on the @pagy object

- Update gemspec to require Pagy >= 43.0.6
  * Updated minimum version requirement to support the new API

All changes follow the official Pagy 43 upgrade guide:
https://ddnexus.github.io/pagy/guides/upgrade-guide/

Refs: https://ddnexus.github.io/pagy/guides/upgrade-guide/
@mbajur
Copy link
Copy Markdown
Owner

mbajur commented Nov 19, 2025

Thank you. Would you mind bumping the ruby version dependency?

@westonganger
Copy link
Copy Markdown
Contributor

Honestly I think we would be better off by removing the dependency on pagy.

With the dependency we can end up with issues between the app required pagy version and inner performance required pagy version.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants