@valbuild/tanstack 0.145.1 → 0.146.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @valbuild/tanstack
2
2
 
3
+ ## 0.146.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#864](https://github.com/valbuild/val/pull/864) [`f0c7d27`](https://github.com/valbuild/val/commit/f0c7d27846c21f81ff6ce79c579185150bc0d063) Thanks [@freekh](https://github.com/freekh)! - Patch groups are removed. **Publish** now publishes every pending change, and
8
+ the Review list shows everyone's pending changes in one list. To keep changes
9
+ out of a publish, move them to a proposal.
10
+
11
+ Draft reads no longer send `own_patch_groups_only`, `patch_id` or
12
+ `include_patch_groups`, and the server no longer has the patch-group routes or
13
+ fields. A content host that still sends them is fine: they are ignored.
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies [[`89b0fa8`](https://github.com/valbuild/val/commit/89b0fa82a3ae0d8ccd5d0282c1034f1f40cc4e26), [`f0c7d27`](https://github.com/valbuild/val/commit/f0c7d27846c21f81ff6ce79c579185150bc0d063)]:
18
+ - @valbuild/ui@0.146.0
19
+ - @valbuild/server@0.146.0
20
+ - @valbuild/shared@0.146.0
21
+ - @valbuild/react@0.146.0
22
+ - @valbuild/language-server@0.146.0
23
+ - @valbuild/mcp@0.146.0
24
+
3
25
  ## 0.145.1
4
26
 
5
27
  ### Patch Changes
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('./version-3c867fb2.cjs.dev.js');
5
+ var version = require('./version-656c8782.cjs.dev.js');
6
6
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-4497beef.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('./version-f2104ec1.cjs.prod.js');
5
+ var version = require('./version-b301aa2f.cjs.prod.js');
6
6
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-9afd7d2d.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, a as _regenerator, r as readValEnableCookie, V as VERSION$1 } from './version-bfd9027c.esm.js';
1
+ import { _ as _asyncToGenerator, a as _regenerator, r as readValEnableCookie, V as VERSION$1 } from './version-db35a9ef.esm.js';
2
2
  import { _ as _objectSpread2, a as _slicedToArray, b as _createForOfIteratorHelper } from './createForOfIteratorHelper-93a62170.esm.js';
3
3
  import { Internal as Internal$1, initVal as initVal$1, DEFAULT_CONTENT_HOST } from '@valbuild/core';
4
4
  import * as core from '@valbuild/core';
@@ -212,7 +212,7 @@ var packageJson = {
212
212
  "tanstack-router",
213
213
  "react"
214
214
  ],
215
- version: "0.145.1",
215
+ version: "0.146.0",
216
216
  scripts: {
217
217
  typecheck: "tsc --noEmit",
218
218
  test: "jest"
@@ -212,7 +212,7 @@ var packageJson = {
212
212
  "tanstack-router",
213
213
  "react"
214
214
  ],
215
- version: "0.145.1",
215
+ version: "0.146.0",
216
216
  scripts: {
217
217
  typecheck: "tsc --noEmit",
218
218
  test: "jest"
@@ -210,7 +210,7 @@ var packageJson = {
210
210
  "tanstack-router",
211
211
  "react"
212
212
  ],
213
- version: "0.145.1",
213
+ version: "0.146.0",
214
214
  scripts: {
215
215
  typecheck: "tsc --noEmit",
216
216
  test: "jest"
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "tanstack-router",
15
15
  "react"
16
16
  ],
17
- "version": "0.145.1",
17
+ "version": "0.146.0",
18
18
  "main": "dist/valbuild-tanstack.cjs.js",
19
19
  "module": "dist/valbuild-tanstack.esm.js",
20
20
  "exports": {
@@ -43,12 +43,12 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@valbuild/core": "0.145.0",
46
- "@valbuild/language-server": "0.145.1",
47
- "@valbuild/mcp": "0.145.1",
48
- "@valbuild/react": "0.145.1",
49
- "@valbuild/server": "0.145.1",
50
- "@valbuild/shared": "0.145.1",
51
- "@valbuild/ui": "0.145.1"
46
+ "@valbuild/language-server": "0.146.0",
47
+ "@valbuild/mcp": "0.146.0",
48
+ "@valbuild/react": "0.146.0",
49
+ "@valbuild/server": "0.146.0",
50
+ "@valbuild/shared": "0.146.0",
51
+ "@valbuild/ui": "0.146.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@tanstack/react-router": "^1.170.41",
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('../../dist/version-3c867fb2.cjs.dev.js');
5
+ var version = require('../../dist/version-656c8782.cjs.dev.js');
6
6
  var core = require('@valbuild/core');
7
7
  var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-4497beef.cjs.dev.js');
8
8
  var server = require('@valbuild/server');
@@ -462,22 +462,7 @@ function _loadDraftSources() {
462
462
  exclude_patches: false,
463
463
  // The server-side read uses the legacy "server applies patches"
464
464
  // path, same as the Next package's.
465
- apply_patches: undefined,
466
- /*
467
- * The caller's own staged work, and nobody else's.
468
- *
469
- * A draft render cannot name its group ids — it has no client
470
- * state — so it asks for "mine" and the server resolves them from
471
- * the session. Without this a preview shows base + every pending
472
- * patch on the branch, so one person's half-finished edit appears
473
- * in another person's draft.
474
- *
475
- * `patch_id` stays `undefined`: naming an explicit list is for a
476
- * caller that already knows what it wants, and it would override
477
- * the resolution rather than intersect with it.
478
- */
479
- patch_id: undefined,
480
- own_patch_groups_only: true
465
+ apply_patches: undefined
481
466
  },
482
467
  cookies: createForOfIteratorHelper._defineProperty({}, internal.VAL_SESSION_COOKIE, sessionCookie)
483
468
  });
@@ -948,8 +933,7 @@ function _withDraftJsonEntries() {
948
933
  return valServer["/patches"]["GET"]({
949
934
  query: {
950
935
  patch_id: appliedPatchIds,
951
- exclude_patch_ops: false,
952
- include_patch_groups: undefined
936
+ exclude_patch_ops: false
953
937
  },
954
938
  cookies: cookies
955
939
  });
@@ -1055,8 +1039,7 @@ function _withDraftJsonEntries() {
1055
1039
  keys: keys.slice(i, i + internal.JSON_ENTRIES_BATCH_MAX),
1056
1040
  offset: undefined,
1057
1041
  limit: undefined,
1058
- apply_patches: true,
1059
- own_patch_groups_only: true
1042
+ apply_patches: true
1060
1043
  },
1061
1044
  cookies: cookies
1062
1045
  });
@@ -1417,16 +1400,7 @@ function _loadDraftJsonEntry() {
1417
1400
  // single-entry shape
1418
1401
  offset: undefined,
1419
1402
  limit: undefined,
1420
- apply_patches: true,
1421
- /*
1422
- * Scoped the same way the module content beside it is.
1423
- *
1424
- * A draft page renders both, and this call was unscoped — so one page
1425
- * showed base + the caller's group for its modules and base + EVERY
1426
- * pending patch on the branch for any `jsonValues` entry, including other
1427
- * authors' half-finished edits. See the same flag on `/sources/~` above.
1428
- */
1429
- own_patch_groups_only: true
1403
+ apply_patches: true
1430
1404
  },
1431
1405
  cookies: createForOfIteratorHelper._defineProperty({}, internal.VAL_SESSION_COOKIE, (_cookies4 = cookies) === null || _cookies4 === void 0 || (_cookies4 = _cookies4.get(internal.VAL_SESSION_COOKIE)) === null || _cookies4 === void 0 ? void 0 : _cookies4.value)
1432
1406
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var version = require('../../dist/version-f2104ec1.cjs.prod.js');
5
+ var version = require('../../dist/version-b301aa2f.cjs.prod.js');
6
6
  var core = require('@valbuild/core');
7
7
  var createForOfIteratorHelper = require('../../dist/createForOfIteratorHelper-9afd7d2d.cjs.prod.js');
8
8
  var server = require('@valbuild/server');
@@ -462,22 +462,7 @@ function _loadDraftSources() {
462
462
  exclude_patches: false,
463
463
  // The server-side read uses the legacy "server applies patches"
464
464
  // path, same as the Next package's.
465
- apply_patches: undefined,
466
- /*
467
- * The caller's own staged work, and nobody else's.
468
- *
469
- * A draft render cannot name its group ids — it has no client
470
- * state — so it asks for "mine" and the server resolves them from
471
- * the session. Without this a preview shows base + every pending
472
- * patch on the branch, so one person's half-finished edit appears
473
- * in another person's draft.
474
- *
475
- * `patch_id` stays `undefined`: naming an explicit list is for a
476
- * caller that already knows what it wants, and it would override
477
- * the resolution rather than intersect with it.
478
- */
479
- patch_id: undefined,
480
- own_patch_groups_only: true
465
+ apply_patches: undefined
481
466
  },
482
467
  cookies: createForOfIteratorHelper._defineProperty({}, internal.VAL_SESSION_COOKIE, sessionCookie)
483
468
  });
