@molecule/api-resource-comment 1.2.0 → 1.2.2

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-19T07:54:32.119Z
6
+ Generated: 2026-10-20T08:23:35.474Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-comment
@@ -532,7 +532,7 @@ Peer dependencies:
532
532
  Both SQL files this package ships — `src/__setup__/comments.sql` and
533
533
  `src/__setup__/comment_numbers.sql` — must exist in the target database before use
534
534
  (scaffolded apps apply both automatically; existing apps must apply both first).
535
- - **Every comment is numbered — numbering is the default create path.** `createComment()`
535
+ - **Integer comment ids — every comment is numbered by default.** `createComment()`
536
536
  writes the comment and its sequential `number` (1, 2, 3, …) together and returns both;
537
537
  `createNumberedComment()` is the same create under the name an integer-id API reads best.
538
538
  For an API whose clients address a comment by an integer (RealWorld's `comment.id`,
package/dist/index.d.ts CHANGED
@@ -37,7 +37,7 @@
37
37
  * Both SQL files this package ships — `src/__setup__/comments.sql` and
38
38
  * `src/__setup__/comment_numbers.sql` — must exist in the target database before use
39
39
  * (scaffolded apps apply both automatically; existing apps must apply both first).
40
- * - **Every comment is numbered — numbering is the default create path.** `createComment()`
40
+ * - **Integer comment ids — every comment is numbered by default.** `createComment()`
41
41
  * writes the comment and its sequential `number` (1, 2, 3, …) together and returns both;
42
42
  * `createNumberedComment()` is the same create under the name an integer-id API reads best.
43
43
  * For an API whose clients address a comment by an integer (RealWorld's `comment.id`,
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@
37
37
  * Both SQL files this package ships — `src/__setup__/comments.sql` and
38
38
  * `src/__setup__/comment_numbers.sql` — must exist in the target database before use
39
39
  * (scaffolded apps apply both automatically; existing apps must apply both first).
40
- * - **Every comment is numbered — numbering is the default create path.** `createComment()`
40
+ * - **Integer comment ids — every comment is numbered by default.** `createComment()`
41
41
  * writes the comment and its sequential `number` (1, 2, 3, …) together and returns both;
42
42
  * `createNumberedComment()` is the same create under the name an integer-id API reads best.
43
43
  * For an API whose clients address a comment by an integer (RealWorld's `comment.id`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-comment",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Threaded comments on any resource with polymorphic attachment and pagination",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,12 +29,12 @@
29
29
  ],
30
30
  "license": "Apache-2.0",
31
31
  "devDependencies": {
32
- "@molecule/api-database": "1.1.3",
33
- "@molecule/api-database-sqlite": "1.2.6",
34
- "@types/node": "26.1.2",
32
+ "@molecule/api-database": "1.1.5",
33
+ "@molecule/api-database-sqlite": "1.3.3",
34
+ "@types/node": "26.6.5",
35
35
  "typescript": "6.0.3",
36
- "vitest": "4.1.11",
37
- "zod": "4.4.3"
36
+ "vitest": "4.1.12",
37
+ "zod": "4.6.7"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "@molecule/api-database": "^1.1.0",