@shopify/hydrogen 2023.1.2 → 2023.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2111,6 +2111,9 @@ var warnOnce = (string) => {
2111
2111
  }
2112
2112
  };
2113
2113
 
2114
+ // src/version.ts
2115
+ var LIB_VERSION = "2023.1.3";
2116
+
2114
2117
  // src/storefront.ts
2115
2118
  var StorefrontApiError = class extends Error {
2116
2119
  };
@@ -2148,6 +2151,7 @@ function createStorefrontClient({
2148
2151
  defaultHeaders[STOREFRONT_API_BUYER_IP_HEADER] = buyerIp;
2149
2152
  if (storefrontId)
2150
2153
  defaultHeaders[STOREFRONT_ID_HEADER] = storefrontId;
2154
+ defaultHeaders["user-agent"] = `Hydrogen ${LIB_VERSION}`;
2151
2155
  async function fetchStorefrontApi({
2152
2156
  query,
2153
2157
  mutation,