Repository navigation
feat: (W-003) Legacy compatibility adapter for 3.x to 4.0 migration - #2015
Merged
bpamiri merged 3 commits intoApr 8, 2026
Merged
Conversation
Backward compatibility adapter that provides: - DeprecationLogger with configurable modes (silent/log/warn/error) - Controller mixin shims for deprecated APIs (renderPage, renderPageToString) - MigrationScanner that analyzes app code for legacy patterns - Three-stage progressive migration path (install → migrate → remove) Verified on Lucee 6 and Adobe CF 2025. Core tests pass with 0 regressions. Closes #1969 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove this.version from LegacyAdapter.cfc, source version from package.json - Add pathFilter to MigrationScanner for context-aware this.version detection (only flags files in plugins/ directory, avoiding false positives) - Remove $legacyPaginationLinks shim (no migration value) - Move test-path check from inner loop to early return for efficiency - Update tests: add path-filter verification, update $scanContent helper to accept subDir parameter for simulating file locations - Revise plan: fix mixin scope to controller, demote Plugin-to-Package Bridge to Plugin Diagnostics, remove phantom showErrors setting, remove false-premise unresolved question, reframe edge cases Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ter tests DirectoryCreate(path, true) is Lucee-only — Adobe CF only accepts 1 parameter. Replace with Java File.mkdirs() which works on all CFML engines. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bpamiri
added a commit
that referenced
this pull request
Apr 16, 2026
New standalone upgrade guide at docs/src/introduction/upgrading-to-4.0.md
covering the 10 Breaking changes in 4.0 plus migration paths:
- Before you start (backup, test environment, CHANGELOG)
- 5-minute upgrade checklist (scannable table)
- Breaking changes — detailed:
* 6 security-hardening default flips (CORS, env-switch, HSTS,
CSRF SameSite, RateLimiter trustProxy, RateLimiter proxy
strategy)
* 1 CLI rename (wheels snippets → wheels code)
* 3 namespace / directory renames (wheels.Test → WheelsTest,
tests/specs/functions/ → functional/, application.wirebox →
application.wheelsdi)
- Legacy Compatibility Adapter (#2015) — soft landing
- Recommended (not required) migrations — 10 items
- Still stuck? — links to audit, comparison, adapter, discussions
Each Breaking item uses a consistent 4-part format:
What changed / How to detect / How to fix / Opt-out
Plus a one-line callout added to the top of the existing
docs/src/introduction/upgrading.md linking to the new guide.
Companion to:
#2123 — 4.0 feature audit
#2124 — CHANGELOG Unreleased expansion
#2125 — 3.0 → 4.0 comparison doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
5 of 7 tasks
bpamiri
added a commit
that referenced
this pull request
Apr 16, 2026
New standalone upgrade guide at docs/src/introduction/upgrading-to-4.0.md
covering the 10 Breaking changes in 4.0 plus migration paths:
- Before you start (backup, test environment, CHANGELOG)
- 5-minute upgrade checklist (scannable table)
- Breaking changes — detailed:
* 6 security-hardening default flips (CORS, env-switch, HSTS,
CSRF SameSite, RateLimiter trustProxy, RateLimiter proxy
strategy)
* 1 CLI rename (wheels snippets → wheels code)
* 3 namespace / directory renames (wheels.Test → WheelsTest,
tests/specs/functions/ → functional/, application.wirebox →
application.wheelsdi)
- Legacy Compatibility Adapter (#2015) — soft landing
- Recommended (not required) migrations — 10 items
- Still stuck? — links to audit, comparison, adapter, discussions
Each Breaking item uses a consistent 4-part format:
What changed / How to detect / How to fix / Opt-out
Plus a one-line callout added to the top of the existing
docs/src/introduction/upgrading.md linking to the new guide.
Companion to:
#2123 — 4.0 feature audit
#2124 — CHANGELOG Unreleased expansion
#2125 — 3.0 → 4.0 comparison doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bpamiri
added a commit
that referenced
this pull request
Apr 16, 2026
New standalone upgrade guide at docs/src/introduction/upgrading-to-4.0.md
covering the 10 Breaking changes in 4.0 plus migration paths:
- Before you start (backup, test environment, CHANGELOG)
- 5-minute upgrade checklist (scannable table)
- Breaking changes — detailed:
* 6 security-hardening default flips (CORS, env-switch, HSTS,
CSRF SameSite, RateLimiter trustProxy, RateLimiter proxy
strategy)
* 1 CLI rename (wheels snippets → wheels code)
* 3 namespace / directory renames (wheels.Test → WheelsTest,
tests/specs/functions/ → functional/, application.wirebox →
application.wheelsdi)
- Legacy Compatibility Adapter (#2015) — soft landing
- Recommended (not required) migrations — 10 items
- Still stuck? — links to audit, comparison, adapter, discussions
Each Breaking item uses a consistent 4-part format:
What changed / How to detect / How to fix / Opt-out
Plus a one-line callout added to the top of the existing
docs/src/introduction/upgrading.md linking to the new guide.
Companion to:
#2123 — 4.0 feature audit
#2124 — CHANGELOG Unreleased expansion
#2125 — 3.0 → 4.0 comparison doc
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
bpamiri
added a commit
that referenced
this pull request
Apr 16, 2026
* docs: spec for Wheels 4.0 upgrade guide Design doc for a new standalone upgrade guide at docs/src/introduction/upgrading-to-4.0.md. Scope: - Breaking + migration path (~350 lines) - 10 Breaking items covered with consistent 4-part format: what changed / how to detect / how to fix / opt-out - Legacy Compatibility Adapter documented as soft-landing option - Recommended (not required) migrations section - Single callout link added to existing upgrading.md Spec companion to the feature audit (#2123), 3.0 → 4.0 comparison (#2125), and CHANGELOG catch-up (#2124), which together form the 4.0 release-documentation stack. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: implementation plan for Wheels 4.0 upgrade guide 12-task plan covering: - File scaffold (front-matter + H1) - Before-you-start + 5-minute checklist - 10 Breaking items (3 tasks grouped by theme) - Legacy Compatibility Adapter section - Recommended migrations section - Still-stuck section - Callout link added to upgrading.md - Link integrity audit - Commit + push + PR Each task includes the actual prose/code to write, with verification via grep / wc / link-integrity script. No placeholders; plan is executable end-to-end. Companion to: docs/superpowers/specs/2026-04-16-wheels-4.0-upgrade-guide-design.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * docs: add Wheels 4.0 upgrade guide New standalone upgrade guide at docs/src/introduction/upgrading-to-4.0.md covering the 10 Breaking changes in 4.0 plus migration paths: - Before you start (backup, test environment, CHANGELOG) - 5-minute upgrade checklist (scannable table) - Breaking changes — detailed: * 6 security-hardening default flips (CORS, env-switch, HSTS, CSRF SameSite, RateLimiter trustProxy, RateLimiter proxy strategy) * 1 CLI rename (wheels snippets → wheels code) * 3 namespace / directory renames (wheels.Test → WheelsTest, tests/specs/functions/ → functional/, application.wirebox → application.wheelsdi) - Legacy Compatibility Adapter (#2015) — soft landing - Recommended (not required) migrations — 10 items - Still stuck? — links to audit, comparison, adapter, discussions Each Breaking item uses a consistent 4-part format: What changed / How to detect / How to fix / Opt-out Plus a one-line callout added to the top of the existing docs/src/introduction/upgrading.md linking to the new guide. Companion to: #2123 — 4.0 feature audit #2124 — CHANGELOG Unreleased expansion #2125 — 3.0 → 4.0 comparison doc Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced May 12, 2026
Merged
This was referenced May 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds the
wheels-legacy-adapterpackage — a backward compatibility layer for smooth migration from Wheels 3.x to 4.0.renderPage()→renderView()andrenderPageToString()→renderView(returnAs="string"), plus plugin diagnostics via$legacyPluginInfo()plugins/directory to avoid false positives)Migration path
vendor/legacyadapter— existing 3.x code works unchangederrorto catch stragglers, then remove adapterAlso includes
legacyadapterpackagecontinue-on-errorfor auto-label job on fork PRsCloses #1969
Test plan
🤖 Generated with Claude Code