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
On this page
Latest version 5.2.1, released November 13, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
immutable 5.2.1 breaking changes
- Signature changed
Collection.getIn
Was getIn(searchKeyPath: Iterable<unknown>, notSetValue?: unknown): unknown; now getIn(searchKeyPath: KeyPath<unknown>, notSetValue?: unknown): unknown. npmjs.com - Signature changed
Collection.hasIn
Was hasIn(searchKeyPath: Iterable<unknown>): boolean; now hasIn(searchKeyPath: KeyPath<unknown>): boolean. npmjs.com - 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 - Signature changed
List.deleteIn
Was deleteIn(keyPath: Iterable<unknown>): this; now deleteIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
List.mergeDeepIn
Was mergeDeepIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeDeepIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
List.mergeIn
Was mergeIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
List.removeIn
Was removeIn(keyPath: Iterable<unknown>): this; now removeIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
List.setIn
Was setIn(keyPath: Iterable<unknown>, value: unknown): this; now setIn(keyPath: KeyPath<unknown>, value: unknown): this. npmjs.com - 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 - Signature changed
Map.deleteIn
Was deleteIn(keyPath: Iterable<unknown>): this; now deleteIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
Map.mergeDeepIn
Was mergeDeepIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeDeepIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
Map.mergeIn
Was mergeIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
Map.removeIn
Was removeIn(keyPath: Iterable<unknown>): this; now removeIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
Map.setIn
Was setIn(keyPath: Iterable<unknown>, value: unknown): this; now setIn(keyPath: KeyPath<unknown>, value: unknown): this. npmjs.com - 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 - Signature changed
Record.deleteIn
Was deleteIn(keyPath: Iterable<unknown>): this; now deleteIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
Record.hasIn
Was hasIn(keyPath: Iterable<unknown>): boolean; now hasIn(keyPath: KeyPath<unknown>): boolean. npmjs.com - Signature changed
Record.mergeDeepIn
Was mergeDeepIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeDeepIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
Record.mergeIn
Was mergeIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
Record.removeIn
Was removeIn(keyPath: Iterable<unknown>): this; now removeIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
Record.setIn
Was setIn(keyPath: Iterable<unknown>, value: unknown): this; now setIn(keyPath: KeyPath<unknown>, value: unknown): this. npmjs.com - 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 - Signature changed
RecordOf.deleteIn
Was deleteIn(keyPath: Iterable<unknown>): this; now deleteIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
RecordOf.hasIn
Was hasIn(keyPath: Iterable<unknown>): boolean; now hasIn(keyPath: KeyPath<unknown>): boolean. npmjs.com - Signature changed
RecordOf.mergeDeepIn
Was mergeDeepIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeDeepIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
RecordOf.mergeIn
Was mergeIn(keyPath: Iterable<unknown>, ...collections: Array<unknown>): this; now mergeIn(keyPath: KeyPath<unknown>, ...collections: Array<unknown>): this. npmjs.com - Signature changed
RecordOf.removeIn
Was removeIn(keyPath: Iterable<unknown>): this; now removeIn(keyPath: KeyPath<unknown>): this. npmjs.com - Signature changed
RecordOf.setIn
Was setIn(keyPath: Iterable<unknown>, value: unknown): this; now setIn(keyPath: KeyPath<unknown>, value: unknown): this. npmjs.com - 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 - 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 - 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
immutable 5.2.0 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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 - 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
And 1 more in this version. Sign up to see every change
immutable 5.1.10 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 - 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 - 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 - 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
immutable 5.1.7 breaking changes
- 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
immutable 5.1.3 breaking changes
- 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
immutable 5.1.2 breaking changes
- 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
Older versions
2 older versions, each with its first changes. Sign up to see every change
Show 2 older versions
immutable 5.0.0 breaking changes
- Removed
Collection.isAssociative
Use isAssociative directly instead. npmjs.com - Removed
Collection.isIndexed
Use isIndexed directly instead. npmjs.com
And 24 more in this version.
immutable 5.0.0-beta.1 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 - 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
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.