Skip to content

paginationLinks() is deprecated but emits no runtime warning and is not in MigrationScanner #2714

Description

@bpamiri

Severity: medium — silent rot. 3.x → 4.0 upgraders don't know they're using a deprecated helper.

Surfaced by: titan Phase 2.4 (Wheels 4.0 upgrade), 2026-05-15.

Description

paginationLinks() is documented as deprecated in favor of paginationNav() (per #1930) but:

  • vendor/wheels/view/links.cfc (where paginationLinks lives, around line 215) has no DeprecationLogger.log() call at the top.
  • The legacy compatibility adapter (wheels-legacy-adapter@1.0.0) does not shim or warn on calls to paginationLinks.
  • vendor/wheels/MigrationScanner.cfc does not include paginationLinks in its 3.x→4.0 scan rules, so wheels upgrade check doesn't flag apps that still use it.

The deprecation is purely a roadmap statement, invisible to anyone running a 3.x codebase forward into 4.0.

Suggested fix

Either or both:

  1. Add DeprecationLogger.log(oldMethod=\"paginationLinks\", newMethod=\"paginationNav\") at the top of paginationLinks in vendor/wheels/view/links.cfc.
  2. Add paginationLinks to MigrationScanner.cfc's 3.x→4.0 rule list so wheels upgrade check greps app code for paginationLinks( and flags hits.

cc @bpamiri

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions