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

immerjs / immer / 18515105801
45%
main: 43%

Build:
Build:
LAST BUILD BRANCH: bugfix/rtk-5159-optimistic-updates
DEFAULT BRANCH: main
Ran 15 Oct 2025 01:42AM 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

14 Oct 2025 08:24PM UTC coverage: 45.207% (+2.8%) from 42.381%
18515105801

Pull #1183

github

markerikson
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
Pull Request #1183: Rewrite finalization system to use a callback approach instead of tree traversal

605 of 635 branches covered (95.28%)

Branch coverage included in aggregate %.

335 of 348 new or added lines in 7 files covered. (96.26%)

3 existing lines in 1 file now uncovered.

1484 of 3986 relevant lines covered (37.23%)

1542.56 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
97.36
-1.35% src/core/finalize.ts
12
94.83
-4.59% src/plugins/patches.ts

Uncovered Existing Lines

Lines Coverage ∆ File
3
97.36
-1.35% src/core/finalize.ts
Jobs
ID Job ID Ran Files Coverage
1 18515105801.1 15 Oct 2025 01:42AM UTC 26
45.21
GitHub Action Run
Source Files on build 18515105801
  • Tree
  • List 26
  • Changed 9
  • Source Changed 0
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #1183
  • PR Base - feature/optimize-immer-perf (#18509122729)
  • 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

© 2025 Coveralls, Inc