Skip to content

v2.0.0

Compare
Choose a tag to compare
@jgraichen jgraichen released this 14 Feb 21:05
· 4 commits to main since this release
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: ...}) into get(headers: ...), and head(params) to head(params:).

    #post, #put, and #patch still take an optional first positional data/body argument. Change post(body, {}, {headers: ...}) to post(body, headers: ...).

    #get, #head, and #delete accept a hash as the first positional argument, which is merged with params:. Therefore, passing parameters as data works too: get({id: 1}).

Breaks

  • Remove indifferent access methods (Hashie) from responses
  • Removed em and em-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