Skip to content

Commit 2c1f41f

Browse files
authored
mark domain header as deprecated (#387)
* mark deprecation
1 parent cd902b5 commit 2c1f41f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.changeset/forty-phones-applaud.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@saleor/app-sdk": patch
3+
---
4+
5+
Marked domain header as deprecated

src/headers.ts

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ const toFloatOrNull = (value: string | string[] | undefined) =>
1717
* Extracts Saleor-specific headers from the response.
1818
*/
1919
export const getSaleorHeaders = (headers: { [name: string]: string | string[] | undefined }) => ({
20+
/**
21+
* @deprecated - use saleorApiUrl
22+
*/
2023
domain: toStringOrUndefined(headers[SALEOR_DOMAIN_HEADER]),
2124
authorizationBearer: toStringOrUndefined(headers[SALEOR_AUTHORIZATION_BEARER_HEADER]),
2225
signature: toStringOrUndefined(headers[SALEOR_SIGNATURE_HEADER]),

0 commit comments

Comments
 (0)