Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
10.0.0 Release Notes #2764
hapi v10.0.0 contains no breaking changes. It is published to indicate the transition from node v0.10 to node v4.0. Moving to v10.0.0 only requires upgrading your node version to the latest v4. Future releases of the hapi v10 branch will include internal changes to take advantage of the new features available in node v4 and those will break under node v0.10.
This was referenced
Sep 12, 2015
referenced this issue
Oct 12, 2015
I'm working through an upgrade from 9.0.2 to 10.5.0 and it does appear to have at least one breaking API change: "Uncaught error: callback is not a function stack: TypeError: callback is not a function" when going through basic authentication.
When you register a server.auth.strategy, the validateFunc parameters have changed.
Previously this worked:
But now the first parameter has changed, so you need this:
Thankfully the tutorial was updated which helped me track this down.