Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump requests-cache from 0.7 to 1.2.1 #796

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 2, 2025

Bumps requests-cache from 0.7 to 1.2.1.

Release notes

Sourced from requests-cache's releases.

v1.2: Compatibility updates, bugfixes, and minor performance improvements

See Changelog for complete release details.

v1.1: Bugfixes and SQLite concurrency improvements

This is a smaller release with mainly bugfixes and some improvements to the SQLite backend.

See Changelog for complete release details.

Thanks to everyone who provided bug reports, suggestions, and other feedback!

✨ v1.0 ✨

See Changelog for complete release details.

Release highlights

  • 🚀 Lots of miscellaneous performance improvements
  • 🚀 Fast automatic cache cleanup with TTL integration for MongoDB, DynamoDB and Redis
  • 📝 Improved NoSQL/document database support: human-readable and indexable response data in MongoDB and DynamoDB
  • 🕗 Complete support for Cache-Control headers (including its extensions)
  • ✨ Complete type hinting and more details from cached responses
  • 🔒 Redact common authentication headers and parameters from the cache by default
  • ⚙️ Improved session settings interface, and more settings for refreshing, revalidation, and offline cache usage

v0.9: Improved performance, thread safety, Cache-Control support, and general QoL

See Changelog for release details

v0.8: Conditional requests, custom request matching, and comprehensive user guide

See Changelog for release details

Changelog

Sourced from requests-cache's changelog.

1.2.1 (2024-06-18)

🪲 Bugfixes:

  • Fix normalize_headers not accepting header values in bytes
  • Fix inconsistency due to rounding in CachedResponse.expires_unix property
  • Fix form boundary used for cached multipart requests to fully comply with RFC 2046
  • Fix loading cached JSON content with decode_content=True when the root element is an empty list or object
  • Fix usage example with responses library to be compatible with requests 2.32

1.2.0 (2024-02-17)

⚠️ Deprecations & removals:

  • Drop support for python 3.7
  • Remove methods deprecated in 1.0 from CachedSession and BaseCache

🕗 Expiration & headers:

  • Add support for X-HTTP-Method-Override and other headers that can override request method

⚙️ Session methods:

  • Add CachedSession.wrap() classmethod to add caching to an existing requests.Session object

💾 SQLite Backend:

  • Add vacuum parameter to SQLiteCache.delete() to optionally skip vacuuming after deletion (enabled by default to free up disk space)
  • Optimize SQLiteCache.delete() when deleting a single key

🧩 Compatibility:

  • Add support for RFC 7159 JSON body with decode_content=True (root element with any type)
  • Use timezone-aware UTC datetimes for all internal expiration values
  • Add support for python 3.12
    • Note: There is a known bug with multiprocess/multithreaded usage of the SQLite backend on python 3.12.
  • Add support for cattrs 23.2

🪲 Bugfixes:

  • Fix IncompleteRead error that could sometimes occur with streaming requests due to mismatch with Content-Length header
  • Handle a corner case with streaming requests, conditional requests, and redirects
  • When redacting ignored parameters from a cached response, keep the rest of the original URL and headers without normalizing
  • Add CachedHTTPResponse._request_url property for compatibility with urllib3
  • Fix form boundary used for cached multipart requests to comply with RFC 2046
  • If an explicit CA bundle path is passed via verify param, cache the response under the same key as verify=True
  • Handle JSON Content-Type charsets and MIME type variations (such as application/vnd.api+json) during request normalization and serialization

1.1.1 (2023-11-18)

  • Backport fix from 1.2: Add compatibility with cattrs 23.2

1.1.0 (2023-06-30)

⚙️ Session settings:

  • Add support for regular expressions with urls_expire_after

💾 SQLite Backend:

... (truncated)

Commits
  • 7f6be31 Merge pull request #993 from requests-cache/fix-empty-array
  • 423af82 Fix loading cached JSON content with decode_content=True when the root elemen...
  • 28dfa64 Add compatibility tests (for docs/external libraries) to CI and nox config
  • 4114cee Merge pull request #992 from requests-cache/fix-responses-test
  • f652475 Fix usage example with responses library to be compatible with requests 2.32
  • 4dc0a52 Update dependencies
  • d002851 Update changelog and contributors
  • 1290ae9 Update dependencies
  • 08390ee Merge pull request #985 from jcd000/main
  • be91e87 Fixes crashes from patched form boundary
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [requests-cache](https://github.com/requests-cache/requests-cache) from 0.7 to 1.2.1.
- [Release notes](https://github.com/requests-cache/requests-cache/releases)
- [Changelog](https://github.com/requests-cache/requests-cache/blob/main/HISTORY.md)
- [Commits](requests-cache/requests-cache@v0.7.0...v1.2.1)

---
updated-dependencies:
- dependency-name: requests-cache
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 2, 2025
@akaihola akaihola closed this Jan 2, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 2, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/pip/requests-cache-1.2.1 branch January 2, 2025 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant