From 589b207821f0063fcba5557d6ed2654204cc8bb4 Mon Sep 17 00:00:00 2001 From: Helen Lin Date: Mon, 14 Aug 2023 12:53:19 -0700 Subject: [PATCH] Update package lock and fix react warning (#1227) * update package lock * fix react warning --- package-lock.json | 60 +++++++++---------- .../demo-store/app/hooks/usePageAnalytics.tsx | 2 +- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/package-lock.json b/package-lock.json index cedbdc6a69..fa669bd22f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -27225,7 +27225,7 @@ }, "packages/cli": { "name": "@shopify/cli-hydrogen", - "version": "5.1.1", + "version": "5.1.2", "license": "MIT", "dependencies": { "@ast-grep/napi": "^0.5.3", @@ -27264,8 +27264,8 @@ }, "peerDependencies": { "@remix-run/react": "1.19.1", - "@shopify/hydrogen-react": "^2023.7.0", - "@shopify/remix-oxygen": "^1.1.2" + "@shopify/hydrogen-react": "^2023.7.1", + "@shopify/remix-oxygen": "^1.1.3" } }, "packages/cli/node_modules/@oclif/core": { @@ -27480,10 +27480,10 @@ }, "packages/create-hydrogen": { "name": "@shopify/create-hydrogen", - "version": "4.2.0", + "version": "4.2.1", "license": "MIT", "dependencies": { - "@shopify/cli-hydrogen": "^5.1.0" + "@shopify/cli-hydrogen": "^5.1.2" }, "bin": { "create-hydrogen": "dist/create-app.js" @@ -27491,10 +27491,10 @@ }, "packages/hydrogen": { "name": "@shopify/hydrogen", - "version": "2023.7.1", + "version": "2023.7.2", "license": "MIT", "dependencies": { - "@shopify/hydrogen-react": "2023.7.0", + "@shopify/hydrogen-react": "2023.7.1", "react": "^18.2.0" }, "devDependencies": { @@ -27530,7 +27530,7 @@ }, "packages/hydrogen-react": { "name": "@shopify/hydrogen-react", - "version": "2023.7.0", + "version": "2023.7.1", "license": "MIT", "dependencies": { "@google/model-viewer": "^1.12.1", @@ -27735,7 +27735,7 @@ }, "packages/remix-oxygen": { "name": "@shopify/remix-oxygen", - "version": "1.1.2", + "version": "1.1.3", "license": "MIT", "dependencies": { "@remix-run/server-runtime": "1.19.1" @@ -27748,14 +27748,14 @@ } }, "templates/demo-store": { - "version": "2.0.1", + "version": "2.0.2", "dependencies": { "@headlessui/react": "^1.7.2", "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", - "@shopify/hydrogen": "^2023.7.1", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/cli-hydrogen": "^5.1.2", + "@shopify/hydrogen": "^2023.7.2", + "@shopify/remix-oxygen": "^1.1.3", "clsx": "^1.2.1", "cross-env": "^7.0.3", "graphql": "^16.6.0", @@ -27802,9 +27802,9 @@ "dependencies": { "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", - "@shopify/hydrogen": "^2023.7.1", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/cli-hydrogen": "^5.1.2", + "@shopify/hydrogen": "^2023.7.2", + "@shopify/remix-oxygen": "^1.1.3", "@total-typescript/ts-reset": "^0.4.2", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", @@ -27833,9 +27833,9 @@ "dependencies": { "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", - "@shopify/hydrogen": "^2023.7.1", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/cli-hydrogen": "^5.1.2", + "@shopify/hydrogen": "^2023.7.2", + "@shopify/remix-oxygen": "^1.1.3", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", "isbot": "^3.6.6", @@ -33029,7 +33029,7 @@ "@shopify/create-hydrogen": { "version": "file:packages/create-hydrogen", "requires": { - "@shopify/cli-hydrogen": "^5.1.0" + "@shopify/cli-hydrogen": "^5.1.2" } }, "@shopify/eslint-plugin": { @@ -33097,7 +33097,7 @@ "version": "file:packages/hydrogen", "requires": { "@shopify/generate-docs": "0.10.7", - "@shopify/hydrogen-react": "2023.7.0", + "@shopify/hydrogen-react": "2023.7.1", "@testing-library/react": "^14.0.0", "happy-dom": "^8.9.0", "react": "^18.2.0", @@ -36398,12 +36398,12 @@ "@remix-run/eslint-config": "1.19.1", "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", + "@shopify/cli-hydrogen": "^5.1.2", "@shopify/eslint-plugin": "^42.0.1", - "@shopify/hydrogen": "^2023.7.1", + "@shopify/hydrogen": "^2023.7.2", "@shopify/oxygen-workers-types": "^3.17.3", "@shopify/prettier-config": "^1.1.2", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/remix-oxygen": "^1.1.3", "@tailwindcss/forms": "^0.5.3", "@tailwindcss/typography": "^0.5.9", "@total-typescript/ts-reset": "^0.4.2", @@ -38532,11 +38532,11 @@ "@remix-run/dev": "1.19.1", "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", - "@shopify/hydrogen": "^2023.7.1", + "@shopify/cli-hydrogen": "^5.1.2", + "@shopify/hydrogen": "^2023.7.2", "@shopify/oxygen-workers-types": "^3.17.3", "@shopify/prettier-config": "^1.1.2", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/remix-oxygen": "^1.1.3", "@total-typescript/ts-reset": "^0.4.2", "@types/eslint": "^8.4.10", "@types/react": "^18.0.20", @@ -43411,11 +43411,11 @@ "@remix-run/dev": "1.19.1", "@remix-run/react": "1.19.1", "@shopify/cli": "3.48.0", - "@shopify/cli-hydrogen": "^5.1.1", - "@shopify/hydrogen": "^2023.7.1", + "@shopify/cli-hydrogen": "^5.1.2", + "@shopify/hydrogen": "^2023.7.2", "@shopify/oxygen-workers-types": "^3.17.3", "@shopify/prettier-config": "^1.1.2", - "@shopify/remix-oxygen": "^1.1.2", + "@shopify/remix-oxygen": "^1.1.3", "@total-typescript/ts-reset": "^0.4.2", "@types/eslint": "^8.4.10", "@types/react": "^18.0.20", diff --git a/templates/demo-store/app/hooks/usePageAnalytics.tsx b/templates/demo-store/app/hooks/usePageAnalytics.tsx index e576a50a27..54cf51c0fb 100644 --- a/templates/demo-store/app/hooks/usePageAnalytics.tsx +++ b/templates/demo-store/app/hooks/usePageAnalytics.tsx @@ -27,5 +27,5 @@ export function usePageAnalytics({hasUserConsent}: {hasUserConsent: boolean}) { ...data, hasUserConsent, } as unknown as ShopifyPageViewPayload; - }, [matches]); + }, [matches, hasUserConsent]); }