astroidjs 0.1.0 → 0.1.2
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CollectionConfig, type ContentConfig } from "louise-toolkit/content";
|
|
1
|
+
import { type CollectionConfig, type ContentConfig } from "louise-toolkit/content/define";
|
|
2
2
|
import type { AstroidConfig } from "../config.js";
|
|
3
3
|
/**
|
|
4
4
|
* The opinionated `pages` collection — the EDITABLE page fields, versioned
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
// Astroid decides WHICH collections and fields exist (its opinions); Louise's
|
|
6
6
|
// codegen decides HOW they become D1 tables. Dependency flows one way — this
|
|
7
7
|
// imports `louise-toolkit/content`, never the reverse.
|
|
8
|
-
|
|
8
|
+
// `content/define` rather than the `content` barrel: the barrel eagerly pulls the
|
|
9
|
+
// codegen/localApi/validation chunks, and those import drizzle-orm for real — an
|
|
10
|
+
// *optional* peer of louise-toolkit, so importing it here forced a package on
|
|
11
|
+
// consumers who only ever describe collections. This entry is the drizzle-free
|
|
12
|
+
// half (see louise-toolkit/src/core/content/define.ts).
|
|
13
|
+
import { defineCollection, } from "louise-toolkit/content/define";
|
|
9
14
|
import { sanitizeRichHtml } from "louise-toolkit/security";
|
|
10
15
|
/**
|
|
11
16
|
* The opinionated `pages` collection — the EDITABLE page fields, versioned
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "astroidjs",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Astroid — an opinionated meta-framework over Louise Toolkit and Astro for building editable, multi-editor sites on Cloudflare Workers.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astro",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"louise-toolkit": "0.
|
|
49
|
+
"louise-toolkit": "0.15.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"solid-js": "^1.9.0"
|