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

immerjs / immer / 32227565125
46%

Build:
DEFAULT BRANCH: main
Ran 19 Aug 2026 07:24AM 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

19 Aug 2026 07:22AM UTC coverage: 46.136% (+0.02%) from 46.116%
32227565125

push

github

web-flow
fix: remove global `var Iterator` declaration conflicting with ESNext lib (#1290)

The `declare global { var Iterator }` shim (added to feature-detect ES2025's
`Iterator.from`) leaks a global variable declaration into the bundled
`dist/immer.d.ts`. When a consumer compiles against the `esnext` lib, tsc
reports:

  error TS2403: Subsequent variable declarations must have the same type.
  Variable 'Iterator' must be of type 'IteratorConstructor', but here has type
  '{ from<T, TReturn>(iterable: Iterator<T, TReturn>): IterableIterator<T> } | undefined'.

Replace the global augmentation with a module-scoped feature detect that reads
the iterator constructor off `globalThis`. The runtime behavior is unchanged
(uses `Iterator.from` when available, falls back to the manual iterator), but
the emitted `.d.ts` no longer declares a global that clashes with the standard
library.

Fixes #1273

673 of 723 branches covered (93.08%)

Branch coverage included in aggregate %.

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

1745 of 4518 relevant lines covered (38.62%)

1876.25 hits per line

Jobs
ID Job ID Ran Files Coverage
1 32227565125.1 19 Aug 2026 07:24AM UTC 28
46.14
GitHub Action Run
Source Files on build 32227565125
  • Tree
  • List 28
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • b00474e3 on github
  • Prev Build on main (#32227488510)
  • Next Build on main (#32227681555)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc