@decaf-ts/core 0.29.0 → 0.30.1
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 +2 -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
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.1",
|
|
4
4
|
"description": "Core persistence module for the decaf framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
"repo:setup": "codex exec \"$(cat ./.codex/prompts/repo-setup.md)\nbase_path is ./\"",
|
|
115
115
|
"repo:doc": "codex exec \"$(cat ./.codex/prompts/doc.md) $(cat ./.codex/prompts/bulk-docs.md)\nbase_path is ./\"",
|
|
116
116
|
"repo:tests": "codex exec \"$(cat ./.codex/prompts/bulk-tests.md)\nbase_path is ./ and coverage is 95%\" -s workspace-write",
|
|
117
|
+
"prepare-it-tests": "echo \"prepare-it-tests: no infra to boot\"",
|
|
117
118
|
"repo:readme": "codex exec \"$(cat ./.codex/prompts/update-readme.md)\nbase_path is ./\"",
|
|
118
119
|
"repo:pr": "npm run repo:doc && npm run repo:tests && npm run repo:readme",
|
|
119
120
|
"sync-codex": "./bin/sync-codex.sh"
|