@wethegit/react-hooks
Advanced tools
Comparing version 3.0.1 to 3.1.0
@@ -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" | ||
} | ||
} |
20601
5
23
440
+ Added@eslint/eslintrc@^3.1.0
+ Added@eslint/js@^9.13.0
+ Addedglobals@^15.11.0
+ Added@eslint/eslintrc@3.2.0(transitive)
+ Added@eslint/js@9.18.0(transitive)
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-jsx@5.3.2(transitive)
+ Addedajv@6.12.6(transitive)
+ Addedargparse@2.0.1(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedeslint-visitor-keys@4.2.0(transitive)
+ Addedespree@10.3.0(transitive)
+ Addedfast-deep-equal@3.1.3(transitive)
+ Addedfast-json-stable-stringify@2.1.0(transitive)
+ Addedglobals@14.0.015.14.0(transitive)
+ Addedignore@5.3.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedjs-yaml@4.1.0(transitive)
+ Addedjson-schema-traverse@0.4.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedms@2.1.3(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedpunycode@2.3.1(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addedstrip-json-comments@3.1.1(transitive)
+ Addeduri-js@4.4.1(transitive)
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)