---
title: "cookie-es 3.0.0 Breaking Changes on npm | Since.dev"
description: "What each cookie-es release removed, renamed or changed: 26 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/cookie-es
last_updated: 2026-12-04
---

# 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

Latest version `3.1.1`, released March 27, 2026. [Source repository](https://github.com/unjs/cookie-es)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [2.0.0](#v-2-0-0) to [3.0.0](#v-3-0-0): 25 breaking changes in 1 version.

## cookie-es 3.0.0 breaking changes

cookie-es 3.0.0, released March 23, 2026: 25 breaking changes.

- **Removed** `SetCookie.__index`  

SetCookie.\_\_index was removed in cookie-es 3.0.0 [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Behavior changed** `parseSetCookie`  

Code that reads fields from the result must now check for undefined first. [github.com](https://github.com/unjs/cookie-es/releases/tag/v3.0.0)
- **Behavior changed** `serialize`  

Calls with sameSite set to none and no Secure flag now throw. Add secure: true to these calls. [github.com](https://github.com/unjs/cookie-es/releases/tag/v3.0.0)
- **Signature changed** `CookieParseOptions.decode`  

Was decode?(value: string): string; now decode?: (str: string) => string | undefined. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions`  

The canonical type is now CookieStringifyOptions; CookieSerializeOptions remains as an alias. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.domain`  

Was domain?: string | undefined; now domain?: string. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.encode`  

Was encode?(value: string): string; now encode?: (str: string) => string. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.expires`  

Was expires?: Date | undefined; now expires?: Date. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.httpOnly`  

Was httpOnly?: boolean | undefined; now httpOnly?: boolean. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.maxAge`  

Was maxAge?: number | undefined; now maxAge?: number. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.path`  

Was path?: string | undefined; now path?: string. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.priority`  

Was priority?: "low" | "medium" | "high" | undefined; now priority?: "low" | "medium" | "high". [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.sameSite`  

Was sameSite?: true | false | "lax" | "strict" | "none" | undefined; now sameSite?: boolean | "lax" | "strict" | "none". [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `CookieSerializeOptions.secure`  

Was secure?: boolean | undefined; now secure?: boolean. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **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](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `parseSetCookie`  

Was function parseSetCookie(setCookieValue: string, options?: SetCookieParseOptions): SetCookie; now function parseSetCookie(str: string, options?: SetCookieParseOptions): SetCookie$1 | undefined. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **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](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.domain`  

Was domain?: string | undefined; now domain?: string. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.expires`  

Was expires?: Date | undefined; now expires?: Date. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.httpOnly`  

Was httpOnly?: boolean | undefined; now httpOnly?: boolean. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.maxAge`  

Was maxAge?: number | undefined; now maxAge?: number. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.path`  

Was path?: string | undefined; now path?: string. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.sameSite`  

Was sameSite?: true | false | "lax" | "strict" | "none" | undefined; now sameSite?: boolean | "lax" | "strict" | "none". [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.secure`  

Was secure?: boolean | undefined; now secure?: boolean. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)
- **Signature changed** `SetCookie.value`  

Was value: string; now value: string | undefined. [npmjs.com](https://www.npmjs.com/package/cookie-es/v/3.0.0)

## cookie-es 2.0.0 breaking changes

cookie-es 2.0.0, released February 27, 2025: 1 breaking change.

- **Removed**  

The package no longer ships a CommonJS build, so code that loads it with require() must switch to import. [github.com](https://github.com/unjs/cookie-es/releases/tag/v2.0.0)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
