Repository navigation
Update from World - #9236
Merged
Merged
Update from World#9236
Conversation
Published by the World mirror. World-Commit: b5a972eb57ce874c949ef3ba4cddc5f551a24d96
Contributor
Differences in type declarationsWe 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:
New type declarationsWe found no new type declarations in this PR Existing type declarationspackages/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
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request brings the latest changes from World, the monorepo where Shopify develops this project.
Don't push to this branch: the next update replaces it.