Skip to content

Update from World - #9236

Merged
shopify-build-cli[bot] merged 1 commit into
mainfrom
world-mirror/main
Dec 4, 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, 5 changed, 0 deleted

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

Published by the World mirror.

World-Commit: b5a972eb57ce874c949ef3ba4cddc5f551a24d96
@shopify-build-cli
shopify-build-cli Bot requested a review from a team as a code owner December 4, 2026 21:23
@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026

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/cli-version-cache.d.ts
@@ -1,8 +1,17 @@
 import { PackageVersionKey } from './conf-store.js';
 export declare function resolveCLIRegistry(): Promise<string>;
 export declare function getCLIVersionCacheKey(registry: string, versionRange?: string): PackageVersionKey;
+/**
+ * The cache key for the upgrade target in `versionRange`: the newest release there whose `engines` admit the running
+ * Node. It names the running Node, because a target picked under one Node can exclude another, and older CLIs cache a
+ * target picked without that check under the same key without it.
+ */
+export declare function getCLIUpgradeTargetCacheKey(registry: string, versionRange: string): PackageVersionKey;
 export declare function getCLINodeRangeCacheKey(registry: string): PackageVersionKey;
 export declare function getPublicCLIVersionCacheKey(registry: string, versionRange?: string): PackageVersionKey;
+/**
+ * A fresh cached version: the latest release, or, with a range, the upgrade target in it for the running Node.
+ */
 export declare function getCachedCLIVersion(versionRange?: string, registry?: string | undefined): string | undefined;
 /**
  * The cache entry for the Node range in a release's `engines`. It names the release, because other lookups refresh
@@ -18,6 +27,11 @@ export declare function cliNodeRangeCacheValue(version: string, nodeRange: strin
  * Undefined when the release declares none, or when nothing fresh is cached for it.
  */
 export declare function getCachedCLINodeRange(version: string, registry?: string | undefined): string | undefined;
+/**
+ * Whether the version lookup cached a fresh entry for the Node range of `version`, including one saying it declares
+ * none. Other lookups, such as older CLIs', cache a latest version without it.
+ */
+export declare function hasCachedCLINodeRange(version: string, registry?: string | undefined): boolean;
 /**
  * Whether a release whose `engines.node` is `nodeRange` supports the running Node. A release that declares no range
  * supports it.
packages/cli-kit/dist/private/node/cli-version-check.d.ts
@@ -9,7 +9,13 @@ export declare function getCachedCurrentMajorCLIVersion(): string | undefined;
  * The Node range in the `engines` of the cached latest release, when the version lookup cached one for it.
  */
 export declare function getCachedLatestCLINodeRange(): string | undefined;
-export declare function checkForCLIVersions({ includeCurrentMajor }?: {
+/**
+ * Whether the version lookup cached the Node range of the cached latest release, including that it declares none, so
+ * its `engines` can be checked against the running Node.
+ */
+export declare function hasCachedLatestCLINodeRange(): boolean;
+export declare function checkForCLIVersions({ includeCurrentMajor, refresh }?: {
     includeCurrentMajor?: boolean | undefined;
+    refresh?: boolean | undefined;
 }): Promise<CLIVersions>;
 export {};
\ No newline at end of file

@shopify-build-cli
shopify-build-cli Bot merged commit 497239c into main Dec 4, 2026
28 checks passed
@shopify-build-cli
shopify-build-cli Bot deleted the world-mirror/main branch December 4, 2026 22:07
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