Skip to content

cookie v0.6.0

Choose a tag to compare

@github-actions github-actions released this 14 Aug 00:52
· 3 commits to main since this release
2949a59

Minor Changes

  • BREAKING CHANGE: Custom encode and decode functions now own the cookie value representation directly. Previously, custom encode output was still wrapped in Remix's default base64 encoding and custom decode received a value after that base64 wrapper was removed. Now custom encode output is signed and serialized as-is, and custom decode receives the unsigned raw cookie value. The default encoder and decoder still use the existing base64-safe representation when no custom functions are provided.

  • BREAKING CHANGE: Cookie.httpOnly now returns boolean | undefined instead of defaulting to false. This lets consumers distinguish an omitted httpOnly option from an explicit httpOnly: false setting.