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

mweststrate / immer
98%
master: 99%

Build:
Build:
LAST BUILD BRANCH: github-actions-ci
DEFAULT BRANCH: master
Repo Added 08 Jan 2018 08:16PM UTC
Files 17
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 v1.10.4
branch: v1.10.4
CHANGE BRANCH
x
Reset
  • v1.10.4
  • 0.4.0
  • 1.0.0
  • aleclarson
  • async-recipes
  • ci
  • ci/test-nodejs-6-8-10-11
  • ci/use-yarn-cache
  • code-cleanup
  • curry
  • curry2
  • deep-freeze
  • dependabot/npm_and_yarn/handlebars-4.5.1
  • dependabot/npm_and_yarn/js-yaml-3.13.1
  • dependabot/npm_and_yarn/lodash-4.17.13
  • dependabot/npm_and_yarn/mixin-deep-1.3.2
  • docs
  • enable-codesandbox
  • es5-dts
  • factory
  • feature/curry
  • feature/fast-prune
  • feature/reuse
  • fix-362
  • fix-map-instantiation
  • fix/es5-array-delete-error
  • frozen-return
  • funding
  • github-actions-ci
  • hooks
  • immer3
  • immer3-v2
  • improved-types
  • isDraft
  • issue-100
  • issue-202
  • issue-233
  • issue-243
  • issue-264
  • issue-268
  • issue-270
  • issue-328
  • issue-381
  • jest24
  • kachkaev-add-failing-tests-for-recursive-use
  • map-fixes
  • master
  • new-immer-readme-image
  • next
  • nothing
  • patch-1
  • patch-2
  • patch-fixes
  • patch2
  • patches
  • perf3
  • produce-with-patches
  • promise
  • pull/351/head
  • seamless-immutable
  • sucrase
  • support_map_and_set
  • symbols
  • ts
  • ts-3.4
  • ts-3.4-inference-improvements
  • ts-jest
  • v0.3.0
  • v0.4.2
  • v0.5.0
  • v0.6.0
  • v0.8.2
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.10.0
  • v1.10.1
  • v1.10.2
  • v1.10.3
  • v1.10.5
  • v1.11.0
  • v1.11.1
  • v1.12.0
  • v1.12.1
  • v1.2.0
  • v1.4.0
  • v1.5.0
  • v1.7.0
  • v1.7.1
  • v1.7.3
  • v1.7.4
  • v1.8
  • v1.8.0
  • v1.8.0-alpha
  • v1.8.1
  • v1.8.2
  • v1.9
  • v1.9.0
  • v1.9.1
  • v1.9.2
  • v1.9.3
  • v2
  • v2.0.0
  • v2.0.0-alpha
  • v2.1.0
  • v2.1.1
  • v2.1.2
  • v2.1.3
  • v2.1.4
  • v2.1.5
  • v2.2.0
  • v3.0.0
  • v3.1
  • v3.1.0
  • v3.1.1
  • v3.1.2
  • v3.1.3
  • v3.1.4
  • v3.2.0
  • v3.2.1
  • v3.3.0
  • v4
  • v4.0.0
  • v4.0.1
  • v4.0.2
  • v5.0.0
  • v5.0.1
  • v5.0.2
  • v5.1.0
  • v5.2.0
  • v5.2.1
  • v5.3.0
  • v5.3.1
  • v5.3.2
  • v5.3.3
  • visited

pending completion
707

push

travis-ci

aleclarson
fix(ts): reorder generic parameters of IProduce

This makes the different call signatures of `produce` have a similar order of generic parameters when possible.

Before:
  produce<Base, [number, string]>((draft, num, str) => {}) // no default
  produce<Base, Draft<Base>, [number, string]>((draft, num, str) => {},
    defaultValue)

After:
  produce<Base, [number, string]>((draft, num, str) => {}) // no default
  produce<Base, [number, string]>((draft, num, str) => {}, defaultValue)

As you can see, the draft type is no longer the 2nd generic parameter of
curried producers with a default value, which is just like the call
signature for curried producers without a default value.

This also moves the `D` generic parameter of `produce(base, recipe)` to
the end, so you can specify the `Return` parameter easier.

289 of 299 branches covered (96.66%)

Branch coverage included in aggregate %.

292 of 296 relevant lines covered (98.65%)

513.67 hits per line

Relevant lines Covered
Build:
Build:
296 RELEVANT LINES 292 COVERED LINES
513.67 HITS PER LINE
Source Files on v1.10.4
Detailed source file information is not available for this build.

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
707 v1.10.4 fix(ts): reorder generic parameters of IProduce This makes the different call signatures of `produce` have a similar order of generic parameters when possible. Before: produce<Base, [number, string]>((draft, num, str) => {}) // no default pr... push 12 Jan 2019 11:08PM UTC aleclarson travis-ci pending completion  
See All Builds (1015)
  • 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