| 1 |
# Version 0.16 |
| 2 |
|
| 3 |
## Version 0.16.2 (Dec 16, 2022) |
| 4 |
|
| 5 |
### General Changes |
| 6 |
|
| 7 |
* `base64` was updated to `0.20`. |
| 8 |
|
| 9 |
## Version 0.16.1 (Sep 25, 2022) |
| 10 |
|
| 11 |
### Changes and Fixes |
| 12 |
|
| 13 |
* The `,`, `(`, and `)` are percent-encoded/decoded when encoding is used. |
| 14 |
* The `aes-gcm` dependency was updated to 0.10. |
| 15 |
|
| 16 |
## Version 0.16.0 (Dec 28, 2021) |
| 17 |
|
| 18 |
### Breaking Changes |
| 19 |
|
| 20 |
* The MSRV is now `1.53`, up from `1.41` in `0.15`. |
| 21 |
* `time` has been updated to `0.3` and is reexported from the crate root. |
| 22 |
|
| 23 |
### General Changes |
| 24 |
|
| 25 |
* `rust-crypto` dependencies were updated to their latest versions. |
| 26 |
|
| 27 |
# Version 0.15 |
| 28 |
|
| 29 |
## Version 0.15.1 (Jul 14, 2021) |
| 30 |
|
| 31 |
### Changes and Fixes |
| 32 |
|
| 33 |
* A panic that could result from non-char boundary indexing was fixed. |
| 34 |
* Stale doc references to version `0.14` were updated. |
| 35 |
|
| 36 |
## Version 0.15.0 (Feb 25, 2021) |
| 37 |
|
| 38 |
### Breaking Changes |
| 39 |
|
| 40 |
* `Cookie::force_remove()` takes `&Cookie` instead of `Cookie`. |
| 41 |
* Child jar methods split into immutable and mutable versions |
| 42 |
(`Cookie::{private{_mut}, signed{_mut}}`). |
| 43 |
* `Cookie::encoded()` returns a new `Display` struct. |
| 44 |
* Dates with year `<= 99` are handled like Chrome: range `0..=68` maps to |
| 45 |
`2000..=2068`, `69..=99` to `1969..=1999`. |
| 46 |
* `Cookie::{set_}expires()` operates on a new `Expiration` enum. |
| 47 |
|
| 48 |
### New Features |
| 49 |
|
| 50 |
* Added `Cookie::make_removal()` to manually create expired cookies. |
| 51 |
* Added `Cookie::stripped()` display variant to print only the `name` and |
| 52 |
`value` of a cookie. |
| 53 |
* `Key` implements a constant-time `PartialEq`. |
| 54 |
* Added `Key::master()` to retrieve the full 512-bit master key. |
| 55 |
* Added `PrivateJar::decrypt()` to manually decrypt an encrypted `Cookie`. |
| 56 |
* Added `SignedJar::verify()` to manually verify a signed `Cookie`. |
| 57 |
* `Cookie::expires()` returns an `Option<Expiration>` to allow distinguishing |
| 58 |
between unset and `None` expirations. |
| 59 |
* Added `Cookie::expires_datetime()` to retrieve the expiration as an |
| 60 |
`OffsetDateTime`. |
| 61 |
* Added `Cookie::unset_expires()` to unset expirations. |
| 62 |
|
| 63 |
### General Changes and Fixes |
| 64 |
|
| 65 |
* MSRV is 1.41. |
| 66 |
|
| 67 |
# Version 0.14 |
| 68 |
|
| 69 |
## Version 0.14.3 (Nov 5, 2020) |
| 70 |
|
| 71 |
### Changes and Fixes |
| 72 |
|
| 73 |
* `rust-crypto` dependencies were updated to their latest versions. |
| 74 |
|
| 75 |
## Version 0.14.2 (Jul 22, 2020) |
| 76 |
|
| 77 |
### Changes and Fixes |
| 78 |
|
| 79 |
* Documentation now builds on the stable channel. |
| 80 |
* `rust-crypto` dependencies were updated to their latest versions. |
| 81 |
* Fixed 'interator' -> 'iterator' documentation typo. |
| 82 |
|
| 83 |
## Version 0.14.1 (Jun 5, 2020) |
| 84 |
|
| 85 |
### Changes and Fixes |
| 86 |
|
| 87 |
* Updated `base64` dependency to 0.12. |
| 88 |
* Updated minimum `time` dependency to correct version: 0.2.11. |
| 89 |
* Added `readme` key to `Cargo.toml`, updated `license` field. |
| 90 |
|
| 91 |
## Version 0.14.0 (May 29, 2020) |
| 92 |
|
| 93 |
### Breaking Changes |
| 94 |
|
| 95 |
* The `Key::from_master()` method was deprecated in favor of the more aptly |
| 96 |
named `Key::derive_from()`. |
| 97 |
* The deprecated `CookieJar::clear()` method was removed. |
| 98 |
|
| 99 |
### New Features |
| 100 |
|
| 101 |
* Added `Key::from()` to create a `Key` structure from a full-length key. |
| 102 |
* Signed and private cookie jars can be individually enabled via the new |
| 103 |
`signed` and `private` features, respectively. |
| 104 |
* Key derivation via key expansion can be individually enabled via the new |
| 105 |
`key-expansion` feature. |
| 106 |
|
| 107 |
### General Changes and Fixes |
| 108 |
|
| 109 |
* `ring` is no longer a dependency: `RustCrypto`-based cryptography is used in |
| 110 |
lieu of `ring`. Prior to their inclusion here, the `hmac` and `hkdf` crates |
| 111 |
were audited. |
| 112 |
* Quotes, if present, are stripped from cookie values when parsing. |
| 113 |
|
| 114 |
# Version 0.13 |
| 115 |
|
| 116 |
## Version 0.13.3 (Feb 3, 2020) |
| 117 |
|
| 118 |
### Changes |
| 119 |
|
| 120 |
* The `time` dependency was unpinned from `0.2.4`, allowing any `0.2.x` |
| 121 |
version of `time` where `x >= 6`. |
| 122 |
|
| 123 |
## Version 0.13.2 (Jan 28, 2020) |
| 124 |
|
| 125 |
### Changes |
| 126 |
|
| 127 |
* The `time` dependency was pinned to `0.2.4` due to upstream breaking changes |
| 128 |
in `0.2.5`. |
| 129 |
|
| 130 |
## Version 0.13.1 (Jan 23, 2020) |
| 131 |
|
| 132 |
### New Features |
| 133 |
|
| 134 |
* Added the `CookieJar::reset_delta()` method, which reverts all _delta_ |
| 135 |
changes to a `CookieJar`. |
| 136 |
|
| 137 |
## Version 0.13.0 (Jan 21, 2020) |
| 138 |
|
| 139 |
### Breaking Changes |
| 140 |
|
| 141 |
* `time` was updated from 0.1 to 0.2. |
| 142 |
* `ring` was updated from 0.14 to 0.16. |
| 143 |
* `SameSite::None` now writes `SameSite=None` to correspond with updated |
| 144 |
`SameSite` draft. `SameSite` can be unset by passing `None` to |
| 145 |
`Cookie::set_same_site()`. |
| 146 |
* `CookieBuilder` gained a lifetime: `CookieBuilder<'c>`. |
| 147 |
|
| 148 |
### General Changes and Fixes |
| 149 |
|
| 150 |
* Added a CHANGELOG. |
| 151 |
* `expires`, `max_age`, `path`, and `domain` can be unset by passing `None` to |
| 152 |
the respective `Cookie::set_{field}()` method. |
| 153 |
* The "Expires" field is limited to a date-time of Dec 31, 9999, 23:59:59. |
| 154 |
* The `%` character is now properly encoded and decoded. |
| 155 |
* Constructor methods on `CookieBuilder` allow non-static lifetimes. |