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 Versions

23
13

24.0.4

Diff

Changelog

Source

24.0.4 (2024-02-04)

Bug Fixes

  • useDebouncedCallback: make invoked function to be updated with deps (#1510) (12658ee), closes #1357
xobotyi
published 24.0.3 •

Changelog

Source

24.0.3 (2024-02-03)

Bug Fixes

  • get rid of import alias as it still breaks everything around (#1509) (90e4f9d)
xobotyi
published 24.0.2 •

Changelog

Source

24.0.2 (2023-12-21)

Bug Fixes

  • lower engines requirements to ease usage for consumers (8bd29f7)
xobotyi
published 24.0.1 •

Changelog

Source

24.0.1 (2023-12-20)

Bug Fixes

  • change build so development and distributed imports match (6383cdd)

Features

BREAKING CHANGES

  • Hooks are now distrubutes as JS built form TS with target ESNext and ESM module resolution. There is no more sense to distribute CJS version as package is ESM-only.

Consequent of above - no more esm and cjs subfolders - hooks are importable from index.js or its own directory which don't have a prefix anymore, thanks to exports directive. All of below examples will lead to same result, choose any on your taste:

import { useFirstMountState } from '@react-hookz/web'; import { useFirstMountState } from '@react-hookz/web/'; import { useFirstMountState } from '@react-hookz/web/useFirstMountState/'; import { useFirstMountState } from '@react-hookz/web/useFirstMountState/index.js'; Thought is seems not to have subfolder, it is only due to exports directive, in real it is @react-hookz/web/dist/useFirstMountState/index.js.

Pakage uses imports directive to define path alias #root - it stays so even in distributed code, thus, some may be affected in case their bundler configured to somehow handle such alias. Those developer shoud configure import rewriter not to handle node_modules or @react-hookz/web package exclusively.

Side-effect for current PR - documentation is broken, as storybook 6 is not working within ESM packages and I'm planning to switch to another domenting engine anyway.

xobotyi
published 24.0.0 •

Changelog

Source

24.0.1 (2023-12-20)

Bug Fixes

  • change build so development and distributed imports match (6383cdd)

Features

BREAKING CHANGES

  • Hooks are now distrubutes as JS built form TS with target ESNext and ESM module resolution. There is no more sense to distribute CJS version as package is ESM-only.

Consequent of above - no more esm and cjs subfolders - hooks are importable from index.js or its own directory which don't have a prefix anymore, thanks to exports directive. All of below examples will lead to same result, choose any on your taste:

import { useFirstMountState } from '@react-hookz/web'; import { useFirstMountState } from '@react-hookz/web/'; import { useFirstMountState } from '@react-hookz/web/useFirstMountState/'; import { useFirstMountState } from '@react-hookz/web/useFirstMountState/index.js'; Thought is seems not to have subfolder, it is only due to exports directive, in real it is @react-hookz/web/dist/useFirstMountState/index.js.

Pakage uses imports directive to define path alias #root - it stays so even in distributed code, thus, some may be affected in case their bundler configured to somehow handle such alias. Those developer shoud configure import rewriter not to handle node_modules or @react-hookz/web package exclusively.

Side-effect for current PR - documentation is broken, as storybook 6 is not working within ESM packages and I'm planning to switch to another domenting engine anyway.

xobotyi
published 23.1.0 •

Changelog

Source

23.1.0 (2023-06-30)

Features

xobotyi
published 23.0.1 •

Changelog

Source

23.0.1 (2023-05-24)

Bug Fixes

  • useThrottleCallback: Cleared timeout on unmount (#1173) (8681ad8)
xobotyi
published 23.0.0 •

Changelog

Source

23.0.0 (2023-03-23)

BREAKING CHANGES

  • useSafeState hook is removed
xobotyi
published 22.0.0 •

Changelog

Source

22.0.0 (2023-01-05)

Features

  • rename all hook implementation files to index.ts (#1065) (34c36f2)

BREAKING CHANGES

  • all current hook implementation fies renamed to index to allow usage of directory imports and avoid redundant reexporting. Such change breaks previous direct imports, but simplifies import string and solves redundant hook name duplication.

4ex:

// previously
import { useUpdate } from "@react-hookz/web/useUpdate/useUpdate"

// now
import { useUpdate } from "@react-hookz/web/useUpdate"
xobotyi
published 21.0.0 •

Changelog

Source

21.0.0 (2023-01-04)

Features

  • Drop es5 versions support, leave only ESNext (#963) (5a622af)

BREAKING CHANGES

  • CJS ES5 and ESM ES5 versions are removed from distribution, leaving only ESM ESNext version.

We understand that this change can break existing pipelines for some developers, but such move eases library maintenance and is one of several moves towards module package. Address Usage docs to actualize your pipeline if needed.

This change is one of several braking changes regarding distribution and package usage.

Sorry for any inconvenience.

23
13
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