@@ -948,8 +933,7 @@ function _withDraftJsonEntries() {
948
933
  return valServer["/patches"]["GET"]({
949
934
  query: {
950
935
  patch_id: appliedPatchIds,
951
- exclude_patch_ops: false,
952
- include_patch_groups: undefined
936
+ exclude_patch_ops: false
953
937
  },
954
938
  cookies: cookies
955
939
  });
@@ -1055,8 +1039,7 @@ function _withDraftJsonEntries() {
1055
1039
  keys: keys.slice(i, i + internal.JSON_ENTRIES_BATCH_MAX),
1056
1040
  offset: undefined,
1057
1041
  limit: undefined,
1058
- apply_patches: true,
1059
- own_patch_groups_only: true
1042
+ apply_patches: true
1060
1043
  },
1061
1044
  cookies: cookies
1062
1045
  });
@@ -1417,16 +1400,7 @@ function _loadDraftJsonEntry() {
1417
1400
  // single-entry shape
1418
1401
  offset: undefined,
1419
1402
  limit: undefined,
1420
- apply_patches: true,
1421
- /*
1422
- * Scoped the same way the module content beside it is.
1423
- *
1424
- * A draft page renders both, and this call was unscoped — so one page
1425
- * showed base + the caller's group for its modules and base + EVERY
1426
- * pending patch on the branch for any `jsonValues` entry, including other
1427
- * authors' half-finished edits. See the same flag on `/sources/~` above.
1428
- */
1429
- own_patch_groups_only: true
1403
+ apply_patches: true
1430
1404
  },
