Replies: 1 comment
|
Also for 4.0, we should be ESM. CJS is becoming technical debt. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Haraka 4.0: Callbacks → async/await plugin API
✅ Pros
❌ Cons
🤔 Key design question
The biggest open question is how to encode rc + msg + data as an async return. Options: return { rc, msg } object, throw typed error subclasses (class DenyError extends Error), or use a hybrid. The choice ripples through every plugin and every test.
All reactions