Repository navigation
Give every deprecation a removal date of 2027-09-30 - #334
Merged
Merged
Conversation
Deprecations added today name 2027-09-30; the older ones only said "is deprecated". All of them now say "It will be removed after 2027-09-30." in the warning and "Scheduled for removal after 2027-09-30." in the @deprecated note. Deprecations that only lived in the docs now warn too, since a removal date means little if nobody hears about it: String#upper_camelcase and #lower_camelcase, Kernel#equate? (was an alias of #like?), and facets/kernel/tee. Interval#each(n, d) said it "will be deprecated"; it now is. Also fixes the "has been be deprecated" typo in Enumerable#hashify's warning, and adds uplevel: 1 to it and to Kernel#eigen so their warnings point at the caller. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW
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.
The deprecations added in #326, #331 and #332 name a removal date of 2027-09-30. The ~45 older ones only said "is deprecated". Now they all do the same, so the next major release has one clear removal list (see #273).
Change
It will be removed after 2027-09-30.Their@deprecatednotes also gainScheduled for removal after 2027-09-30.This covers 42 files acrosslib/coreandlib/standard.String#upper_camelcase/#lower_camelcaseKernel#equate?, which was an alias of#like?and is now a small method so it can warnfacets/kernel/teeInterval#each(n, d)said it "will be deprecated". It's now a real deprecation with the date.Enumerable#hashify's warning said "has been be deprecated", now fixed. It andKernel#eigengainuplevel: 1, so their warnings point at the caller.A search now finds no deprecation warning or
@deprecatednote without the date.Testing
rake test: 1,263 tests pass on CRuby 3.3 and on JRuby 10.1.2 (4 pending).rake qed: 157 demos pass, 0 failures.demo/core/string/trim.md, which builds 100 random strings as hash keys; occasionally two are identical, leaving one fewer entry to check. It predates this change and isn't affected by it.🤖 Generated with Claude Code
https://claude.ai/code/session_01E2Njj4j1r9twkVcXsMySLW
Generated by Claude Code