Skip to content

Update from World - #9179

Merged
shopify-build-cli[bot] merged 1 commit into
mainfrom
world-mirror/main
Nov 20, 2026
Merged

shopify-build-cli[bot] merged 1 commit into
mainfrom
world-mirror/main

Conversation

@shopify-build-cli

Copy link
Copy Markdown
Contributor

This pull request brings the latest changes from World, the monorepo where Shopify develops this project.

  • Files: 1 added, 9 changed, 0 deleted

Don't push to this branch: the next update replaces it.

Published by the World mirror.

World-Commit: 92042fc5559bc61f08f17eb44358a2f894447498
@shopify-build-cli
shopify-build-cli Bot requested review from a team as code owners November 20, 2026 14:33
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Nov 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Differences in type declarations

We detected differences in the type declarations generated by Typescript for this branch compared to the baseline ('main' branch). Please, review them to ensure they are backward-compatible. Here are some important things to keep in mind:

  • Some seemingly private modules might be re-exported through public modules.
  • If the branch is behind main you might see odd diffs, rebase main into this branch.

New type declarations

We found no new type declarations in this PR

Existing type declarations

packages/cli-kit/dist/private/node/api/graphql.d.ts
@@ -12,4 +12,11 @@ export declare function sanitizeVariables(variables: Variables): string;
  */
 export declare function extractGraphQLErrorMessages(errors: any[] | undefined): string | undefined;
 export declare function errorHandler(api: string): (error: unknown, requestId?: string) => unknown;
+/**
+ * Reads the `x-request-id` header of a failed GraphQL response.
+ *
+ * @param error - The error thrown by graphql-request.
+ * @returns The request ID, or undefined when the response has none.
+ */
+export declare function requestIdFromClientError(error: ClientError): string | undefined;
 export declare function extractGraphQLErrors(error: unknown): NonNullable<ClientError['response']['errors']>;
\ No newline at end of file
packages/cli-kit/dist/public/node/api/admin.d.ts
@@ -1,5 +1,6 @@
 import { GraphQLResponseOptions, GraphQLVariables } from './graphql.js';
 import { AdminSession } from '../session.js';
+import { AbortError } from '../error.js';
 import { RequestModeInput } from '../http.js';
 import { Variables } from 'graphql-request';
 import { TypedDocumentNode } from '@graphql-typed-document-node/core';
@@ -42,6 +43,20 @@ export declare function adminRequestDoc<TResult, TVariables extends Variables>(o
  * @returns - An array of supported API versions.
  */
 export declare function supportedApiVersions(session: AdminSession, preferredBehaviour?: RequestModeInput): Promise<string[]>;
+/**
+ * An Admin API request that failed on the Shopify side, such as an HTTP 5xx. It is an `AbortError`,
+ * so the CLI does not report it as a bug.
+ */
+export declare class AdminServerError extends AbortError {
+    /**
+     * Creates the error with the store, the HTTP status and the request ID in its message.
+     *
+     * @param storeFqdn - The store that the request went to.
+     * @param status - The HTTP status of the response, when it is a 5xx.
+     * @param requestId - The request ID of the response, when it has one.
+     */
+    constructor(storeFqdn: string, status?: number, requestId?: string);
+}
 /**
  * GraphQL query to retrieve all API versions.
  *

@shopify-build-cli
shopify-build-cli Bot merged commit 62187c8 into main Nov 20, 2026
29 checks passed
@shopify-build-cli
shopify-build-cli Bot deleted the world-mirror/main branch November 20, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants