feat(ql3): establish 3.0 incubation baseline

This commit is contained in:
whyour
2026-08-12 00:25:26 +08:00
parent 4bf92dcfeb
commit c699c32461
2817 changed files with 779642 additions and 653 deletions
@@ -0,0 +1,21 @@
export interface PinnedSemverApi {
compare(left: string, right: string): number;
satisfies(
version: string,
range: string,
options?: Readonly<{ includePrerelease: boolean }>,
): boolean;
valid(value: string): string | null;
validRange(value: string): string | null;
}
let loadedSemver: PinnedSemverApi | undefined;
/**
* Returns the production-pinned SemVer implementation without making its
* DefinitelyTyped package part of every QingLong 3.0 builder closure.
*/
export function semver(): PinnedSemverApi {
loadedSemver ??= require('semver') as PinnedSemverApi;
return loadedSemver;
}