New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pullstate

Package Overview
Dependencies
Maintainers
1
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pullstate - npm Package Compare versions

Comparing version 1.11.2 to 1.11.3

4

Changelog.md

@@ -0,1 +1,5 @@

### 1.11.3
Patch fix for `run()` and `beckon()` with an action making use of cache hook in the same component causing infinite loops.
## 1.11.0

@@ -2,0 +6,0 @@

10

dist/index.es.js

@@ -557,5 +557,7 @@ import isEqual from'fast-deep-equal/es6';import React,{useRef,useState,useEffect,useContext,useMemo}from'react';import produce$1,{produceWithPatches,produce,applyPatches}from'immer';function useStoreState(store, getSubState, deps) {

.then(resp => {
delete cache.actions[key];
if (!onServer) {
notifyListeners(key);
if (currentActionOrd === cache.actionOrd[key]) {
delete cache.actions[key];
if (!onServer) {
notifyListeners(key);
}
}

@@ -799,5 +801,5 @@ return resp;

}
notifyListeners(key);
let currentActionOrd = actionOrdUpdate(_asyncCache, key);
_asyncCache.actions[key] = createInternalAction(key, _asyncCache, args, _stores, currentActionOrd, true, EPostActionContext.DIRECT_RUN);
notifyListeners(key);
return _asyncCache.actions[key]();

@@ -804,0 +806,0 @@ };

@@ -555,5 +555,7 @@ 'use strict';Object.defineProperty(exports,'__esModule',{value:true});function _interopDefault(e){return(e&&(typeof e==='object')&&'default'in e)?e['default']:e}var isEqual=_interopDefault(require('fast-deep-equal/es6')),React=require('react'),React__default=_interopDefault(React),produce=require('immer'),produce__default=_interopDefault(produce);function useStoreState(store, getSubState, deps) {

.then(resp => {
delete cache.actions[key];
if (!onServer) {
notifyListeners(key);
if (currentActionOrd === cache.actionOrd[key]) {
delete cache.actions[key];
if (!onServer) {
notifyListeners(key);
}
}

@@ -797,5 +799,5 @@ return resp;

}
notifyListeners(key);
let currentActionOrd = actionOrdUpdate(_asyncCache, key);
_asyncCache.actions[key] = createInternalAction(key, _asyncCache, args, _stores, currentActionOrd, true, exports.EPostActionContext.DIRECT_RUN);
notifyListeners(key);
return _asyncCache.actions[key]();

@@ -802,0 +804,0 @@ };

{
"name": "pullstate",
"version": "1.11.2",
"version": "1.11.3",
"description": "Simple state stores using immer and React hooks",
"main": "dist/index.js",
"module": "dist/index.es.js",
"esnext": "dist/index.es.js",
"types": "dist/index.d.ts",

@@ -18,2 +19,3 @@ "files": [

"check-size": "minified-size ./dist/index.es.js",
"check-size-cjs": "minified-size ./dist/index.js",
"benchmark-all": "cross-env TS_NODE_PROJECT=./test/tsconfig.json node -r ts-node/register --max-old-space-size=4096 test/benchmark/all.ts",

@@ -20,0 +22,0 @@ "benchmark-async-argument": "cross-env TS_NODE_PROJECT=./test/tsconfig.json node -r ts-node/register --max-old-space-size=4096 test/benchmark/benchmark-async-argument.ts",

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