@trainheroic-unofficial/js 3.5.2 → 3.7.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/dist/node.d.mts CHANGED
@@ -1,13 +1,12 @@
1
1
  import { n as LibrarySnapshot, t as LibraryCache } from "./library-cache-CDABOdIN.mjs";
2
2
  //#region src/node.d.ts
3
3
  /** Default exercise-cache path, overridable with TRAINHEROIC_CACHE_FILE. */
4
- declare function defaultCachePath(): string;
4
+ export declare function defaultCachePath(): string;
5
5
  /** Persists the exercise library to a JSON file. */
6
- declare class JsonFileLibraryCache implements LibraryCache {
6
+ export declare class JsonFileLibraryCache implements LibraryCache {
7
7
  #private;
8
8
  constructor(path?: string);
9
9
  load(): Promise<LibrarySnapshot | null>;
10
10
  save(snapshot: LibrarySnapshot): Promise<void>;
11
11
  }
12
- //#endregion
13
- export { JsonFileLibraryCache, defaultCachePath };
12
+ //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trainheroic-unofficial/js",
3
- "version": "3.5.2",
3
+ "version": "3.7.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,12 +27,12 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "es-toolkit": "^1.52.0",
30
- "zod": "^4.4.3",
31
- "@trainheroic-unofficial/dto": "3.5.2"
30
+ "zod": "^4.6.3",
31
+ "@trainheroic-unofficial/dto": "3.7.1"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/node": "^26.3.0",
35
- "tsdown": "^0.22.14",
34
+ "@types/node": "^26.5.1",
35
+ "tsdown": "^0.23.0",
36
36
  "vitest": "^4.1.11"
37
37
  },
38
38
  "scripts": {