- added new
doActionAsync
andapplyFiltersAsync
functions to run hooks in async mode (#64204).
- Increase the minimum required Node.js version to v18.12.0 matching long-term support releases (#31270). Learn more about Node.js releases.
- Drop support for Internet Explorer 11 (#31110). Learn more at https://make.wordpress.org/core/2021/04/22/ie-11-support-phase-out-plan/.
- Increase the minimum Node.js version to v12 matching Long Term Support releases (#31270). Learn more at https://nodejs.org/en/about/releases/.
- Export the default
createHooks
singleton instance asdefaultHooks
, in addition to exporting the individual methods.
- Include TypeScript type declarations (#26430)
- Fix: Use own instance's
doAction
method for built-inhookAdded
andhookRemoved
hooks (#26498)
- Enable an optional namespace parameter for
hasAction
&hasFilter
. When checking if an action or filter exists,hasAction
andhasFilter
now accept an optional paramter to limit matches by namespace.
- Enable support for the 'all' hook in non production environments.
- Change how required built-ins are polyfilled with Babel 7 (#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 or @babel/polyfill will add support for these methods.
- Updated build to work with Babel 7 (#7832)
- Moved
@WordPress/packages
repository to@WordPress/gutenberg
(#7805)
- Documentation: Improve usage examples (#121)
- Fix: Resolves issue where action argument would be undefined on all but the first action callback.