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.7.2 to 1.7.3

4

Changelog.md

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

## 1.7.3
[TypeScript] Minor type updates for calling `useStore()` directly on one of your stores, so that the "sub-state" function gets the store's state interface correctly.
## 1.7.2

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

4

dist/Store.d.ts

@@ -40,4 +40,4 @@ import { Patch, PatchListener } from "immer";

getRawState(): S;
useState<S = any>(): S;
useState<S = any, SS = any>(getSubState: (state: S) => SS): SS;
useState(): S;
useState<SS = any>(getSubState: (state: S) => SS): SS;
update(updater: TUpdateFunction<S> | TUpdateFunction<S>[], patchesCallback?: (patches: Patch[], inversePatches: Patch[]) => void): void;

@@ -44,0 +44,0 @@ applyPatches(patches: Patch[]): void;

{
"name": "pullstate",
"version": "1.7.2",
"version": "1.7.3",
"description": "Simple state stores using immer and React hooks",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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