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

# iron-session breaking changes

iron-session 9.1.0 (November 12, 2026) is its newest release with breaking changes. The first: Behavior changed destroy. Every breaking API change we have recorded in iron-session on npm: 15 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 `9.1.1`, released November 23, 2026. [Source repository](https://github.com/vvo/iron-session)

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

- From [9.0.0](#v-9-0-0) to [9.1.0](#v-9-1-0): 1 breaking change in 1 version.

## iron-session 9.1.0 breaking changes

iron-session 9.1.0, released November 12, 2026: 1 breaking change.

- **Behavior changed** `destroy`  

Calling destroy() after the response body was consumed now throws instead of succeeding silently. Code that calls destroy() at that point must be changed to avoid the error. [github.com](https://github.com/vvo/iron-session/releases/tag/v9.1.0)

## iron-session 9.0.0 breaking changes

iron-session 9.0.0, released August 30, 2026: 14 breaking changes.

- **Removed**  

Users with iron-session v6 or older cookies must sign in once more. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Removed** `createGetIronSession`  

Import getIronSession directly instead of creating it with createGetIronSession. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Removed** `createSealData`  

Import sealData directly instead of creating it with createSealData. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Removed** `createUnsealData`  

Import unsealData directly instead of creating it with createUnsealData. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Behavior changed**  

v9 needs Node 22.13+, and Node 20 is end of life. Stay on iron-session@8 if you must run on older Node. [github.com](https://github.com/vvo/iron-session/releases/tag/v9.0.0)
- **Behavior changed**  

Store timestamps with Date.now() instead of Date objects, since v9 throws on Date values. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Behavior changed** `destroy`  

A bare save() after destroy() is ignored, and writing fields back and then saving throws. Do not write to a session after destroy(). [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Behavior changed** `updateConfig`  

Passing a new password to updateConfig() now applies it and runs the 32-character check, so short or invalid passwords now fail. [github.com](https://github.com/vvo/iron-session/blob/main/MIGRATION.md)
- **Configuration changed**  

Password ids are now validated as integers up front, and an empty password map fails with an explicit error. [github.com](https://github.com/vvo/iron-session/commit/01f14fc3501c6ba84f48ee34d6552911a5e08d8f)
- **Configuration changed** `cookieOptions.expires`  

A cookieOptions.expires date in the past is now rejected, so use ttl instead. [github.com](https://github.com/vvo/iron-session/commit/01f14fc3501c6ba84f48ee34d6552911a5e08d8f)

And 4 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## 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.
