@wordpress/hooks 4.14.0 → 4.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -1
- package/LICENSE.md +1 -1
- package/package.json +2 -2
- package/src/test/index.test.js +1 -1
- package/tsconfig.json +1 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 4.16.0 (2025-01-15)
|
|
6
|
+
|
|
7
|
+
## 4.15.0 (2025-01-02)
|
|
8
|
+
|
|
5
9
|
## 4.14.0 (2024-12-11)
|
|
6
10
|
|
|
7
11
|
## 4.13.0 (2024-11-27)
|
|
@@ -183,7 +187,7 @@
|
|
|
183
187
|
|
|
184
188
|
### New Features
|
|
185
189
|
|
|
186
|
-
- Enable an optional namespace parameter for `hasAction` & `hasFilter`. When checking if an action or filter exists, `hasAction` and `hasFilter` now accept an optional
|
|
190
|
+
- Enable an optional namespace parameter for `hasAction` & `hasFilter`. When checking if an action or filter exists, `hasAction` and `hasFilter` now accept an optional parameter to limit matches by namespace.
|
|
187
191
|
|
|
188
192
|
## 2.4.0 (2019-06-12)
|
|
189
193
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/hooks",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.16.0",
|
|
4
4
|
"description": "WordPress hooks library.",
|
|
5
5
|
"author": "The WordPress Contributors",
|
|
6
6
|
"license": "GPL-2.0-or-later",
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"publishConfig": {
|
|
34
34
|
"access": "public"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "f48b9f56629e400891abb5ae491504de475237ff"
|
|
37
37
|
}
|
package/src/test/index.test.js
CHANGED
|
@@ -67,7 +67,7 @@ function actionC() {
|
|
|
67
67
|
beforeEach( () => {
|
|
68
68
|
window.actionValue = '';
|
|
69
69
|
// Reset state in between tests (clear all callbacks, `didAction` counts,
|
|
70
|
-
// etc.) Just
|
|
70
|
+
// etc.) Just resetting actions and filters is not enough
|
|
71
71
|
// because the internal functions have references to the original objects.
|
|
72
72
|
[ actions, filters ].forEach( ( hooks ) => {
|
|
73
73
|
for ( const k in hooks ) {
|
package/tsconfig.json
CHANGED