@valbuild/tanstack 0.148.1 → 0.148.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/CHANGELOG.md +86 -0
- package/README.md +53 -0
- package/client/dist/valbuild-tanstack-client.cjs.dev.js +12 -4
- package/client/dist/valbuild-tanstack-client.cjs.prod.js +12 -4
- package/client/dist/valbuild-tanstack-client.esm.js +12 -4
- package/dist/{ValOverlayContext-510328ec.cjs.dev.js → ValOverlayContext-198b4bd1.cjs.dev.js} +4 -1
- package/dist/{ValOverlayContext-6278320b.esm.js → ValOverlayContext-6411bbe3.esm.js} +4 -1
- package/dist/{ValOverlayContext-d3acd157.cjs.prod.js → ValOverlayContext-d9b22d1a.cjs.prod.js} +4 -1
- package/dist/declarations/src/ValAnalytics.d.ts +23 -0
- package/dist/declarations/src/ValApp.d.ts +6 -1
- package/dist/declarations/src/ValProvider.d.ts +1 -0
- package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +3 -0
- package/dist/declarations/src/server/index.d.ts +1 -0
- package/dist/{routeFromVal-0ea4586f.cjs.dev.js → routeFromVal-2f65a4fc.cjs.dev.js} +11 -11
- package/dist/{routeFromVal-9f1f8725.esm.js → routeFromVal-40cd8a5b.esm.js} +11 -11
- package/dist/{routeFromVal-97a52f43.cjs.prod.js → routeFromVal-a13ac8a3.cjs.prod.js} +11 -11
- package/dist/valbuild-tanstack.cjs.dev.js +115 -28
- package/dist/valbuild-tanstack.cjs.prod.js +115 -28
- package/dist/valbuild-tanstack.esm.js +115 -28
- package/dist/{version-684beca4.cjs.prod.js → version-4353b65f.cjs.prod.js} +1 -1
- package/dist/{version-a77659ce.esm.js → version-79ab0f75.esm.js} +1 -1
- package/dist/{version-fd860c4b.cjs.dev.js → version-f0497731.cjs.dev.js} +1 -1
- package/package.json +8 -8
- package/server/dist/valbuild-tanstack-server.cjs.dev.js +10 -10
- package/server/dist/valbuild-tanstack-server.cjs.prod.js +10 -10
- package/server/dist/valbuild-tanstack-server.esm.js +10 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VERSION, _ as _toConsumableArray, s as setValEnableCookieReader } from '../../dist/version-
|
|
1
|
+
import { V as VERSION, _ as _toConsumableArray, s as setValEnableCookieReader } from '../../dist/version-79ab0f75.esm.js';
|
|
2
2
|
import { _ as _asyncToGenerator, a as _regenerator } from '../../dist/asyncToGenerator-500f022f.esm.js';
|
|
3
3
|
import { Internal } from '@valbuild/core';
|
|
4
4
|
import { _ as _objectSpread2, a as _slicedToArray, b as _createForOfIteratorHelper, g as _defineProperty, c as _typeof } from '../../dist/typeof-66e2d869.esm.js';
|
|
@@ -6,7 +6,7 @@ import { createValApiRouter, createValServer, layeredSnapshot, proposalSnapshotF
|
|
|
6
6
|
export { InMemoryPatchStore, createPrettierFormatter } from '@valbuild/server';
|
|
7
7
|
import { stegaEncode, SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/stega';
|
|
8
8
|
import { memoizePerRequest, VAL_SESSION_COOKIE, JSON_ENTRIES_BATCH_MAX } from '@valbuild/shared/internal';
|
|
9
|
-
import { f as fillJsonValuesRecord, j as jsonValuesRecordToFill, c as initValRouteFromVal, g as getJsonEntryStegaRoot, i as isJsonValuesRecordSchema, a as getValRouteUrlFromVal, b as bundledJsonEntryImport } from '../../dist/routeFromVal-
|
|
9
|
+
import { f as fillJsonValuesRecord, j as jsonValuesRecordToFill, c as initValRouteFromVal, g as getJsonEntryStegaRoot, i as isJsonValuesRecordSchema, a as getValRouteUrlFromVal, b as bundledJsonEntryImport } from '../../dist/routeFromVal-40cd8a5b.esm.js';
|
|
10
10
|
import { initValMcp as initValMcp$1 } from '@valbuild/mcp';
|
|
11
11
|
import '@valbuild/shared/client';
|
|
12
12
|
|
|
@@ -442,7 +442,7 @@ function _loadDraftSources() {
|
|
|
442
442
|
_context8.n = 4;
|
|
443
443
|
break;
|
|
444
444
|
}
|
|
445
|
-
|
|
445
|
+
Internal.log.debug("authentication error: ", treeRes.json.message);
|
|
446
446
|
return _context8.a(2, null);
|
|
447
447
|
case 4:
|
|
448
448
|
throw Error(JSON.stringify(treeRes.json, null, 2));
|
|
@@ -472,7 +472,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
472
472
|
case 3:
|
|
473
473
|
_context2.p = 3;
|
|
474
474
|
_t2 = _context2.v;
|
|
475
|
-
|
|
475
|
+
Internal.log.error("could not check if Val is enabled! This might be due to an error reading draft mode. fetchVal can only be used server-side (in a loader, a server function, or a server route). Use useVal in components.", _t2);
|
|
476
476
|
case 4:
|
|
477
477
|
if (!enabled) {
|
|
478
478
|
_context2.n = 16;
|
|
@@ -495,7 +495,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
495
495
|
case 8:
|
|
496
496
|
_context2.p = 8;
|
|
497
497
|
_t3 = _context2.v;
|
|
498
|
-
|
|
498
|
+
Internal.log.error("could not read headers! fetchVal can only be used server-side (in a loader, a server function, or a server route). Use useVal in components.", _t3);
|
|
499
499
|
headers = null;
|
|
500
500
|
case 9:
|
|
501
501
|
_context2.p = 9;
|
|
@@ -508,7 +508,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
508
508
|
case 11:
|
|
509
509
|
_context2.p = 11;
|
|
510
510
|
_t4 = _context2.v;
|
|
511
|
-
|
|
511
|
+
Internal.log.error("could not read cookies! fetchVal can only be used server-side (in a loader, a server function, or a server route). Use useVal in components.", _t4);
|
|
512
512
|
cookies = null;
|
|
513
513
|
case 12:
|
|
514
514
|
host = headers && getHost(headers);
|
|
@@ -584,7 +584,7 @@ var initFetchValStega = function initFetchValStega(config, valApiEndpoints, valS
|
|
|
584
584
|
return _regenerator().w(function (_context3) {
|
|
585
585
|
while (1) switch (_context3.n) {
|
|
586
586
|
case 0:
|
|
587
|
-
|
|
587
|
+
Internal.log.error("failed to fetch ", err);
|
|
588
588
|
_t12 = stegaEncode;
|
|
589
589
|
_t13 = selector;
|
|
590
590
|
_context3.n = 1;
|
|
@@ -838,7 +838,7 @@ var initFetchValDraft = function initFetchValDraft(valServerPromise, isEnabled,
|
|
|
838
838
|
_t19 = _context4.v;
|
|
839
839
|
// Published content, as before this existed: a draft page that renders
|
|
840
840
|
// the site is a degraded preview, one that fails to render is an outage.
|
|
841
|
-
|
|
841
|
+
Internal.log.error("could not read the draft", _t19);
|
|
842
842
|
return _context4.a(2, onlySnapshot);
|
|
843
843
|
}
|
|
844
844
|
}, _callee4, null, [[1, 16]]);
|
|
@@ -1383,7 +1383,7 @@ function _loadDraftJsonEntry() {
|
|
|
1383
1383
|
_context12.n = 7;
|
|
1384
1384
|
break;
|
|
1385
1385
|
}
|
|
1386
|
-
|
|
1386
|
+
Internal.log.debug("authentication error: ", res.json.message);
|
|
1387
1387
|
return _context12.a(2, {
|
|
1388
1388
|
status: "unavailable"
|
|
1389
1389
|
});
|
|
@@ -1396,7 +1396,7 @@ function _loadDraftJsonEntry() {
|
|
|
1396
1396
|
status: "absent"
|
|
1397
1397
|
});
|
|
1398
1398
|
case 8:
|
|
1399
|
-
|
|
1399
|
+
Internal.log.error("could not load draft JSON entry: ", "message" in res.json ? res.json.message : "status ".concat(res.status));
|
|
1400
1400
|
return _context12.a(2, {
|
|
1401
1401
|
status: "unavailable"
|
|
1402
1402
|
});
|