@kenjura/ursa 0.55.0 → 0.56.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/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.56.0
2
+ 2025-12-23
3
+
4
+ - restored metadata to directory index JSON files
5
+
1
6
  # 0.55.0
2
7
  2025-12-21
3
8
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@kenjura/ursa",
3
3
  "author": "Andrew London <andrew@kenjura.com>",
4
4
  "type": "module",
5
- "version": "0.55.0",
5
+ "version": "0.56.0",
6
6
  "description": "static site generator from MD/wikitext/YML",
7
7
  "main": "lib/index.js",
8
8
  "bin": {
@@ -275,10 +275,12 @@ export async function generate({
275
275
  if (!needsRegen) {
276
276
  skippedCount++;
277
277
  // For directory indices, store minimal data (not full bodyHtml)
278
+ // But include metadata for directory JSON files
279
+ const skippedMeta = extractMetadata(rawBody);
278
280
  dirIndexCache.set(file, {
279
281
  name: base,
280
282
  url,
281
- // Don't store contents or bodyHtml - saves significant memory
283
+ metadata: skippedMeta,
282
284
  });
283
285
  return; // Skip regenerating this file
284
286
  }
@@ -394,10 +396,11 @@ export async function generate({
394
396
  transformedMetadata,
395
397
  };
396
398
 
397
- // Store minimal data for directory indices
399
+ // Store minimal data for directory indices, including metadata
398
400
  dirIndexCache.set(file, {
399
401
  name: base,
400
402
  url,
403
+ metadata: fileMeta,
401
404
  });
402
405
 
403
406
  const json = JSON.stringify(jsonObject);