From 1e5415ea1cfb8c8cc1dd72515f47da97cb96d6df Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Thu, 23 Jan 2025 12:01:18 -0500 Subject: [PATCH] changelog --- .changeset/early-pears-remember.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .changeset/early-pears-remember.md diff --git a/.changeset/early-pears-remember.md b/.changeset/early-pears-remember.md new file mode 100644 index 0000000000..6845daf2c0 --- /dev/null +++ b/.changeset/early-pears-remember.md @@ -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` 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.