@junejs/juno 0.0.17 → 0.0.19
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/README.md +1 -1
- package/package.json +4 -4
- package/src/index.ts +2 -2
package/README.md
CHANGED
|
@@ -77,7 +77,7 @@ backwards. High-signal on purpose — read these, skip re-deriving the obvious.
|
|
|
77
77
|
The framework works fully without Juno. **Tier 1** = bring your own (Prisma/Drizzle),
|
|
78
78
|
untouched. **Tier 2** = your ORM over the ambient `db` resource. **Tier 3** = Juno
|
|
79
79
|
(or any thin shim emitting `recordTableRead`/`recordTableWrite`) for the
|
|
80
|
-
auto-invalidate / auto-batch / live-RSC magic. See `docs/data-layer
|
|
80
|
+
auto-invalidate / auto-batch / live-RSC magic. See `docs/data-layer.md`.
|
|
81
81
|
|
|
82
82
|
For tests or bring-your-own wiring, the explicit handle still works:
|
|
83
83
|
`const j = juno(someDb); await j.table("users").all()`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junejs/juno",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.19",
|
|
4
4
|
"description": "Juno — June's ergonomic data layer over the JuneDb contract. The default that ships with the agent-native magic (Tier 3).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"typecheck": "tsc --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@junejs/core": "0.0.
|
|
20
|
-
"@junejs/db": "0.0.
|
|
19
|
+
"@junejs/core": "0.0.19",
|
|
20
|
+
"@junejs/db": "0.0.19"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@junejs/server": "0.0.
|
|
23
|
+
"@junejs/server": "0.0.19",
|
|
24
24
|
"@types/pg": "^8.20.0",
|
|
25
25
|
"mysql2": "^3.22.5",
|
|
26
26
|
"pg": "^8.21.0"
|
package/src/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Juno — June's ergonomic data layer. A typed table API over the @junejs/core
|
|
2
2
|
// JuneDb contract (so it works over sqlite / D1 / Postgres alike), depending ONLY
|
|
3
|
-
// on @junejs/core (inward; @junejs/core never imports Juno). docs/data-layer
|
|
3
|
+
// on @junejs/core (inward; @junejs/core never imports Juno). docs/data-layer.md.
|
|
4
4
|
//
|
|
5
5
|
// THE MAGIC (Tier 3): every read calls recordTableRead, every write
|
|
6
6
|
// recordTableWrite — @junejs/core's PUBLIC trace contract. That is what makes cache
|
|
@@ -248,7 +248,7 @@ export type Juno = {
|
|
|
248
248
|
writes(...tables: string[]): void;
|
|
249
249
|
};
|
|
250
250
|
|
|
251
|
-
// Wrap any JuneDb handle (
|
|
251
|
+
// Wrap any JuneDb handle (the ambient `db`) in Juno's ergonomic surface. Build ONE per
|
|
252
252
|
// request: the ambient-loader registry it carries is what makes concurrent
|
|
253
253
|
// findBy across components coalesce — and scoping it to the per-request handle
|
|
254
254
|
// is what keeps keys from leaking across requests.
|