From 96dfc746b7bb3b460bb49755ae5830ed7895d17b Mon Sep 17 00:00:00 2001 From: Raminder Singh Date: Mon, 22 Jun 2026 13:55:55 +0530 Subject: [PATCH] fix: bump stripe sync engine package (#47105) Bumps the Stripe Sync Engine package to version 1.0.32. Note that the package name has also changed from `stripe-experiment-sync` to `@stripe/sync-engine`. Manual tests run on preview: - [x] Install a fresh version of 1.0.32. - [x] Uninstall freshly installed version 1.0.32 - [x] Upgrade from a lower version (1.0.31 tested) - [x] Upgrade to 1.0.32 and uninstall - [x] Confirm that data is being synced --- .../Integrations/Landing/Landing.utils.ts | 2 +- .../StripeSyncEngine/StatusDisplay.tsx | 2 +- .../StripeSyncChangesCard.tsx | 2 +- .../StripeSyncEngine/stripe-sync-status.ts | 2 +- .../StripeSyncEngine/useStripeSyncStatus.ts | 2 +- apps/studio/package.json | 2 +- .../pages/api/integrations/stripe-sync.ts | 4 +- pnpm-lock.yaml | 73 ++++++++----------- 8 files changed, 39 insertions(+), 50 deletions(-) diff --git a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts index 16edbd37d11..873c9a3536e 100644 --- a/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts +++ b/apps/studio/components/interfaces/Integrations/Landing/Landing.utils.ts @@ -1,5 +1,5 @@ +import { parseSchemaComment } from '@stripe/sync-engine/supabase' import { useMemo } from 'react' -import { parseSchemaComment } from 'stripe-experiment-sync/supabase' import { type WrapperMeta } from '../Wrappers/Wrappers.types' import { wrapperMetaComparator } from '../Wrappers/Wrappers.utils' diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StatusDisplay.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StatusDisplay.tsx index 488845d21c8..85bb055f2b5 100644 --- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StatusDisplay.tsx +++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StatusDisplay.tsx @@ -1,5 +1,5 @@ +import { SchemaInstallationStatus } from '@stripe/sync-engine/supabase' import { AlertCircle, Check, RefreshCwIcon } from 'lucide-react' -import { SchemaInstallationStatus } from 'stripe-experiment-sync/supabase' import { hasInstallError, diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx index a0bb8094a39..4e15dbd1740 100644 --- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx +++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/StripeSyncChangesCard.tsx @@ -1,6 +1,6 @@ +import { SchemaInstallationStatus } from '@stripe/sync-engine/supabase' import { EdgeFunctions } from 'icons' import { Layers, Loader2, Table } from 'lucide-react' -import { SchemaInstallationStatus } from 'stripe-experiment-sync/supabase' import { Card, CardContent, cn } from 'ui' import { diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/stripe-sync-status.ts b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/stripe-sync-status.ts index dc5c8c3eb1f..2435e67f208 100644 --- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/stripe-sync-status.ts +++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/stripe-sync-status.ts @@ -1,4 +1,4 @@ -import { SchemaInstallationStatus, StripeSchemaComment } from 'stripe-experiment-sync/supabase' +import { SchemaInstallationStatus, StripeSchemaComment } from '@stripe/sync-engine/supabase' import type { StripeSyncState, diff --git a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/useStripeSyncStatus.ts b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/useStripeSyncStatus.ts index afcffdc5029..d627b929781 100644 --- a/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/useStripeSyncStatus.ts +++ b/apps/studio/components/interfaces/Integrations/templates/StripeSyncEngine/useStripeSyncStatus.ts @@ -1,5 +1,5 @@ +import { getCurrentVersion, parseSchemaComment } from '@stripe/sync-engine/supabase' import { useEffect } from 'react' -import { getCurrentVersion, parseSchemaComment } from 'stripe-experiment-sync/supabase' import { findStripeSchema, diff --git a/apps/studio/package.json b/apps/studio/package.json index ab3291b1c58..5c1c9f7e86b 100644 --- a/apps/studio/package.json +++ b/apps/studio/package.json @@ -135,7 +135,7 @@ "sql-formatter": "^15.0.0", "sqlstring": "^2.3.2", "streamdown": "^1.3.0", - "stripe-experiment-sync": "1.0.31", + "@stripe/sync-engine": "1.0.32", "swiper": "^12.1.2", "tus-js-client": "^4.1.0", "ui": "workspace:*", diff --git a/apps/studio/pages/api/integrations/stripe-sync.ts b/apps/studio/pages/api/integrations/stripe-sync.ts index c55cd743ee8..29dab03e3a8 100644 --- a/apps/studio/pages/api/integrations/stripe-sync.ts +++ b/apps/studio/pages/api/integrations/stripe-sync.ts @@ -1,7 +1,7 @@ +import { VERSION } from '@stripe/sync-engine' +import { install, uninstall } from '@stripe/sync-engine/supabase' import { waitUntil } from '@vercel/functions' import { NextApiRequest, NextApiResponse } from 'next' -import { VERSION } from 'stripe-experiment-sync' -import { install, uninstall } from 'stripe-experiment-sync/supabase' import { z } from 'zod' const InstallBodySchema = z.object({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index d3b1e77cd91..673021e2845 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -937,6 +937,9 @@ importers: '@stripe/stripe-js': specifier: 9.1.0 version: 9.1.0 + '@stripe/sync-engine': + specifier: 1.0.32 + version: 1.0.32(@types/node@22.13.14)(supports-color@8.1.1) '@supabase/auth-js': specifier: 'catalog:' version: 2.108.2 @@ -1168,9 +1171,6 @@ importers: streamdown: specifier: ^1.3.0 version: 1.3.0(@types/react@19.2.14)(react@19.2.6)(supports-color@8.1.1) - stripe-experiment-sync: - specifier: 1.0.31 - version: 1.0.31(@types/node@22.13.14)(supports-color@8.1.1) swiper: specifier: ^12.1.2 version: 12.1.2 @@ -7733,6 +7733,10 @@ packages: resolution: {integrity: sha512-v51LoEfZNiNS/5DcarWPCYgn24w4dqwwALR4GTbMW/N0DDzzj4DgYNoixX6PYvpt6uIJMucGUabn/BHhylggIQ==} engines: {node: '>=12.16'} + '@stripe/sync-engine@1.0.32': + resolution: {integrity: sha512-c1Ht5A7Jl0UWDwDr9tzIcpusr3B02l868UT3qgSuFuwVoTyvnX+G8h4n6rJ9hTKD07ktKA2MLL8KnXt1S1wUzA==} + hasBin: true + '@supabase-labs/y-supabase@0.1.0': resolution: {integrity: sha512-1ItaKbcImgy7ueYfJcyVYihqCKi9RAee9MKBV8wcCqSMNsrWvw4ibhW8ai91kWsewsiWzIDXVPONgcUcxagk9g==} @@ -10661,10 +10665,6 @@ packages: resolution: {integrity: sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==} engines: {node: '>=12'} - dotenv@17.2.3: - resolution: {integrity: sha512-JVUnt+DUIzu87TABbhPmNfVdBDt18BLOWjMUFJMSi/Qqg7NTYtabbvSNJGOJ7afbRuv9D/lngizHtP7QyLQ+9w==} - engines: {node: '>=12'} - dotenv@17.4.2: resolution: {integrity: sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==} engines: {node: '>=12'} @@ -16374,10 +16374,6 @@ packages: strip-literal@3.1.0: resolution: {integrity: sha512-8r3mkIM/2+PpjHoOtiAW8Rg3jJLHaV7xPwG+YRGrv6FP0wwk/toTpATxWYOW0BKdWwl82VT2tFYi5DlROa0Mxg==} - stripe-experiment-sync@1.0.31: - resolution: {integrity: sha512-v37KFbFB4kpnJYkPxBXvxxsw/i+6GiF+U/5cH3TgZ8GdnHHt8WlykZQOdzhZlJlqZSeLfRC4ditD5CIQK76Qeg==} - hasBin: true - stripe@17.7.0: resolution: {integrity: sha512-aT2BU9KkizY9SATf14WhhYVv2uOapBWX0OFWF4xvcj1mPaNotlSc2CsxpS4DS46ZueSppmCF5BX1sNYBtwBvfw==} engines: {node: '>=12.*'} @@ -17847,9 +17843,6 @@ packages: zod@3.25.76: resolution: {integrity: sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==} - zod@4.3.6: - resolution: {integrity: sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==} - zod@4.4.3: resolution: {integrity: sha512-ytENFjIJFl2UwYglde2jchW2Hwm4GJFLDiSXWdTrJQBIN9Fcyp7n4DhxJEiWNAJMV1/BqWfW/kkg71UDcHJyTQ==} @@ -19141,7 +19134,7 @@ snapshots: '@dotenvx/dotenvx@1.51.0': dependencies: commander: 11.1.0 - dotenv: 17.2.3 + dotenv: 17.4.2 eciesjs: 0.4.15 execa: 5.1.1 fdir: 6.5.0(picomatch@4.0.4) @@ -23993,6 +23986,28 @@ snapshots: '@stripe/stripe-js@9.1.0': {} + '@stripe/sync-engine@1.0.32(@types/node@22.13.14)(supports-color@8.1.1)': + dependencies: + '@ngrok/ngrok': 1.6.0 + chalk: 5.4.1 + commander: 12.1.0 + dotenv: 16.5.0 + express: 4.22.1(supports-color@8.1.1) + inquirer: 12.11.1(@types/node@22.13.14) + papaparse: 5.4.1 + pg: 8.16.3 + stripe: 17.7.0 + supabase-management-js: 2.0.2 + ws: 8.21.0 + yesql: 7.0.0 + transitivePeerDependencies: + - '@types/node' + - bufferutil + - debug + - pg-native + - supports-color + - utf-8-validate + '@supabase-labs/y-supabase@0.1.0': dependencies: '@supabase/supabase-js': 2.108.2 @@ -27295,8 +27310,6 @@ snapshots: dotenv@16.5.0: {} - dotenv@17.2.3: {} - dotenv@17.4.2: {} drange@1.1.1: {} @@ -34604,28 +34617,6 @@ snapshots: dependencies: js-tokens: 9.0.1 - stripe-experiment-sync@1.0.31(@types/node@22.13.14)(supports-color@8.1.1): - dependencies: - '@ngrok/ngrok': 1.6.0 - chalk: 5.4.1 - commander: 12.1.0 - dotenv: 16.5.0 - express: 4.22.1(supports-color@8.1.1) - inquirer: 12.11.1(@types/node@22.13.14) - papaparse: 5.4.1 - pg: 8.16.3 - stripe: 17.7.0 - supabase-management-js: 2.0.2 - ws: 8.21.0 - yesql: 7.0.0 - transitivePeerDependencies: - - '@types/node' - - bufferutil - - debug - - pg-native - - supports-color - - utf-8-validate - stripe@17.7.0: dependencies: '@types/node': 22.13.14 @@ -34679,7 +34670,7 @@ snapshots: supabase-management-js@2.0.2: dependencies: axios: 1.16.0 - zod: 4.3.6 + zod: 4.4.3 transitivePeerDependencies: - debug @@ -36173,8 +36164,6 @@ snapshots: zod@3.25.76: {} - zod@4.3.6: {} - zod@4.4.3: {} zustand@4.4.7(@types/react@19.2.14)(immer@10.1.1)(react@19.2.6):