@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.
Files changed (26) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/README.md +53 -0
  3. package/client/dist/valbuild-tanstack-client.cjs.dev.js +12 -4
  4. package/client/dist/valbuild-tanstack-client.cjs.prod.js +12 -4
  5. package/client/dist/valbuild-tanstack-client.esm.js +12 -4
  6. package/dist/{ValOverlayContext-510328ec.cjs.dev.js → ValOverlayContext-198b4bd1.cjs.dev.js} +4 -1
  7. package/dist/{ValOverlayContext-6278320b.esm.js → ValOverlayContext-6411bbe3.esm.js} +4 -1
  8. package/dist/{ValOverlayContext-d3acd157.cjs.prod.js → ValOverlayContext-d9b22d1a.cjs.prod.js} +4 -1
  9. package/dist/declarations/src/ValAnalytics.d.ts +23 -0
  10. package/dist/declarations/src/ValApp.d.ts +6 -1
  11. package/dist/declarations/src/ValProvider.d.ts +1 -0
  12. package/dist/declarations/src/external_exempt_from_val_quickjs.d.ts +3 -0
  13. package/dist/declarations/src/server/index.d.ts +1 -0
  14. package/dist/{routeFromVal-0ea4586f.cjs.dev.js → routeFromVal-2f65a4fc.cjs.dev.js} +11 -11
  15. package/dist/{routeFromVal-9f1f8725.esm.js → routeFromVal-40cd8a5b.esm.js} +11 -11
  16. package/dist/{routeFromVal-97a52f43.cjs.prod.js → routeFromVal-a13ac8a3.cjs.prod.js} +11 -11
  17. package/dist/valbuild-tanstack.cjs.dev.js +115 -28
  18. package/dist/valbuild-tanstack.cjs.prod.js +115 -28
  19. package/dist/valbuild-tanstack.esm.js +115 -28
  20. package/dist/{version-684beca4.cjs.prod.js → version-4353b65f.cjs.prod.js} +1 -1
  21. package/dist/{version-a77659ce.esm.js → version-79ab0f75.esm.js} +1 -1
  22. package/dist/{version-fd860c4b.cjs.dev.js → version-f0497731.cjs.dev.js} +1 -1
  23. package/package.json +8 -8
  24. package/server/dist/valbuild-tanstack-server.cjs.dev.js +10 -10
  25. package/server/dist/valbuild-tanstack-server.cjs.prod.js +10 -10
  26. 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-a77659ce.esm.js';
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-9f1f8725.esm.js';
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
- console.warn("Val: authentication error: ", treeRes.json.message);
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
- console.error("Val: 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);
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
- console.error("Val: 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);
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
- console.error("Val: 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);
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
- console.error("Val: failed to fetch ", err);
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
- console.error("Val: could not read the draft", _t19);
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
- console.warn("Val: authentication error: ", res.json.message);
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
- console.error("Val: could not load draft JSON entry: ", "message" in res.json ? res.json.message : "status ".concat(res.status));
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
  });