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).
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. 😁
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).