Skip to content

v7.0.0

Latest
Compare
Choose a tag to compare
@AdriVanHoudt AdriVanHoudt released this 21 Jan 22:03
v7.0.0
e3b477d

Support hapi 17-19 ✨

Since hapi doesn't have the string pre function notation to access server methods anymore
Optimus now exposes Optimus.pre functions that are wrappers to still easily handle pre functions with different inputs.

So instead of pre: ['optimus.transformSimpleRules(payload)']
You should do pre: [Optimus.pre.transformSimpleRules('payload')]