@molecule/api-resource-version-history 1.0.5 → 1.0.7

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -3,15 +3,11 @@ AUTO-GENERATED — DO NOT EDIT THIS FILE.
3
3
  Generated by `mlcl sync-docs` from the package's src/index.ts JSDoc + mlcl/registry.json.
4
4
  Edits here are overwritten on the next commit (molecule's pre-commit hook regenerates).
5
5
  To change this document, edit the module-level JSDoc in src/index.ts.
6
- Generated: 2026-10-16T05:33:35.111Z
6
+ Generated: 2026-10-26T04:23:59.559Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-version-history
10
10
 
11
- > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
12
- > It is written to be read by coding agents as much as by people, and is generated from this
13
- > package's source — edit `src/index.ts` JSDoc, not this file.
14
-
15
11
  Append-only version history resource for molecule.dev.
16
12
 
17
13
  Polymorphic, append-only `versions` table that captures full snapshots of
@@ -21,6 +17,10 @@ DELETE for individual versions, by design. Restoring a prior version
21
17
  appends a new version whose snapshot equals the target's; the existing
22
18
  rows are never mutated.
23
19
 
20
+ > **Auto-generated, AI-first package reference** for the [molecule.dev](https://molecule.dev) ecosystem.
21
+ > It is written to be read by coding agents as much as by people, and is generated from this
22
+ > package's source — edit `src/index.ts` JSDoc, not this file.
23
+
24
24
  ## Quick Start
25
25
 
26
26
  ```typescript
@@ -312,7 +312,7 @@ For non-object snapshots, the entire value is reported under the
312
312
  synthetic key `$value`.
313
313
 
314
314
  ```typescript
315
- function diffSnapshots(before: JSONValue, after: JSONValue): VersionChanges
315
+ function diffSnapshots(before: JSONValue | null, after: JSONValue): VersionChanges
316
316
  ```
317
317
 
318
318
  - `before` — The previous snapshot, or `null` if this is the first version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-version-history",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Append-only versions table with diff and restore — generic versioning helper for any resource.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -32,10 +32,10 @@
32
32
  "license": "Apache-2.0",
33
33
  "devDependencies": {
34
34
  "@molecule/api-locales-resource-version-history": "1.0.2",
35
- "@types/node": "26.1.2",
35
+ "@types/node": "26.6.5",
36
36
  "typescript": "6.0.3",
37
- "vitest": "4.1.11",
38
- "zod": "4.4.3"
37
+ "vitest": "4.1.12",
38
+ "zod": "4.6.7"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@molecule/api-database": "^1.0.1",