MCPcopy
hub / github.com/immerjs/immer

github.com/immerjs/immer @v11.1.9 sqlite

repository ↗ · DeepWiki ↗ · release v11.1.9 ↗
368 symbols 1,041 edges 54 files 8 documented · 2%
README

Immer

npm Build Status Coverage Status code style: prettier OpenCollective OpenCollective Gitpod Ready-to-Code

Create the next immutable state tree by simply modifying the current tree

Winner of the "Breakthrough of the year" React open source award and "Most impactful contribution" JavaScript open source award in 2019

Contribute using one-click online setup

You can use Gitpod (a free online VSCode like IDE) for contributing online. With a single click it will launch a workspace and automatically:

  • clone the immer repo.
  • install the dependencies.
  • run yarn run start.

so that you can start coding straight away.

Open in Gitpod

Documentation

The documentation of this package is hosted at https://immerjs.github.io/immer/

Support

Did Immer make a difference to your project? Join the open collective at https://opencollective.com/immer!

Release notes

https://github.com/immerjs/immer/releases

Extension points exported contracts — how you extend this code

ProducersFns (Interface)
(no doc) [1 implementers]
src/core/immerClass.ts
ImmerBaseState (Interface)
(no doc)
src/types/types-internal.ts
MapState (Interface)
(no doc)
src/utils/plugins.ts
State (Interface)
(no doc)
__tests__/redux.ts
Foo (Interface)
(no doc)
__tests__/draft.ts
State (Interface)
(no doc)
__tests__/produce.ts
ProxyBaseState (Interface)
(no doc)
src/core/proxy.ts
Patch (Interface)
(no doc)
src/types/types-external.ts

Core symbols most depended-on inside this repo

set
called by 76
src/plugins/mapset.ts
isDraft
called by 65
src/utils/common.ts
has
called by 61
src/plugins/mapset.ts
add
called by 45
src/plugins/mapset.ts
forEach
called by 43
src/plugins/mapset.ts
delete
called by 36
src/plugins/mapset.ts
measure
called by 33
__performance_tests__/measure.mjs
get
called by 31
src/plugins/mapset.ts

Shape

Function 257
Method 56
Class 40
Interface 14
Enum 1

Languages

TypeScript100%

Modules by API surface

perf-testing/immutability-benchmarks.mjs44 symbols
perf-testing/immutability-profiling.mjs40 symbols
__tests__/base.js37 symbols
src/plugins/mapset.ts34 symbols
src/utils/common.ts24 symbols
src/core/proxy.ts19 symbols
__tests__/updateScenarios.js17 symbols
src/plugins/arrayMethods.ts14 symbols
__tests__/patch.js14 symbols
src/core/immerClass.ts12 symbols
src/plugins/patches.ts11 symbols
src/core/finalize.ts10 symbols

Dependencies from manifests, versioned

@babel/core7.21.3 · 1×
@docusaurus/core2.4.0 · 1×
@docusaurus/plugin-client-redirects2.4.0 · 1×
@docusaurus/plugin-content-docs2.4.0 · 1×
@docusaurus/plugin-google-analytics2.4.0 · 1×
@docusaurus/plugin-google-gtag2.4.0 · 1×
@docusaurus/plugin-sitemap2.4.0 · 1×
@docusaurus/theme-classic2.4.0 · 1×
@types/node24.3.1 · 1×
@vitest/coverage-v82.1.9 · 1×
coveralls3.0.0 · 1×
cpx23.0.0 · 1×

For agents

$ claude mcp add immer \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact