-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
chore(pg-native): use ES6 classes #3571
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
base: master
Are you sure you want to change the base?
Conversation
This improves readability and may allow V8 to optimize better.
| } | ||
| } | ||
| module.exports = createClient | ||
| module.exports.Client = Client |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Among the issues I pointed out, that only fixes version. It’s not fixable in a clean way overall. Pretty sure we should just do a regular class with no associated compatibility function and merge it for pg-native 4.0.0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll put this on a list of things to merge for the next semver major. thanks for the contribution!
This improves readability and may allow V8 to optimize better.