4.6 KiB
4.6 KiB
Version 0.16
Version 0.16.2 (Dec 16, 2022)
General Changes
base64was updated to0.20.
Version 0.16.1 (Sep 25, 2022)
Changes and Fixes
- The
,,(, and)are percent-encoded/decoded when encoding is used. - The
aes-gcmdependency was updated to 0.10.
Version 0.16.0 (Dec 28, 2021)
Breaking Changes
- The MSRV is now
1.53, up from1.41in0.15. timehas been updated to0.3and is reexported from the crate root.
General Changes
rust-cryptodependencies were updated to their latest versions.
Version 0.15
Version 0.15.1 (Jul 14, 2021)
Changes and Fixes
- A panic that could result from non-char boundary indexing was fixed.
- Stale doc references to version
0.14were updated.
Version 0.15.0 (Feb 25, 2021)
Breaking Changes
Cookie::force_remove()takes&Cookieinstead ofCookie.- Child jar methods split into immutable and mutable versions
(
Cookie::{private{_mut}, signed{_mut}}). Cookie::encoded()returns a newDisplaystruct.- Dates with year
<= 99are handled like Chrome: range0..=68maps to2000..=2068,69..=99to1969..=1999. Cookie::{set_}expires()operates on a newExpirationenum.
New Features
- Added
Cookie::make_removal()to manually create expired cookies. - Added
Cookie::stripped()display variant to print only thenameandvalueof a cookie. Keyimplements a constant-timePartialEq.- Added
Key::master()to retrieve the full 512-bit master key. - Added
PrivateJar::decrypt()to manually decrypt an encryptedCookie. - Added
SignedJar::verify()to manually verify a signedCookie. Cookie::expires()returns anOption<Expiration>to allow distinguishing between unset andNoneexpirations.- Added
Cookie::expires_datetime()to retrieve the expiration as anOffsetDateTime. - Added
Cookie::unset_expires()to unset expirations.
General Changes and Fixes
- MSRV is 1.41.
Version 0.14
Version 0.14.3 (Nov 5, 2020)
Changes and Fixes
rust-cryptodependencies were updated to their latest versions.
Version 0.14.2 (Jul 22, 2020)
Changes and Fixes
- Documentation now builds on the stable channel.
rust-cryptodependencies were updated to their latest versions.- Fixed 'interator' -> 'iterator' documentation typo.
Version 0.14.1 (Jun 5, 2020)
Changes and Fixes
- Updated
base64dependency to 0.12. - Updated minimum
timedependency to correct version: 0.2.11. - Added
readmekey toCargo.toml, updatedlicensefield.
Version 0.14.0 (May 29, 2020)
Breaking Changes
- The
Key::from_master()method was deprecated in favor of the more aptly namedKey::derive_from(). - The deprecated
CookieJar::clear()method was removed.
New Features
- Added
Key::from()to create aKeystructure from a full-length key. - Signed and private cookie jars can be individually enabled via the new
signedandprivatefeatures, respectively. - Key derivation via key expansion can be individually enabled via the new
key-expansionfeature.
General Changes and Fixes
ringis no longer a dependency:RustCrypto-based cryptography is used in lieu ofring. Prior to their inclusion here, thehmacandhkdfcrates were audited.- Quotes, if present, are stripped from cookie values when parsing.
Version 0.13
Version 0.13.3 (Feb 3, 2020)
Changes
- The
timedependency was unpinned from0.2.4, allowing any0.2.xversion oftimewherex >= 6.
Version 0.13.2 (Jan 28, 2020)
Changes
- The
timedependency was pinned to0.2.4due to upstream breaking changes in0.2.5.
Version 0.13.1 (Jan 23, 2020)
New Features
- Added the
CookieJar::reset_delta()method, which reverts all delta changes to aCookieJar.
Version 0.13.0 (Jan 21, 2020)
Breaking Changes
timewas updated from 0.1 to 0.2.ringwas updated from 0.14 to 0.16.SameSite::Nonenow writesSameSite=Noneto correspond with updatedSameSitedraft.SameSitecan be unset by passingNonetoCookie::set_same_site().CookieBuildergained a lifetime:CookieBuilder<'c>.
General Changes and Fixes
- Added a CHANGELOG.
expires,max_age,path, anddomaincan be unset by passingNoneto the respectiveCookie::set_{field}()method.- The "Expires" field is limited to a date-time of Dec 31, 9999, 23:59:59.
- The
%character is now properly encoded and decoded. - Constructor methods on
CookieBuilderallow non-static lifetimes.