Skip to content

Releases: kevin1024/vcrpy

v8.1.1

04 Jan 19:20

Choose a tag to compare

What's Changed

  • Fix sync requests in async contexts for HTTPX (#965) - thanks @seowalex
  • CI: bump peter-evans/create-pull-request from 7 to 8 (#969)

v8.1.0

08 Dec 16:39

Choose a tag to compare

New Features

  • Enable brotli decompression if available (via brotli, brotlipy or brotlicffi) (#620) - thanks @immerrr

Bug Fixes

  • Fix aiohttp allowing both data and json arguments when one is None (#624) - thanks @leorochael
  • Fix usage of io-like interface with VCR.py (#906) - thanks @tito and @kevdevg

Other Changes

  • Migrate to declarative Python package config (#767) - thanks @deronnax
  • Various linting fixes - thanks @jairhenrique
  • CI: bump actions/checkout from 5 to 6 (#955)

Full Changelog: v8.0.0...v8.1.0

v8.0.0

03 Dec 18:25

Choose a tag to compare

Breaking Changes

New Features

  • New drop_unused_requests option to remove unused interactions from cassettes (#763) - thanks @danielnsilva

Bug Fixes

  • Rewrite httpx support to patch httpcore instead of httpx (#943) - thanks @seowalex
    • Fixes httpx.ResponseNotRead exceptions (#832, #834)
    • Fixes KeyError: 'follow_redirects' (#945)
    • Adds support for custom httpx transports
  • Fix HTTPS proxy handling - proxy address no longer ends up in cassette URIs (#809, #914) - thanks @alga
  • Fix iscoroutinefunction deprecation warning on Python 3.14 - thanks @kloczek

Other Changes

  • Only log message if response is appended - thanks @talfus-laddus
  • Optimize urllib.parse calls - thanks @Martin-Brunthaler
  • Fix CI for Ubuntu 24.04 - thanks @hartwork
  • Various CI improvements: migrate to uv, update GitHub Actions - thanks @jairhenrique
  • Various linting and test improvements - thanks @jairhenrique and @hartwork

Full Changelog: v7.0.0...v8.0.0

v7.0.0

31 Dec 00:04

Choose a tag to compare

What's Changed

- Drop support for python 3.8 (major version bump) - thanks @jairhenrique
- Various linting and test fixes - thanks @jairhenrique
- Bugfix for urllib2>=2.3.0 - missing version_string (#888)
- Bugfix for asyncio.run - thanks @alekeik1

New Contributors

v6.0.2

07 Oct 12:58

Choose a tag to compare

  • Ensure body is consumed only once (#846) - thanks @sathieu
  • Permit urllib3 2.x for non-PyPy Python >=3.10
  • Fix typos in test commands - thanks @chuckwondo
  • Several test and workflow improvements - thanks @hartwork and @graingert

v6.0.1

25 Jan 16:15

Choose a tag to compare

Bugfix with to Tornado cassette generator (thanks @graingert)

v6.0.0

23 Jan 16:03

Choose a tag to compare

  • BREAKING: Fix issue with httpx support (thanks @parkerhancock) in #784. NOTE: You may have to recreate some of your cassettes produced in previous releases due to the binary format being saved incorrectly in previous releases
  • BREAKING: Drop support for boto (vcrpy still supports boto3, but is dropping the deprecated boto support in this release. (thanks @jairhenrique)
  • Fix compatibility issue with Python 3.12 (thanks @hartwork)
  • Drop simplejson (fixes some compatibility issues) (thanks @jairhenrique)
  • Run CI on Python 3.12 and PyPy 3.9-3.10 (thanks @mgorny)
  • Various linting and docs improvements (thanks @jairhenrique)
  • Tornado fixes (thanks @graingert)

v5.1.0

31 Jul 03:18

Choose a tag to compare

  • Use ruff for linting (instead of current flake8/isort/pyflakes) - thanks @jairhenrique
  • Enable rule B (flake8-bugbear) on ruff - thanks @jairhenrique
  • Configure read the docs V2 - thanks @jairhenrique
  • Fix typo in docs - thanks @quasimik
  • Make json.loads of Python >=3.6 decode bytes by itself - thanks @hartwork
  • Fix body matcher for chunked requests (fixes #734) - thanks @hartwork
  • Fix query param filter for aiohttp (fixes #517) - thanks @hartwork and @salomvary
  • Remove unnecessary dependency on six. - thanks @charettes
  • build(deps): update sphinx requirement from <7 to <8 - thanks @jairhenrique
  • Add action to validate docs - thanks @jairhenrique
  • Add editorconfig file - thanks @jairhenrique
  • Drop iscoroutinefunction fallback function for unsupported python thanks @jairhenrique

v5.0.0

26 Jun 21:28

Choose a tag to compare

  • BREAKING CHANGE: Drop support for Python 3.7. 3.7 is EOL as of 6/27/23 Thanks @jairhenrique
  • BREAKING CHANGE: Custom Cassette persisters no longer catch ValueError. If you have implemented a custom persister (has anyone implemented a custom persister? Let us know!) then you will need to throw a CassetteNotFoundError when unable to find a cassette. See #681 for discussion and reason for this change. Thanks @amosjyng for the PR and the review from @hartwork

v4.4.0

26 Jun 14:19

Choose a tag to compare

  • HUGE thanks to @hartwork for all the work done on this release!
  • Bring vcr/unittest in to vcrpy as a full feature of vcr instead of a separate library. Big thanks to @hartwork for doing this and to @agriffis for originally creating the library
  • Make decompression robust towards already decompressed input (thanks @hartwork)
  • Bugfix: Add read1 method (fixes compatibilitywith biopython), thanks @mghantous
  • Bugfix: Prevent filters from corrupting request (thanks @abramclark)
  • Bugfix: Add support for response.raw.stream() to fix urllib v2 compat
  • Bugfix: Replace assert with raise AssertionError: fixes support for PYTHONOPTIMIZE=1
  • Add pytest.mark.online to run test suite offline, thanks @jspricke
  • use python3 and pip3 binaries to ease debian packaging (thanks @hartwork)
  • Add codespell (thanks @mghantous)