Skip to content

Commit

Permalink
fix: uuid generation on old Node.js (#6494)
Browse files Browse the repository at this point in the history
  • Loading branch information
n1ru4l authored Feb 10, 2025
1 parent 90f3c61 commit ae2d16d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/two-dryers-float.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-hive/core': patch
---

Replace usage of `crypto.randomUUID()` with a custom UUID generation for better backwards
compatability.
2 changes: 1 addition & 1 deletion packages/libraries/core/src/client/http-client.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit ae2d16d

Please sign in to comment.