We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd902b5 commit 2c1f41fCopy full SHA for 2c1f41f
.changeset/forty-phones-applaud.md
@@ -0,0 +1,5 @@
1
+---
2
+"@saleor/app-sdk": patch
3
4
+
5
+Marked domain header as deprecated
src/headers.ts
@@ -17,6 +17,9 @@ const toFloatOrNull = (value: string | string[] | undefined) =>
17
* Extracts Saleor-specific headers from the response.
18
*/
19
export const getSaleorHeaders = (headers: { [name: string]: string | string[] | undefined }) => ({
20
+ /**
21
+ * @deprecated - use saleorApiUrl
22
+ */
23
domain: toStringOrUndefined(headers[SALEOR_DOMAIN_HEADER]),
24
authorizationBearer: toStringOrUndefined(headers[SALEOR_AUTHORIZATION_BEARER_HEADER]),
25
signature: toStringOrUndefined(headers[SALEOR_SIGNATURE_HEADER]),
0 commit comments