Skip to content

[Misc #21768] Remove deprecated APIs#15447

Open
nobu wants to merge 4 commits intoruby:masterfrom
nobu:deprecated-funcs
Open

[Misc #21768] Remove deprecated APIs#15447
nobu wants to merge 4 commits intoruby:masterfrom
nobu:deprecated-funcs

Conversation

@nobu
Copy link
Member

@nobu nobu commented Dec 8, 2025

@matzbot matzbot requested a review from a team December 8, 2025 12:41
@eregon
Copy link
Member

eregon commented Dec 8, 2025

Nice.
Re Remove struct RData deprecated by struct RTypedData I know one usage in concurrent-ruby.
I suppose the reason is TypedData was not available yet for the oldest supported version back then, but that seems fine now, so we'll fix it in concurrent-ruby.
Related discussion: https://bugs.ruby-lang.org/issues/19998
I think it's good to remove RData if we can.

@nobu nobu force-pushed the deprecated-funcs branch 2 times, most recently from 2af2aa0 to 0386f2b Compare December 8, 2025 17:17
k0kubun added a commit to ruby/ruby-bench that referenced this pull request Dec 9, 2025
Fix the use of deprecated C API ruby/ruby#15447
@k0kubun
Copy link
Member

k0kubun commented Dec 9, 2025

If you decide to merge this PR, please consider merging ruby/ruby-bench#455 to fix the ruby-bench CI. You should have write permission on the repository.

@nobu nobu added the ruby 4.1 label Dec 22, 2025
@nobu nobu force-pushed the deprecated-funcs branch 8 times, most recently from 6c10d2e to a4c9d23 Compare December 26, 2025 08:00
@nobu nobu changed the title [Misc #21768] Remove deprecated functions [Misc #21768] Remove deprecated APIs Dec 26, 2025
@nobu nobu force-pushed the deprecated-funcs branch 2 times, most recently from cf93ac6 to 4cb105e Compare December 26, 2025 14:37
@nobu nobu force-pushed the deprecated-funcs branch from 4cb105e to b62b8d0 Compare January 8, 2026 12:30
@launchable-app

This comment has been minimized.

@nobu nobu force-pushed the deprecated-funcs branch 2 times, most recently from eecbe6c to 9379804 Compare January 9, 2026 08:20
@sandstrom
Copy link

Nice to see that Ruby is cleaning up deprecated and old methods.

I love Ruby, but there is a bit of cruft in the stdlib, so nice to see some of it go away (still more things that I think could be cut, so that effort can instead be spent on making the frequently used parts of the stdlib more ergonomic, better documented, etc).

nobu added 2 commits January 16, 2026 20:35
For the backward compatibility for some wrapper generator gems, keep
only `RData` definition.
@nobu nobu force-pushed the deprecated-funcs branch from 464a638 to 7ce6eda Compare January 16, 2026 11:40
@larskanis
Copy link
Contributor

Can you please merge this PR early in the release cycle? There are quite some gems out there which still use the untyped data API. I have at least 2 actively maintained gems, which still makes use of it: "fxruby" and "pkcs11".

@hsbt
Copy link
Member

hsbt commented Mar 4, 2026

Now this PR will work with ruby/ruby-bench@5893da2.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants