@byline/core 1.11.2 → 1.12.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.
|
@@ -578,8 +578,8 @@ export interface AfterReadContext {
|
|
|
578
578
|
* - `collectionPath` — the collection being queried (useful when the
|
|
579
579
|
* same hook function is reused across collections).
|
|
580
580
|
*
|
|
581
|
-
* See `docs/AUTHN-AUTHZ.md` for the strategic rationale
|
|
582
|
-
*
|
|
581
|
+
* See `docs/AUTHN-AUTHZ.md` for the strategic rationale; the Quick
|
|
582
|
+
* Reference there carries six worked recipes.
|
|
583
583
|
*/
|
|
584
584
|
export interface BeforeReadContext {
|
|
585
585
|
collectionPath: string;
|
|
@@ -655,8 +655,8 @@ export interface CollectionHooks {
|
|
|
655
655
|
* that the query layer ANDs onto the caller's `where` to enforce
|
|
656
656
|
* read-side row scoping (multi-tenant, owner-only-drafts, soft-delete
|
|
657
657
|
* hide, etc). Returning `void` applies no scoping. Multiple functions
|
|
658
|
-
* combine with implicit AND. See
|
|
659
|
-
*
|
|
658
|
+
* combine with implicit AND. See `docs/AUTHN-AUTHZ.md` (Read-side
|
|
659
|
+
* scoping + Quick Reference recipes).
|
|
660
660
|
*/
|
|
661
661
|
beforeRead?: BeforeReadHookSlot;
|
|
662
662
|
/**
|
|
@@ -231,7 +231,7 @@ export interface IDocumentCommands {
|
|
|
231
231
|
* Only set on the initial create (when `documentId` is undefined) for
|
|
232
232
|
* collections with `orderable: true`. Ignored on subsequent versions of
|
|
233
233
|
* an existing document — order is admin metadata on the logical document,
|
|
234
|
-
* not per-version content. See docs/
|
|
234
|
+
* not per-version content. See docs/COLLECTIONS.md (Orderable collections).
|
|
235
235
|
*/
|
|
236
236
|
orderKey?: string;
|
|
237
237
|
}): Promise<{
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/core",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.12.0",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"sharp": "^0.34.5",
|
|
80
80
|
"uuid": "^14.0.0",
|
|
81
81
|
"zod": "^4.4.3",
|
|
82
|
-
"@byline/auth": "1.
|
|
82
|
+
"@byline/auth": "1.12.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@biomejs/biome": "2.4.15",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"scripts": {
|
|
99
99
|
"dev": "chokidar 'src/**/*' -c 'npm-run-all build'",
|
|
100
100
|
"build": "tsc -p tsconfig.json && tsc-alias",
|
|
101
|
-
"clean": "
|
|
101
|
+
"clean": "node scripts/clean.js node_modules dist build .turbo",
|
|
102
102
|
"lint": "biome check --write --unsafe --diagnostic-level=error",
|
|
103
103
|
"skip": "tsx ./scripts/task-watch.js",
|
|
104
104
|
"test": "vitest run --mode=node",
|