Skip to content

Commit bbd2f9d

Browse files
committed
Use generated types in embedded update mutations
1 parent 67f4b6c commit bbd2f9d

3 files changed

Lines changed: 20 additions & 25 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,19 @@ This is the log of notable changes to EAS CLI and related packages.
88

99
### 🎉 New features
1010

11-
- [eas-cli] Add `eas update:upload-embedded` command to upload the JS bundle embedded in a native build so EAS Update can generate bsdiff patches against it. ([#3699](https://github.com/expo/eas-cli/pull/3699) by [@gwdp](https://github.com/gwdp))
11+
- [eas-cli] Add `eas update:upload-embedded` command to upload the JS bundle embedded in a native build so EAS Update can generate bsdiff patches against it. ([#3720](https://github.com/expo/eas-cli/pull/3720) by [@gwdp](https://github.com/gwdp))
1212

1313
### 🐛 Bug fixes
1414

1515
### 🧹 Chores
1616

17+
## [19.0.1](https://github.com/expo/eas-cli/releases/tag/v19.0.1) - 2026-05-19
18+
19+
### 🐛 Bug fixes
20+
21+
- [eas-cli] Disable dotenv loading when resolving managed iOS entitlements. ([#3752](https://github.com/expo/eas-cli/pull/3752) by [@sjchmiela](https://github.com/sjchmiela))
22+
- [eas-cli] Restore the bundled config fallback for managed iOS entitlements introspection. ([#3753](https://github.com/expo/eas-cli/pull/3753) by [@sjchmiela](https://github.com/sjchmiela))
23+
1724
## [19.0.0](https://github.com/expo/eas-cli/releases/tag/v19.0.0) - 2026-05-19
1825

1926
### 🛠 Breaking changes

packages/eas-cli/src/graphql/mutations/EmbeddedUpdateAssetMutation.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import gql from 'graphql-tag';
22

33
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
4+
import {
5+
GetSignedEmbeddedUpdateAssetUploadSpecMutation,
6+
GetSignedEmbeddedUpdateAssetUploadSpecMutationVariables,
7+
} from '../generated';
48
import { withErrorHandlingAsync } from '../client';
59

610
export type EmbeddedUpdateAssetUploadSpec = {
@@ -9,12 +13,6 @@ export type EmbeddedUpdateAssetUploadSpec = {
913
fields: Record<string, string>;
1014
};
1115

12-
type GetSignedEmbeddedUploadSpecMutationResult = {
13-
embeddedUpdateAsset: {
14-
getSignedEmbeddedUpdateAssetUploadSpecifications: EmbeddedUpdateAssetUploadSpec;
15-
};
16-
};
17-
1816
export const EmbeddedUpdateAssetMutation = {
1917
async getSignedUploadSpecAsync(
2018
graphqlClient: ExpoGraphqlClient,
@@ -26,7 +24,7 @@ export const EmbeddedUpdateAssetMutation = {
2624
): Promise<EmbeddedUpdateAssetUploadSpec> {
2725
const data = await withErrorHandlingAsync(
2826
graphqlClient
29-
.mutation<GetSignedEmbeddedUploadSpecMutationResult>(
27+
.mutation<GetSignedEmbeddedUpdateAssetUploadSpecMutation, GetSignedEmbeddedUpdateAssetUploadSpecMutationVariables>(
3028
gql`
3129
mutation GetSignedEmbeddedUpdateAssetUploadSpec(
3230
$appId: ID!

packages/eas-cli/src/graphql/mutations/EmbeddedUpdateMutation.ts

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@ import { CombinedError } from '@urql/core';
22
import gql from 'graphql-tag';
33

44
import { ExpoGraphqlClient } from '../../commandUtils/context/contextUtils/createGraphqlClient';
5-
import { AppPlatform } from '../generated';
5+
import {
6+
AppPlatform,
7+
UploadEmbeddedUpdateInput,
8+
UploadEmbeddedUpdateMutation,
9+
UploadEmbeddedUpdateMutationVariables,
10+
} from '../generated';
611
import { withErrorHandlingAsync } from '../client';
712

813
export type EmbeddedUpdateResult = {
@@ -13,21 +18,6 @@ export type EmbeddedUpdateResult = {
1318
createdAt: string;
1419
};
1520

16-
type UploadEmbeddedUpdateInput = {
17-
appId: string;
18-
platform: AppPlatform;
19-
runtimeVersion: string;
20-
channel: string;
21-
embeddedUpdateId: string;
22-
turtleBuildId?: string;
23-
};
24-
25-
type UploadEmbeddedUpdateMutationResult = {
26-
embeddedUpdate: {
27-
uploadEmbeddedUpdate: EmbeddedUpdateResult;
28-
};
29-
};
30-
3121
export function isEmbeddedUpdateAssetNotAvailableError(error: unknown): boolean {
3222
return (
3323
error instanceof CombinedError &&
@@ -44,7 +34,7 @@ export const EmbeddedUpdateMutation = {
4434
): Promise<EmbeddedUpdateResult> {
4535
const data = await withErrorHandlingAsync(
4636
graphqlClient
47-
.mutation<UploadEmbeddedUpdateMutationResult>(
37+
.mutation<UploadEmbeddedUpdateMutation, UploadEmbeddedUpdateMutationVariables>(
4838
gql`
4939
mutation UploadEmbeddedUpdate($input: UploadEmbeddedUpdateInput!) {
5040
embeddedUpdate {

0 commit comments

Comments
 (0)