fix: uuid generation on old Node.js (#6494)

This commit is contained in:
Laurin Quast 2025-02-10 17:02:06 +01:00 committed by GitHub
parent 90f3c61772
commit ae2d16d553
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -0,0 +1,6 @@
---
'@graphql-hive/core': patch
---
Replace usage of `crypto.randomUUID()` with a custom UUID generation for better backwards
compatability.

View file

@ -1,5 +1,5 @@
import asyncRetry from 'async-retry';
import { fetch, URL } from '@whatwg-node/fetch';
import { crypto, fetch, URL } from '@whatwg-node/fetch';
import type { Logger } from './types.js';
interface SharedConfig {