Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

immer

Package Overview
Dependencies
Maintainers
1
Versions
173
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immer - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

4

changelog.md
# Changelog
### 1.7.1
* Fixed issue in the flow type for `nothing`
### 1.7.0

@@ -4,0 +8,0 @@

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc