---
title: "serialize-error 13.0.0 Breaking Changes on npm | Since.dev"
description: "What each serialize-error release removed, renamed or changed: 16 breaking changes in 5 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/serialize-error
last_updated: 2026-12-04
---

# serialize-error breaking changes

serialize-error 13.0.0 (January 16, 2026) is its newest release with breaking changes, 4 of them. The first: serialize-error 13.0.0 requires Node.js 20 or later. Every breaking API change we have recorded in serialize-error on npm: 16 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `13.1.0`. [Source repository](https://github.com/sindresorhus/serialize-error)

Its 13.0.0 release requires [Node.js 20](https://since.dev/calendar/nodejs/20.md) or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [12.0.0](#v-12-0-0) to [13.0.0](#v-13-0-0): 4 breaking changes in 1 version.
- From [9.0.0](#v-9-0-0) to [13.0.0](#v-13-0-0): 14 breaking changes in 4 versions.

## serialize-error 13.0.0 breaking changes

serialize-error 13.0.0, released January 16, 2026: 4 breaking changes.

- **Removed**  

The package now requires Node.js 20. Users on older Node.js versions must upgrade Node.js before using this release. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v13.0.0)
- **Behavior changed**  

Values that are not Error instances are now serialized to a NonError error instead of their previous output. Code that depends on the old output must be updated. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v13.0.0)
- **Signature changed** `addKnownErrorConstructor`  

Was function addKnownErrorConstructor(constructor: BaseErrorConstructor): void; now function addKnownErrorConstructor\<T extends Error>(constructor: new () => T, factory?: ErrorFactory\<T>): void function addKnownErrorConstructor\<T extends... [npmjs.com](https://www.npmjs.com/package/serialize-error/v/13.0.0)
- **Signature changed** `serializeError`  

Was function serializeError\<ErrorType>(error: ErrorType, options?: Options): ErrorType extends Primitive ? ErrorType : unknown extends ErrorType ? unknown : ErrorObject; now function serializeError(error: unknown, options?: Options)... [npmjs.com](https://www.npmjs.com/package/serialize-error/v/13.0.0)

## serialize-error 12.0.0 breaking changes

serialize-error 12.0.0, released January 5, 2025: 6 breaking changes.

- **Removed** `errorConstructors`  

errorConstructors was removed in serialize-error 12.0.0 [npmjs.com](https://www.npmjs.com/package/serialize-error/v/12.0.0)
- **Behavior changed**  

The package now requires Node.js 18+; users on older Node.js versions must upgrade before installing this release. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v12.0.0)
- **Behavior changed**  

Error determination is stricter, so some values previously serialized as errors may now be handled differently. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v12.0.0)
- **Behavior changed**  

Properties that are not Error instances' own properties were previously made non-enumerable; they now stay enumerable, which can change serialized output. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v12.0.0)
- **Signature changed** `Options`  

Was interface Options; now type Options = {readonly maxDepth?: number; readonly useToJSON?: boolean;}. [npmjs.com](https://www.npmjs.com/package/serialize-error/v/12.0.0)
- **Signature changed** `serializeError`  

Was function serializeError\<ErrorType>(error: ErrorType, options?: Options): ErrorType extends Primitive ? ErrorType : ErrorObject; now function serializeError\<ErrorType>(error: ErrorType, options?: Options): ErrorType extends Primitive ?... [npmjs.com](https://www.npmjs.com/package/serialize-error/v/12.0.0)

## serialize-error 11.0.0 breaking changes

serialize-error 11.0.0, released May 13, 2022: 1 breaking change.

- **Behavior changed**  

Only objects with a message property at a minimum are now interpreted as Errors when deserializing. Check that serialized input includes a message property. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v11.0.0)

## serialize-error 10.0.0 breaking changes

serialize-error 10.0.0, released April 18, 2022: 3 breaking changes.

- **Removed**  

The package now requires Node.js 14. Users on older Node.js versions must upgrade their runtime. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v10.0.0)
- **Default changed**  

Built-in errors such as TypeError are now deserialized as their original type instead of plain Error. Code relying on the old Error type must be updated. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v10.0.0)
- **Signature changed** `ErrorObject`  

Was type ErrorObject = {name?: string; stack?: string; message?: string; code?: string;} & JsonObject; now type ErrorObject = {name?: string; message?: string; stack?: string; cause?: unknown; code?: string;} & JsonObject. [npmjs.com](https://www.npmjs.com/package/serialize-error/v/10.0.0)

## serialize-error 9.0.0 breaking changes

serialize-error 9.0.0, released November 17, 2021: 2 breaking changes.

- **Removed**  

The package now requires Node.js 12.20 or later. Users on older Node.js versions must upgrade Node.js before using this release. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v9.0.0)
- **Behavior changed**  

The package ships only as ES modules, so code that loads it with require() must switch to import, as described in the linked migration guide. [github.com](https://github.com/sindresorhus/serialize-error/releases/tag/v9.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.
