Compare commits

...
3 Commits
Author SHA1 Message Date
Dominik Sokal 7d6bdbb6ed v0.8.1 2021-04-06 12:30:31 +02:00
Dominik Sokal 403b5c237f don't use graphql cache for polling builds (#310)
* don't use graphql cache for polling builds

* update CHANGELOG
2021-04-06 12:29:41 +02:00
Dominik Sokal 2367ed7911 update CHANGELOG.md 2021-04-06 11:21:13 +02:00
6 changed files with 40 additions and 22 deletions

No files matched your search

+12
View File
@@ -6,6 +6,18 @@ This is the log of notable changes to EAS CLI and related packages.
### 🛠 Breaking changes
### 🎉 New features
### 🐛 Bug fixes
- Fix the issue where the build status never got updated when running `eas build`. ([#310](https://github.com/expo/eas-cli/pull/310) by [@dsokal](https://github.com/dsokal))
### 🧹 Chores
## [0.8.0](https://github.com/expo/eas-cli/releases/tag/v0.8.0) - 2021-04-06
### 🛠 Breaking changes
- Change the way of disabling cache - add `cache.disabled` field. ([#295](https://github.com/expo/eas-cli/pull/295) by [@dsokal](https://github.com/dsokal))
- `secrets:create` now uses flags rather than positional arguments ([#300](https://github.com/expo/eas-cli/pull/300) by [@fiberjw](https://github.com/fiberjw))
- `secrets:create`'s `target` arg is now called `scope` ([#300](https://github.com/expo/eas-cli/pull/300) by [@fiberjw](https://github.com/fiberjw))
+1 -1
View File
@@ -1,5 +1,5 @@
{
"npmClient": "yarn",
"useWorkspaces": true,
"version": "0.8.0"
"version": "0.8.1"
}
+17 -17
View File
@@ -64,7 +64,7 @@ ALIASES
$ eas login
```
_See code: [build/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/account/login.ts)_
_See code: [build/commands/account/login.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/account/login.ts)_
## `eas account:logout`
@@ -78,7 +78,7 @@ ALIASES
$ eas logout
```
_See code: [build/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/account/logout.ts)_
_See code: [build/commands/account/logout.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/account/logout.ts)_
## `eas account:view`
@@ -92,7 +92,7 @@ ALIASES
$ eas whoami
```
_See code: [build/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/account/view.ts)_
_See code: [build/commands/account/view.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/account/view.ts)_
## `eas analytics [STATUS]`
@@ -103,7 +103,7 @@ USAGE
$ eas analytics [STATUS]
```
_See code: [build/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/analytics.ts)_
_See code: [build/commands/analytics.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/analytics.ts)_
## `eas build`
@@ -122,7 +122,7 @@ OPTIONS
--[no-]wait Wait for build(s) to complete
```
_See code: [build/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/build/index.ts)_
_See code: [build/commands/build/index.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/build/index.ts)_
## `eas build:cancel [BUILD_ID]`
@@ -133,7 +133,7 @@ USAGE
$ eas build:cancel [BUILD_ID]
```
_See code: [build/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/build/cancel.ts)_
_See code: [build/commands/build/cancel.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/build/cancel.ts)_
## `eas build:configure`
@@ -148,7 +148,7 @@ OPTIONS
--allow-experimental Enable experimental configuration steps.
```
_See code: [build/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/build/configure.ts)_
_See code: [build/commands/build/configure.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/build/configure.ts)_
## `eas build:list`
@@ -164,7 +164,7 @@ OPTIONS
--status=(in-queue|in-progress|errored|finished|canceled)
```
_See code: [build/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/build/list.ts)_
_See code: [build/commands/build/list.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/build/list.ts)_
## `eas build:view [BUILD_ID]`
@@ -175,7 +175,7 @@ USAGE
$ eas build:view [BUILD_ID]
```
_See code: [build/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/build/view.ts)_
_See code: [build/commands/build/view.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/build/view.ts)_
## `eas credentials`
@@ -186,7 +186,7 @@ USAGE
$ eas credentials
```
_See code: [build/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/credentials.ts)_
_See code: [build/commands/credentials.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/credentials.ts)_
## `eas device:create`
@@ -197,7 +197,7 @@ USAGE
$ eas device:create
```
_See code: [build/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/device/create.ts)_
_See code: [build/commands/device/create.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/device/create.ts)_
## `eas device:list`
@@ -211,7 +211,7 @@ OPTIONS
--apple-team-id=apple-team-id
```
_See code: [build/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/device/list.ts)_
_See code: [build/commands/device/list.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/device/list.ts)_
## `eas device:view [UDID]`
@@ -222,7 +222,7 @@ USAGE
$ eas device:view [UDID]
```
_See code: [build/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/device/view.ts)_
_See code: [build/commands/device/view.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/device/view.ts)_
## `eas help [COMMAND]`
@@ -255,7 +255,7 @@ OPTIONS
--value=value Value of the secret
```
_See code: [build/commands/secrets/create.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/secrets/create.ts)_
_See code: [build/commands/secrets/create.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/secrets/create.ts)_
## `eas secrets:delete ID`
@@ -272,7 +272,7 @@ DESCRIPTION
Unsure where to find the secret's ID? Run eas secrets:list
```
_See code: [build/commands/secrets/delete.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/secrets/delete.ts)_
_See code: [build/commands/secrets/delete.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/secrets/delete.ts)_
## `eas secrets:list`
@@ -283,7 +283,7 @@ USAGE
$ eas secrets:list
```
_See code: [build/commands/secrets/list.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/secrets/list.ts)_
_See code: [build/commands/secrets/list.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/secrets/list.ts)_
## `eas submit --platform=(android|ios)`
@@ -363,5 +363,5 @@ EXAMPLES
and provide its App ID
```
_See code: [build/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.8.0/build/commands/submit.ts)_
_See code: [build/commands/submit.ts](https://github.com/expo/eas-cli/blob/v0.8.1/build/commands/submit.ts)_
<!-- commandsstop -->
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "eas-cli",
"description": "EAS command line tool",
"version": "0.8.0",
"version": "0.8.1",
"author": "Expo <[email protected]>",
"bin": {
"eas": "./bin/run"
+1 -1
View File
@@ -76,7 +76,7 @@ async function waitForBuildEndAsync(
const builds: (BuildFragment | null)[] = await Promise.all(
buildIds.map(async buildId => {
try {
return await BuildQuery.byIdAsync(buildId);
return await BuildQuery.byIdAsync(buildId, { useCache: false });
} catch (err) {
return null;
}
@@ -26,7 +26,10 @@ type Filters = {
type PendingBuildQueryResult = Pick<Build, 'id' | 'platform'>;
export const BuildQuery = {
async byIdAsync(buildId: string): Promise<BuildFragment> {
async byIdAsync(
buildId: string,
{ useCache = true }: { useCache?: boolean } = {}
): Promise<BuildFragment> {
const data = await withErrorHandlingAsync(
graphqlClient
.query<BuildsByIdQuery, BuildsByIdQueryVariables>(
@@ -41,7 +44,10 @@ export const BuildQuery = {
}
${print(BuildFragmentNode)}
`,
{ buildId }
{ buildId },
{
requestPolicy: useCache ? 'cache-first' : 'network-only',
}
)
.toPromise()
);