cookie@0.4.0
Breaking Changes📦 remixView on GitHub →
⚠ 1 breaking✨ 1 features🔧 2 symbols
Summary
This release removes the `Cookie` class in favor of a `createCookie` factory function and expands the available properties on cookie objects.
⚠️ Breaking Changes
- The `Cookie` class has been removed. Developers must now use the `createCookie` factory function to initialize cookies.
Migration Steps
- Replace `new Cookie(name)` constructor calls with `createCookie(name)`.
- Update imports from `import { Cookie } from '@remix-run/cookie'` to `import { createCookie } from '@remix-run/cookie'`.
✨ New Features
- Added `domain`, `expires`, `httpOnly`, `maxAge`, `partitioned`, `path`, `sameSite`, and `secure` properties to `Cookie` objects.
🔧 Affected Symbols
CookiecreateCookie