• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In
You are now the owner of this repo.

immerjs / immer
46%

Build:
DEFAULT BRANCH: main
Repo Added 04 Mar 2026 11:54PM UTC
Token I56RqKSv6S94Pza0eLYc9fb3L2XuAnSwQ regen
Build 119 Last
Files 28
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
Sync Branches
  • No branch selected
  • add-deno-install
  • defer-type-inference
  • dependabot/npm_and_yarn/babel/core-7.29.6
  • dependabot/npm_and_yarn/handlebars-4.7.9
  • dependabot/npm_and_yarn/immutable-3.8.3
  • dependabot/npm_and_yarn/immutable-4.3.8
  • dependabot/npm_and_yarn/lodash-4.18.1
  • dependabot/npm_and_yarn/picomatch-2.3.2
  • dependabot/npm_and_yarn/shell-quote-1.8.4
  • dependabot/npm_and_yarn/sigstore-4.1.1
  • dependabot/npm_and_yarn/sigstore/core-3.2.1
  • dependabot/npm_and_yarn/sigstore/verify-3.1.1
  • dependabot/npm_and_yarn/tar-7.5.16
  • dependabot/npm_and_yarn/vite-6.4.2
  • dependabot/npm_and_yarn/vite-6.4.3
  • dependabot/npm_and_yarn/vitest-3.2.6
  • dependabot/npm_and_yarn/website/babel/plugin-transform-modules-systemjs-7.29.4
  • dependabot/npm_and_yarn/website/brace-expansion-1.1.14
  • dependabot/npm_and_yarn/website/fast-uri-3.1.2
  • dependabot/npm_and_yarn/website/follow-redirects-1.16.0
  • dependabot/npm_and_yarn/website/http-proxy-middleware-2.0.10
  • dependabot/npm_and_yarn/website/joi-17.13.4
  • dependabot/npm_and_yarn/website/lodash-4.18.1
  • dependabot/npm_and_yarn/website/node-forge-1.4.0
  • dependabot/npm_and_yarn/website/picomatch-2.3.2
  • dependabot/npm_and_yarn/website/postcss-8.5.13
  • dependabot/npm_and_yarn/website/shell-quote-1.8.4
  • dependabot/npm_and_yarn/website/svgo-2.8.2
  • dependabot/npm_and_yarn/website/websocket-driver-0.7.5
  • dependabot/npm_and_yarn/website/yaml-1.10.3
  • docs/custom-produce-function
  • feature/harden-publishing-2026-05
  • fix-prototype-vulnerability
  • fix/858-reassign-to-same-non-primitive
  • fix/896-typings-current-draft
  • fix/apply-patches-null-path-traversal
  • fix/array-reorder-base-mutation
  • fix/prototype-undefined-not-stored-as-own-prop
  • main
  • patch-1
  • revert-prototype-fix

16 Jul 2026 06:45PM UTC coverage: 45.729% (+0.01%) from 45.719%
29525225550

push

github

web-flow
fix: correct curried produceWithPatches return type (#1249)

The curried forms of produceWithPatches inferred the wrong type:
- produceWithPatches(recipe) returned the draft type (WritableDraft<State>)
  in the result tuple instead of the original State
- the explicit-generic form produceWithPatches<State, Args>(recipe) resolved
  to never and was not callable

IProduceWithPatches was missing the <State, Args> curried overloads that
IProduce already has. Mirror those overloads, wrapped in PatchesTuple, so the
curried produceWithPatches infers the same state type as produce.

Closes #1045

659 of 707 branches covered (93.21%)

Branch coverage included in aggregate %.

1718 of 4491 relevant lines covered (38.25%)

1871.04 hits per line

Relevant lines Covered
Build:
Build:
4491 RELEVANT LINES 1718 COVERED LINES
1871.04 HITS PER LINE
Source Files on main
  • Tree
  • List 28
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
29525225550 main fix: correct curried produceWithPatches return type (#1249) The curried forms of produceWithPatches inferred the wrong type: - produceWithPatches(recipe) returned the draft type (WritableDraft<State>) in the result tuple instead of the original... push 16 Jul 2026 06:46PM UTC web-flow github
45.73
29525108904 main ci: harden GitHub Actions workflows (SHA-pin, permissions, persist-credentials) (#1241) push 16 Jul 2026 06:44PM UTC web-flow github
45.72
29525056981 main fix: throw proper immer error when applyPatches path traverses null (#1251) typeof null === "object" causes isObjectish(null) to return true, silently bypassing the path-resolution guard inside applyPatches_. Traversal then calls getArchtype(null... push 16 Jul 2026 06:43PM UTC web-flow github
45.72
29525045670 main docs: add Zenith and DOMD to Built with Immer (#1245) Adds two projects built with Immer: - Zenith — reactive React state management on top of Immer, with MobX-style automatic dependency tracking / chained computed properties and patch-based u... push 16 Jul 2026 06:43PM UTC web-flow github
45.71
29524878876 main fix: draft relocated base refs after reverse/sort in array-methods plugin (#1255) With enableArrayMethods(), reverse() and sort() run natively on copy_, which still holds raw base references. Reordering relocates an un-drafted base object to an i... push 16 Jul 2026 06:41PM UTC web-flow github
45.7
27685657540 fix/apply-patches-null-path-traversal Merge 348d2cc9a into bf2d15439 Pull #1251 16 Jul 2026 06:40PM UTC web-flow github
43.26
29524765066 main chore(deps-dev): bump @babel/core from 7.21.4 to 7.29.6 (#1254) Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.21.4 to 7.29.6. - [Release notes](https://github.com/babel/babel/releases) - [Changelog](http... push 16 Jul 2026 06:39PM UTC web-flow github
45.45
28972740315 fix/array-reorder-base-mutation Merge 3dac0af34 into 60ca295e1 Pull #1255 16 Jul 2026 06:38PM UTC web-flow github
46.12
29524165099 main chore(deps): bump websocket-driver from 0.7.4 to 0.7.5 in /website (#1270) Bumps [websocket-driver](https://github.com/faye/websocket-driver-node) from 0.7.4 to 0.7.5. - [Changelog](https://github.com/faye/websocket-driver-node/blob/main/CHANGELO... push 16 Jul 2026 06:30PM UTC web-flow github
45.47
29524143787 main fix: Revert "prevent prototype pollution via constructor.prototype access (CVE-2026-XXXX) (#1259)" (#1271) This reverts commit 48fc37886. This fixes #1266 and #1268, #1265 while the security reported could not find ... push 16 Jul 2026 06:30PM UTC web-flow github
45.47
See All Builds (92)

Badge your Repo: immer

We detected this repo isn’t badged! Grab the embed code to the right, add it to your repo to show off your code coverage, and when the badge is live hit the refresh button to remove this message.

Could not find badge in README.

Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

Refresh
  • Settings
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc