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

immerjs / immer / 19609458487
43%

Build:
DEFAULT BRANCH: main
Ran 23 Nov 2025 10:01AM UTC
Jobs 1
Files 26
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

23 Nov 2025 10:00AM UTC coverage: 44.999% (+2.6%) from 42.388%
19609458487

push

github

web-flow
perf: Rewrite finalization system to use a callback approach instead of tree traversal (#1183)

BREAKING CHANGE: enable loose iteration by default

* Simplify some iteration checks
* Allow passing type to get/set utils to skip archetype lookup
* Convert assigned_ to Map
* Enable loose iteration
* Replace recursive tree finalization with targeted callbacks

Ported Mutative's "finalization callback" approach as a more targeted and performant implementation for finalization compared to the existing recursive tree traversal approach:

- Added cleanup callbacks for each draft that's created
- Added callbacks to handle root drafts, assigned values, and recursing
  inside of plain values
- Updated state creation to return [draft, state] to avoid a lookup
- Rewrote patch generation system to work with callbacks instead of
  during tree traversal

* Update self-reference test with new behavior
* Apply code review suggestions
* Byte-shave scopes and patch plugin usage
* Inline finalizeAssigned
* Move fixPotentialSetContents to plugin
* Byte-shave typeof utils
* Byte-shave Object references
* Byte-shave field names and arrow functions

606 of 636 branches covered (95.28%)

Branch coverage included in aggregate %.

434 of 448 new or added lines in 10 files covered. (96.88%)

2 existing lines in 1 file now uncovered.

1468 of 3973 relevant lines covered (36.95%)

1416.04 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
96.75
-1.96% src/core/finalize.ts
12
94.88
-4.54% src/plugins/patches.ts

Uncovered Existing Lines

Lines Coverage ∆ File
2
96.75
-1.96% src/core/finalize.ts
Jobs
ID Job ID Ran Files Coverage
1 19609458487.1 23 Nov 2025 10:01AM UTC 26
45.0
GitHub Action Run
Source Files on build 19609458487
  • Tree
  • List 26
  • Changed 11
  • Source Changed 0
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • d6c12028 on github
  • Prev Build on main (#18857121209)
  • Next Build on main (#19743067705)
  • 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