@molecule/api-resource-comment 1.1.2 → 1.1.3

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 CHANGED
@@ -3,7 +3,7 @@ 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-16T00:32:13.746Z
6
+ Generated: 2026-10-16T15:23:41.357Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-comment
@@ -17,6 +17,11 @@ Threaded comments resource for molecule.dev.
17
17
  Polymorphic comments that attach to any resource type. Supports threaded
18
18
  replies, pagination, and ownership-based authorization.
19
19
 
20
+ **Tables this package owns: `comments` and `comment_numbers`.** A comment row is found by its
21
+ `comments.id` (a UUID); `comment_numbers` gives it the sequential integer many clients address it
22
+ by, and the join between the two is `comment_numbers.commentId` = `comments.id` (declared FK,
23
+ `ON DELETE CASCADE`) — one row per numbered comment, never a mapping table of your own.
24
+
20
25
  ## Quick Start
21
26
 
22
27
  ```typescript
package/dist/index.d.ts CHANGED
@@ -4,6 +4,11 @@
4
4
  * Polymorphic comments that attach to any resource type. Supports threaded
5
5
  * replies, pagination, and ownership-based authorization.
6
6
  *
7
+ * **Tables this package owns: `comments` and `comment_numbers`.** A comment row is found by its
8
+ * `comments.id` (a UUID); `comment_numbers` gives it the sequential integer many clients address it
9
+ * by, and the join between the two is `comment_numbers.commentId` = `comments.id` (declared FK,
10
+ * `ON DELETE CASCADE`) — one row per numbered comment, never a mapping table of your own.
11
+ *
7
12
  * @module
8
13
  * @example
9
14
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmEG;AAEH,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -4,6 +4,11 @@
4
4
  * Polymorphic comments that attach to any resource type. Supports threaded
5
5
  * replies, pagination, and ownership-based authorization.
6
6
  *
7
+ * **Tables this package owns: `comments` and `comment_numbers`.** A comment row is found by its
8
+ * `comments.id` (a UUID); `comment_numbers` gives it the sequential integer many clients address it
9
+ * by, and the join between the two is `comment_numbers.commentId` = `comments.id` (declared FK,
10
+ * `ON DELETE CASCADE`) — one row per numbered comment, never a mapping table of your own.
11
+ *
7
12
  * @module
8
13
  * @example
9
14
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-comment",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Threaded comments on any resource with polymorphic attachment and pagination",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  ],
30
30
  "license": "Apache-2.0",
31
31
  "devDependencies": {
32
- "@molecule/api-database": "1.1.1",
33
- "@molecule/api-database-sqlite": "1.2.2",
32
+ "@molecule/api-database": "1.1.3",
33
+ "@molecule/api-database-sqlite": "1.2.4",
34
34
  "@types/node": "26.1.2",
35
35
  "typescript": "6.0.3",
36
36
  "vitest": "4.1.11",