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

Add 'promise.js' to exports #1217

Merged
merged 1 commit into from
Sep 24, 2020
Merged

Add 'promise.js' to exports #1217

merged 1 commit into from
Sep 24, 2020

Conversation

chrisveness
Copy link
Contributor

@chrisveness chrisveness commented Sep 24, 2020

Prior to 2.2.0, an ES6 import of the promise wrapper had to specify a file
extension ("import mysql from 'mysql2/promise.js';"), which made #1100 a
breaking change as only the extensionless version was included in the exports;
this restores promise.js as a valid import.

Prior to 2.2.0, an ES6 import of the promise wrapper had to specify a file
extension ("import mysql from 'mysql2/promise.js';"), which made PR#1100 a
breaking change as only the extensionless version was included in the exports;
this restores promise.js as a valid import.
@sidorares sidorares merged commit d74a7d9 into sidorares:master Sep 24, 2020
@sidorares
Copy link
Owner

Thanks!

@pubmikeb
Copy link

@chrisveness, so what will be the right way to import mysql2 with promises support?
Currently there is a related issue: #1216.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants