Change8

cookie@0.3.0

Breaking Changes
📦 remixView on GitHub →
1 breaking2 features🔧 6 symbols

Summary

This release introduces a breaking change by renaming the cookie signing property and improves cookie creation by adding a new utility function and expanding constructor options.

⚠️ Breaking Changes

  • The `cookie.isSigned` property has been renamed to `cookie.signed`. Code relying on the old property name will fail.

Migration Steps

  1. Search your codebase for references to `cookie.isSigned` and rename them to `cookie.signed`.

✨ New Features

  • Added `createCookie` function to instantiate new `Cookie` objects.
  • Updated `CookieOptions` to extend `CookieProperties`, allowing all cookie properties to be configured via the `Cookie` constructor.

🔧 Affected Symbols

cookie.isSignedcookie.signedcreateCookieCookieOptionsCookiePropertiesCookie