1431
1405
  cookies: createForOfIteratorHelper._defineProperty({}, internal.VAL_SESSION_COOKIE, (_cookies4 = cookies) === null || _cookies4 === void 0 || (_cookies4 = _cookies4.get(internal.VAL_SESSION_COOKIE)) === null || _cookies4 === void 0 ? void 0 : _cookies4.value)
1432
1406
  });
@@ -1,4 +1,4 @@
1
- import { _ as _asyncToGenerator, a as _regenerator, V as VERSION, s as setValEnableCookieReader } from '../../dist/version-bfd9027c.esm.js';
1
+ import { _ as _asyncToGenerator, a as _regenerator, V as VERSION, s as setValEnableCookieReader } from '../../dist/version-db35a9ef.esm.js';
2
2
  import { Internal } from '@valbuild/core';
3
3
  import { _ as _objectSpread2, a as _slicedToArray, e as _arrayLikeToArray, f as _unsupportedIterableToArray, b as _createForOfIteratorHelper, d as _defineProperty } from '../../dist/createForOfIteratorHelper-93a62170.esm.js';
4
4
  import { createValApiRouter, createValServer, layeredSnapshot, proposalSnapshotForReaders, proposalSnapshot } from '@valbuild/server';
@@ -441,22 +441,7 @@ function _loadDraftSources() {
441
441
  exclude_patches: false,
442
442
  // The server-side read uses the legacy "server applies patches"
443
443
  // path, same as the Next package's.
444
- apply_patches: undefined,
445
- /*
446
- * The caller's own staged work, and nobody else's.
447
- *
448
- * A draft render cannot name its group ids — it has no client
449
- * state — so it asks for "mine" and the server resolves them from
450
- * the session. Without this a preview shows base + every pending
451
- * patch on the branch, so one person's half-finished edit appears
452
- * in another person's draft.
453
- *
454
- * `patch_id` stays `undefined`: naming an explicit list is for a
455
- * caller that already knows what it wants, and it would override
456
- * the resolution rather than intersect with it.
457
- */
458
- patch_id: undefined,
459
- own_patch_groups_only: true
444
+ apply_patches: undefined
460
445
  },
461
446
  cookies: _defineProperty({}, VAL_SESSION_COOKIE, sessionCookie)
462
447
  });
@@ -927,8 +912,7 @@ function _withDraftJsonEntries() {
927
912
  return valServer["/patches"]["GET"]({
928
913
  query: {
929
914
  patch_id: appliedPatchIds,
930
- exclude_patch_ops: false,
931
- include_patch_groups: undefined
915
+ exclude_patch_ops: false
932
916
  },
933
917
  cookies: cookies
934
918
  });
@@ -1034,8 +1018,7 @@ function _withDraftJsonEntries() {
1034
1018
  keys: keys.slice(i, i + JSON_ENTRIES_BATCH_MAX),
1035
1019
  offset: undefined,
1036
1020
  limit: undefined,
1037
- apply_patches: true,
1038
- own_patch_groups_only: true
1021
+ apply_patches: true
1039
1022
  },
1040
1023
  cookies: cookies
1041
1024
  });
@@ -1396,16 +1379,7 @@ function _loadDraftJsonEntry() {
1396
1379
  // single-entry shape
1397
1380
  offset: undefined,
1398
1381
  limit: undefined,
1399
- apply_patches: true,
1400
- /*
1401
- * Scoped the same way the module content beside it is.
1402
- *
1403
- * A draft page renders both, and this call was unscoped — so one page
1404
- * showed base + the caller's group for its modules and base + EVERY
1405
- * pending patch on the branch for any `jsonValues` entry, including other
1406
- * authors' half-finished edits. See the same flag on `/sources/~` above.
1407
- */
1408
- own_patch_groups_only: true
1382
+ apply_patches: true
1409
1383
  },
1410
1384
  cookies: _defineProperty({}, VAL_SESSION_COOKIE, (_cookies4 = cookies) === null || _cookies4 === void 0 || (_cookies4 = _cookies4.get(VAL_SESSION_COOKIE)) === null || _cookies4 === void 0 ? void 0 : _cookies4.value)
1411
1385
  });