@zenithbuild/core 0.6.3 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenithbuild/core",
3
- "version": "0.6.3",
3
+ "version": "1.2.0",
4
4
  "description": "Core library for the Zenith framework",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -47,7 +47,15 @@
47
47
  "start": "bun run build && bun run dev",
48
48
  "build:cli": "bun build bin/zenith.ts bin/zen-dev.ts bin/zen-build.ts bin/zen-preview.ts --outdir dist --target bun --bundle && for f in dist/*.js; do echo '#!/usr/bin/env bun' | cat - \"$f\" > \"$f.tmp\" && mv \"$f.tmp\" \"$f\" && chmod +x \"$f\"; done",
49
49
  "format": "prettier --write \"**/*.ts\"",
50
- "format:check": "prettier --check \"**/*.ts\""
50
+ "format:check": "prettier --check \"**/*.ts\"",
51
+ "release": "bun run scripts/release.ts",
52
+ "release:dry": "bun run scripts/release.ts --dry-run",
53
+ "release:patch": "bun run scripts/release.ts --bump=patch",
54
+ "release:minor": "bun run scripts/release.ts --bump=minor",
55
+ "release:major": "bun run scripts/release.ts --bump=major"
56
+ },
57
+ "publishConfig": {
58
+ "access": "public"
51
59
  },
52
60
  "private": false,
53
61
  "devDependencies": {
@@ -69,4 +77,4 @@
69
77
  "parse5": "^8.0.0",
70
78
  "picocolors": "^1.1.1"
71
79
  }
72
- }
80
+ }
@@ -640,7 +640,16 @@ export function generateBundleJS(): string {
640
640
  function defineSchema(name, schema) { schemaRegistry.set(name, schema); }
641
641
 
642
642
  function zenCollection(collectionName) {
643
- const data = (global.__ZENITH_CONTENT__ && global.__ZENITH_CONTENT__[collectionName]) || [];
643
+ // Access plugin data from the neutral envelope
644
+ // Content plugin stores all items under 'content' namespace
645
+ const pluginData = global.__ZENITH_PLUGIN_DATA__ || {};
646
+ const contentItems = pluginData.content || [];
647
+
648
+ // Filter by collection name (plugin owns data structure, runtime just filters)
649
+ const data = Array.isArray(contentItems)
650
+ ? contentItems.filter(item => item && item.collection === collectionName)
651
+ : [];
652
+
644
653
  return new ZenCollection(data);
645
654
  }
646
655