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

Removes crypto dependency so this can be used in edge runtimes #12

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

EliBates
Copy link
Contributor

Fixes #11

Crypto is built into node already https://medium.com/@vviital/you-dont-need-a-uuid-anymore-33cf7ab201d2 Removing cyrpto will allow this to run on cloudflare workers or vercel edge.

Additionally added an optional param to LockAcquireConfig allowing someone to pass in their own UUID if they want (or if they don't have the built in crypto module)

Crypto is built into node already https://medium.com/@vviital/you-dont-need-a-uuid-anymore-33cf7ab201d2
Removing cyrpto will allow this to run on cloudflare workers or vercel edge. Additionally added an optional param to LockAcquireConfig allowing someone to pass in their own UUID if they want (or if they don't have the built in crypto module)
Copy link

vercel bot commented Jul 10, 2024

@EliBates is attempting to deploy a commit to the Upstash Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Jul 10, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lock ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 10, 2024 0:07am

@CahidArda
Copy link
Contributor

Hi @EliBates, thanks a lot for the changes!

I ran the tests locally and they pass. Merging and releasing a patch.

@CahidArda CahidArda merged commit 47a00af into upstash:main Jul 10, 2024
0 of 2 checks passed
@EliBates
Copy link
Contributor Author

@CahidArda Happy to help! Could we get 0.2.1 published to npm when you get a chance?

image

@CahidArda
Copy link
Contributor

CahidArda commented Jul 11, 2024

It's now published @EliBates

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.

Remove crypto dependency
2 participants