Skip to content

Remove deprecated legacy cookie format support #2213

@mre

Description

@mre

Follow-up from PR #2208 (review comment by @thomas-zahner).

CookieJar::load in lychee-lib/src/types/cookies.rs still falls back to the legacy cookie store format via the deprecated ReqwestCookieStore::load_json. The new format has been the default for almost 2 years, so it's probably safe to drop support for the old format.

  • Remove the legacy-format fallback branch and the #[allow(deprecated)] usage of ReqwestCookieStore::load_json.
  • Simplify CookieJar::load to only support the current cookie_store::serde::json format.
  • Update the doc comment that mentions the "legacy format".

This is a breaking change for anyone still using a cookie file in the old format, so it should be announced in the release notes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions