@weaverse/hydrogen 2.4.2 → 2.4.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.
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ export { WeaverseImage, useItemInstance, useWeaverse } from '@weaverse/react';
3
3
  import { NavigateFunction } from '@remix-run/react';
4
4
  import { createWithCache, Storefront } from '@shopify/hydrogen';
5
5
  import { LanguageCode, CountryCode, CurrencyCode } from '@shopify/hydrogen/storefront-api-types';
6
- import { LoaderArgs, AppLoadContext } from '@shopify/remix-oxygen';
6
+ import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
7
7
  import React, { ForwardRefExoticComponent } from 'react';
8
8
  import * as _shopify_hydrogen_react_storefront_api_types from '@shopify/hydrogen-react/storefront-api-types';
9
9
 
@@ -55,7 +55,7 @@ declare class WeaverseClient {
55
55
  waitUntil: WeaverseClientArgs['waitUntil'];
56
56
  countries?: WeaverseClientArgs['countries'];
57
57
  constructor(args: WeaverseClientArgs);
58
- fetchWithCache: <T>(url: string, options: FetchWithCacheOptions) => Promise<T>;
58
+ fetchWithCache: <T>(url: string, options?: FetchWithCacheOptions) => Promise<T>;
59
59
  incrementCacheHits: () => Promise<string>;
60
60
  resetCacheHits: () => Promise<void>;
61
61
  loadThemeSettings: (strategy?: AllCacheOptions) => Promise<any>;
@@ -83,7 +83,7 @@ type ComponentLoaderArgs<T = any> = {
83
83
  data: T;
84
84
  weaverse: WeaverseClient;
85
85
  };
86
- interface RouteLoaderArgs extends LoaderArgs {
86
+ interface RouteLoaderArgs extends LoaderFunctionArgs {
87
87
  context: AppLoadContext & {
88
88
  weaverse: WeaverseClient;
89
89
  };
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { WeaverseImage, useItemInstance, useWeaverse } from '@weaverse/react';
3
3
  import { NavigateFunction } from '@remix-run/react';
4
4
  import { createWithCache, Storefront } from '@shopify/hydrogen';
5
5
  import { LanguageCode, CountryCode, CurrencyCode } from '@shopify/hydrogen/storefront-api-types';
6
- import { LoaderArgs, AppLoadContext } from '@shopify/remix-oxygen';
6
+ import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
7
7
  import React, { ForwardRefExoticComponent } from 'react';
8
8
  import * as _shopify_hydrogen_react_storefront_api_types from '@shopify/hydrogen-react/storefront-api-types';
9
9
 
@@ -55,7 +55,7 @@ declare class WeaverseClient {
55
55
  waitUntil: WeaverseClientArgs['waitUntil'];
56
56
  countries?: WeaverseClientArgs['countries'];
57
57
  constructor(args: WeaverseClientArgs);
58
- fetchWithCache: <T>(url: string, options: FetchWithCacheOptions) => Promise<T>;
58
+ fetchWithCache: <T>(url: string, options?: FetchWithCacheOptions) => Promise<T>;
59
59
  incrementCacheHits: () => Promise<string>;
60
60
  resetCacheHits: () => Promise<void>;
61
61
  loadThemeSettings: (strategy?: AllCacheOptions) => Promise<any>;
@@ -83,7 +83,7 @@ type ComponentLoaderArgs<T = any> = {
83
83
  data: T;
84
84
  weaverse: WeaverseClient;
85
85
  };
86
- interface RouteLoaderArgs extends LoaderArgs {
86
+ interface RouteLoaderArgs extends LoaderFunctionArgs {
87
87
  context: AppLoadContext & {
88
88
  weaverse: WeaverseClient;
89
89
  };
package/dist/index.js CHANGED
@@ -255,7 +255,7 @@ var import_hydrogen = require("@shopify/hydrogen");
255
255
 
256
256
  // package.json
257
257
  var package_default = {
258
- version: "2.4.2",
258
+ version: "2.4.3",
259
259
  license: "MIT",
260
260
  main: "dist/index.js",
261
261
  typings: "dist/index.d.ts",
@@ -288,13 +288,13 @@ var package_default = {
288
288
  name: "@weaverse/hydrogen",
289
289
  author: "Weaverse Team",
290
290
  dependencies: {
291
- "@remix-run/react": "^1.19.1",
292
- "@shopify/hydrogen": "^2023.7.13",
293
- "@weaverse/react": "2.4.2",
291
+ "@remix-run/react": "2.1.0",
292
+ "@shopify/hydrogen": "^2023.10.2",
293
+ "@weaverse/react": "2.4.3",
294
294
  "react-error-boundary": "^4.0.11"
295
295
  },
296
296
  devDependencies: {
297
- "@shopify/remix-oxygen": "^1.1.8"
297
+ "@shopify/remix-oxygen": "^2.0.1"
298
298
  }
299
299
  };
300
300
 
@@ -380,7 +380,7 @@ var WeaverseClient = class {
380
380
  projectId: this.configs.projectId
381
381
  };
382
382
  }
383
- fetchWithCache = (url, options) => {
383
+ fetchWithCache = (url, options = {}) => {
384
384
  let cacheKey = [url, options.body];
385
385
  let {
386
386
  strategy = this.storefront.CacheCustom({
package/dist/index.mjs CHANGED
@@ -221,7 +221,7 @@ import { createWithCache } from "@shopify/hydrogen";
221
221
 
222
222
  // package.json
223
223
  var package_default = {
224
- version: "2.4.2",
224
+ version: "2.4.3",
225
225
  license: "MIT",
226
226
  main: "dist/index.js",
227
227
  typings: "dist/index.d.ts",
@@ -254,13 +254,13 @@ var package_default = {
254
254
  name: "@weaverse/hydrogen",
255
255
  author: "Weaverse Team",
256
256
  dependencies: {
257
- "@remix-run/react": "^1.19.1",
258
- "@shopify/hydrogen": "^2023.7.13",
259
- "@weaverse/react": "2.4.2",
257
+ "@remix-run/react": "2.1.0",
258
+ "@shopify/hydrogen": "^2023.10.2",
259
+ "@weaverse/react": "2.4.3",
260
260
  "react-error-boundary": "^4.0.11"
261
261
  },
262
262
  devDependencies: {
263
- "@shopify/remix-oxygen": "^1.1.8"
263
+ "@shopify/remix-oxygen": "^2.0.1"
264
264
  }
265
265
  };
266
266
 
@@ -346,7 +346,7 @@ var WeaverseClient = class {
346
346
  projectId: this.configs.projectId
347
347
  };
348
348
  }
349
- fetchWithCache = (url, options) => {
349
+ fetchWithCache = (url, options = {}) => {
350
350
  let cacheKey = [url, options.body];
351
351
  let {
352
352
  strategy = this.storefront.CacheCustom({
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.4.2",
2
+ "version": "2.4.3",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -32,12 +32,12 @@
32
32
  "name": "@weaverse/hydrogen",
33
33
  "author": "Weaverse Team",
34
34
  "dependencies": {
35
- "@remix-run/react": "^1.19.1",
36
- "@shopify/hydrogen": "^2023.7.13",
37
- "@weaverse/react": "2.4.2",
35
+ "@remix-run/react": "2.1.0",
36
+ "@shopify/hydrogen": "^2023.10.2",
37
+ "@weaverse/react": "2.4.3",
38
38
  "react-error-boundary": "^4.0.11"
39
39
  },
40
40
  "devDependencies": {
41
- "@shopify/remix-oxygen": "^1.1.8"
41
+ "@shopify/remix-oxygen": "^2.0.1"
42
42
  }
43
43
  }