This is the changelog for cookie. It follows semantic versioning.
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Bumped
@remix-run/*dependencies:
- Changed
@remix-run/*peer dependencies to regular dependencies
-
Add
Cookieclass. ThecreateCookiefunction now returns an instance of theCookieclass.// You can now create cookies using either approach: import { createCookie, Cookie } from '@remix-run/cookie' // Factory function let cookie = createCookie('session') // Or use the class directly let cookie = new Cookie('session')
- Force
secureto betruewhenpartitionedistrue
-
BREAKING CHANGE: Remove
Cookieclass, usecreateCookieinstead// before import { Cookie } from '@remix-run/cookie' let cookie = new Cookie('session') // after import { createCookie } from '@remix-run/cookie' let cookie = createCookie('session')
-
Add
domain,expires,httpOnly,maxAge,partitioned,path,sameSite, andsecureproperties toCookieobjects
- BREAKING CHANGE: Rename
cookie.isSignedtocookie.signed - Add
createCookiefunction to create a newCookieobject CookieOptionsnow extendsCookiePropertiesso all cookie properties may be set in theCookieconstructor
- Update
@remix-run/headerspeer dep to v0.15.0
This is the initial release of @remix-run/cookie.
See the README for more details.