Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Hapi v17 #25

Merged
merged 5 commits into from
Sep 10, 2018
Merged

Support for Hapi v17 #25

merged 5 commits into from
Sep 10, 2018

Conversation

NicolasRitouet
Copy link

@NicolasRitouet NicolasRitouet commented Aug 26, 2018

  • upgrade nodejs version on travis CI (Version 17.x only supports node v8.9.0 and over. )
  • move from var to let/ const
  • move to new register syntax for plugins
  • remove q to use native promise
  • update documentation with new plugin syntax
  • upgrade to major version 4
  • forwards roles to aclQuery if role is undefined

Thx @maxaus for his contribution.

I recommend having more people testing it.
just modify your package.json from
"hapi-authorization": "^3.0.2",
to
"hapi-authorization": "mycshq/hapi-authorization#hapi-17",
and run npm i

NicolasRitouet and others added 3 commits May 8, 2018 17:22
* Updated dependencies. Fixed issue with server.connections used for route iteration before.

* Partial fix for the tests.

* Made logic around ACL queries asynchronous. Fixed part of tests.

* Fixed remaining errors and tests.

* Updated README
@coveralls
Copy link

coveralls commented Aug 28, 2018

Coverage Status

Coverage increased (+4.6%) to 100.0% when pulling c33534a on mycsHQ:hapi-17 into 9d55ca3 on toymachiner62:master.

@NicolasRitouet
Copy link
Author

@toymachiner62 I've tested it with my use-case and no issue.
Anyone else has been able to test it? @maxaus @toddhickerson @heartstchr

- '5'
- '4.2.0'
- '4'
- 8
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason we're skipping node 9?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took it from hapijs, I guess they only officially support LTS

@toymachiner62 toymachiner62 merged commit b99b8e7 into toymachiner62:master Sep 10, 2018
@toymachiner62
Copy link
Owner

Available on npm version 4.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants