nodejs-tutorials-hapi icon indicating copy to clipboard operation
nodejs-tutorials-hapi copied to clipboard

Found some breaking changes since Hapi v19

Open hk7math opened this issue 5 years ago • 0 comments

Coming from this Future Studio tutorial for Hapi ( https://futurestud.io/tutorials/hapi-extend-your-server-functionality-with-plugins), the snippets failed to run so I did some digging and wanna contribute a bit:

  • Dependency names have prefix '@hapi/'
  • Registering plugins requires key 'plugin' instead of 'register'
  • Good options seem self-contradicting? i.e. ops is set at interval 1000 but reporters exclude the ops arg

hk7math avatar Aug 15 '20 10:08 hk7math