@restart/hooks 0.4.2
A set of utility and general-purpose React hooks.
@restart/hooks@0.4.2 was published on 2021-12-07. Its manifest declares 1 runtime dependency and 1 peer requirement. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All @restart/hooks versions · Permanent reference to 0.4.2 · Latest release
Package specifications
| Version | 0.4.2 |
|---|---|
| License declaration | MIT |
| Published | 2021-12-07T16:11:25.770Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 1 |
| Peer requirement count | 1 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 180.43 KiB |
| Published file count | 209 |
| Package type | Not declared |
| ES module entry | esm/index.js |
| Default entry | cjs/index.js |
| Side effects declaration | Not declared |
| Direct advisories | 0 |
| Resolved graph dependencies | 1 |
| Repository stars | 235 |
| Repository forks | 25 |
Install @restart/hooks 0.4.2
npm install @restart/hooks@0.4.2 pnpm add @restart/hooks@0.4.2 yarn add @restart/hooks@0.4.2
Runtime dependencies
- dequal ^2.0.2
Peer requirements
- react >=16.8.0
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- dequal@2.0.3 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
|---|---|
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Token-Permissions | 0/10 — detected GitHub workflow tokens with excessive permissions |
| Code-Review | 2/10 — Found 7/30 approved changesets -- score normalized to 2 |
| Maintained | 0/10 — 0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0 |
| Pinned-Dependencies | 0/10 — dependency not pinned by hash detected -- score normalized to 0 |
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Security-Policy | 0/10 — security policy file not detected |
| Fuzzing | 0/10 — project is not fuzzed |
| License | 10/10 — license file detected |
| Branch-Protection | 0/10 — branch protection not enabled on development/release branches |
| SAST | 0/10 — SAST tool is not run on all commits -- score normalized to 0 |
Evidence and freshness
- https://registry.npmjs.org/%40restart%2Fhooks/0.4.2 — retrieved 2026-10-29T15:03:13.909Z
- https://api.deps.dev/v3/projects/github.com%2Freact-restart%2Fhooks — retrieved 2026-10-29T12:39:38.172Z
- https://api.deps.dev/v3/systems/npm/packages/%40restart%2Fhooks/versions/0.4.2 — retrieved 2026-10-29T15:03:14.484Z
- https://api.deps.dev/v3/systems/npm/packages/%40restart%2Fhooks/versions/0.4.2:dependencies — retrieved 2026-10-29T15:03:14.504Z