Repository navigation
v0.16.9
Fixed
Types.normalize_nameno longer mutates the frozen string returned bySymbol#to_sunder Ruby 3.4+. The previousname.dup.to_sorder 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 everygsub!/tr!/downcase!. Swapped toname.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
Full Changelog: v0.16.8...v0.16.9
gem install claude-agent-sdk -v 0.16.9