Gathering detailed insights and metrics for use-immer-produce
Gathering detailed insights and metrics for use-immer-produce
Gathering detailed insights and metrics for use-immer-produce
Gathering detailed insights and metrics for use-immer-produce
React Hook nearly identical to use-immer, but it returns the draft from the update function.
npm install use-immer-produce
Typescript
Module System
Min. Node Version
Node Version
NPM Version
70.3
Supply Chain
73.8
Quality
75.7
Maintenance
100
Vulnerability
100
License
TypeScript (100%)
Total Downloads
41,901
Last Day
9
Last Week
59
Last Month
266
Last Year
7,726
Apache-2.0 License
34 Commits
1 Forks
2 Watchers
28 Branches
1 Contributors
Updated on Dec 20, 2021
Minified
Minified + Gzipped
Latest Version
1.2.2
Package Id
use-immer-produce@1.2.2
Unpacked Size
161.72 kB
Size
33.43 kB
File Count
16
NPM Version
10.2.3
Node Version
20.10.0
Published on
Jan 07, 2024
Cumulative downloads
Total Downloads
Last Day
12.5%
9
Compared to previous day
Last Week
-7.8%
59
Compared to previous week
Last Month
-8.6%
266
Compared to previous month
Last Year
-54.7%
7,726
Compared to previous year
40
React Hook nearly identical to use-immer, but it returns the draft from the update function.
npm i use-immer-produce immer
1const [testObj, updateTestObj] = useImmerProduce({ 2 value: 14 3});
In order to immediately extract the draft, before re-render:
1const draft = updateTestObj((draft) => { 2 draft.value = 75; 3});
All contributions are welcome, please open an issue or pull request.
To use this repository:
npm i -g pnpm
(if don't have pnpm installed)pnpm i
npx projen
(this will ensure everything is setup correctly, and you can run this command at any time)npx projen build
at any time to build the project.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
Found 7/10 approved changesets -- score normalized to 7
Reason
5 existing vulnerabilities detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More