@byline/core 1.5.0 → 1.6.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.
@@ -283,6 +283,16 @@ export interface IDocumentQueries {
283
283
  * See docs/analysis/AUTHN-AUTHZ-ANALYSIS.md.
284
284
  */
285
285
  requestContext?: RequestContext;
286
+ /**
287
+ * "Best-effort" reconstruction. When `true`, schema-mismatch warnings
288
+ * (orphan rows, unrecognised block paths, etc. — typically the result
289
+ * of editing a `CollectionDefinition` while older documents linger in
290
+ * the store) are surfaced on the returned object as `restoreWarnings`
291
+ * instead of being thrown as `ERR_DATABASE`. Reserved for the admin
292
+ * edit path; public reads should leave this `false` so partial data
293
+ * never silently leaks into a live site.
294
+ */
295
+ lenient?: boolean;
286
296
  }): Promise<any | null>;
287
297
  /**
288
298
  * Fetch only the current version's metadata row (no field reconstruction).
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.0",
5
+ "version": "1.6.1",
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.2",
82
- "@byline/auth": "1.4.0"
82
+ "@byline/auth": "1.6.1"
83
83
  },
84
84
  "devDependencies": {
85
85
  "@biomejs/biome": "2.4.14",