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 node v18 and drop node v12, make exports ESM-friendly #86

Merged
merged 2 commits into from
May 16, 2022
Merged

Conversation

devinivy
Copy link
Member

@devinivy devinivy commented May 9, 2022

  • Test on node v14+.
  • Update to node v18-compatible versions of hapi modules.
  • Changed export to exports.Engine rather than module.exports for more standard ESM usage. If that seems fine, I'll apply the same convention to catbox-redis, etc.

If this looks good, this will go out as catbox-memory v6.

@devinivy devinivy added breaking changes Change that can breaking existing code dependency Update module dependency labels May 9, 2022
@devinivy devinivy added this to the 6.0.0 milestone May 9, 2022
Copy link
Contributor

@kanongil kanongil left a comment

Choose a reason for hiding this comment

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

I'm very much in favour of moving it to a standardized Engine() export. Though I would probably revise catbox to validate passed objects a bit more, so it throws on the base exported object. Otherwise you will have weird runtime errors if people just upgrade the module without changes to the code.

API.md Outdated Show resolved Hide resolved
@devinivy
Copy link
Member Author

Good call @kanongil, I've captured that here: hapijs/catbox#240

Co-authored-by: Gil Pedersen <github@gpost.dk>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking changes Change that can breaking existing code dependency Update module dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants