Skip to content

Bump requests-cache from 1.1.1 to 1.2.0 - #470

Merged
rtibbles merged 1 commit into
developfrom
dependabot/pip/requests-cache-1.2.0
Feb 24, 2024
Merged

Bump requests-cache from 1.1.1 to 1.2.0#470
rtibbles merged 1 commit into
developfrom
dependabot/pip/requests-cache-1.2.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Feb 23, 2024

Copy link
Copy Markdown
Contributor

⚠️ Dependabot is rebasing this PR ⚠️

Rebasing might not happen immediately, so don't worry if this takes some time.

Note: if you make any changes to this PR yourself, they will take precedence over the rebase.


Bumps requests-cache from 1.1.1 to 1.2.0.

Release notes

Sourced from requests-cache's releases.

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

See Changelog for complete release details.

Changelog

Sourced from requests-cache's changelog.

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
Commits
  • c718376 Update changelog
  • 1b6b924 Workaround due to older versions of requests/urllib3 having an upper bound on...
  • 10d6cfc Loosen responses version for testing with older versions of requests
  • dea221b Merge branch 'gzip-read'
  • 5f71c49 When body has been fully read, close file pointer but don't error on subseque...
  • 40a2d0e Update dependencies
  • 0a9a365 Merge pull request #959 from requests-cache/copy-content
  • 281f026 Update changelog and contributors
  • 4a887b7 Refactor CachedHTTPResponse.from_response()
  • 3b3363f Add Prettier and auto-format files (#953)
  • 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)

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Feb 23, 2024
@rtibbles

Copy link
Copy Markdown
Member

@dependabot rebase

@dependabot
dependabot Bot force-pushed the dependabot/pip/requests-cache-1.2.0 branch from 3efc716 to 29d6168 Compare February 24, 2024 01:33

@rtibbles rtibbles left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is only used in tests, and tests still work!

@rtibbles

Copy link
Copy Markdown
Member

@dependabot rebase

Bumps [requests-cache](https://github.com/requests-cache/requests-cache) from 1.1.1 to 1.2.0.
- [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@v1.1.1...v1.2.0)

---
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 force-pushed the dependabot/pip/requests-cache-1.2.0 branch from 29d6168 to e15c0c7 Compare February 24, 2024 01:40
@rtibbles
rtibbles merged commit efdf230 into develop Feb 24, 2024
@dependabot
dependabot Bot deleted the dependabot/pip/requests-cache-1.2.0 branch February 24, 2024 01:55
@rtibbles

Copy link
Copy Markdown
Member

Readthedocs doesn't handle force pushes very well it seems.

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 python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant