Release 1.5.1
This release keeps the HTTP client working with json 3.0, which accepts the options of `JSON.parse` as keywords only. Faraday's JSON response middleware, through 2.14.3, passes them as a positional Hash that Ruby 3 no longer converts, so every JSON body the client received failed as an internal error. The client now parses response bodies itself, the way it already handled streamed ones, and no longer registers the middleware. The one visible difference: a malformed JSON body delivered whole by an adapter without streaming support now raises `RequestHandlerError` with `error_type: :parse_error`, as the streamed path already did, instead of `:internal_error` wrapping a `Faraday::ParsingError`.
This commit is contained in:
parent
d0b22ef722
commit
3b44ec4f48
1 changed files with 14 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module MCP
|
||||
VERSION = "1.5.0"
|
||||
VERSION = "1.5.1"
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue