Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jul 12, 2021

Bumps requests-cache from 0.5.2 to 0.7.1.

Changelog

Sourced from requests-cache's changelog.

0.7.1 (2021-07-09)

  • Fix a bug in which Cache-Control headers would be used unexpectedly

0.7.0 (2021-07-07)

See all issues and PRs for 0.7

Backends

  • Add a filesystem backend that stores responses as local files
  • SQLite and filesystem: Add use_temp option to store files in a temp directory
  • SQLite: Use persistent thread-local connections, and improve performance for bulk operations
  • DynamoDB: Fix DynamoDbDict.__iter__ to return keys instead of values
  • MongoDB: Remove usage of deprecated pymongo Collection.find_and_modify()
  • Allow passing any backend-specific connection kwargs via CachedSession to the underlying connection function or object:
    • SQLite: sqlite3.connect
    • DynamoDB: boto3.resource
    • Redis: redis.Redis
    • MongoDB and GridFS: pymongo.MongoClient

Expiration

  • Add optional support for the following request headers:
    • Cache-Control: max-age
    • Cache-Control: no-cache
    • Cache-Control: no-store
  • Add optional support for the following response headers:
    • Cache-Control: max-age
    • Cache-Control: no-store
    • Expires
  • Add cache_control option to CachedSession to enable usage of cache headers
  • Add support for HTTP timestamps (RFC 5322) in expire_after parameters
  • Add support for bypassing the cache if expire_after=0
  • Add support for making a cache whitelist using URL patterns

Serialization

  • Add data models for all serialized objects
  • Add a BSON serializer
  • Add a JSON serializer
  • Add optional support for cattrs
  • Add optional support for ultrajson

General

  • Add option to manually cache response objects with BaseCache.save_response()
  • Add BaseCache.keys() and values() methods
  • Add BaseCache.response_count() method to get an accurate count of responses (excluding invalid and expired)
  • Show summarized response details with str(CachedResponse)
  • Add more detailed repr methods for CachedSession, CachedResponse, and BaseCache
  • Add support for caching multipart form uploads
  • Update BaseCache.urls to only skip invalid responses, not delete them (for better performance)
  • Update old_data_on_error option to also handle error response codes
  • Update ignored_parameters to also exclude ignored request params, body params, or headers from cached response data (to avoid storing API keys or other credentials)
  • Only log request exceptions if old_data_on_error is set

... (truncated)

Commits

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 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/reclosedev/requests-cache) from 0.5.2 to 0.7.1.
- [Release notes](https://github.com/reclosedev/requests-cache/releases)
- [Changelog](https://github.com/reclosedev/requests-cache/blob/master/HISTORY.md)
- [Commits](https://github.com/reclosedev/requests-cache/commits/v0.7.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jul 12, 2021
@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #264 (f68644f) into main (b6d7e88) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #264   +/-   ##
=======================================
  Coverage   94.95%   94.95%           
=======================================
  Files           8        8           
  Lines         357      357           
=======================================
  Hits          339      339           
  Misses         18       18           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b6d7e88...f68644f. Read the comment docs.

@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Jul 21, 2021

Superseded by #268.

@dependabot dependabot bot closed this Jul 21, 2021
@dependabot dependabot bot deleted the dependabot/pip/requests-cache-0.7.1 branch July 21, 2021 20:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant