immer

v10.1.1
Create your next immutable state by mutating the current one
immutable mutable copy-on-write

pretest

yarn build

test

jest && yarn test:build && yarn test:flow

test:perf

cd __performance_tests__ && node add-data.mjs && node todo.mjs && node incremental.mjs && node large-obj.mjs

test:flow

yarn flow check __tests__/flow

test:build

NODE_ENV='production' yarn jest --config jest.config.build.js

watch

jest --watch

coverage

jest --coverage

coveralls

jest --coverage && cat ./coverage/lcov.info | ./node_modules/.bin/coveralls && rm -rf ./coverage

build

tsup

publish-docs

cd website && GIT_USER=mweststrate USE_SSH=true yarn docusaurus deploy

start

cd website && yarn start

test:size

yarn build && yarn import-size --report . produce enableMapSet enablePatches

test:sizequick

yarn build && yarn import-size . produce
npm i immer

Metadata

  • MIT
  • Whatever
  • Michel Weststrate
  • released 4/27/2024

Downloads