@nbt-dev/nbt 0.1.2 → 0.1.3

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": "@nbt-dev/nbt",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "The nbt CLI and runtime for nbt-dev — a schema-first backend platform for web development. Linux/x64 + macOS prebuilt binaries.",
5
5
  "bin": {
6
6
  "nbt": "dist/nbt.js"
@@ -1,3 +1,18 @@
1
+ # The latest deployed read-only VIEW bundle (the JS artifact serving GET /view/*).
2
+ # Unlike WorkflowBundle there is no per-instance version pinning — views are
3
+ # stateless on-read reductions, so only the newest row matters. It is persisted so
4
+ # a deploy-activated view bundle survives a daemon restart (reloaded by
5
+ # view_serve_init); `version` is a monotonic deploy counter, `contentHash` dedups
6
+ # a redeploy of identical bytes.
7
+ entity ViewBundle {
8
+ id: ulid
9
+ createdAt: DateTime @default(now())
10
+ updatedAt: DateTime @updatedAt
11
+ version: u32
12
+ source: string
13
+ contentHash: string
14
+ }
15
+
1
16
  # An immutable, versioned workflow bundle (the JS artifact). Deploying new code
2
17
  # registers a new version; in-flight executions keep replaying against the version
3
18
  # they started on (the journal-header pin), so a code change can never corrupt a
@@ -1,3 +1,18 @@
1
+ # The latest deployed read-only VIEW bundle (the JS artifact serving GET /view/*).
2
+ # Unlike WorkflowBundle there is no per-instance version pinning — views are
3
+ # stateless on-read reductions, so only the newest row matters. It is persisted so
4
+ # a deploy-activated view bundle survives a daemon restart (reloaded by
5
+ # view_serve_init); `version` is a monotonic deploy counter, `contentHash` dedups
6
+ # a redeploy of identical bytes.
7
+ entity ViewBundle {
8
+ id: ulid
9
+ createdAt: DateTime @default(now())
10
+ updatedAt: DateTime @updatedAt
11
+ version: u32
12
+ source: string
13
+ contentHash: string
14
+ }
15
+
1
16
  # An immutable, versioned workflow bundle (the JS artifact). Deploying new code
2
17
  # registers a new version; in-flight executions keep replaying against the version
3
18
  # they started on (the journal-header pin), so a code change can never corrupt a
Binary file
Binary file