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

Updating dependencies & TS definition #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

AlexLavoie42
Copy link

I was getting an error due to the old version of sqlite3, and I would also like to take advantage of the newer version of Supercluster. Unfortunately, Supercluster dropped support for commonjs entirely, so using require with the package no longer worked. I was able to get around this using rollup to create a different .cjs file that will be imported when using require. The esm package is no longer needed as well since we can import es modules directly in new versions of node.

I have also included a simple TS definition that I have been using since there does not appear to be one for the package in @types.

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.

1 participant