• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

immerjs / immer / 29525056981
46%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 06:43PM UTC
Jobs 1
Files 28
Run time 1min
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

16 Jul 2026 06:42PM UTC coverage: 45.719% (+0.01%) from 45.708%
29525056981

push

github

web-flow
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) which accesses null[DRAFT_STATE]
and crashes with a native TypeError instead of immer error 18
("Cannot apply patch, path doesn't resolve").

Add an explicit null check alongside isObjectish so the guard fires
correctly and the caller receives the expected immer error message.

Fixes: applyPatches({a: null}, [{op: 'add', path: ['a', 'b'], value: 1}])

Co-authored-by: JSap0914 <JSap0914@users.noreply.github.com>

658 of 706 branches covered (93.2%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

1718 of 4491 relevant lines covered (38.25%)

1871.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 29525056981.1 16 Jul 2026 06:43PM UTC 28
45.72
GitHub Action Run
Source Files on build 29525056981
  • Tree
  • List 28
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • e38ad71f on github
  • Prev Build on main (#29525045670)
  • Next Build on main (#29525108904)
  • Delete
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