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

immer-reducer

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immer-reducer - npm Package Compare versions

Comparing version 0.7.4 to 0.7.5

2

lib/immer-reducer.d.ts

@@ -73,3 +73,3 @@ import { Draft } from "immer";

readonly state: T;
readonly draftState: Draft<T>;
draftState: Draft<T>;
constructor(draftState: Draft<T>, state: T);

@@ -76,0 +76,0 @@ }

@@ -159,2 +159,7 @@ "use strict";

reducers[methodName].apply(reducers, getArgsFromImmerAction(action));
// The reducer replaced the instance with completely new state so
// make that to be the next state
if (reducers.draftState !== draftState) {
return reducers.draftState;
}
// Workaround typing changes in Immer 3.x. This does not actually

@@ -161,0 +166,0 @@ // affect the exposed types by immer-reducer itself.

{
"name": "immer-reducer",
"version": "0.7.4",
"version": "0.7.5",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/immer-reducer.js",

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