@molecule/api-resource-comment 1.2.0 → 1.2.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/README.md +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
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-
|
|
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
|
-
- **
|
|
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
|
-
* - **
|
|
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
|
-
* - **
|
|
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.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Threaded comments on any resource with polymorphic attachment and pagination",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"license": "Apache-2.0",
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@molecule/api-database": "1.1.3",
|
|
33
|
-
"@molecule/api-database-sqlite": "1.
|
|
33
|
+
"@molecule/api-database-sqlite": "1.3.0",
|
|
34
34
|
"@types/node": "26.1.2",
|
|
35
35
|
"typescript": "6.0.3",
|
|
36
36
|
"vitest": "4.1.11",
|