@molecule/api-resource-article 1.0.6 → 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.
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-16T11:26:11.412Z
6
+ Generated: 2026-10-16T15:23:40.659Z
7
7
  -->
8
8
 
9
9
  # @molecule/api-resource-article
@@ -21,6 +21,11 @@ docs site. Favorites are `@molecule/api-resource-reaction` reactions and the
21
21
  feed reads `@molecule/api-resource-follow`'s follows, so they are the same
22
22
  favorites and follows the rest of the app sees.
23
23
 
24
+ **Tables this package owns: `articles` and `article_tags`.** The join between them is
25
+ `article_tags.articleId` = `articles.id` (a declared FK, `ON DELETE CASCADE`; `("articleId", "tag")` is
26
+ unique, and `article_tags.position` is the order the tags were given in). It also ships
27
+ `reactions.sql` and `follows.sql`, which create the `reactions` and `follows` tables it reads by name.
28
+
24
29
  ## Quick Start
25
30
 
26
31
  ```typescript
package/dist/index.d.ts CHANGED
@@ -8,6 +8,11 @@
8
8
  * feed reads `@molecule/api-resource-follow`'s follows, so they are the same
9
9
  * favorites and follows the rest of the app sees.
10
10
  *
11
+ * **Tables this package owns: `articles` and `article_tags`.** The join between them is
12
+ * `article_tags.articleId` = `articles.id` (a declared FK, `ON DELETE CASCADE`; `("articleId", "tag")` is
13
+ * unique, and `article_tags.position` is the order the tags were given in). It also ships
14
+ * `reactions.sql` and `follows.sql`, which create the `reactions` and `follows` tables it reads by name.
15
+ *
11
16
  * @module
12
17
  * @example
13
18
  * ```typescript
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2FG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgGG;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
@@ -8,6 +8,11 @@
8
8
  * feed reads `@molecule/api-resource-follow`'s follows, so they are the same
9
9
  * favorites and follows the rest of the app sees.
10
10
  *
11
+ * **Tables this package owns: `articles` and `article_tags`.** The join between them is
12
+ * `article_tags.articleId` = `articles.id` (a declared FK, `ON DELETE CASCADE`; `("articleId", "tag")` is
13
+ * unique, and `article_tags.position` is the order the tags were given in). It also ships
14
+ * `reactions.sql` and `follows.sql`, which create the `reactions` and `follows` tables it reads by name.
15
+ *
11
16
  * @module
12
17
  * @example
13
18
  * ```typescript
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@molecule/api-resource-article",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
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",