Releases: arthurnn/twirp-ruby
Releases · arthurnn/twirp-ruby
Go - v1.11.0
What's Changed
The repository lives now under my name, instead of the GitHub org. Despite GitHub still being one of the main maintainers of the project.
This is a Go only release, as starting on this version the ruby and Go releases will be separate and not follow the same versioning any longer.
Full Changelog: v1.10.0...v1.11.0.
v1.10.0
What's Changed
- GitHub now maintains this project. Thanks Twitchtv and contributors so far.
- Don't consider query string as part of method name #74
- Prepend '::' to Twirp::Service and Twirp::Client to prevent namespace collisions #77
- Support proto3 field presence #79
- Make response body accessible on ClientResp #82
- Allow Faraday 2.x #88
Full Changelog: v1.9.0...v1.10.0.
v1.9.0
What's Changed
- Fix minor typo in CONTRIBUTING.md by @kjg in #67
- Allow then-able Faraday responses for free client concurrency by @theojulienne in #68
- Convert to Go modules and retract v7.1.2 by @mellis in #72
- Fix invalid URI client test case by @mellis in #73
New Contributors
- @kjg made their first contribution in #67
- @theojulienne made their first contribution in #68
- @mellis made their first contribution in #72
Full Changelog: v1.8.0...v1.9.0
Rewind rack input when reading requests
- #65 Twirp can be mounted on the same Rack stack with other applications like Rails.
ClientJSON with strict mode
- #63
Twirp::ClientJSON
constructor accepts the new optionstrict: true
so the server return an error if a request field is invalid
JSON requests with strict=true
- #61 Requests with
Content-Type: application/json; strict=true
will complain if the request has unknown or invalid properties, and the response will include all the values including default zero-values. Strict mode is not used by default so changes in the schema can stay backwards compatible, but the examples in the docs have been updated to use strict mode by default to improve the debugging experience with curl and similar tools.
JSON requests ignore unknown fields
- Feature: #60 Ignore unknown JSON fields when decoding requests, which allows better backwards compatibility guarantees when updating/renaming fields in the proto file definition, which is closer to what it is possible when using Protobuf. Twirp Ruby now requires the
google-protobuf
to be>= 3.7.0
.
Protocol v7
- Implement Twirp protocol v7, with similar changes as in the v7.0.0 release on the Go implementation: https://github.com/twitchtv/twirp/releases/tag/v7.0.0
- #58 Error code resource_exhausted maps to HTTP status 429
- #57 Use
emit_defaults: true
in JSON responses
v1.5.0
v1.4.1: Security update
Update rack version. PR: #45