question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Overview

If you are not aware yet, Hapi v17 is making the transition from callbacks to async/await, as well as deprecating some other rarely used functionality. This is a breaking change that may make your plugin no longer compatible with the Hapi API.

Changelog

Draft release notes can be found here: https://github.com/hapijs/hapi/issues/3658

Target Release

The target release date for v17 is the beginning of November.

Tasks

  • Reply to this to acknowledge that you are actively maintaining this module and are willing to update it
  • Update plugin to be fully async/await compatible using the v17 branch from Hapi for testing

    Possible dev flow for updating

    • Clone Hapi
    • npm link within the Hapi repo
    • npm link hapi within your plugin repo
    • Your plugin will now be using v17 of Hapi branch for tests
  • Release new major version of your plugin on npm. Please use a major version increment as this will be a breaking change and it would be terrible for it to sneak into current versions of Hapi.

Notes

  • Support is being dropped for all versions of Node <8.0.0.
  • Hapi v16 will continue to be supported for as long as there exists a Node LTS actively being supported that is not compatible with v17.
  • Targeted release date is November 1st, 2017. Please try to have your plugin updated before then.
  • This issue is being opened because your plugin is listed on the official hapi website

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:18
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

12reactions
robmcguinnesscommented, Nov 27, 2017

I’ve added a PR https://github.com/glennjones/hapi-swagger/pull/481 that still needs work. Most of the unit test are passing minus the tests that are dependent on 3rd party plugins which have not yet upgraded to v17. Hopefully it’s a starting point that helps @glennjones or others to use.

I’ll continue working on the PR as I have time and if @glennjones doesn’t have objections.

12reactions
glennjonescommented, Nov 12, 2017

Hi - sorry about the delay working 6/7 day weeks at the moment. I have a free block of 3-4 hours on Wednesday 22nd. I will have a look at then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

17.0.0 Release Notes · Issue #3658 · hapijs/hapi - GitHub
I am extremely grateful for their support. Lob enables you to seamlessly print and mail documents, postcards, checks, and more via an API....
Read more >
Changelog - hapi.dev
Changelog ; #4347. Update hapijs/statehood to 7.0.4 from 7.0.3 ; #4345. Fix memory leaks from teamwork long standing notes ; #4314. Fix tests...
Read more >
hapi — v17 Upgrade Guide (Your Move to async/await)
With v17, hapi has full end-to-end support for async/await . ... This hapi v17 migration guide is your helping hand to get your...
Read more >
Thinking about updating your Hapi.JS server to V17? | YLD Blog
Thinking about updating your Hapi.JS server to V17? ... There are quite some changes with the latest HAPI.js version that are worth taking...
Read more >
hapi-and-healthy - npm
x.x only supports hapi v17 and above! This Hapi.js plugin provides a configurable route for /service-status ( /health ) API reporting which ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found