@byline/client 3.0.0 → 3.0.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.
- package/dist/response.js +1 -1
- package/dist/types.d.ts +6 -6
- package/package.json +4 -4
package/dist/response.js
CHANGED
|
@@ -44,7 +44,7 @@ export function shapeDocument(raw) {
|
|
|
44
44
|
// Storage raw keys already match the surface names (passthrough) —
|
|
45
45
|
// `availableLocales` is the editorial advertised set (document-grain,
|
|
46
46
|
// stored), `_availableVersionLocales` is the structural ledger fact
|
|
47
|
-
// (version-grain, computed). See docs/
|
|
47
|
+
// (version-grain, computed). See docs/I18N.md.
|
|
48
48
|
if (Array.isArray(raw.availableLocales)) {
|
|
49
49
|
shaped.availableLocales = raw.availableLocales;
|
|
50
50
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -157,7 +157,7 @@ interface StatusControls {
|
|
|
157
157
|
* in every locale.
|
|
158
158
|
*
|
|
159
159
|
* Availability is the version-grain ledger described in
|
|
160
|
-
* `docs/
|
|
160
|
+
* `docs/I18N.md`. Relationship population always behaves
|
|
161
161
|
* as `'fallback'` so a populated tree never has holes.
|
|
162
162
|
*/
|
|
163
163
|
interface MissingLocaleControls {
|
|
@@ -257,7 +257,7 @@ export interface CreateOptions {
|
|
|
257
257
|
* The editorial advertised-locale set, stored document-grain in
|
|
258
258
|
* `byline_document_available_locales`. When omitted, a new document starts
|
|
259
259
|
* with an empty set; an explicit array (empty included) is stored verbatim.
|
|
260
|
-
* Surfaced on reads as `availableLocales`. See `docs/
|
|
260
|
+
* Surfaced on reads as `availableLocales`. See `docs/I18N.md`.
|
|
261
261
|
*/
|
|
262
262
|
availableLocales?: string[];
|
|
263
263
|
}
|
|
@@ -273,7 +273,7 @@ export interface UpdateOptions {
|
|
|
273
273
|
* The editorial advertised-locale set. When omitted, the existing set
|
|
274
274
|
* carries forward unchanged (sticky — document-grain, like `path`); an
|
|
275
275
|
* explicit array (empty included) replaces it wholesale. Surfaced on reads
|
|
276
|
-
* as `availableLocales`. See `docs/
|
|
276
|
+
* as `availableLocales`. See `docs/I18N.md`.
|
|
277
277
|
*/
|
|
278
278
|
availableLocales?: string[];
|
|
279
279
|
}
|
|
@@ -337,7 +337,7 @@ export interface ClientDocument<F = Record<string, any>> {
|
|
|
337
337
|
* yardstick). Stable, document-grain. Surfaced so consumers / the admin can
|
|
338
338
|
* indicate a document whose primary language differs from the system default.
|
|
339
339
|
* Present on `find` / `findById` / `findByPath`. See
|
|
340
|
-
* `docs/
|
|
340
|
+
* `docs/I18N.md`.
|
|
341
341
|
*/
|
|
342
342
|
sourceLocale?: string;
|
|
343
343
|
/** When this version was created. */
|
|
@@ -363,7 +363,7 @@ export interface ClientDocument<F = Record<string, any>> {
|
|
|
363
363
|
* `_availableVersionLocales` fact below; the public advertised set is their
|
|
364
364
|
* intersection (`availableLocales ∩ _availableVersionLocales`), which the
|
|
365
365
|
* host composes for hreflang / sitemap / "Also available in…" menus.
|
|
366
|
-
* Present on `find` / `findById` / `findByPath`. See `docs/
|
|
366
|
+
* Present on `find` / `findById` / `findByPath`. See `docs/I18N.md`.
|
|
367
367
|
*/
|
|
368
368
|
availableLocales?: string[];
|
|
369
369
|
/**
|
|
@@ -373,7 +373,7 @@ export interface ClientDocument<F = Record<string, any>> {
|
|
|
373
373
|
* Present on `find` / `findById` / `findByPath` (absent on version/history
|
|
374
374
|
* reads); the published-available set on a normal (published) read. The
|
|
375
375
|
* structural fact reconciled against the editorial `availableLocales` above.
|
|
376
|
-
* See `docs/
|
|
376
|
+
* See `docs/I18N.md`.
|
|
377
377
|
*/
|
|
378
378
|
_availableVersionLocales?: string[];
|
|
379
379
|
/**
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@byline/client",
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
|
-
"version": "3.0.
|
|
5
|
+
"version": "3.0.1",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=20.9.0"
|
|
8
8
|
},
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"npm-run-all": "^4.1.5",
|
|
41
|
-
"@byline/auth": "3.0.
|
|
42
|
-
"@byline/core": "3.0.
|
|
41
|
+
"@byline/auth": "3.0.1",
|
|
42
|
+
"@byline/core": "3.0.1"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@biomejs/biome": "2.4.15",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"tsx": "^4.22.3",
|
|
52
52
|
"typescript": "6.0.3",
|
|
53
53
|
"vitest": "^4.1.7",
|
|
54
|
-
"@byline/db-postgres": "3.0.
|
|
54
|
+
"@byline/db-postgres": "3.0.1"
|
|
55
55
|
},
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public",
|