Socket
Socket
Sign inDemoInstall

@wordpress/hooks

Package Overview
Dependencies
Maintainers
0
Versions
160
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wordpress/hooks - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

22

CHANGELOG.md

@@ -5,2 +5,4 @@ <!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/HEAD/packages#maintaining-changelogs. -->

## 4.2.0 (2024-06-26)
## 4.1.0 (2024-06-15)

@@ -139,3 +141,3 @@

### New Feature
### New Features

@@ -146,7 +148,7 @@ - Export the default `createHooks` singleton instance as `defaultHooks`, in addition to exporting the individual methods.

### New Feature
### New Features
- Include TypeScript type declarations ([#26430](https://github.com/WordPress/gutenberg/pull/26430))
### Bug Fix
### Bug Fixes

@@ -157,3 +159,3 @@ - Fix: Use own instance's `doAction` method for built-in `hookAdded` and `hookRemoved` hooks ([#26498](https://github.com/WordPress/gutenberg/pull/26498))

### New Feature
### New Features

@@ -164,3 +166,3 @@ - Enable an optional namespace parameter for `hasAction` & `hasFilter`. When checking if an action or filter exists, `hasAction` and `hasFilter` now accept an optional paramter to limit matches by namespace.

### New Feature
### New Features

@@ -173,3 +175,3 @@ - Enable support for the 'all' hook in non production environments.

### Breaking Change
### Breaking Changes

@@ -180,7 +182,7 @@ - Change how required built-ins are polyfilled with Babel 7 ([#9171](https://github.com/WordPress/gutenberg/pull/9171)). If you're using an environment that has limited or no support for ES2015+ such as lower versions of IE then using [core-js](https://github.com/zloirock/core-js) or [@babel/polyfill](https://babeljs.io/docs/en/next/babel-polyfill) will add support for these methods.

### New Feature
### New Features
- Updated build to work with Babel 7 ([#7832](https://github.com/WordPress/gutenberg/pull/7832))
### Polish
### Internal

@@ -191,3 +193,3 @@ - Moved `@WordPress/packages` repository to `@WordPress/gutenberg` ([#7805](https://github.com/WordPress/gutenberg/pull/7805))

### Polish
### Internal

@@ -198,4 +200,4 @@ - Documentation: Improve usage examples ([#121](https://github.com/WordPress/packages/pull/121))

### Bug Fix
### Bug Fixes
- Fix: Resolves issue where action argument would be undefined on all but the first action callback.
{
"name": "@wordpress/hooks",
"version": "4.1.0",
"version": "4.2.0",
"description": "WordPress hooks library.",

@@ -35,3 +35,3 @@ "author": "The WordPress Contributors",

},
"gitHead": "66d3bf12e67d16deddc4b4a9ec42e1d0bed3479a"
"gitHead": "aa5b14bb5bdbb8d8a02914e154c3bc1c2f18ace6"
}
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