Skip to content

feat(msgpack): Add types for v1.8 - #1102

Merged
github-actions[bot] merged 1 commit into
ruby:mainfrom
ksss:add-msgpack-1.8
Oct 16, 2026
Merged

github-actions[bot] merged 1 commit into
ruby:mainfrom
ksss:add-msgpack-1.8

Conversation

@ksss

@ksss ksss commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Add RBS for the basic API of msgpack v1.8.

Covered API

  • MessagePack.pack / dump and MessagePack.unpack / load
  • #to_msgpack on core classes (NilClass, TrueClass, FalseClass, Integer, Float, String, Symbol, Array, Hash) through MessagePack::CoreExt
  • MessagePack::Packer and MessagePack::Unpacker (streaming API, register_type)
  • MessagePack::Factory, including register_type options and Factory::Pool
  • MessagePack::Timestamp, MessagePack::Time::Packer / Unpacker, MessagePack::ExtensionValue
  • Error classes (UnpackError, MalformedFormatError, ...)

Packer#full_pack returns String? because it returns nil when the packer writes to an IO.

The tests are based on the README examples.

🤖 Generated with Claude Code

Cover the basic API: MessagePack.pack/unpack, #to_msgpack on core
classes, Packer, Unpacker, Factory (including Pool and register_type),
Timestamp, and the unpack error classes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

@ksss Thanks for your contribution!

Please follow the instructions below for each change.
See also: https://github.com/ruby/gem_rbs_collection/blob/main/docs/CONTRIBUTING.md

Available commands

You can use the following commands by commenting on this PR.

  • /merge: Merge this PR if CI passes

msgpack

This RBS files are newly added.

You can merge this PR immediately if the CI passes.
Just comment /merge to merge this PR.

@ksss

ksss commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator Author

/merge

@github-actions
github-actions Bot merged commit cdee018 into ruby:main Oct 16, 2026
6 checks passed
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.

1 participant