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

crypto.randomUUID() generates an invalid UUID in @edge-runtime/jest-environment #310

Closed
keyz opened this issue Apr 24, 2023 · 2 comments
Closed

Comments

@keyz
Copy link

keyz commented Apr 24, 2023

Bug Report

Current behavior

When using @edge-runtime/jest-environment, crypto.randomUUID() generates an invalid UUID (only 35 characters)

repro: https://github.com/keyz/vercel-edge-runtime-vm-uuid-bug-repro

image

Expected behavior/code

A valid v4 UUID gets generated per spec

@keyz
Copy link
Author

keyz commented Apr 24, 2023

This seems related: #287

@Kikobeats
Copy link
Member

Closing since the version was updated at Next.js time ago

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

No branches or pull requests

2 participants