Skip to content

Conversation

@geetfun
Copy link
Contributor

@geetfun geetfun commented Jan 14, 2026

Major version upgrade following the pagy v43 migration guide:

  • Update Gemfile constraint to ~> 43.0
  • Replace Pagy::Backend with Pagy::Method in controllers
  • Replace Pagy::Frontend with PagyTailwind in helper
  • Update pagy() calls to use new syntax: pagy(:offset, collection)
  • Change Pagy::DEFAULT to Pagy.options in initializer
  • Update error classes: OverflowError → RangeError, VariableError → OptionError
  • Fix custom helper for v43 API: prev → previous, series is now protected
  • Add raise_range_error option to preserve redirect-on-overflow behavior
  • Update test for new behavior (negative pages normalized instead of erroring)
  • Add comprehensive tests for PagyTailwind helper (10 new tests)

Major version upgrade following the pagy v43 migration guide:

- Update Gemfile constraint to ~> 43.0
- Replace Pagy::Backend with Pagy::Method in controllers
- Replace Pagy::Frontend with PagyTailwind in helper
- Update pagy() calls to use new syntax: pagy(:offset, collection)
- Change Pagy::DEFAULT to Pagy.options in initializer
- Update error classes: OverflowError → RangeError, VariableError → OptionError
- Fix custom helper for v43 API: prev → previous, series is now protected
- Add raise_range_error option to preserve redirect-on-overflow behavior
- Update test for new behavior (negative pages normalized instead of erroring)
- Add comprehensive tests for PagyTailwind helper (10 new tests)
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.

2 participants