Skip to content

v0.16.9

Choose a tag to compare

@ya-luotao ya-luotao released this 25 May 08:34
· 675 commits to main since this release

Fixed

  • Types.normalize_name no longer mutates the frozen string returned by Symbol#to_s under Ruby 3.4+. The previous name.dup.to_s order dup'd the Symbol (a no-op) and then took .to_s, which Ruby 3.4 stages to return a frozen string in 4.0 — emitting a deprecation warning on every gsub!/tr!/downcase!. Swapped to name.to_s.dup.

The warning fired roughly six times per tool registration (once per SdkMcpTool attribute symbol) and on every Type.from_hash call with symbol keys, so Ruby 3.4 consumers were seeing many :<attr>.to_s will be frozen in the future warnings per test run. This release silences them without any behavior change.

What's changed

  • #35 Fix Symbol#to_s frozen-string warning in Types.normalize_name — @chagel

Full Changelog: v0.16.8...v0.16.9


gem install claude-agent-sdk -v 0.16.9