-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Es6fy #1465
Es6fy #1465
Conversation
To avoid breaking changes, maybe it’s best to only include the arrow function commit for now? |
…sts with npm 5 Should save some confusion in future pull requests (brianc#1465, brianc#1436, brianc#1363).
Since all tests pass, don't know if it's a use case and if people are using it alone |
People are constructing This isn’t the sort of thing tests would cover. |
IMHO @charmander is totally right, it would be much safer to include such a potential breaking change in a major version. |
@abenhamdine @charmander what about reverting only query class to function but keep the rest with es6 class ? |
As I mentioned in the latest comment, it also stops people from being able to inherit from pg types without using |
@billouboq I think it would be better if the PR would be splitted in several ones :
|
Ok will seperate them, thanks for the review |
Change all objects with custom prototypes with ES6 classes and remove self variables by using arrow functions.
If you want I can change var with let-const too
I think the only breaking change is that you can't use query without new anymore :
node-postgres/lib/query.js
Line 18 in e087305