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

Deprecates callback style interface. #14

Merged
merged 2 commits into from
Feb 19, 2018
Merged

Deprecates callback style interface. #14

merged 2 commits into from
Feb 19, 2018

Conversation

MicahZoltu
Copy link
Collaborator

Gets rid of the legacy style examples and adds a deprecation warning to the callback style entrypoints.

If you want callback style, use one of the many promise<->callback wrappers on the internet (though I strongly recommend just using async/await instead).

This change is being made because maintaining two interfaces is more expensive than maintaining one, and the legacy interface really shouldn't be used now that async/await is available everywhere (all major browsers and LTS version of NodeJS).

Gets rid of the legacy style examples.  If you want callback style, use one of the many promise<->callback wrappers on the internet (though I strongly recommend just using async/await instead).
v4.0.1: 4.0.1
@MicahZoltu MicahZoltu merged commit 6d6262e into master Feb 19, 2018
@MicahZoltu MicahZoltu deleted the micah branch February 19, 2018 05:20
@tinybike
Copy link
Member

You monster!!!!!

@MicahZoltu
Copy link
Collaborator Author

MicahZoltu commented Feb 20, 2018

Note: You can grab version 4.0.0 if you want everything except this deprecation warning. Be aware that you won't get future updates until you accept the deprecation though. 😁

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.

2 participants