Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkuhrt committed Jan 23, 2025
1 parent 82626ba commit 1e5415e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/early-pears-remember.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@graphiql/toolkit': minor
'@graphiql/react': patch
---

`graphiql-toolkit` now accepts `HeadersInit` input.

`graphiql-react` has internal type changes to support this.

BREAKING CHANGE:

Because `graphiql-toolkit` functions now accept HeadersInit where previously a partially wider type of `Record<string, unknown>` was accepted, there is a technical backwards incompatibility. This new stricter type could for example cause your project to fail type checking after this upgrade. At runtime, nothing should change since if you weren't already using `string` typed value headers already then they were being coerced implicitly. In practice, this should only serve to marginally improve your code with trivial effort.

0 comments on commit 1e5415e

Please sign in to comment.