github kevin1024/vcrpy v9.1.0

latest release: v9.2.0
3 hours ago

What's Changed

Fixes

  • Replayed aiohttp responses now have raw_headers, so code that reads them (e.g. httpx-aiohttp) works on replay (#970, #1034). Thanks @HostX0
  • Replayed urllib3 responses have release_conn(), for code that releases pooled responses (#816, #1054). Thanks @cristianchiriac
  • pathlib.Path and other path-like objects work for cassette paths and cassette_library_dir (#567, #920, #1064). Thanks @fredrikblau
  • filter_post_data_parameters matches urlencoded parameter names, so e.g. api:key also filters api%3Akey (#686, #1066). Thanks @b84330808
  • The body matcher no longer crashes on form-urlencoded and XML-RPC requests without a body (#913, #1032). Thanks @M001N
  • The response stream is closed when reading an httpx response fails while recording (#1068). Thanks @Claire-ovo
  • ignore_localhost also ignores ::1 (#639). Thanks @dragonpaw for the report

New

  • Replayed urllib3 responses have json(), as urllib3 2.x responses do (#774). Thanks @gschnellOnera for the report
  • use_cassette accepts a persister option, to use a custom persister for one cassette (#575). Thanks @gioele for the report

Releases

  • vcrpy is now published to PyPI from GitHub Actions with trusted publishing (#860, #1078)

Full Changelog: v9.0.0...v9.1.0

Don't miss a new vcrpy release

NewReleases is sending notifications on new releases.