From c67728d8aed721315fe66d8399fe1cd222b16dcb Mon Sep 17 00:00:00 2001 From: Polina Fedorenko Date: Thu, 11 Jun 2026 10:16:02 +0200 Subject: [PATCH] sign commit --- .changeset/lively-otters-wander.md | 19 ------------------- packages/app-bridge-app/CHANGELOG.md | 20 ++++++++++++++++++++ packages/app-bridge-app/package.json | 2 +- 3 files changed, 21 insertions(+), 20 deletions(-) delete mode 100644 .changeset/lively-otters-wander.md diff --git a/.changeset/lively-otters-wander.md b/.changeset/lively-otters-wander.md deleted file mode 100644 index 67510bd59..000000000 --- a/.changeset/lively-otters-wander.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@frontify/app-bridge-app": minor ---- - -feat(api): add `executeGraphQlWithFullResponse` and deprecate `executeGraphQl` - -`executeGraphQl` resolves only the `data` field of the GraphQL response, so the top-level `errors` array is not accessible to the app. The new `executeGraphQlWithFullResponse` method resolves the full response envelope, including `errors`. `executeGraphQl` is now deprecated. - -```ts -const response = await appBridge.api({ - name: 'executeGraphQlWithFullResponse', - payload: { - query: `query CurrentUser { currentUser { id email } }`, - }, -}); - -// response now includes both `data` and any top-level `errors` -const { data, errors } = response; -``` diff --git a/packages/app-bridge-app/CHANGELOG.md b/packages/app-bridge-app/CHANGELOG.md index 91996e236..345011c10 100644 --- a/packages/app-bridge-app/CHANGELOG.md +++ b/packages/app-bridge-app/CHANGELOG.md @@ -1,5 +1,25 @@ # @frontify/app-bridge-app +## 0.3.0 + +### Minor Changes + +- [#1596](https://github.com/Frontify/brand-sdk/pull/1596) [`2d76186`](https://github.com/Frontify/brand-sdk/commit/2d76186b3a2e8376ed8c737f11cdbc410d4f0b0b) Thanks [@SedukhinaPolina](https://github.com/SedukhinaPolina)! - feat(api): add `executeGraphQlWithFullResponse` and deprecate `executeGraphQl` + + `executeGraphQl` resolves only the `data` field of the GraphQL response, so the top-level `errors` array is not accessible to the app. The new `executeGraphQlWithFullResponse` method resolves the full response envelope, including `errors`. `executeGraphQl` is now deprecated. + + ```ts + const response = await appBridge.api({ + name: 'executeGraphQlWithFullResponse', + payload: { + query: `query CurrentUser { currentUser { id email } }`, + }, + }); + + // response now includes both `data` and any top-level `errors` + const { data, errors } = response; + ``` + ## 0.2.5 ### Patch Changes diff --git a/packages/app-bridge-app/package.json b/packages/app-bridge-app/package.json index 79e8634f4..77313aec6 100644 --- a/packages/app-bridge-app/package.json +++ b/packages/app-bridge-app/package.json @@ -1,7 +1,7 @@ { "name": "@frontify/app-bridge-app", "type": "module", - "version": "0.2.5", + "version": "0.3.0", "description": "Package to establish communication between Frontify and apps", "author": "Frontify Developers ", "repository": {