@decocms/apps-blog 7.72.0 → 8.0.0-next.0
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 +21 -0
- package/package.json +5 -5
package/README.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# `@decocms/apps-blog` (v7 only)
|
|
2
|
+
|
|
3
|
+
This package is the v7 blog app. It has no next-major surface: the next major
|
|
4
|
+
ships no blog package, and nothing new is added here.
|
|
5
|
+
|
|
6
|
+
In the next major a blog is content plus code the site owns:
|
|
7
|
+
|
|
8
|
+
| v7 (this package) | Next major |
|
|
9
|
+
|---|---|
|
|
10
|
+
| `BlogPost`, `Author`, `Category` and the other types | The blog template's own types. |
|
|
11
|
+
| `getRecordsByPath` (reads the global decofile) | `client.list("post")`, `client.list("author")`, `client.list("category")` over saved blocks, with `where` / `sort` / `limit`. It reads the request's revision, so drafts work. |
|
|
12
|
+
| `handlePosts` (filter, sort, paginate) | `client.list` options, or the template's own helper. |
|
|
13
|
+
| `createBlogLoaders` and the `blog/loaders/*.ts` keys | Data-only blocks (`const post = (props: Post) => props`) in the template's block map. The `blog/loaders/*.ts` names stored by v7 content are registered as aliases, or as converter functions where the old shape differs, and loaders the site used are vendored under their old keys by the migration. |
|
|
14
|
+
| `blog/sections/blocks/*.tsx` (post body blocks) | Data-only blocks plus a renderer in the template. |
|
|
15
|
+
| `sections/Seo/SeoBlogPost*.tsx` | SEO helpers in the template. |
|
|
16
|
+
| Ratings, reviews and view-count actions, and the `loaders/extensions/*` ratings/reviews loaders | Site code (see *Migrating from v7*, loaders and actions). |
|
|
17
|
+
|
|
18
|
+
See the next-major docs: *Data-only blocks* (schema), `client.list` (API
|
|
19
|
+
reference), *Pages and routing*, and *Migrating from v7*.
|
|
20
|
+
|
|
21
|
+
Port notes for the v7 code are in [`src/README.md`](./src/README.md).
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/apps-blog",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-next.0",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"description": "Deco app
|
|
5
|
+
"description": "v7 only: Deco blog app. The next major ships no blog package; blogs use data-only blocks and client.list in their template.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/decocms/blocks.git",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"lint:unused": "knip"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@decocms/blocks": "
|
|
42
|
-
"@decocms/apps-commerce": "
|
|
43
|
-
"@decocms/apps-website": "
|
|
41
|
+
"@decocms/blocks": "8.0.0-next.0",
|
|
42
|
+
"@decocms/apps-commerce": "8.0.0-next.0",
|
|
43
|
+
"@decocms/apps-website": "8.0.0-next.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"react": "^19.0.0",
|