@ibalzam/codejitsu-core 0.3.0 → 0.3.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.
@@ -165,7 +165,7 @@ export function createBlogFromCollection<E extends BlogCollectionEntry = BlogCol
165
165
  author: (entry.data.author as string) ?? defaultAuthor,
166
166
  image: entry.data.image as string | undefined,
167
167
  tags: entry.data.tags as string[] | undefined,
168
- readingTime: readingTime(entry.body).text,
168
+ readingTime: readingTime(entry.body ?? '').text,
169
169
  };
170
170
  }
171
171
 
@@ -63,7 +63,8 @@ export interface CommonBlogConfig {
63
63
  export interface BlogCollectionEntry {
64
64
  id: string;
65
65
  data: Record<string, unknown>;
66
- body: string;
66
+ /** Optional — Astro's CollectionEntry types `body` as `string | undefined`. */
67
+ body?: string;
67
68
  }
68
69
 
69
70
  /** API for the fs (gray-matter) blog loader — normalized objects. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibalzam/codejitsu-core",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "Shared core for Codejitsu Astro sites — reusable code and Claude-facing instructions for blog, SEO, images, deploy, and llms.txt.",
6
6
  "keywords": [