@weaverse/hydrogen 2.7.1-pre.0 → 2.7.1-pre.2

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.
package/dist/index.js CHANGED
@@ -257,7 +257,7 @@ var package_default = {
257
257
  name: "@weaverse/hydrogen",
258
258
  author: "Weaverse Team",
259
259
  description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
260
- version: "2.7.0",
260
+ version: "2.7.1-pre.2",
261
261
  license: "MIT",
262
262
  main: "dist/index.js",
263
263
  typings: "dist/index.d.ts",
@@ -322,12 +322,13 @@ function getWeaverseConfigs(request, env) {
322
322
  WEAVERSE_HOST,
323
323
  PUBLIC_STORE_DOMAIN,
324
324
  PUBLIC_STOREFRONT_API_TOKEN
325
- } = env || typeof process !== "undefined" && process?.env || {};
325
+ } = env || {};
326
+ let envFromProcess = typeof process !== "undefined" && process.env || {};
326
327
  let { weaverseProjectId, weaverseHost, isDesignMode, weaverseVersion, weaverseApiKey } = queries;
327
328
  return {
328
- projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || "",
329
- weaverseHost: weaverseHost || WEAVERSE_HOST || "https://weaverse.io",
330
- weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || "",
329
+ projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || envFromProcess.WEAVERSE_PROJECT_ID || "",
330
+ weaverseHost: weaverseHost || WEAVERSE_HOST || envFromProcess.WEAVERSE_HOST || "https://weaverse.io",
331
+ weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || envFromProcess.WEAVERSE_API_KEY || "",
331
332
  weaverseVersion: weaverseVersion || "",
332
333
  isDesignMode: isDesignMode || false,
333
334
  publicEnv: {
@@ -392,6 +393,7 @@ var WeaverseClient = class {
392
393
  let {
393
394
  strategy = this.storefront.CacheCustom({
394
395
  maxAge: 5,
396
+ sMaxAge: 5,
395
397
  staleWhileRevalidate: 82800
396
398
  }),
397
399
  ...reqInit
package/dist/index.mjs CHANGED
@@ -223,7 +223,7 @@ var package_default = {
223
223
  name: "@weaverse/hydrogen",
224
224
  author: "Weaverse Team",
225
225
  description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
226
- version: "2.7.0",
226
+ version: "2.7.1-pre.2",
227
227
  license: "MIT",
228
228
  main: "dist/index.js",
229
229
  typings: "dist/index.d.ts",
@@ -288,12 +288,13 @@ function getWeaverseConfigs(request, env) {
288
288
  WEAVERSE_HOST,
289
289
  PUBLIC_STORE_DOMAIN,
290
290
  PUBLIC_STOREFRONT_API_TOKEN
291
- } = env || typeof process !== "undefined" && process?.env || {};
291
+ } = env || {};
292
+ let envFromProcess = typeof process !== "undefined" && process.env || {};
292
293
  let { weaverseProjectId, weaverseHost, isDesignMode, weaverseVersion, weaverseApiKey } = queries;
293
294
  return {
294
- projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || "",
295
- weaverseHost: weaverseHost || WEAVERSE_HOST || "https://weaverse.io",
296
- weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || "",
295
+ projectId: weaverseProjectId || WEAVERSE_PROJECT_ID || envFromProcess.WEAVERSE_PROJECT_ID || "",
296
+ weaverseHost: weaverseHost || WEAVERSE_HOST || envFromProcess.WEAVERSE_HOST || "https://weaverse.io",
297
+ weaverseApiKey: weaverseApiKey || WEAVERSE_API_KEY || envFromProcess.WEAVERSE_API_KEY || "",
297
298
  weaverseVersion: weaverseVersion || "",
298
299
  isDesignMode: isDesignMode || false,
299
300
  publicEnv: {
@@ -358,6 +359,7 @@ var WeaverseClient = class {
358
359
  let {
359
360
  strategy = this.storefront.CacheCustom({
360
361
  maxAge: 5,
362
+ sMaxAge: 5,
361
363
  staleWhileRevalidate: 82800
362
364
  }),
363
365
  ...reqInit
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@weaverse/hydrogen",
3
3
  "author": "Weaverse Team",
4
4
  "description": "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
5
- "version": "2.7.1-pre.0",
5
+ "version": "2.7.1-pre.2",
6
6
  "license": "MIT",
7
7
  "main": "dist/index.js",
8
8
  "typings": "dist/index.d.ts",