@decaf-ts/core 0.29.0 → 0.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -6
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +1 -1
- package/dist/core.js.map +1 -1
- package/lib/cjs/index.cjs +3 -3
- package/lib/cjs/migrations/MigrationService.cjs +32 -4
- package/lib/cjs/migrations/MigrationService.cjs.map +1 -1
- package/lib/cjs/migrations/SemverMigrationVersioning.cjs +15 -0
- package/lib/cjs/migrations/SemverMigrationVersioning.cjs.map +1 -1
- package/lib/cjs/migrations/StandardMigrationVersioning.cjs +11 -0
- package/lib/cjs/migrations/StandardMigrationVersioning.cjs.map +1 -1
- package/lib/esm/index.js +3 -3
- package/lib/esm/migrations/MigrationService.js +32 -4
- package/lib/esm/migrations/MigrationService.js.map +1 -1
- package/lib/esm/migrations/SemverMigrationVersioning.js +15 -0
- package/lib/esm/migrations/SemverMigrationVersioning.js.map +1 -1
- package/lib/esm/migrations/StandardMigrationVersioning.js +11 -0
- package/lib/esm/migrations/StandardMigrationVersioning.js.map +1 -1
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/lib/types/migrations/MigrationService.d.cts +13 -0
- package/lib/types/migrations/MigrationService.d.mts +13 -0
- package/lib/types/migrations/MigrationVersioning.d.cts +9 -0
- package/lib/types/migrations/MigrationVersioning.d.mts +9 -0
- package/lib/types/migrations/SemverMigrationVersioning.d.cts +10 -0
- package/lib/types/migrations/SemverMigrationVersioning.d.mts +10 -0
- package/lib/types/migrations/StandardMigrationVersioning.d.cts +1 -0
- package/lib/types/migrations/StandardMigrationVersioning.d.mts +1 -0
- package/package.json +1 -1
|
@@ -5,6 +5,16 @@ export declare class SemverMigrationVersioning implements MigrationVersioning {
|
|
|
5
5
|
isVersionHint(value: string): boolean;
|
|
6
6
|
normalize(reference: string, precedenceHint?: string): string;
|
|
7
7
|
compare(a: string, b: string): number;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the core version (major.minor.patch) of a semver-compliant version.
|
|
10
|
+
* This base is used to rank declared precedence before comparing prerelease
|
|
11
|
+
* identifiers. Versions that are not parsable as semver return `undefined`,
|
|
12
|
+
* causing callers to fall back to identity semantics.
|
|
13
|
+
*
|
|
14
|
+
* @param version The full semver version string.
|
|
15
|
+
* @returns The core version without prerelease/build metadata, or `undefined`.
|
|
16
|
+
*/
|
|
17
|
+
base(version: string): string | undefined;
|
|
8
18
|
gt(a: string, b: string): boolean;
|
|
9
19
|
lte(a: string, b: string): boolean;
|
|
10
20
|
}
|
|
@@ -5,6 +5,16 @@ export declare class SemverMigrationVersioning implements MigrationVersioning {
|
|
|
5
5
|
isVersionHint(value: string): boolean;
|
|
6
6
|
normalize(reference: string, precedenceHint?: string): string;
|
|
7
7
|
compare(a: string, b: string): number;
|
|
8
|
+
/**
|
|
9
|
+
* Returns the core version (major.minor.patch) of a semver-compliant version.
|
|
10
|
+
* This base is used to rank declared precedence before comparing prerelease
|
|
11
|
+
* identifiers. Versions that are not parsable as semver return `undefined`,
|
|
12
|
+
* causing callers to fall back to identity semantics.
|
|
13
|
+
*
|
|
14
|
+
* @param version The full semver version string.
|
|
15
|
+
* @returns The core version without prerelease/build metadata, or `undefined`.
|
|
16
|
+
*/
|
|
17
|
+
base(version: string): string | undefined;
|
|
8
18
|
gt(a: string, b: string): boolean;
|
|
9
19
|
lte(a: string, b: string): boolean;
|
|
10
20
|
}
|
|
@@ -7,6 +7,7 @@ export declare class StandardMigrationVersioning implements MigrationVersioning
|
|
|
7
7
|
isVersionHint(value: string): boolean;
|
|
8
8
|
normalize(reference: string, precedenceHint?: string): string;
|
|
9
9
|
compare(a: string, b: string): number;
|
|
10
|
+
base(version: string): string | undefined;
|
|
10
11
|
gt(a: string, b: string): boolean;
|
|
11
12
|
lte(a: string, b: string): boolean;
|
|
12
13
|
}
|
|
@@ -7,6 +7,7 @@ export declare class StandardMigrationVersioning implements MigrationVersioning
|
|
|
7
7
|
isVersionHint(value: string): boolean;
|
|
8
8
|
normalize(reference: string, precedenceHint?: string): string;
|
|
9
9
|
compare(a: string, b: string): number;
|
|
10
|
+
base(version: string): string | undefined;
|
|
10
11
|
gt(a: string, b: string): boolean;
|
|
11
12
|
lte(a: string, b: string): boolean;
|
|
12
13
|
}
|