Repository navigation
v4.0.0 - Major Modernization for hapi v21+
Breaking Changes
- Node.js >= 18.0.0 required
- @hapi/hapi >= v21.0.0 required
- Plugin now uses modern
exports.pluginformat with async/await - Handlers must use response toolkit (
h) instead ofreply
New Features
- Modern async/await plugin architecture
- Support for ES modules (default exports)
- Better error messages for missing handlers/patterns
Dependencies
- Updated
globto v10.4.5 (Promise-native API) - Removed
asyncdependency (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 publicWhat's Changed
- Revamp of API to implement glob patterns by @genediazjr in #2
- Wrapping release 2.0 by @ar4mirez in #3
New Contributors
- @genediazjr made their first contribution in #2
- @ar4mirez made their first contribution in #3
Full Changelog: https://github.com/ar4mirez/hapi-handlers/commits/v4.0.0