v2.0.0
New
- Support for Ruby 3.4
- Experimental support for OpenTelemetry tracing
Changes
-
Strict keyword handling for request methods
All request methods take parameters and headers as explicit keyword arguments, not as secondary arguments anymore. Change e.g.
get({}, {headers: ...})
intoget(headers: ...)
, andhead(params)
tohead(params:)
.#post
,#put
, and#patch
still take an optional first positional data/body argument. Changepost(body, {}, {headers: ...})
topost(body, headers: ...)
.#get
,#head
, and#delete
accept a hash as the first positional argument, which is merged withparams:
. Therefore, passing parameters as data works too:get({id: 1})
.
Breaks
- Remove indifferent access methods (Hashie) from responses
- Removed
em
andem-pooled
adapters - Require Ruby 3.1+
What's Changed
- chore(deps): update dependency ubuntu to v22 by @renovate in #59
- chore(deps): update dependency ubuntu to v24 by @renovate in #60
- chore(deps): update codecov/codecov-action action to v5 by @renovate in #61
- Stricter parameter handling avoiding unexpected conversion/types by @jgraichen in #63
- feat: Support for OpenTelemetry tracing by @jgraichen in #64
- feat: Strict keyword handling in request methods by @jgraichen in #65
Full Changelog: v1.15.2...v2.0.0