Skip to content

Releases: ar4mirez/hapi-handlers

v4.0.1

Choose a tag to compare

@github-actions github-actions released this 16 Jan 11:33

Full Changelog: v4.0.0...v4.0.1

v4.0.0 - Major Modernization for hapi v21+

Choose a tag to compare

@ar4mirez ar4mirez released this 16 Jan 10:58

Breaking Changes

  • Node.js >= 18.0.0 required
  • @hapi/hapi >= v21.0.0 required
  • Plugin now uses modern exports.plugin format with async/await
  • Handlers must use response toolkit (h) instead of reply

New Features

  • Modern async/await plugin architecture
  • Support for ES modules (default exports)
  • Better error messages for missing handlers/patterns

Dependencies

  • Updated glob to v10.4.5 (Promise-native API)
  • Removed async dependency (using native async/await)
  • Updated all devDependencies to latest versions

Migration Guide

See the README for migration instructions.

npm Publish

To publish to npm, configure the NPM_TOKEN repository secret and re-run the release workflow, or publish manually:

npm publish --access public

What's Changed

New Contributors

Full Changelog: https://github.com/ar4mirez/hapi-handlers/commits/v4.0.0