@noy-db/as-blob 0.8.0 → 0.9.0-pre.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.
Files changed (2) hide show
  1. package/README.md +9 -0
  2. package/package.json +5 -4
package/README.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @noy-db/as-blob
2
2
 
3
+ <!-- prose-preamble
4
+ // Bindings the illustrative blocks below elide. Typed, not stubbed:
5
+ // `declare` costs no runtime dependency, so the preamble cannot drift
6
+ // from a fixture — and a wrong member call still fails the gate naming
7
+ // the real type.
8
+ import type { Noydb } from '@noy-db/hub'
9
+ declare const db: Noydb
10
+ -->
11
+
3
12
  Single-attachment plaintext export for noy-db. Pulls one blob out of
4
13
  a record's `BlobSet` as its native MIME bytes — PDF, JPEG, `.eml`,
5
14
  anything you stored via `collection.blob(id).put(slot, bytes, …)`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noy-db/as-blob",
3
- "version": "0.8.0",
3
+ "version": "0.9.0-pre.1",
4
4
  "description": "Single-attachment plaintext export for noy-db — extracts one blob from BlobSet as native MIME bytes. Gated by the RFC #249 `assertCanExport('plaintext', …)` gate; writes an audit-ledger entry on every call. Part of the @noy-db/as-* portable-artefact family (plaintext tier, document sub-family).",
5
5
  "license": "Apache-2.0",
6
6
  "author": "vLannaAi <vicio@lanna.ai>",
@@ -33,11 +33,11 @@
33
33
  "node": ">=22.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@noy-db/hub": "^0.7.0 || ^0.7.1-pre.0 || ^0.8.0-pre.0"
36
+ "@noy-db/hub": "^0.7.0 || ^0.7.1-pre.0 || ^0.8.0-pre.0 || ^0.9.0-pre.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@noy-db/hub": "0.8.0",
40
- "@noy-db/test-format-conformance": "0.8.0",
39
+ "@noy-db/hub": "0.9.0-pre.2",
40
+ "@noy-db/ports": "0.9.0-pre.2",
41
41
  "@noy-db/to-memory": "0.8.0",
42
42
  "@types/node": "^22.0.0",
43
43
  "happy-dom": "^18.0.0"
@@ -56,6 +56,7 @@
56
56
  "access": "public",
57
57
  "tag": "latest"
58
58
  },
59
+ "dependencies": {},
59
60
  "scripts": {
60
61
  "build": "tsup",
61
62
  "test": "vitest run",