
Immer
JavaScript package that allows code to work with immutable state in a more convenient way.
immerjs.github.io/immer/repositorydocs
Immer lets code change a draft of plain JavaScript objects, arrays, Sets and Maps, and then produces the next immutable state from those changes, with structural sharing and object freezing. The documentation says it can be used wherever immutable data structures are needed, such as React state, Redux reducers or configuration management, and it supports JSON patches for communicating changes.
Worth knowing
Support for Map and Set, JSON patches and an array-method optimization is opt-in: each is enabled once by a function call at application start. Immer relies on Proxy and cannot be used in engines without it.
Identity
- Status
- Active
- Maintainer
- Michel Weststrate3
- Maintained by
- Individual3
- First release
- 20166
Rendering and deploy
- Install with
- npm install immer or yarn add immer, deno install immer, script tag from the unpkg or jsDelivr CDN4
Releases
Adoption
Sources
- 2026-11-16: links, Categories
immerjs.github.io/immer/ - 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/immerjs/immer - 2026-11-16: Maintainer, Maintained by, License, License model
github.com/immerjs/immer/blob/main/LICENSE - 2026-11-16: Install with
immerjs.github.io/immer/installation/ - 2026-11-16: Current major version, Last release
api.github.com/repos/immerjs/immer/releases/latest - 2026-11-16: First release
registry.npmjs.org/immer - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/immer - 2026-11-16: Contributors
api.github.com/repos/immerjs/immer/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/immer