Skip to content

Samual's Cookie Libary v0.0.2

Choose a tag to compare

@samualtnorman samualtnorman released this 22 Nov 15:18
· 48 commits to main since this release
1423b0b

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/index no longer encodes invalid cookie names and values, instead it validates and throws

Added

  • rawName and rawValue options
  • Ability to do (await import("@samual/cookie/typed")).setCookie(MyCookie, undefined) without MyCookie's schema explicitly having undefined as a valid input type

Fixed

  • Not being able to store Unicode characters.
  • @samual/cookie/typed setCookie() 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