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

# immutable breaking changes

immutable 5.2.1 (November 13, 2026) is its newest release with breaking changes, 31 of them. The first: Signature changed Collection.getIn. Every breaking API change we have recorded in immutable on npm: 77 breaking changes in 8 versions. Below, its 8 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `5.2.1`, released November 13, 2026. [Source repository](https://github.com/immutable-js/immutable-js)

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

- From [5.0.0](#v-5-0-0) to [5.2.1](#v-5-2-1): 49 breaking changes in 6 versions.

## immutable 5.2.1 breaking changes

immutable 5.2.1, released November 13, 2026: 31 breaking changes.

- **Signature changed** `Collection.getIn`  

Was getIn(searchKeyPath: Iterable\<unknown>, notSetValue?: unknown): unknown; now getIn(searchKeyPath: KeyPath\<unknown>, notSetValue?: unknown): unknown. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Collection.hasIn`  

Was hasIn(searchKeyPath: Iterable\<unknown>): boolean; now hasIn(searchKeyPath: KeyPath\<unknown>): boolean. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `getIn`  

Was function getIn\<C, NSV>(object: C, keyPath: ArrayLikeKeyPath, notSetValue: NSV): unknown function getIn\<C>(object: C, keyPath: ArrayLikeKeyPath): unknown; now function getIn\<C, NSV>(object: C, keyPath: ArrayLikeKeyPath |... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.deleteIn`  

Was deleteIn(keyPath: Iterable\<unknown>): this; now deleteIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.mergeDeepIn`  

Was mergeDeepIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeDeepIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.mergeIn`  

Was mergeIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.removeIn`  

Was removeIn(keyPath: Iterable\<unknown>): this; now removeIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.setIn`  

Was setIn(keyPath: Iterable\<unknown>, value: unknown): this; now setIn(keyPath: KeyPath\<unknown>, value: unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `List.updateIn`  

Was updateIn(keyPath: Iterable\<unknown>, notSetValue: unknown, updater: (value: unknown) => unknown): this updateIn(keyPath: Iterable\<unknown>, updater: (value: unknown) => unknown): this; now updateIn(keyPath: KeyPath\<unknown>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.deleteIn`  

Was deleteIn(keyPath: Iterable\<unknown>): this; now deleteIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.mergeDeepIn`  

Was mergeDeepIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeDeepIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.mergeIn`  

Was mergeIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.removeIn`  

Was removeIn(keyPath: Iterable\<unknown>): this; now removeIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.setIn`  

Was setIn(keyPath: Iterable\<unknown>, value: unknown): this; now setIn(keyPath: KeyPath\<unknown>, value: unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Map.updateIn`  

Was updateIn(keyPath: Iterable\<unknown>, notSetValue: unknown, updater: (value: unknown) => unknown): this updateIn(keyPath: Iterable\<unknown>, updater: (value: unknown) => unknown): this; now updateIn(keyPath: KeyPath\<unknown>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.deleteIn`  

Was deleteIn(keyPath: Iterable\<unknown>): this; now deleteIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.hasIn`  

Was hasIn(keyPath: Iterable\<unknown>): boolean; now hasIn(keyPath: KeyPath\<unknown>): boolean. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.mergeDeepIn`  

Was mergeDeepIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeDeepIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.mergeIn`  

Was mergeIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.removeIn`  

Was removeIn(keyPath: Iterable\<unknown>): this; now removeIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.setIn`  

Was setIn(keyPath: Iterable\<unknown>, value: unknown): this; now setIn(keyPath: KeyPath\<unknown>, value: unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `Record.updateIn`  

Was updateIn(keyPath: Iterable\<unknown>, updater: (value: unknown) => unknown): this; now updateIn(keyPath: KeyPath\<unknown>, updater: (value: unknown) => unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.deleteIn`  

Was deleteIn(keyPath: Iterable\<unknown>): this; now deleteIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.hasIn`  

Was hasIn(keyPath: Iterable\<unknown>): boolean; now hasIn(keyPath: KeyPath\<unknown>): boolean. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.mergeDeepIn`  

Was mergeDeepIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeDeepIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.mergeIn`  

Was mergeIn(keyPath: Iterable\<unknown>, ...collections: Array\<unknown>): this; now mergeIn(keyPath: KeyPath\<unknown>, ...collections: Array\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.removeIn`  

Was removeIn(keyPath: Iterable\<unknown>): this; now removeIn(keyPath: KeyPath\<unknown>): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.setIn`  

Was setIn(keyPath: Iterable\<unknown>, value: unknown): this; now setIn(keyPath: KeyPath\<unknown>, value: unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `RecordOf.updateIn`  

Was updateIn(keyPath: Iterable\<unknown>, updater: (value: unknown) => unknown): this; now updateIn(keyPath: KeyPath\<unknown>, updater: (value: unknown) => unknown): this. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `removeIn`  

Was function removeIn\<C>(collection: C, keyPath: Iterable\<unknown>): C; now function removeIn\<C>(collection: C, keyPath: KeyPath\<unknown>): C. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)
- **Signature changed** `setIn`  

Was function setIn\<C>(collection: C, keyPath: Iterable\<unknown>, value: unknown): C; now function setIn\<C>(collection: C, keyPath: KeyPath\<unknown>, value: unknown): C. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.1)

## immutable 5.2.0 breaking changes

immutable 5.2.0, released November 12, 2026: 11 breaking changes.

- **Signature changed** `getIn`  

Was function getIn\<C, P extends KeyPath\<unknown>, NSV>(object: C, keyPath: P, notSetValue: NSV): unknown function getIn\<C, P extends KeyPath\<unknown>>(object: C, keyPath: P): unknown function getIn\<C, P extends ReadonlyArray\<PropertyKey>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `GetNativeType`  

Was type GetNativeType\<S> = S extends MapOf\<infer T> ? T : S extends List\<infer I> ? Array\<I> : S; now type GetNativeType\<S> = S extends MapOf\<infer T> ? T : S extends Record\<any> ? S extends {toObject(): infer T} ? T : never : S extends... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `Head`  

Was type Head\<T extends ReadonlyArray\<unknown>> = T extends \[infer H, ...Array\<unknown>\] ? H : never; now type Head\<T extends ReadonlyArray\<unknown>> = T extends readonly \[infer H, ...ReadonlyArray\<unknown>\] ? H : never. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `isRecord`  

Was function isRecord(maybeRecord: unknown): maybeRecord is Record\<object>; now function isRecord(maybeRecord: object | Primitive): maybeRecord is Record\<any> function isRecord(maybeRecord: unknown): maybeRecord is UnknownRecord. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `MapOf.getIn`  

Was getIn\<P extends ReadonlyArray\<PropertyKey>>(searchKeyPath: \[...P\], notSetValue?: unknown): RetrievePath\<R, P>; now getIn\<P extends ReadonlyArray\<object | PropertyKey>, NSV>(searchKeyPath: readonly \[...P\] | OrderedCollection\<unknown>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `Record.getIn`  

Was getIn(keyPath: Iterable\<unknown>): unknown; now getIn\<P extends ReadonlyArray\<object | PropertyKey>, NSV>(keyPath: readonly \[...P\] | OrderedCollection\<unknown>, notSetValue: NSV): RetrievePathOrUnknownWithNotSetValue\<TProps, P, NSV>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `Record.isRecord`  

Was function isRecord(maybeRecord: unknown): maybeRecord is Record\<object>; now function isRecord(maybeRecord: object | Primitive): maybeRecord is Record\<any> function isRecord(maybeRecord: unknown): maybeRecord is UnknownRecord. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `RecordOf.getIn`  

Was getIn(keyPath: Iterable\<unknown>): unknown; now getIn\<P extends ReadonlyArray\<object | PropertyKey>>(keyPath: TypedKeyPath\<TProps, P> | OrderedCollection\<unknown>): RetrievePathOrUnknown\<TProps, P>. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `RetrievePath`  

Was type RetrievePath\<R, P extends ReadonlyArray\<unknown>> = P extends \[\] ? P : RetrievePathReducer\<R, Head\<P>, Tail\<P>>; now type RetrievePath\<R, P extends ReadonlyArray\<unknown>> = ReplaceNotSet\<RetrievePathRaw\<R, P>, undefined>. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)
- **Signature changed** `RetrievePathReducer`  

Was type RetrievePathReducer\<T, C, L extends ReadonlyArray\<unknown>, NT = GetNativeType\<T>> = T extends string | number | boolean | null | undefined ? never : C extends keyof NT ? L extends \[\] ? NT\[C\] : RetrievePathReducer\<NT\[C\], Head\<L>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.2.0)

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

## immutable 5.1.10 breaking changes

immutable 5.1.10, released November 9, 2026: 4 breaking changes.

- **Behavior changed** `MapOf.delete`  

On a MapOf, delete and remove of a required key now type as a MapOf without that key instead of never. Optional-key deletes keep their type. Code depending on the old typing may need updating. [github.com](https://github.com/immutable-js/immutable-js/releases/tag/v5.1.10)
- **Behavior changed** `Seq.skipWhile`  

On an indexed Seq, skipWhile and skipUntil now renumber iterator keys from 0, consistent with toArray and entrySeq. Code that relied on the previous keys must be updated. [github.com](https://github.com/immutable-js/immutable-js/releases/tag/v5.1.10)
- **Signature changed** `MapOf.delete`  

Was delete\<K extends keyof R>(key: K): Extract\<R\[K\], undefined> extends never ? never : this; now delete(key: never): this delete\<K extends keyof R>(key: K): MapOfDeleted\<this, R, K>. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.1.10)
- **Signature changed** `MapOf.remove`  

Was remove\<K extends keyof R>(key: K): Extract\<R\[K\], undefined> extends never ? never : this; now remove(key: never): this remove\<K extends keyof R>(key: K): MapOfDeleted\<this, R, K>. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.1.10)

## immutable 5.1.7 breaking changes

immutable 5.1.7, released June 22, 2026: 1 breaking change.

- **Behavior changed** `has`  

On a lazy Seq of unknown size, has(index) now checks whether that index exists instead of searching for a value equal to the index. Code relying on the old value search must be updated. [github.com](https://github.com/immutable-js/immutable-js/releases/tag/v5.1.7)

## immutable 5.1.3 breaking changes

immutable 5.1.3, released June 11, 2025: 1 breaking change.

- **Signature changed** `Map`  

Was function Map\<K, V>(collection?: Iterable<\[K, V\]>): Map\<K, V>; now function Map\<K, V>(collection?: Iterable\<readonly \[K, V\]>): Map\<K, V>. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.1.3)

## immutable 5.1.2 breaking changes

immutable 5.1.2, released May 5, 2025: 1 breaking change.

- **Signature changed** `RetrievePath`  

Was type RetrievePath\<R, P extends ReadonlyArray\<PropertyKey>> = P extends \[\] ? P : RetrievePathReducer\<R, Head\<P>, Tail\<P>>; now type RetrievePath\<R, P extends ReadonlyArray\<unknown>> = P extends \[\] ? P : RetrievePathReducer\<R, Head\<P>... [npmjs.com](https://www.npmjs.com/package/immutable/v/5.1.2)

## Older versions

2 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### immutable 5.0.0 breaking changes

immutable 5.0.0, released November 3, 2024: 26 breaking changes.

- **Removed** `Collection.isAssociative`  

Use isAssociative directly instead. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.0.0)
- **Removed** `Collection.isIndexed`  

Use isIndexed directly instead. [npmjs.com](https://www.npmjs.com/package/immutable/v/5.0.0)

And 24 more in this version.

### immutable 5.0.0-beta.1 breaking changes

immutable 5.0.0-beta.1, released November 3, 2024: 2 breaking changes.

- **Removed** `default`  

The package no longer exports a default object containing its whole API. Use named imports such as List and Map, or a namespace import. [github.com](https://github.com/immutable-js/immutable-js/releases/tag/v5.0.0-beta.1)
- **Behavior changed** `Map`  

Map literals are now typed from their object keys and values, so get on missing keys is a type error. Add an explicit type argument to keep the old typing. [github.com](https://github.com/immutable-js/immutable-js/releases/tag/v5.0.0-beta.1)

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