Repository navigation
Update from World - #9230
Merged
Merged
Update from World#9230
Conversation
Published by the World mirror. World-Commit: b30dc9c590ea450fc4da4fa1702f8e062a2fac6a
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,5 +1,25 @@
import { PackageVersionKey } from './conf-store.js';
export declare function resolveCLIRegistry(): Promise<string>;
export declare function getCLIVersionCacheKey(registry: string, versionRange?: string): PackageVersionKey;
+export declare function getCLINodeRangeCacheKey(registry: string): PackageVersionKey;
export declare function getPublicCLIVersionCacheKey(registry: string, versionRange?: string): PackageVersionKey;
-export declare function getCachedCLIVersion(versionRange?: string, registry?: string | undefined): string | undefined;
\ No newline at end of file
+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
+ * the latest version on their own and must not inherit another release's range.
+ *
+ * @param version - The release the range belongs to.
+ * @param nodeRange - Its `engines.node`, if it declares one.
+ * @returns The value to cache under {@link getCLINodeRangeCacheKey}.
+ */
+export declare function cliNodeRangeCacheValue(version: string, nodeRange: string | undefined): string;
+/**
+ * The Node range in the `engines` of `version`, from a fresh entry the version lookup cached for that release.
+ * 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 a release whose `engines.node` is `nodeRange` supports the running Node. A release that declares no range
+ * supports it.
+ */
+export declare function supportsRunningNode(nodeRange: string | undefined): boolean;
\ No newline at end of file
packages/cli-kit/dist/private/node/cli-version-check.d.ts@@ -1,8 +1,14 @@
interface CLIVersions {
latest?: string;
currentMajor?: string;
+ /** The Node range in the latest release's `engines`, when it declares one. */
+ latestNodeRange?: string;
}
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 }?: {
includeCurrentMajor?: boolean | undefined;
}): Promise<CLIVersions>;
|
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.