From d95a8c08525842249dd48d3fde322a2fc436006e Mon Sep 17 00:00:00 2001 From: hta218 Date: Sun, 9 Jun 2024 10:17:33 +0700 Subject: [PATCH 1/4] Update @weaverse/hydrogen to version 3.1.11 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 304674a3..af0b0373 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@shopify/cli-hydrogen": "^8.1.0", "@shopify/hydrogen": "^2024.4.3", "@shopify/remix-oxygen": "^2.0.4", - "@weaverse/hydrogen": "^3.1.10", + "@weaverse/hydrogen": "^3.1.11", "class-variance-authority": "^0.7.0", "clsx": "2.1.1", "cross-env": "7.0.3", From 675907ad8d3b2bf23ffbf343d9b5558f1ee05cbf Mon Sep 17 00:00:00 2001 From: hta218 Date: Sun, 9 Jun 2024 10:17:45 +0700 Subject: [PATCH 2/4] Cleaning up --- app/weaverse/create-weaverse.server.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/app/weaverse/create-weaverse.server.ts b/app/weaverse/create-weaverse.server.ts index 6cf2fbc3..9d50b3c2 100644 --- a/app/weaverse/create-weaverse.server.ts +++ b/app/weaverse/create-weaverse.server.ts @@ -1,6 +1,5 @@ import type { CreateWeaverseClientArgs } from "@weaverse/hydrogen"; import { WeaverseClient } from "@weaverse/hydrogen"; - import { components } from "~/weaverse/components"; import { themeSchema } from "~/weaverse/schema.server"; import type { AppLoadContext } from "@shopify/remix-oxygen"; From ee1777e1ae62f13fb25f41429f2c6a949c02d843 Mon Sep 17 00:00:00 2001 From: hta218 Date: Sun, 9 Jun 2024 10:17:59 +0700 Subject: [PATCH 3/4] Update `AliReviews` loader to include env type in component loader args --- app/sections/ali-reviews/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/sections/ali-reviews/index.tsx b/app/sections/ali-reviews/index.tsx index 9f5be43b..b0a2c325 100644 --- a/app/sections/ali-reviews/index.tsx +++ b/app/sections/ali-reviews/index.tsx @@ -23,13 +23,12 @@ let AliReviewSection = forwardRef( export type AliReviewsLoaderData = Awaited>; -export let loader = async ({ weaverse }: ComponentLoaderArgs) => { +export let loader = async ({ weaverse }: ComponentLoaderArgs<{}, Env>) => { let res = await fetch( "https://widget-hub-api.alireviews.io/api/public/reviews", { method: "GET", headers: { - // @ts-ignore Authorization: `Bearer ${weaverse.env.ALI_REVIEWS_API_KEY}`, "Content-Type": "application/json", }, From 5ed1b661fdc470e0666848bcc10d992e3cdb438a Mon Sep 17 00:00:00 2001 From: hta218 Date: Sun, 9 Jun 2024 10:22:49 +0700 Subject: [PATCH 4/4] Bump package.json version to 2.6.14 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index af0b0373..40cf2a73 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@weaverse/pilot", "private": true, "sideEffects": false, - "version": "2.6.13", + "version": "2.6.14", "type": "module", "author": "Weaverse", "scripts": { @@ -83,4 +83,4 @@ "engines": { "node": ">=18.0.0" } -} +} \ No newline at end of file