@nifrajs/content 5.12.1 → 5.13.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 +6 -0
- package/package.json +1 -1
- package/src/fs.ts +3 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/fs.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Filesystem-backed content collections - `defineCollection` reads a directory of Markdown files and
|
|
3
|
-
* gives you a typed, validated API over them. Build/server-time (Bun/Node/Deno)
|
|
4
|
-
*
|
|
3
|
+
* gives you a typed, validated API over them. Build/server-time (Bun/Node/Deno). An edge bundle reads
|
|
4
|
+
* a snapshot instead: `bakeCollection` where the filesystem is available, `fromBaked` on the edge.
|
|
5
|
+
* Both are in `@nifrajs/content`.
|
|
5
6
|
*/
|
|
6
7
|
import type { BigIntStats } from "node:fs"
|
|
7
8
|
import { readdir, readFile, stat as statPath } from "node:fs/promises"
|