@tsdoctor/snapshot 0.5.6 → 0.5.8

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.
@@ -2,7 +2,7 @@ import { hashContent } from "./content-hash.js";
2
2
  import { Context, Data, Effect, Layer, Option } from "effect";
3
3
  import { Store } from "@effected/store";
4
4
 
5
- //#region src/SnapshotService.ts
5
+ // src/SnapshotService.ts
6
6
  /**
7
7
  * Raised when a snapshot database operation fails.
8
8
  *
@@ -197,5 +197,4 @@ const serviceImpl = () => Layer.effect(SnapshotService, Effect.gen(function* ()
197
197
  };
198
198
  }));
199
199
 
200
- //#endregion
201
200
  export { SnapshotDbError, SnapshotService };
package/content-hash.js CHANGED
@@ -2,7 +2,7 @@ import { createHash } from "node:crypto";
2
2
  import { JsoncFingerprint } from "@effected/jsonc";
3
3
  import { Result } from "effect";
4
4
 
5
- //#region src/content-hash.ts
5
+ // src/content-hash.ts
6
6
  /**
7
7
  * Normalizes content string for consistent hashing.
8
8
  *
@@ -161,5 +161,4 @@ function hashFrontmatter(frontmatter) {
161
161
  return createHash("sha256").update(canonical.success).digest("hex");
162
162
  }
163
163
 
164
- //#endregion
165
164
  export { hashContent, hashFrontmatter, normalizeContent };
package/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { StoreError, StoreMigrationError } from "@effected/store";
2
2
  import { Context, Effect, Layer, Option } from "effect";
3
- //#region src/content-hash.d.ts
4
3
  /**
5
4
  * Normalizes content string for consistent hashing.
6
5
  *
@@ -74,8 +73,6 @@ export declare function hashContent(content: string): string;
74
73
  * @public
75
74
  */
76
75
  export declare function hashFrontmatter(frontmatter: Record<string, unknown>): string;
77
- //#endregion
78
- //#region src/SnapshotService.d.ts
79
76
  /**
80
77
  * A tracked snapshot of one generated file: its content/frontmatter hashes
81
78
  * and the timestamps preserved across incremental builds.
@@ -214,6 +211,5 @@ export declare class SnapshotService extends SnapshotService_base {
214
211
  */
215
212
  static readonly layerTest: (overrides?: Partial<SnapshotServiceShape>) => Layer.Layer<SnapshotService>;
216
213
  }
217
- //#endregion
218
214
  export type { FileSnapshot, SnapshotServiceShape };
219
215
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsdoctor/snapshot",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "private": false,
5
5
  "description": "Incremental-build snapshot tracking for static documentation pipelines: a schema-versioned SQLite store of per-file content hashes and timestamps, built on @effected/store, plus the pure SHA-256 content-hashing helpers that feed it.",
6
6
  "keywords": [
@@ -37,11 +37,11 @@
37
37
  "./package.json": "./package.json"
38
38
  },
39
39
  "dependencies": {
40
- "@effected/jsonc": "^0.18.0"
40
+ "@effected/jsonc": "^0.20.0"
41
41
  },
42
42
  "peerDependencies": {
43
- "@effected/store": "^0.16.0",
44
- "effect": "^4.0.5"
43
+ "@effected/store": "^0.18.0",
44
+ "effect": "^4.0.6"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=24.11.0"