Sourced from vcrpy's releases.
v8.3.0
What's Changed
- Add support for niquests (#980) — thanks
@ionelmc- Recording now fails fast if a request or response contains a Python object the safe YAML loader (introduced in 8.2.1) couldn't read back, instead of writing a cassette that breaks on replay. The error shows exactly how to register the object if you need it (#1007, #1009) — thanks
@Polandia94- New
vcr.serializers.yamlserializer.with_custom_tags(...)builds a YAML serializer supporting custom Python object tags on both record and replay, registered per VCR instance viaregister_serializer(#1007, #1009) — thanks@Polandia94- Clearer error when a cassette contains an unsupported YAML tag, and the stale git.io migration link is gone (#1007, #1008) — thanks
@gaoflow- Fix stale keep-alive connection reuse across cassettes; unpin werkzeug (#1001)
Full Changelog: https://github.com/kevin1024/vcrpy/compare/v8.2.1...v8.3.0
Sourced from vcrpy's changelog.
Changelog
All help in providing PRs to close out bug issues is appreciated. Even if that is providing a repo that fully replicates issues. We have very generous contributors that have added these to bug issues which meant another contributor picked up the bug and closed it out.
8.3.0
- Add support for niquests (#980) - thanks
@ionelmc- Refuse to record a cassette containing a Python object the safe YAML loader could not read back, so recording fails fast instead of producing a cassette that breaks on replay (#1007, #1009) - thanks
@Polandia94- Add
vcr.serializers.yamlserializer.with_custom_tagsto build a YAML serializer supporting custom Python object tags on both record and replay, registered per VCR instance viaregister_serializer(#1007, #1009) - thanks@Polandia94- Clearer error when a cassette contains an unsupported YAML tag, and remove the stale git.io migration link (#1007, #1008) - thanks
@gaoflow- Fix stale keep-alive connection reuse across cassettes; unpin werkzeug (#1001)
8.2.1
- SECURITY: Load cassettes with a safe YAML loader, preventing arbitrary code execution when a cassette from an untrusted source is loaded (GHSA-rpj2-4hq8-938g) - thanks
@RamiAltaiand@EQSTLab- Validate
record_modeand raise a clear error on an invalid value (#208)- Recommend pytest-recording over the unmaintained pytest-vcr in the docs (#986)
8.2.0
- Add support for httpx 2.x (#993) - thanks
@dsfaccini- Patch httpx transports instead of httpcore (#972) - thanks
@seowalex- Fix aiohttp 3.14 compatibility:
AsyncStreamReaderMixinremoved andClientResponsenow requiresstream_writer(#995) - thanks@dsfaccini- Account for modified requests when storing played cassettes, so
drop_unused_requestshonoursbefore_record_requestfiltering (#962) - thanks@jamesbraza- Make the request URL available on
VCRHTTPResponse(#976) - thanks@dAnjou- Improve error message when a matching request has already been consumed (#985) - thanks
@Polandia94- Fix body check in
convert_body_to_unicodeto use an explicit type check (#982) - thanks@Polandia94- Add env proxy cassette regression test (#994) - thanks
@tine1117- Remove milestone references from docs (#984) - thanks
@Polandia94- CI: bump sphinx-rtd-theme from 3.0.2 to 3.1.0 (#973)
8.1.1
- Fix sync requests in async contexts for HTTPX (#965) - thanks
@seowalex- CI: bump peter-evans/create-pull-request from 7 to 8 (#969)
8.1.0
- Enable brotli decompression if available (via
brotli,brotlipyorbrotlicffi) (#620) - thanks@immerrr- Fix aiohttp allowing both
dataandjsonarguments when one is None (#624) - thanks@leorochael- Fix usage of io-like interface with VCR.py (#906) - thanks
@titoand@kevdevg- Migrate to declarative Python package config (#767) - thanks
@deronnax- Various linting fixes - thanks
@jairhenrique- CI: bump actions/checkout from 5 to 6 (#955)
8.0.0
- BREAKING: Drop support for Python 3.9 (major version bump) - thanks
@jairhenrique- BREAKING: Drop support for urllib3 < 2 - fixes CVE warnings from urllib3 1.x (#926, #880) - thanks
@jairhenrique- New feature:
drop_unused_requestsoption to remove unused interactions from cassettes (#763) - thanks@danielnsilva- Rewrite httpx support to patch httpcore instead of httpx (#943) - thanks
@seowalex- Fix HTTPS proxy handling - proxy address no longer ends up in cassette URIs (#809, #914) - thanks
@alga
... (truncated)
c599974
Release v8.3.068cbe59
Show how to register a custom object in the cassette-not-saved
error7a898b5
Refuse to record cassettes the safe YAML loader can't read back (#1012)1421b36
fix: show descriptive error when cassette contains unsupported YAML tags
(#1008)b1fb62b
Merge pull request #1000
from kevin1024/dependabot/pre_commit/https-/github.c...9e74117
Fix stale keep-alive connection reuse; unpin werkzeug (#1001)30a721d
Loosen up some things to allow vcrpy to work with niquests (#980)393e349
build(deps): bump https://github.com/astral-sh/ruff-pre-commit