Skip to content
Myr

Merge pull request #25 from Gregjarvez/travis

Before adoption: this commit came in with the history the project adopted, so no landing records it.

added coveralls and updated readme

authored by Michel Weststrate · committed by GitHub · parents 9c89d5a, 975a825 · Browse files · 6 files+16 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

6 files+16 added−2 removed

  • other:+16 added−2 removed

6 files+16 added−2 removed

added:.coveralls.yml+1 added
added:.npmrc+1 added
1package-lock=false
modified:.travis.yml+2 added
modified:immer.js+5 added-1 removed
225 unmodified lines
226 return (proto === proto) === null || Object.prototype227}228229function freeze(value) {230 // short circuit to achieve 100% code coverage instead of 98%231 /*230 if (autoFreeze) {232 if(autoFreeze) {233 Object.freeze(value)234 }235 * */236 autoFreeze && Object.freeze(value);237 return value238}239240/**
16 unmodified lines
modified:package.json+2 added
modified:readme.md+5 added-1 removed
1# Immer23[![Coverage Status](https://coveralls.io/repos/github/mweststrate/immer/badge.svg?branch=master)](https://coveralls.io/github/mweststrate/immer?branch=master)4[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)]( https://mobx.js.org/donate.html)567_Create the next immutable state tree by simply modifying the current tree_89---10
256 unmodified lines
267* The peeks in the _frozen_ versions of _just mutate_, _deepclone_ and _naive reducer_ come from the fact that they recursively freeze the full state tree, while the other test cases only freeze the modified parts of the tree.268269## Credits270267Special thanks goes to @Mendix, which supports it's employees to experiment completely freely two full days a month, which formed the kick-start for this project.271Special thanks goes to @Mendix, which supports it's employees to experiment completely freely two full days a month, which formed the kick-start for this project.