</>PackageGraphPackageGraph

immer

npmv11.1.18TypeScript

Create your next immutable state by mutating the current one

Safe to adopt

Yes — immer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 22 days ago. 23 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • AMaintenance: grade A, Excellent.

    Last published 22 days ago. 23 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 934 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding immer to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

934 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
ESM + CommonJS
TypeScript
Types included
Install scripts
None

immer vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
immerthis page03MIT22 days ago
dayjs48.7M1MIT1 day ago
redux30.2M5MIT1 day ago
@reduxjs/toolkit26.4M2MIT1 day ago
immutable07MIT1 day ago

Dependencies

Declared by immer v11.1.18. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (23)

@babel/core ^7.21.3@types/node ^24.3.1@vitest/coverage-v8 2.1.9coveralls ^3.0.0cpx2 ^3.0.0deep-freeze ^0.0.1flow-bin ^0.123.0husky ^1.2.0immutable ^4.3.9import-size ^1.0.2lodash ^4.17.4lodash.clonedeep ^4.5.0prettier 3.8.0pretty-quick ^4.2.2redux ^4.0.5rimraf ^2.6.2seamless-immutable ^7.1.3semantic-release ^25.0.3tsup ^6.7.0type-plus ^7.6.2typescript ^5.0.2vite ^6.4.2vitest ^3.2.6

Used by

Popular packages that depend on immer.

Relationship graph

Dependencies (left) and dependents (right) of immer.

@reduxjs/toolkitdevframeexpo-routerimmer
immer dependencies dependents

Frequently installed together

Release history

23 releases in the last two years, typically about 3 days apart.

Recent versions of immer
VersionPublishedSizeLicense
11.1.18latest22 days ago934 KBMIT
11.1.1725 days ago932 KBMIT
11.1.161 month ago909 KBMIT
11.1.151 month ago907 KBMIT
11.1.141 month ago906 KBMIT
11.1.131 month ago906 KBMIT
11.1.121 month ago897 KBMIT
11.1.112 months ago912 KBMIT
11.1.102 months ago908 KBMIT
11.1.92 months ago907 KBMIT
11.1.84 months ago893 KBMIT
11.1.74 months ago893 KBMIT
11.1.64 months ago892 KBMIT
11.1.54 months ago892 KBMIT
11.1.47 months ago892 KBMIT

Overview

immer is an npm package that create your next immutable state by mutating the current one. It has 3 known dependents in the graph. The latest version is 11.1.18, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need create your next immutable state by mutating the current one and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (MIT).

Cons

  • Large dependency tree (23 direct dependencies) increases install size and audit surface.

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Funding

Frequently asked questions

Should I use immer?

Yes — immer scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 22 days ago. 23 releases in the last 2 years.

How do I install immer?

Run `npm install immer` to add immer to your npm project.

What license is immer released under?

immer is distributed under the MIT license.

How popular is immer?

npm does not publish download counts. Within PackageGraph's crawl, 3 known packages depend on immer.

Is immer still maintained?

The most recent release of immer (v11.1.18) was published 22 days ago.

Does immer run install scripts?

No. immer does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.