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

@wethegit/react-hooks

Package Overview
Dependencies
Maintainers
0
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wethegit/react-hooks - npm Package Compare versions

Comparing version 3.0.1 to 3.1.0

6

dist/main.d.ts

@@ -0,3 +1,3 @@

import { default as default_2 } from 'react';
import { JSX as JSX_2 } from 'react/jsx-runtime';
import { default as React_2 } from 'react';

@@ -133,3 +133,3 @@ export declare interface AnimatePresenceProps {

* useAsync
*
* @deprecated Use the new React `use` or `cache` APIs or `useDeferredValue` hook.
* @param {Function} asyncFn - The asynchronous function to run

@@ -226,3 +226,3 @@ * @param {Boolean} [deferred=false] - whether to save the function to a variable for later use (true) or run it instantly (false).

export declare interface UserPreferencesProviderProps {
children: React_2.ReactNode;
children: default_2.ReactNode;
globalClassNames?: {

@@ -229,0 +229,0 @@ prefersDarkColorScheme: string;

@@ -144,4 +144,3 @@ import { useRef as v, useState as a, useEffect as f, useCallback as g, useMemo as p, createContext as w, useContext as y } from "react";

const t = () => {
if (!window)
return;
if (!window) return;
const o = document.body.getAttribute("style");

@@ -148,0 +147,0 @@ o && document.body.setAttribute("style", o.replace("overflow: hidden;", ""));

{
"name": "@wethegit/react-hooks",
"version": "3.0.1",
"version": "3.1.0",
"description": "A collection of helpers for use in React projects.",

@@ -26,3 +26,3 @@ "files": [

"typecheck": "tsc --noEmit",
"lint": "eslint --fix --ext .jsx,js ."
"lint": "eslint --fix"
},

@@ -50,29 +50,38 @@ "publishConfig": {

"devDependencies": {
"@types/node": "~20.12.12",
"@types/react": "~18.3.2",
"@eslint/compat": "^1.2.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"@types/node": "~20.16.5",
"@types/react": "~18.3.10",
"@types/react-dom": "~18.3.0",
"@typescript-eslint/eslint-plugin": "~7.9.0",
"@typescript-eslint/parser": "~6.21.0",
"@vitejs/plugin-react-swc": "^3.0.0",
"eslint": "^8.48.0",
"@typescript-eslint/eslint-plugin": "~8.19.1",
"@typescript-eslint/parser": "~8.19.1",
"@vitejs/plugin-react-swc": "^3.7.0",
"eslint": "^9.13.0",
"eslint-config-prettier": "~9.1.0",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.7",
"husky": "^9.0.11",
"eslint-plugin-react": "^7.37.0",
"eslint-plugin-react-hooks": "^5.1.0",
"eslint-plugin-react-refresh": "^0.4.9",
"globals": "^15.11.0",
"husky": "^9.1.6",
"lint-staged": "^13.2.2",
"prettier": "~3.2.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "~5.3.2",
"vite": "^5.2.11",
"vite-plugin-dts": "~3.6.3"
"prettier": "~3.3.3",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"typescript": "~5.6.2",
"vite": "^5.4.6",
"vite-plugin-dts": "~3.9.1"
},
"peerDependencies": {
"react": "17 - 18",
"react-dom": "17 - 18"
"react": "17 - 19",
"react-dom": "17 - 19"
},
"engines": {
"node": ">=18.0"
},
"dependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.13.0",
"globals": "^15.11.0"
}
}
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