Skip to content

feat: add deprecation warning infrastructure for renamed config keys#92

Merged
eclectic-coding merged 2 commits into
mainfrom
feat/deprecation-warnings
May 27, 2026
Merged

feat: add deprecation warning infrastructure for renamed config keys#92
eclectic-coding merged 2 commits into
mainfrom
feat/deprecation-warnings

Conversation

@eclectic-coding
Copy link
Copy Markdown
Owner

Closes #53

Summary

  • Adds SolidStackWeb.deprecator — a gem-scoped ActiveSupport::Deprecation instance (horizon: 1.0) registered with app.deprecators[:solid_stack_web] so Rails routes warnings through the standard deprecation pipeline
  • Adds a private deprecated_config(old_key, new_key) helper on the module that generates a forwarding writer with a deprecation warning
  • No keys renamed yet — add deprecated_config :old, :new entries inside class << self in lib/solid_stack_web.rb as renames are decided before the 1.0 cut

Test plan

  • bundle exec rspec — 332 examples, 0 failures
  • SolidStackWeb.deprecated_config spec verifies the warning fires and the value is forwarded to the new key
  • SolidStackWeb.deprecator spec verifies it returns a memoized ActiveSupport::Deprecation instance

🤖 Generated with Claude Code

eclectic-coding and others added 2 commits May 27, 2026 07:59
Adds SolidStackWeb.deprecator (ActiveSupport::Deprecation scoped to 1.0)
and a private deprecated_config helper that generates a forwarding writer
with a deprecation warning. Registered with app.deprecators so Rails routes
warnings through the standard deprecation pipeline. No keys renamed yet —
add deprecated_config :old, :new entries as renames are decided before 1.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…cture

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@eclectic-coding eclectic-coding merged commit be1f80f into main May 27, 2026
4 checks passed
@eclectic-coding eclectic-coding deleted the feat/deprecation-warnings branch May 27, 2026 12:00
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.

[v1.0.0] Deprecation warnings for renamed config keys

1 participant