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 14.6.0 to 14.7.0

cjs/useFunctionalState/useFunctionalState.d.ts

7

CHANGELOG.md

@@ -0,1 +1,8 @@

# [14.7.0](https://github.com/react-hookz/web/compare/v14.6.0...v14.7.0) (2022-06-30)
### Features
* implement `useFunctionalState` ([#862](https://github.com/react-hookz/web/issues/862)) ([1491d38](https://github.com/react-hookz/web/commit/1491d38024cf2c5c3646e5dcf5a31e9f0a0e1aec)), closes [#530](https://github.com/react-hookz/web/issues/530)
# [14.6.0](https://github.com/react-hookz/web/compare/v14.5.1...v14.6.0) (2022-06-30)

@@ -2,0 +9,0 @@

3

cjs/index.d.ts

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

export { useDebouncedState } from './useDebouncedState/useDebouncedState';
export { useFunctionalState } from './useFunctionalState/useFunctionalState';
export { useList } from './useList/useList';

@@ -37,2 +38,3 @@ export { useMap } from './useMap/useMap';

export { useSyncedRef } from './useSyncedRef/useSyncedRef';
export { useHookableRef, HookableRefHandler } from './useHookableRef/useHookableRef';
export { useLocalStorageValue } from './useLocalStorageValue/useLocalStorageValue';

@@ -54,2 +56,1 @@ export { useSessionStorageValue } from './useSessionStorageValue/useSessionStorageValue';

export { IEffectCallback, IEffectHook } from './util/misc';
export { useHookableRef } from './useHookableRef/useHookableRef';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.truthyAndArrayPredicate = exports.useWindowSize = exports.useEventListener = exports.useDocumentTitle = exports.useClickOutside = exports.useScreenOrientation = exports.useKeyboardEvent = exports.useMediaQuery = exports.useMeasure = exports.useResizeObserver = exports.useIntersectionObserver = exports.useAsyncAbortable = exports.useAsync = exports.useSessionStorageValue = exports.useLocalStorageValue = exports.useSyncedRef = exports.useVibrate = exports.usePermission = exports.useNetworkState = exports.useCounter = exports.useValidator = exports.useThrottledState = exports.useToggle = exports.useSet = exports.useSafeState = exports.useRafState = exports.usePreviousDistinct = exports.usePrevious = exports.useMediatedState = exports.useMap = exports.useList = exports.useDebouncedState = 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.useHookableRef = exports.truthyOrArrayPredicate = void 0;
exports.useEventListener = exports.useDocumentTitle = exports.useClickOutside = exports.useScreenOrientation = exports.useKeyboardEvent = exports.useMediaQuery = exports.useMeasure = exports.useResizeObserver = exports.useIntersectionObserver = exports.useAsyncAbortable = exports.useAsync = exports.useSessionStorageValue = exports.useLocalStorageValue = exports.useHookableRef = exports.useSyncedRef = exports.useVibrate = exports.usePermission = exports.useNetworkState = exports.useCounter = 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.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.truthyOrArrayPredicate = exports.truthyAndArrayPredicate = exports.useWindowSize = void 0;
/* eslint-disable import/no-cycle */

@@ -47,2 +47,4 @@ // Callback

Object.defineProperty(exports, "useDebouncedState", { enumerable: true, get: function () { return useDebouncedState_1.useDebouncedState; } });
var useFunctionalState_1 = require("./useFunctionalState/useFunctionalState");
Object.defineProperty(exports, "useFunctionalState", { enumerable: true, get: function () { return useFunctionalState_1.useFunctionalState; } });
var useList_1 = require("./useList/useList");

@@ -82,2 +84,4 @@ Object.defineProperty(exports, "useList", { enumerable: true, get: function () { return useList_1.useList; } });

Object.defineProperty(exports, "useSyncedRef", { enumerable: true, get: function () { return useSyncedRef_1.useSyncedRef; } });
var useHookableRef_1 = require("./useHookableRef/useHookableRef");
Object.defineProperty(exports, "useHookableRef", { enumerable: true, get: function () { return useHookableRef_1.useHookableRef; } });
// SideEffect

@@ -117,3 +121,1 @@ var useLocalStorageValue_1 = require("./useLocalStorageValue/useLocalStorageValue");

Object.defineProperty(exports, "truthyOrArrayPredicate", { enumerable: true, get: function () { return const_1.truthyOrArrayPredicate; } });
var useHookableRef_1 = require("./useHookableRef/useHookableRef");
Object.defineProperty(exports, "useHookableRef", { enumerable: true, get: function () { return useHookableRef_1.useHookableRef; } });

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

export { useDebouncedState } from './useDebouncedState/useDebouncedState';
export { useFunctionalState } from './useFunctionalState/useFunctionalState';
export { useList } from './useList/useList';

@@ -37,2 +38,3 @@ export { useMap } from './useMap/useMap';

export { useSyncedRef } from './useSyncedRef/useSyncedRef';
export { useHookableRef, HookableRefHandler } from './useHookableRef/useHookableRef';
export { useLocalStorageValue } from './useLocalStorageValue/useLocalStorageValue';

@@ -54,2 +56,1 @@ export { useSessionStorageValue } from './useSessionStorageValue/useSessionStorageValue';

export { IEffectCallback, IEffectHook } from './util/misc';
export { useHookableRef } from './useHookableRef/useHookableRef';

@@ -24,2 +24,3 @@ /* eslint-disable import/no-cycle */

export { useDebouncedState } from "./useDebouncedState/useDebouncedState.js";
export { useFunctionalState } from "./useFunctionalState/useFunctionalState.js";
export { useList } from "./useList/useList.js";

@@ -43,2 +44,3 @@ export { useMap } from "./useMap/useMap.js";

export { useSyncedRef } from "./useSyncedRef/useSyncedRef.js";
export { useHookableRef } from "./useHookableRef/useHookableRef.js";
// SideEffect

@@ -62,2 +64,1 @@ export { useLocalStorageValue } from "./useLocalStorageValue/useLocalStorageValue.js";

export { truthyAndArrayPredicate, truthyOrArrayPredicate } from "./util/const.js";
export { useHookableRef } from "./useHookableRef/useHookableRef.js";

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

export { useDebouncedState } from './useDebouncedState/useDebouncedState';
export { useFunctionalState } from './useFunctionalState/useFunctionalState';
export { useList } from './useList/useList';

@@ -37,2 +38,3 @@ export { useMap } from './useMap/useMap';

export { useSyncedRef } from './useSyncedRef/useSyncedRef';
export { useHookableRef, HookableRefHandler } from './useHookableRef/useHookableRef';
export { useLocalStorageValue } from './useLocalStorageValue/useLocalStorageValue';

@@ -54,2 +56,1 @@ export { useSessionStorageValue } from './useSessionStorageValue/useSessionStorageValue';

export { IEffectCallback, IEffectHook } from './util/misc';
export { useHookableRef } from './useHookableRef/useHookableRef';

@@ -24,2 +24,3 @@ /* eslint-disable import/no-cycle */

export { useDebouncedState } from "./useDebouncedState/useDebouncedState.js";
export { useFunctionalState } from "./useFunctionalState/useFunctionalState.js";
export { useList } from "./useList/useList.js";

@@ -43,2 +44,3 @@ export { useMap } from "./useMap/useMap.js";

export { useSyncedRef } from "./useSyncedRef/useSyncedRef.js";
export { useHookableRef } from "./useHookableRef/useHookableRef.js";
// SideEffect

@@ -62,2 +64,1 @@ export { useLocalStorageValue } from "./useLocalStorageValue/useLocalStorageValue.js";

export { truthyAndArrayPredicate, truthyOrArrayPredicate } from "./util/const.js";
export { useHookableRef } from "./useHookableRef/useHookableRef.js";
{
"name": "@react-hookz/web",
"version": "14.6.0",
"version": "14.7.0",
"description": "React hooks done right, for browser and SSR.",

@@ -5,0 +5,0 @@ "keywords": [

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

— Like `useSafeState` but its state setter is debounced.
- [**`useFunctionalState`**](https://react-hookz.github.io/web/?path=/docs/state-usefunctionalstate--page)
— Like `useState` but instead of raw state, state getter returned.
- [**`useList`**](https://react-hookz.github.io/web/?path=/docs/state-uselist--example)

@@ -116,0 +118,0 @@ — Tracks a list and offers functions for manipulating it.

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