Repository navigation
Samual's Cookie Libary v0.0.2
Changed
- No longer log
Caught DOMException [InvalidCharacterError]: The string to be decoded is not correctly encoded. - Drop support for Node.js versions below 18.20 and 20.10
- Update to
valibot@1.0.0-beta.8 @samual/cookie/indexno longer encodes invalid cookie names and values, instead it validates and throws
Added
rawNameandrawValueoptions- Ability to do
(await import("@samual/cookie/typed")).setCookie(MyCookie, undefined)withoutMyCookie's schema explicitly havingundefinedas a valid input type
Fixed
- Not being able to store Unicode characters.
@samual/cookie/typedsetCookie()using inferred output type instead of inferred input type of cookie options schema
Setup: https://github.com/samualtnorman/cookie/blob/main/readme.md
Documentation: https://samualtnorman.github.io/cookie/
Full Changelog: v0.0.1...v0.0.2