@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.
@@ -2193,6 +2193,9 @@ var warnOnce = (string) => {
2193
2193
  }
2194
2194
  };
2195
2195
 
2196
+ // src/version.ts
2197
+ var LIB_VERSION = "2023.1.3";
2198
+
2196
2199
  // src/storefront.ts
2197
2200
  var StorefrontApiError = class extends Error {
2198
2201
  };
@@ -2230,6 +2233,7 @@ function createStorefrontClient({
2230
2233
  defaultHeaders[STOREFRONT_API_BUYER_IP_HEADER] = buyerIp;
2231
2234
  if (storefrontId)
2232
2235
  defaultHeaders[STOREFRONT_ID_HEADER] = storefrontId;
2236
+ defaultHeaders["user-agent"] = `Hydrogen ${LIB_VERSION}`;
2233
2237
  async function fetchStorefrontApi({
2234
2238
  query,
2235
2239
  mutation,