Comparing version 1.7.0 to 1.7.1
# Changelog | ||
### 1.7.1 | ||
* Fixed issue in the flow type for `nothing` | ||
### 1.7.0 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "immer", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "Create your next immutable state by mutating the current one", | ||
@@ -5,0 +5,0 @@ "main": "dist/immer.js", |
@@ -391,15 +391,6 @@ <img src="images/immer-logo.png" height="200px" align="right"/> | ||
produce(state, (draft) => { | ||
// no-op | ||
}) | ||
// Returns the original state: { hello: "world"} | ||
produce(state, (draft) => {}) | ||
produce(state, (draft) => undefined) | ||
// Returns the original state: { hello: "world"} | ||
// Both return the original state: { hello: "world"} | ||
produce(state, (draft) => { | ||
return nothing | ||
}) | ||
// Produces a new state, 'undefined' | ||
produce(state, (draft) => nothing) | ||
@@ -406,0 +397,0 @@ // Produces a new state, 'undefined' |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253566
680