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

Update cookie requirement from 0.17 to 0.18 #33

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Oct 10, 2023

Updates the requirements on cookie to permit the latest version.

Changelog

Sourced from cookie's changelog.

Version 0.18.0 (Oct 9, 2023)

Breaking Changes

  • The MSRV is now 1.56.

  • Cookie::value() no longer trims surrounding double quotes. (89eddd)

    Use Cookie::value_trimmed() for the previous behavior.

  • Many methods now expect a T: Into<Cookie> in place of Cookie. (49ff7b)

    Functions and methods that previously accepted a Cookie now accept any T: Into<Cookie>. This particularly affects the CookieJar API, which now allows simpler addition and removal of cookies:

    • jar.add(("foo", "bar"));
    • jar.add(Cookie::build(("foo", "bar")).path("/"));
    • jar.remove("foo");
    • jar.remove(Cookie::build("foo").path("/"));
  • CookieJar::force_remove() now expects a T: AsRef<str> in place of &Cookie.

    Force-removal never requires more information than a cookie's name. The API has been simplified to reflect this.

  • CookieBuilder::finish() was deprecated in favor of CookieBuilder::build().

    This largely serves as a compile-time notice that calling finish() or build() is largely unnecessary given that CookieBuilder implements Into<Cookie>.

  • Cookie::named() was deprecated in favor of using Cookie::build() or Cookie::from().

    • Cookie::named("foo") is equivalent to Cookie::from("foo").
    • Cookie::build("foo") begins building a cookie equivalent to Cookie::named("foo").

New Features

  • Added Cookie::value_trimmed() and Cookie::name_value_trimmed().

    These versions of Cookie::value() and Cookie::name_value(), respectively, trim a matching pair of surrounding double quotes from the cookie's value, if any are present.

  • String-like types, tuples of string-like types, and CookieBuilder

... (truncated)

Commits

You can trigger a rebase of this PR 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)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Oct 10, 2023
Updates the requirements on [cookie](https://github.com/SergioBenitez/cookie-rs) to permit the latest version.
- [Changelog](https://github.com/SergioBenitez/cookie-rs/blob/master/CHANGELOG.md)
- [Commits](rwf2/cookie-rs@0.17.0...0.18.0)

---
updated-dependencies:
- dependency-name: cookie
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/cargo/cookie-0.18 branch from facc89a to 212c924 Compare October 17, 2023 07:42
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.

0 participants