Skip to content

Releases: jgraichen/restify

v2.0.1

16 Feb 13:17
v2.0.1
79ec76c
Compare
Choose a tag to compare

Fixes

  • Restore compatibility with WebMocks Typhoeus instrumentation
  • Catch WebMock exception and bubble them to the request promises
What's Changed
  • fix: WebMock instrumentation with Typhoeus by @jgraichen in #66

Full Changelog: v2.0.0...v2.0.1

v2.0.0

14 Feb 21:05
v2.0.0
Compare
Choose a tag to compare

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