@molecule/api-resource-article 1.0.0 → 1.0.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-15T09:18:33.058Z
6
+ Generated: 2026-10-15T14:22:28.711Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-article
@@ -628,7 +628,9 @@ Peer dependencies:
628
628
  - Article bodies are stored as given. Render markdown with
629
629
  `@molecule/app-markdown` + a provider (sanitized HTML) on the client.
630
630
  - Comments on articles: `@molecule/api-resource-comment` with resource type
631
- `'article'` and the article id.
631
+ `'article'` and the article id. An API whose comment ids are integers
632
+ (RealWorld's) creates them with its `createNumberedComment` and finds them with
633
+ `getCommentByNumber`.
632
634
 
633
635
  ## E2E Tests
634
636
 
package/dist/index.d.ts CHANGED
@@ -56,7 +56,9 @@
56
56
  * - Article bodies are stored as given. Render markdown with
57
57
  * `@molecule/app-markdown` + a provider (sanitized HTML) on the client.
58
58
  * - Comments on articles: `@molecule/api-resource-comment` with resource type
59
- * `'article'` and the article id.
59
+ * `'article'` and the article id. An API whose comment ids are integers
60
+ * (RealWorld's) creates them with its `createNumberedComment` and finds them with
61
+ * `getCommentByNumber`.
60
62
  *
61
63
  * @e2e
62
64
  * Integration checklist — drive the real UI (live preview, no mocks), adapt
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0EG;AAEH,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4EG;AAEH,cAAc,wBAAwB,CAAA;AACtC,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,YAAY,CAAA;AAC1B,cAAc,iBAAiB,CAAA"}
package/dist/index.js CHANGED
@@ -56,7 +56,9 @@
56
56
  * - Article bodies are stored as given. Render markdown with
57
57
  * `@molecule/app-markdown` + a provider (sanitized HTML) on the client.
58
58
  * - Comments on articles: `@molecule/api-resource-comment` with resource type
59
- * `'article'` and the article id.
59
+ * `'article'` and the article id. An API whose comment ids are integers
60
+ * (RealWorld's) creates them with its `createNumberedComment` and finds them with
61
+ * `getCommentByNumber`.
60
62
  *
61
63
  * @e2e
62
64
  * Integration checklist — drive the real UI (live preview, no mocks), adapt
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-article",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Articles and blog posts: unique slugs, tags, favorites, a followed-authors feed, and filtered, paginated lists",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,11 +33,11 @@
33
33
  ],
34
34
  "license": "Apache-2.0",
35
35
  "devDependencies": {
36
- "@molecule/api-database": "1.0.2",
37
- "@molecule/api-database-sqlite": "1.0.4",
36
+ "@molecule/api-database": "1.1.0",
37
+ "@molecule/api-database-sqlite": "1.1.0",
38
38
  "@molecule/api-resource-follow": "1.0.5",
39
39
  "@molecule/api-resource-reaction": "1.0.3",
40
- "@molecule/api-slug": "1.0.0",
40
+ "@molecule/api-slug": "1.0.1",
41
41
  "@types/node": "26.1.2",
42
42
  "typescript": "6.0.3",
43
43
  "vitest": "4.1.11",