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

@react-hookz/web

Package Overview
Dependencies
Maintainers
2
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-hookz/web - npm Package Compare versions

Comparing version 17.0.1 to 18.0.0

1

cjs/index.d.ts

@@ -52,3 +52,2 @@ export { useDebouncedCallback } from './useDebouncedCallback/useDebouncedCallback';

export { useClickOutside } from './useClickOutside/useClickOutside';
export { useDocumentTitle, UseDocumentTitleOptions } from './useDocumentTitle/useDocumentTitle';
export { useEventListener } from './useEventListener/useEventListener';

@@ -55,0 +54,0 @@ export { useWindowSize, WindowSize } from './useWindowSize/useWindowSize';

4

cjs/index.js

@@ -18,3 +18,3 @@ "use strict";

exports.useScreenOrientation = exports.useKeyboardEvent = exports.useMediaQuery = exports.useMeasure = exports.useResizeObserver = exports.useIntersectionObserver = exports.useAsyncAbortable = exports.useAsync = exports.useSessionStorageValue = exports.useLocalStorageValue = exports.useCustomCompareMemo = exports.useHookableRef = exports.useSyncedRef = exports.useVibrate = exports.usePermission = exports.useNetworkState = exports.useValidator = exports.useThrottledState = exports.useToggle = exports.useSet = exports.useSafeState = exports.useRafState = exports.usePreviousDistinct = exports.usePrevious = exports.useMediatedState = exports.useMap = exports.useList = exports.useFunctionalState = exports.useDebouncedState = exports.useCounter = exports.useControlledRerenderState = exports.useTimeoutEffect = exports.useIntervalEffect = exports.useLifecycleLogger = exports.useUpdateEffect = exports.useUnmountEffect = exports.useThrottledEffect = exports.useRerender = exports.useRafEffect = exports.useMountEffect = exports.useIsomorphicLayoutEffect = exports.useIsMounted = exports.useFirstMountState = exports.useDeepCompareEffect = exports.useDebouncedEffect = exports.useCustomCompareEffect = exports.useConditionalEffect = exports.useThrottledCallback = exports.useRafCallback = exports.useDebouncedCallback = void 0;
exports.useDeepCompareMemo = exports.resolveHookState = exports.truthyOrArrayPredicate = exports.truthyAndArrayPredicate = exports.useWindowSize = exports.useEventListener = exports.useDocumentTitle = exports.useClickOutside = void 0;
exports.useDeepCompareMemo = exports.resolveHookState = exports.truthyOrArrayPredicate = exports.truthyAndArrayPredicate = exports.useWindowSize = exports.useEventListener = exports.useClickOutside = void 0;
// Callback

@@ -130,4 +130,2 @@ var useDebouncedCallback_1 = require("./useDebouncedCallback/useDebouncedCallback");

Object.defineProperty(exports, "useClickOutside", { enumerable: true, get: function () { return useClickOutside_1.useClickOutside; } });
var useDocumentTitle_1 = require("./useDocumentTitle/useDocumentTitle");
Object.defineProperty(exports, "useDocumentTitle", { enumerable: true, get: function () { return useDocumentTitle_1.useDocumentTitle; } });
var useEventListener_1 = require("./useEventListener/useEventListener");

@@ -134,0 +132,0 @@ Object.defineProperty(exports, "useEventListener", { enumerable: true, get: function () { return useEventListener_1.useEventListener; } });

@@ -52,3 +52,2 @@ export { useDebouncedCallback } from './useDebouncedCallback/useDebouncedCallback';

export { useClickOutside } from './useClickOutside/useClickOutside';
export { useDocumentTitle, UseDocumentTitleOptions } from './useDocumentTitle/useDocumentTitle';
export { useEventListener } from './useEventListener/useEventListener';

@@ -55,0 +54,0 @@ export { useWindowSize, WindowSize } from './useWindowSize/useWindowSize';

@@ -60,3 +60,2 @@ // Callback

export { useClickOutside } from "./useClickOutside/useClickOutside.js";
export { useDocumentTitle } from "./useDocumentTitle/useDocumentTitle.js";
export { useEventListener } from "./useEventListener/useEventListener.js";

@@ -63,0 +62,0 @@ export { useWindowSize } from "./useWindowSize/useWindowSize.js";

@@ -52,3 +52,2 @@ export { useDebouncedCallback } from './useDebouncedCallback/useDebouncedCallback';

export { useClickOutside } from './useClickOutside/useClickOutside';
export { useDocumentTitle, UseDocumentTitleOptions } from './useDocumentTitle/useDocumentTitle';
export { useEventListener } from './useEventListener/useEventListener';

@@ -55,0 +54,0 @@ export { useWindowSize, WindowSize } from './useWindowSize/useWindowSize';

@@ -60,3 +60,2 @@ // Callback

export { useClickOutside } from "./useClickOutside/useClickOutside.js";
export { useDocumentTitle } from "./useDocumentTitle/useDocumentTitle.js";
export { useEventListener } from "./useEventListener/useEventListener.js";

@@ -63,0 +62,0 @@ export { useWindowSize } from "./useWindowSize/useWindowSize.js";

{
"name": "@react-hookz/web",
"version": "17.0.1",
"version": "18.0.0",
"description": "React hooks done right, for browser and SSR.",

@@ -82,3 +82,3 @@ "keywords": [

"devDependencies": {
"@babel/core": "^7.19.6",
"@babel/core": "^7.20.2",
"@commitlint/cli": "^17.2.0",

@@ -104,13 +104,13 @@ "@commitlint/config-conventional": "^17.2.0",

"@testing-library/react-hooks": "^8.0.1",
"@types/jest": "^29.2.1",
"@types/jest": "^29.2.2",
"@types/js-cookie": "^3.0.2",
"@types/react": "^18.0.17",
"@types/react-dom": "^18.0.6",
"babel-loader": "^9.0.1",
"babel-loader": "^9.1.0",
"commitizen": "^4.2.5",
"commitlint": "^17.2.0",
"concurrently": "^7.5.0",
"husky": "^8.0.1",
"jest": "^29.2.2",
"jest-environment-jsdom": "^29.2.2",
"husky": "^8.0.2",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"js-cookie": "^3.0.1",

@@ -117,0 +117,0 @@ "lint-staged": "^13.0.3",

@@ -199,4 +199,2 @@ <div align="center">

— Triggers callback when user clicks outside the target element.
- [**`useDocumentTitle`**](https://react-hookz.github.io/web/?path=/docs/dom-usedocumenttitle--example)
— Sets title of the page.
- [**`useEventListener`**](https://react-hookz.github.io/web/?path=/docs/dom-useeventlistener--example)

@@ -203,0 +201,0 @@ — Subscribes an event listener to the target, and automatically unsubscribes it on unmount.

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