cookie-es breaking changes
cookie-es 3.0.0 (March 23, 2026) is its newest release with breaking changes, 25 of them. The first: Removed SetCookie.__index. Every breaking API change we have recorded in cookie-es on npm: 26 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 3.1.1, released March 27, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
cookie-es 3.0.0 breaking changes
- Removed
SetCookie.__index
SetCookie.__index was removed in cookie-es 3.0.0 npmjs.com - Behavior changed
parseSetCookie
Code that reads fields from the result must now check for undefined first. github.com - Behavior changed
serialize
Calls with sameSite set to none and no Secure flag now throw. Add secure: true to these calls. github.com - Signature changed
CookieParseOptions.decode
Was decode?(value: string): string; now decode?: (str: string) => string | undefined. npmjs.com - Signature changed
CookieSerializeOptions
The canonical type is now CookieStringifyOptions; CookieSerializeOptions remains as an alias. npmjs.com - Signature changed
CookieSerializeOptions.domain
Was domain?: string | undefined; now domain?: string. npmjs.com - Signature changed
CookieSerializeOptions.encode
Was encode?(value: string): string; now encode?: (str: string) => string. npmjs.com - Signature changed
CookieSerializeOptions.expires
Was expires?: Date | undefined; now expires?: Date. npmjs.com - Signature changed
CookieSerializeOptions.httpOnly
Was httpOnly?: boolean | undefined; now httpOnly?: boolean. npmjs.com - Signature changed
CookieSerializeOptions.maxAge
Was maxAge?: number | undefined; now maxAge?: number. npmjs.com - Signature changed
CookieSerializeOptions.path
Was path?: string | undefined; now path?: string. npmjs.com - Signature changed
CookieSerializeOptions.priority
Was priority?: "low" | "medium" | "high" | undefined; now priority?: "low" | "medium" | "high". npmjs.com - Signature changed
CookieSerializeOptions.sameSite
Was sameSite?: true | false | "lax" | "strict" | "none" | undefined; now sameSite?: boolean | "lax" | "strict" | "none". npmjs.com - Signature changed
CookieSerializeOptions.secure
Was secure?: boolean | undefined; now secure?: boolean. npmjs.com - Signature changed
parse
Was function parse(str: string, options?: CookieParseOptions): Record<string, string>; now function parse(str: string, options: CookieParseOptions & {allowMultiple: true;}): MultiCookies function parse(str: string, options?... npmjs.com - Signature changed
parseSetCookie
Was function parseSetCookie(setCookieValue: string, options?: SetCookieParseOptions): SetCookie; now function parseSetCookie(str: string, options?: SetCookieParseOptions): SetCookie$1 | undefined. npmjs.com - Signature changed
serialize
Was function serialize(name: string, value: string, options?: CookieSerializeOptions): string; now function serialize(cookie: SetCookie, options?: CookieStringifyOptions): string function serialize(name: string, val: string, options?... npmjs.com - Signature changed
SetCookie.domain
Was domain?: string | undefined; now domain?: string. npmjs.com - Signature changed
SetCookie.expires
Was expires?: Date | undefined; now expires?: Date. npmjs.com - Signature changed
SetCookie.httpOnly
Was httpOnly?: boolean | undefined; now httpOnly?: boolean. npmjs.com - Signature changed
SetCookie.maxAge
Was maxAge?: number | undefined; now maxAge?: number. npmjs.com - Signature changed
SetCookie.path
Was path?: string | undefined; now path?: string. npmjs.com - Signature changed
SetCookie.sameSite
Was sameSite?: true | false | "lax" | "strict" | "none" | undefined; now sameSite?: boolean | "lax" | "strict" | "none". npmjs.com - Signature changed
SetCookie.secure
Was secure?: boolean | undefined; now secure?: boolean. npmjs.com - Signature changed
SetCookie.value
Was value: string; now value: string | undefined. npmjs.com
cookie-es 2.0.0 breaking changes
- Removed
The package no longer ships a CommonJS build, so code that loads it with require() must switch to import. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.