From 22a04814b00868b1b7e034dadda7cefadc96c1c2 Mon Sep 17 00:00:00 2001 From: maddygoround Date: Fri, 25 Apr 2025 09:27:37 +0530 Subject: [PATCH 1/4] chore: bump version to 3.0.49 and update project filtering logic in requests.ts --- package.json | 4 ++-- src/core/requests.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index e987d271..b1ac4999 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@api.stream/studio-kit", - "version": "3.0.48", + "version": "3.0.49", "description": "Client SDK for building studio experiences with API.stream", "license": "MIT", "private": false, @@ -100,4 +100,4 @@ "env": { "NODE_ENV": "prod" } -} +} \ No newline at end of file diff --git a/src/core/requests.ts b/src/core/requests.ts index e4f3abd1..17ebb334 100644 --- a/src/core/requests.ts +++ b/src/core/requests.ts @@ -9,7 +9,7 @@ * Not every external request is represented here. In some cases * it is simpler to use the API SDK client interface directly. */ -import { LiveApiModel } from '@api.stream/sdk' +import { LayoutApiModel, LiveApiModel } from '@api.stream/sdk' import { Helpers } from '.' import { CoreContext, @@ -150,7 +150,7 @@ export const loadUser = async ( // Take the Vapi Project and hydrate it with Compositor and Lapi project details const projects = await Promise.all( collection.projects - .filter((p) => Boolean(p.metadata?.layoutId)) + .filter((p) => p.metadata?.layoutId && p.metadata?.type === 'sceneless') .map((project) => hydrateProject(project, 'ROLE_HOST' as Role, size, options?.updateLayoutOnly)), ) From 810ee513d7e99cafe2a770c87138f1088e3216cf Mon Sep 17 00:00:00 2001 From: maddygoround Date: Fri, 25 Apr 2025 09:36:24 +0530 Subject: [PATCH 2/4] chore: update cloudflare/wrangler-action to version 3 in deployment workflow --- .github/workflows/deploy-renderer-without-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-renderer-without-publish.yml b/.github/workflows/deploy-renderer-without-publish.yml index e62139d0..8c19a47f 100644 --- a/.github/workflows/deploy-renderer-without-publish.yml +++ b/.github/workflows/deploy-renderer-without-publish.yml @@ -28,7 +28,7 @@ jobs: npm run build -- --sdkversion=${{ steps.package-version.outputs.current-version }}-test npm run build:renderer -- --sdkversion=${{ steps.package-version.outputs.current-version }}-test - - uses: cloudflare/wrangler-action@2.0.0 + - uses: cloudflare/wrangler-action@v3 name: Publish Release with: apiToken: ${{ secrets.CF_API_TOKEN }} From 696975ae344bbc33f56cb984fe6c04855f3d233c Mon Sep 17 00:00:00 2001 From: maddygoround Date: Fri, 25 Apr 2025 09:42:36 +0530 Subject: [PATCH 3/4] chore: specify wrangler version 2.0.0 in deployment workflow --- .github/workflows/deploy-renderer-without-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/deploy-renderer-without-publish.yml b/.github/workflows/deploy-renderer-without-publish.yml index 8c19a47f..f8056596 100644 --- a/.github/workflows/deploy-renderer-without-publish.yml +++ b/.github/workflows/deploy-renderer-without-publish.yml @@ -31,6 +31,7 @@ jobs: - uses: cloudflare/wrangler-action@v3 name: Publish Release with: + wranglerVersion: "2.0.0" apiToken: ${{ secrets.CF_API_TOKEN }} accountId: ${{ secrets.CF_ACCOUNT_ID }} workingDirectory: './build/hosted-renderer' From df09239dd3c6286e7581bf107e0a192b97ee694a Mon Sep 17 00:00:00 2001 From: maddygoround Date: Fri, 25 Apr 2025 15:17:18 +0530 Subject: [PATCH 4/4] chore: remove unused LayoutApiModel import from requests.ts --- src/core/requests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/requests.ts b/src/core/requests.ts index 17ebb334..d2a9a03e 100644 --- a/src/core/requests.ts +++ b/src/core/requests.ts @@ -9,7 +9,7 @@ * Not every external request is represented here. In some cases * it is simpler to use the API SDK client interface directly. */ -import { LayoutApiModel, LiveApiModel } from '@api.stream/sdk' +import { LiveApiModel } from '@api.stream/sdk' import { Helpers } from '.' import { CoreContext,