@valbuild/server 0.153.0 → 0.153.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.
Files changed (31) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/browser/dist/valbuild-server-browser.cjs.dev.js +2 -2
  3. package/browser/dist/valbuild-server-browser.cjs.prod.js +2 -2
  4. package/browser/dist/valbuild-server-browser.esm.js +2 -2
  5. package/dist/{ValRouter-c289e074.cjs.prod.js → ValRouter-40bf46a2.cjs.prod.js} +3 -3
  6. package/dist/{ValRouter-cf781930.cjs.dev.js → ValRouter-6c633acf.cjs.dev.js} +3 -3
  7. package/dist/{ValRouter-0393906a.esm.js → ValRouter-db465719.esm.js} +3 -3
  8. package/dist/{ValRouterCore-356d7093.cjs.prod.js → ValRouterCore-2d86ff95.cjs.prod.js} +1 -1
  9. package/dist/{ValRouterCore-0aff3db3.cjs.dev.js → ValRouterCore-a4d99115.cjs.dev.js} +1 -1
  10. package/dist/{ValRouterCore-5cf45273.esm.js → ValRouterCore-b3773130.esm.js} +1 -1
  11. package/dist/declarations/src/draftReads.d.ts +1 -8
  12. package/dist/declarations/src/internal/index.d.ts +1 -1
  13. package/dist/{draftReads-05415ff6.cjs.dev.js → draftReads-0dcddf72.cjs.prod.js} +0 -17
  14. package/dist/{draftReads-5f99edd3.esm.js → draftReads-1f29aedd.esm.js} +2 -18
  15. package/dist/{draftReads-ea3946e0.cjs.prod.js → draftReads-df44e629.cjs.dev.js} +0 -17
  16. package/dist/{inTabFetch-40a26012.cjs.dev.js → inTabFetch-6382d21a.cjs.dev.js} +1 -1
  17. package/dist/{inTabFetch-3c5fa83d.esm.js → inTabFetch-80b6b9e8.esm.js} +1 -1
  18. package/dist/{inTabFetch-731f199d.cjs.prod.js → inTabFetch-95c17bcc.cjs.prod.js} +1 -1
  19. package/dist/{publishKit-90ea0493.cjs.dev.js → publishKit-500645fd.cjs.dev.js} +2 -2
  20. package/dist/{publishKit-c17c1152.cjs.prod.js → publishKit-b4c47ed0.cjs.prod.js} +2 -2
  21. package/dist/{publishKit-3f9af1dd.esm.js → publishKit-c03f3e49.esm.js} +3 -3
  22. package/dist/valbuild-server.cjs.dev.js +2 -2
  23. package/dist/valbuild-server.cjs.prod.js +2 -2
  24. package/dist/valbuild-server.esm.js +4 -4
  25. package/internal/browser/dist/valbuild-server-internal-browser.cjs.dev.js +3 -3
  26. package/internal/browser/dist/valbuild-server-internal-browser.cjs.prod.js +3 -3
  27. package/internal/browser/dist/valbuild-server-internal-browser.esm.js +3 -3
  28. package/internal/dist/valbuild-server-internal.cjs.dev.js +3 -4
  29. package/internal/dist/valbuild-server-internal.cjs.prod.js +3 -4
  30. package/internal/dist/valbuild-server-internal.esm.js +3 -3
  31. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @valbuild/server
2
2
 
3
+ ## 0.153.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1031](https://github.com/valbuild/val/pull/1031) [`6ec1a5d`](https://github.com/valbuild/val/commit/6ec1a5d244f0d6e064eca4135f167dfa79744f9a) Thanks [@freekh](https://github.com/freekh)! - A page no longer shows content made for code it does not have yet. When the Studio is ahead of the page (it picked up a code change first, or the browser is still running the previous build), the page keeps showing its own content for the modules whose schema changed, and says "The code changed" with a **Reload** button — in the overlay on your site, and above the page in the Studio. In local development the page usually catches up a moment later by itself, and the notice goes away without a reload.
8
+ - Updated dependencies [[`6ec1a5d`](https://github.com/valbuild/val/commit/6ec1a5d244f0d6e064eca4135f167dfa79744f9a), [`f1048d9`](https://github.com/valbuild/val/commit/f1048d93a76138d031b30d059c444a8f754b484d), [`b14870b`](https://github.com/valbuild/val/commit/b14870bebdc128234bb16e4ea06a0151d18c4771)]:
9
+ - @valbuild/shared@0.153.1
10
+ - @valbuild/ui@0.153.1
11
+
3
12
  ## 0.153.0
4
13
 
5
14
  ### Minor Changes
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../dist/inTabFetch-40a26012.cjs.dev.js');
5
+ var inTabFetch = require('../../dist/inTabFetch-6382d21a.cjs.dev.js');
6
6
  require('@valbuild/core');
7
- require('../../dist/ValRouterCore-0aff3db3.cjs.dev.js');
7
+ require('../../dist/ValRouterCore-a4d99115.cjs.dev.js');
8
8
  require('zod');
9
9
  require('@valbuild/shared/internal');
10
10
  require('zod-validation-error');
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../dist/inTabFetch-731f199d.cjs.prod.js');
5
+ var inTabFetch = require('../../dist/inTabFetch-95c17bcc.cjs.prod.js');
6
6
  require('@valbuild/core');
7
- require('../../dist/ValRouterCore-356d7093.cjs.prod.js');
7
+ require('../../dist/ValRouterCore-2d86ff95.cjs.prod.js');
8
8
  require('zod');
9
9
  require('@valbuild/shared/internal');
10
10
  require('zod-validation-error');
@@ -1,6 +1,6 @@
1
- export { c as createInTabValFetch } from '../../dist/inTabFetch-3c5fa83d.esm.js';
1
+ export { c as createInTabValFetch } from '../../dist/inTabFetch-80b6b9e8.esm.js';
2
2
  import '@valbuild/core';
3
- import '../../dist/ValRouterCore-5cf45273.esm.js';
3
+ import '../../dist/ValRouterCore-b3773130.esm.js';
4
4
  import 'zod';
5
5
  import '@valbuild/shared/internal';
6
6
  import 'zod-validation-error';
@@ -2,7 +2,7 @@
2
2
 
3
3
  var core = require('@valbuild/core');
4
4
  var server = require('@valbuild/ui/server');
5
- var ValRouterCore = require('./ValRouterCore-356d7093.cjs.prod.js');
5
+ var ValRouterCore = require('./ValRouterCore-2d86ff95.cjs.prod.js');
6
6
  var path = require('path');
7
7
  var ts = require('typescript');
8
8
  var z = require('zod');
@@ -2205,7 +2205,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
2205
2205
  * as a bundler does.
2206
2206
  */
2207
2207
  function loadTypeScriptKit() {
2208
- return Promise.resolve().then(function () { return require('./publishKit-c17c1152.cjs.prod.js'); });
2208
+ return Promise.resolve().then(function () { return require('./publishKit-b4c47ed0.cjs.prod.js'); });
2209
2209
  }
2210
2210
 
2211
2211
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -4989,7 +4989,7 @@ async function stagedModuleSources(files) {
4989
4989
  parseValFile,
4990
4990
  analyzeValModule,
4991
4991
  evaluateModuleSource
4992
- } = await Promise.resolve().then(function () { return require('./publishKit-c17c1152.cjs.prod.js'); });
4992
+ } = await Promise.resolve().then(function () { return require('./publishKit-b4c47ed0.cjs.prod.js'); });
4993
4993
  const sources = {};
4994
4994
  for (const {
4995
4995
  path,
@@ -2,7 +2,7 @@
2
2
 
3
3
  var core = require('@valbuild/core');
4
4
  var server = require('@valbuild/ui/server');
5
- var ValRouterCore = require('./ValRouterCore-0aff3db3.cjs.dev.js');
5
+ var ValRouterCore = require('./ValRouterCore-a4d99115.cjs.dev.js');
6
6
  var path = require('path');
7
7
  var ts = require('typescript');
8
8
  var z = require('zod');
@@ -2205,7 +2205,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
2205
2205
  * as a bundler does.
2206
2206
  */
2207
2207
  function loadTypeScriptKit() {
2208
- return Promise.resolve().then(function () { return require('./publishKit-90ea0493.cjs.dev.js'); });
2208
+ return Promise.resolve().then(function () { return require('./publishKit-500645fd.cjs.dev.js'); });
2209
2209
  }
2210
2210
 
2211
2211
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -4989,7 +4989,7 @@ async function stagedModuleSources(files) {
4989
4989
  parseValFile,
4990
4990
  analyzeValModule,
4991
4991
  evaluateModuleSource
4992
- } = await Promise.resolve().then(function () { return require('./publishKit-90ea0493.cjs.dev.js'); });
4992
+ } = await Promise.resolve().then(function () { return require('./publishKit-500645fd.cjs.dev.js'); });
4993
4993
  const sources = {};
4994
4994
  for (const {
4995
4995
  path,
@@ -1,6 +1,6 @@
1
1
  import { Internal, deserializeSchema, DEFAULT_CONTENT_HOST, DEFAULT_VAL_REMOTE_HOST } from '@valbuild/core';
2
2
  import { createUIRequestHandler } from '@valbuild/ui/server';
3
- import { r as resolveExistingJsonPath, s as summaryOf, m as matchesFilter, h as byUpdatedAt, n as newSketchpad, i as isSketchpadId, j as applySketchpadChange, k as ValOps, V as VAL_CLIENT_HEADERS, l as bufferFromDataUrl, o as getFieldsForType, u as uploadRemoteFile, d as getFileExt, p as guessMimeTypeFromPath, q as createMetadataFromBuffer, D as DEFAULT_ANALYTICS_INGEST_URL, e as ValOpsMemory, t as sessionAuth, w as isHttpOps, x as isHlsMasterPlaylist, y as sumHlsSegmentDurations, z as parseHlsMasterVariants, A as largestHlsVariant, B as fallbackRefOf, C as mapHlsUris, E as movedRemoteHost, F as needsHostCheck, G as rewriteRefHost, H as fallbackRemoteHost, J as checkRemoteFiles, K as ValServer, L as createValRequestHandler } from './ValRouterCore-5cf45273.esm.js';
3
+ import { r as resolveExistingJsonPath, s as summaryOf, m as matchesFilter, h as byUpdatedAt, n as newSketchpad, i as isSketchpadId, j as applySketchpadChange, k as ValOps, V as VAL_CLIENT_HEADERS, l as bufferFromDataUrl, o as getFieldsForType, u as uploadRemoteFile, d as getFileExt, p as guessMimeTypeFromPath, q as createMetadataFromBuffer, D as DEFAULT_ANALYTICS_INGEST_URL, e as ValOpsMemory, t as sessionAuth, w as isHttpOps, x as isHlsMasterPlaylist, y as sumHlsSegmentDurations, z as parseHlsMasterVariants, A as largestHlsVariant, B as fallbackRefOf, C as mapHlsUris, E as movedRemoteHost, F as needsHostCheck, G as rewriteRefHost, H as fallbackRemoteHost, J as checkRemoteFiles, K as ValServer, L as createValRequestHandler } from './ValRouterCore-b3773130.esm.js';
4
4
  import path from 'path';
5
5
  import ts from 'typescript';
6
6
  import { z } from 'zod';
@@ -2171,7 +2171,7 @@ function createFsSketchpadStore(rootDir, now = () => new Date()) {
2171
2171
  * as a bundler does.
2172
2172
  */
2173
2173
  function loadTypeScriptKit() {
2174
- return import('./publishKit-3f9af1dd.esm.js');
2174
+ return import('./publishKit-c03f3e49.esm.js');
2175
2175
  }
2176
2176
 
2177
2177
  /** Serializes a schema, or gives up quietly — serialization errors are reported elsewhere. */
@@ -4955,7 +4955,7 @@ async function stagedModuleSources(files) {
4955
4955
  parseValFile,
4956
4956
  analyzeValModule,
4957
4957
  evaluateModuleSource
4958
- } = await import('./publishKit-3f9af1dd.esm.js');
4958
+ } = await import('./publishKit-c03f3e49.esm.js');
4959
4959
  const sources = {};
4960
4960
  for (const {
4961
4961
  path,
@@ -6259,7 +6259,7 @@ var packageJson = {
6259
6259
  ],
6260
6260
  exports: true
6261
6261
  },
6262
- version: "0.153.0",
6262
+ version: "0.153.1",
6263
6263
  scripts: {
6264
6264
  typecheck: "tsc --noEmit",
6265
6265
  test: "jest",
@@ -6259,7 +6259,7 @@ var packageJson = {
6259
6259
  ],
6260
6260
  exports: true
6261
6261
  },
6262
- version: "0.153.0",
6262
+ version: "0.153.1",
6263
6263
  scripts: {
6264
6264
  typecheck: "tsc --noEmit",
6265
6265
  test: "jest",
@@ -6253,7 +6253,7 @@ var packageJson = {
6253
6253
  ],
6254
6254
  exports: true
6255
6255
  },
6256
- version: "0.153.0",
6256
+ version: "0.153.1",
6257
6257
  scripts: {
6258
6258
  typecheck: "tsc --noEmit",
6259
6259
  test: "jest",
@@ -1,4 +1,4 @@
1
- import { type Json, type ModuleFilePath, type SelectorSource, type ValModule } from "@valbuild/core";
1
+ import { type Json, type ModuleFilePath } from "@valbuild/core";
2
2
  import { type ContentSource, type ModuleVersion } from "@valbuild/shared/internal";
3
3
  import type { ValRuntime } from "./valRuntime.js";
4
4
  type Cookies = {
@@ -93,11 +93,4 @@ export declare function draftForRequest(opts: {
93
93
  enabled: boolean;
94
94
  draft: ContentSource | null;
95
95
  }>;
96
- /**
97
- * The version of the schema a reader's own code has for a module: what the
98
- * readers hold a draft's version against (`layered`'s schema rule), so
99
- * content is never read with a schema it was not made for. Hashed once per
100
- * module object, which a build makes once: a load cost, not a read cost.
101
- */
102
- export declare function readerSchemaVersion(module: ValModule<SelectorSource>): string | null;
103
96
  export {};
@@ -8,7 +8,7 @@
8
8
  * readers read from it (`draftForRequest` and friends).
9
9
  */
10
10
  export { createValRuntime } from "../ValRouter.js";
11
- export { draftForRequest, readDraftChanges, readerSchemaVersion, serverDraftSource, } from "../draftReads.js";
11
+ export { draftForRequest, readDraftChanges, serverDraftSource, } from "../draftReads.js";
12
12
  export type { DraftModuleRead } from "../draftReads.js";
13
13
  export { proposalAsBuilt, servingBuildOf, stagedAfterBuild, type ServingBuild, } from "../proposal.js";
14
14
  export { valRuntime, type ValRuntime } from "../valRuntime.js";
@@ -343,24 +343,7 @@ function getHost(headers) {
343
343
  }
344
344
  return host ? `${proto}://${host}` : null;
345
345
  }
346
- const schemaVersions = new WeakMap();
347
-
348
- /**
349
- * The version of the schema a reader's own code has for a module: what the
350
- * readers hold a draft's version against (`layered`'s schema rule), so
351
- * content is never read with a schema it was not made for. Hashed once per
352
- * module object, which a build makes once: a load cost, not a read cost.
353
- */
354
- function readerSchemaVersion(module) {
355
- const cached = schemaVersions.get(module);
356
- if (cached !== undefined) return cached;
357
- const schema = core.Internal.getSchema(module);
358
- const version = schema === undefined ? null : internal.schemaVersionOf(schema["executeSerialize"]());
359
- schemaVersions.set(module, version);
360
- return version;
361
- }
362
346
 
363
347
  exports.draftForRequest = draftForRequest;
364
348
  exports.readDraftChanges = readDraftChanges;
365
- exports.readerSchemaVersion = readerSchemaVersion;
366
349
  exports.serverDraftSource = serverDraftSource;
@@ -1,5 +1,5 @@
1
1
  import { Internal } from '@valbuild/core';
2
- import { VAL_SESSION_COOKIE, schemaVersionOf } from '@valbuild/shared/internal';
2
+ import { VAL_SESSION_COOKIE } from '@valbuild/shared/internal';
3
3
 
4
4
  /*
5
5
  * The draft a server-side reader reads (`fetchVal` and friends, in
@@ -341,21 +341,5 @@ function getHost(headers) {
341
341
  }
342
342
  return host ? `${proto}://${host}` : null;
343
343
  }
344
- const schemaVersions = new WeakMap();
345
344
 
346
- /**
347
- * The version of the schema a reader's own code has for a module: what the
348
- * readers hold a draft's version against (`layered`'s schema rule), so
349
- * content is never read with a schema it was not made for. Hashed once per
350
- * module object, which a build makes once: a load cost, not a read cost.
351
- */
352
- function readerSchemaVersion(module) {
353
- const cached = schemaVersions.get(module);
354
- if (cached !== undefined) return cached;
355
- const schema = Internal.getSchema(module);
356
- const version = schema === undefined ? null : schemaVersionOf(schema["executeSerialize"]());
357
- schemaVersions.set(module, version);
358
- return version;
359
- }
360
-
361
- export { readerSchemaVersion as a, draftForRequest as d, readDraftChanges as r, serverDraftSource as s };
345
+ export { draftForRequest as d, readDraftChanges as r, serverDraftSource as s };
@@ -343,24 +343,7 @@ function getHost(headers) {
343
343
  }
344
344
  return host ? `${proto}://${host}` : null;
345
345
  }
346
- const schemaVersions = new WeakMap();
347
-
348
- /**
349
- * The version of the schema a reader's own code has for a module: what the
350
- * readers hold a draft's version against (`layered`'s schema rule), so
351
- * content is never read with a schema it was not made for. Hashed once per
352
- * module object, which a build makes once: a load cost, not a read cost.
353
- */
354
- function readerSchemaVersion(module) {
355
- const cached = schemaVersions.get(module);
356
- if (cached !== undefined) return cached;
357
- const schema = core.Internal.getSchema(module);
358
- const version = schema === undefined ? null : internal.schemaVersionOf(schema["executeSerialize"]());
359
- schemaVersions.set(module, version);
360
- return version;
361
- }
362
346
 
363
347
  exports.draftForRequest = draftForRequest;
364
348
  exports.readDraftChanges = readDraftChanges;
365
- exports.readerSchemaVersion = readerSchemaVersion;
366
349
  exports.serverDraftSource = serverDraftSource;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValRouterCore = require('./ValRouterCore-0aff3db3.cjs.dev.js');
4
+ var ValRouterCore = require('./ValRouterCore-a4d99115.cjs.dev.js');
5
5
 
6
6
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
7
7
 
@@ -1,5 +1,5 @@
1
1
  import { DEFAULT_CONTENT_HOST } from '@valbuild/core';
2
- import { e as ValOpsMemory, M as bytesToBase64, K as ValServer, L as createValRequestHandler } from './ValRouterCore-5cf45273.esm.js';
2
+ import { e as ValOpsMemory, M as bytesToBase64, K as ValServer, L as createValRequestHandler } from './ValRouterCore-b3773130.esm.js';
3
3
 
4
4
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
5
5
 
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var core = require('@valbuild/core');
4
- var ValRouterCore = require('./ValRouterCore-356d7093.cjs.prod.js');
4
+ var ValRouterCore = require('./ValRouterCore-2d86ff95.cjs.prod.js');
5
5
 
6
6
  const NO_SESSIONS = "Val: sessions are not available here -- this server runs in the browser, " + "has no secret to sign them with, and serves without authenticating.";
7
7
 
@@ -2,8 +2,8 @@
2
2
 
3
3
  var ts = require('typescript');
4
4
  var fp = require('@valbuild/core/fp');
5
- var ValRouter = require('./ValRouter-cf781930.cjs.dev.js');
6
- var ValRouterCore = require('./ValRouterCore-0aff3db3.cjs.dev.js');
5
+ var ValRouter = require('./ValRouter-6c633acf.cjs.dev.js');
6
+ var ValRouterCore = require('./ValRouterCore-a4d99115.cjs.dev.js');
7
7
  require('@valbuild/core');
8
8
  require('@valbuild/ui/server');
9
9
  require('path');
@@ -2,8 +2,8 @@
2
2
 
3
3
  var ts = require('typescript');
4
4
  var fp = require('@valbuild/core/fp');
5
- var ValRouter = require('./ValRouter-c289e074.cjs.prod.js');
6
- var ValRouterCore = require('./ValRouterCore-356d7093.cjs.prod.js');
5
+ var ValRouter = require('./ValRouter-40bf46a2.cjs.prod.js');
6
+ var ValRouterCore = require('./ValRouterCore-2d86ff95.cjs.prod.js');
7
7
  require('@valbuild/core');
8
8
  require('@valbuild/ui/server');
9
9
  require('path');
@@ -1,8 +1,8 @@
1
1
  import ts from 'typescript';
2
2
  import { result, pipe } from '@valbuild/core/fp';
3
- import { a as analyzeValModule, c as analyzeJsonValuesEntries, T as TSOps } from './ValRouter-0393906a.esm.js';
4
- export { c as analyzeJsonValuesEntries, a as analyzeValModule, a8 as evaluateModuleSource, i as insertValJsonEntry, a9 as jsonValuesRecordKeys, r as removeValJsonEntry } from './ValRouter-0393906a.esm.js';
5
- import { R as bytesToUtf8, S as posixPath } from './ValRouterCore-5cf45273.esm.js';
3
+ import { a as analyzeValModule, c as analyzeJsonValuesEntries, T as TSOps } from './ValRouter-db465719.esm.js';
4
+ export { c as analyzeJsonValuesEntries, a as analyzeValModule, a8 as evaluateModuleSource, i as insertValJsonEntry, a9 as jsonValuesRecordKeys, r as removeValJsonEntry } from './ValRouter-db465719.esm.js';
5
+ import { R as bytesToUtf8, S as posixPath } from './ValRouterCore-b3773130.esm.js';
6
6
  import '@valbuild/core';
7
7
  import '@valbuild/ui/server';
8
8
  import 'path';
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValRouter = require('./ValRouter-cf781930.cjs.dev.js');
5
+ var ValRouter = require('./ValRouter-6c633acf.cjs.dev.js');
6
6
  var patch = require('@valbuild/core/patch');
7
7
  var fp = require('@valbuild/core/fp');
8
8
  var core = require('@valbuild/core');
@@ -11,7 +11,7 @@ var path = require('path');
11
11
  var fs = require('fs');
12
12
  var vm = require('node:vm');
13
13
  var node_module = require('node:module');
14
- var ValRouterCore = require('./ValRouterCore-0aff3db3.cjs.dev.js');
14
+ var ValRouterCore = require('./ValRouterCore-a4d99115.cjs.dev.js');
15
15
  var internal = require('@valbuild/shared/internal');
16
16
  var sucrase = require('sucrase');
17
17
  var fs$1 = require('fs/promises');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValRouter = require('./ValRouter-c289e074.cjs.prod.js');
5
+ var ValRouter = require('./ValRouter-40bf46a2.cjs.prod.js');
6
6
  var patch = require('@valbuild/core/patch');
7
7
  var fp = require('@valbuild/core/fp');
8
8
  var core = require('@valbuild/core');
@@ -11,7 +11,7 @@ var path = require('path');
11
11
  var fs = require('fs');
12
12
  var vm = require('node:vm');
13
13
  var node_module = require('node:module');
14
- var ValRouterCore = require('./ValRouterCore-356d7093.cjs.prod.js');
14
+ var ValRouterCore = require('./ValRouterCore-2d86ff95.cjs.prod.js');
15
15
  var internal = require('@valbuild/shared/internal');
16
16
  var sucrase = require('sucrase');
17
17
  var fs$1 = require('fs/promises');
@@ -1,5 +1,5 @@
1
- import { T as TSOps, a as analyzeValModule, f as flatMapErrors, b as formatSyntaxError, c as analyzeJsonValuesEntries, r as removeValJsonEntry, i as insertValJsonEntry, d as collectionReferencePatches, e as checkGalleryFiles, h as handleVideoUploadRemote, g as handleVideoDownloadRemote, j as handleVideosetMetadata, k as handleVideosetUploadRemote, l as handleVideosetCheckRemote, m as handleVideosetCheckAllFiles, n as canReadVideoMetadata, u as unreadableVideoMetadataMessage, o as localFilesWarning, p as openRemoteUploadSession, q as uploadBytesToRemote, s as getPersonalAccessTokenPath, V as ValOpsFS } from './ValRouter-0393906a.esm.js';
2
- export { F as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, X as ValOpsHttp, a as analyzeValModule, R as checkRemoteRef, x as contentFromEnv, H as createFixPatch, t as createValApiRouter, D as createValOps, v as createValServer, a0 as decodeJwtWithoutVerifying, _ as describePatchStoreProblems, S as downloadFileFromRemote, a2 as encodeJwt, M as extractFileMetadata, L as extractImageMetadata, N as extractVideoMetadata, O as extractVideoMetadataFromFile, P as filesOfVideo, J as filesOfVideosetEntry, G as formatSyntaxErrorTree, U as getCachedRemoteFileDir, W as getCachedRemoteFilePath, a1 as getExpire, s as getPersonalAccessTokenPath, Q as getValidationErrorFileRef, m as handleVideosetCheckAllFiles, l as handleVideosetCheckRemote, j as handleVideosetMetadata, k as handleVideosetUploadRemote, C as initHandlerOptions, z as layeredSnapshot, Y as loadTypeScriptKit, K as parsePersonalAccessTokenFile, y as proposalFromEnv, A as proposalSnapshot, B as proposalSnapshotForReaders, Z as readPatchStore, E as resolveRemoteFileAuth, w as safeReadGit, $ as verifyJwt, I as videosetEntryVideoSchema } from './ValRouter-0393906a.esm.js';
1
+ import { T as TSOps, a as analyzeValModule, f as flatMapErrors, b as formatSyntaxError, c as analyzeJsonValuesEntries, r as removeValJsonEntry, i as insertValJsonEntry, d as collectionReferencePatches, e as checkGalleryFiles, h as handleVideoUploadRemote, g as handleVideoDownloadRemote, j as handleVideosetMetadata, k as handleVideosetUploadRemote, l as handleVideosetCheckRemote, m as handleVideosetCheckAllFiles, n as canReadVideoMetadata, u as unreadableVideoMetadataMessage, o as localFilesWarning, p as openRemoteUploadSession, q as uploadBytesToRemote, s as getPersonalAccessTokenPath, V as ValOpsFS } from './ValRouter-db465719.esm.js';
2
+ export { F as APP_MODE_REQUIRES_REMOTE_FILES, V as ValOpsFS, X as ValOpsHttp, a as analyzeValModule, R as checkRemoteRef, x as contentFromEnv, H as createFixPatch, t as createValApiRouter, D as createValOps, v as createValServer, a0 as decodeJwtWithoutVerifying, _ as describePatchStoreProblems, S as downloadFileFromRemote, a2 as encodeJwt, M as extractFileMetadata, L as extractImageMetadata, N as extractVideoMetadata, O as extractVideoMetadataFromFile, P as filesOfVideo, J as filesOfVideosetEntry, G as formatSyntaxErrorTree, U as getCachedRemoteFileDir, W as getCachedRemoteFilePath, a1 as getExpire, s as getPersonalAccessTokenPath, Q as getValidationErrorFileRef, m as handleVideosetCheckAllFiles, l as handleVideosetCheckRemote, j as handleVideosetMetadata, k as handleVideosetUploadRemote, C as initHandlerOptions, z as layeredSnapshot, Y as loadTypeScriptKit, K as parsePersonalAccessTokenFile, y as proposalFromEnv, A as proposalSnapshot, B as proposalSnapshotForReaders, Z as readPatchStore, E as resolveRemoteFileAuth, w as safeReadGit, $ as verifyJwt, I as videosetEntryVideoSchema } from './ValRouter-db465719.esm.js';
3
3
  import { applyPatch, PatchError, JSONOps, deepClone } from '@valbuild/core/patch';
4
4
  import { pipe, result } from '@valbuild/core/fp';
5
5
  import { derefPatch, Internal, extractValModules, DEFAULT_CONTENT_HOST } from '@valbuild/core';
@@ -9,8 +9,8 @@ import path from 'path';
9
9
  import fs from 'fs';
10
10
  import vm from 'node:vm';
11
11
  import { Module } from 'node:module';
12
- import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, v as validateJsonValuesEntries, g as getNewJsonEntryPaths, a as formatPatchSourceError, V as VAL_CLIENT_HEADERS } from './ValRouterCore-5cf45273.esm.js';
13
- export { I as InMemoryPatchStore, e as ValOpsMemory, b as askOncePerHost, a as formatPatchSourceError, d as getFileExt, c as getSettings, u as uploadRemoteFile } from './ValRouterCore-5cf45273.esm.js';
12
+ import { r as resolveExistingJsonPath, f as findNestedJsonValuesRecords, v as validateJsonValuesEntries, g as getNewJsonEntryPaths, a as formatPatchSourceError, V as VAL_CLIENT_HEADERS } from './ValRouterCore-b3773130.esm.js';
13
+ export { I as InMemoryPatchStore, e as ValOpsMemory, b as askOncePerHost, a as formatPatchSourceError, d as getFileExt, c as getSettings, u as uploadRemoteFile } from './ValRouterCore-b3773130.esm.js';
14
14
  import { isJsonValuesRootOp, rebaseContentOp, classifyJsonValuesOp, richTextImageSchema } from '@valbuild/shared/internal';
15
15
  export { classifyJsonValuesOp, rebaseContentOp } from '@valbuild/shared/internal';
16
16
  import { transform } from 'sucrase';
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../../dist/inTabFetch-40a26012.cjs.dev.js');
6
- var draftReads = require('../../../dist/draftReads-05415ff6.cjs.dev.js');
5
+ var inTabFetch = require('../../../dist/inTabFetch-6382d21a.cjs.dev.js');
6
+ var draftReads = require('../../../dist/draftReads-df44e629.cjs.dev.js');
7
7
  require('@valbuild/core');
8
- require('../../../dist/ValRouterCore-0aff3db3.cjs.dev.js');
8
+ require('../../../dist/ValRouterCore-a4d99115.cjs.dev.js');
9
9
  require('zod');
10
10
  require('@valbuild/shared/internal');
11
11
  require('zod-validation-error');
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var inTabFetch = require('../../../dist/inTabFetch-731f199d.cjs.prod.js');
6
- var draftReads = require('../../../dist/draftReads-ea3946e0.cjs.prod.js');
5
+ var inTabFetch = require('../../../dist/inTabFetch-95c17bcc.cjs.prod.js');
6
+ var draftReads = require('../../../dist/draftReads-0dcddf72.cjs.prod.js');
7
7
  require('@valbuild/core');
8
- require('../../../dist/ValRouterCore-356d7093.cjs.prod.js');
8
+ require('../../../dist/ValRouterCore-2d86ff95.cjs.prod.js');
9
9
  require('zod');
10
10
  require('@valbuild/shared/internal');
11
11
  require('zod-validation-error');
@@ -1,7 +1,7 @@
1
- export { a as createInTabVal } from '../../../dist/inTabFetch-3c5fa83d.esm.js';
2
- export { s as serverDraftSource } from '../../../dist/draftReads-5f99edd3.esm.js';
1
+ export { a as createInTabVal } from '../../../dist/inTabFetch-80b6b9e8.esm.js';
2
+ export { s as serverDraftSource } from '../../../dist/draftReads-1f29aedd.esm.js';
3
3
  import '@valbuild/core';
4
- import '../../../dist/ValRouterCore-5cf45273.esm.js';
4
+ import '../../../dist/ValRouterCore-b3773130.esm.js';
5
5
  import 'zod';
6
6
  import '@valbuild/shared/internal';
7
7
  import 'zod-validation-error';
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValRouter = require('../../dist/ValRouter-cf781930.cjs.dev.js');
6
- var draftReads = require('../../dist/draftReads-05415ff6.cjs.dev.js');
7
- var ValRouterCore = require('../../dist/ValRouterCore-0aff3db3.cjs.dev.js');
5
+ var ValRouter = require('../../dist/ValRouter-6c633acf.cjs.dev.js');
6
+ var draftReads = require('../../dist/draftReads-df44e629.cjs.dev.js');
7
+ var ValRouterCore = require('../../dist/ValRouterCore-a4d99115.cjs.dev.js');
8
8
  require('@valbuild/core');
9
9
  require('@valbuild/ui/server');
10
10
  require('path');
@@ -36,7 +36,6 @@ exports.stagedAfterBuild = ValRouter.stagedAfterBuild;
36
36
  exports.valRuntime = ValRouter.valRuntime;
37
37
  exports.draftForRequest = draftReads.draftForRequest;
38
38
  exports.readDraftChanges = draftReads.readDraftChanges;
39
- exports.readerSchemaVersion = draftReads.readerSchemaVersion;
40
39
  exports.serverDraftSource = draftReads.serverDraftSource;
41
40
  exports.HEAD_BUDGET_BYTES = ValRouterCore.HEAD_BUDGET_BYTES;
42
41
  exports.HEAD_VERSIONS_PER_MODULE = ValRouterCore.HEAD_VERSIONS_PER_MODULE;
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var ValRouter = require('../../dist/ValRouter-c289e074.cjs.prod.js');
6
- var draftReads = require('../../dist/draftReads-ea3946e0.cjs.prod.js');
7
- var ValRouterCore = require('../../dist/ValRouterCore-356d7093.cjs.prod.js');
5
+ var ValRouter = require('../../dist/ValRouter-40bf46a2.cjs.prod.js');
6
+ var draftReads = require('../../dist/draftReads-0dcddf72.cjs.prod.js');
7
+ var ValRouterCore = require('../../dist/ValRouterCore-2d86ff95.cjs.prod.js');
8
8
  require('@valbuild/core');
9
9
  require('@valbuild/ui/server');
10
10
  require('path');
@@ -36,7 +36,6 @@ exports.stagedAfterBuild = ValRouter.stagedAfterBuild;
36
36
  exports.valRuntime = ValRouter.valRuntime;
37
37
  exports.draftForRequest = draftReads.draftForRequest;
38
38
  exports.readDraftChanges = draftReads.readDraftChanges;
39
- exports.readerSchemaVersion = draftReads.readerSchemaVersion;
40
39
  exports.serverDraftSource = draftReads.serverDraftSource;
41
40
  exports.HEAD_BUDGET_BYTES = ValRouterCore.HEAD_BUDGET_BYTES;
42
41
  exports.HEAD_VERSIONS_PER_MODULE = ValRouterCore.HEAD_VERSIONS_PER_MODULE;
@@ -1,6 +1,6 @@
1
- export { a3 as createValRuntime, a4 as proposalAsBuilt, a5 as servingBuildOf, a6 as stagedAfterBuild, a7 as valRuntime } from '../../dist/ValRouter-0393906a.esm.js';
2
- export { d as draftForRequest, r as readDraftChanges, a as readerSchemaVersion, s as serverDraftSource } from '../../dist/draftReads-5f99edd3.esm.js';
3
- export { P as HEAD_BUDGET_BYTES, Q as HEAD_VERSIONS_PER_MODULE, N as ValHead, O as headWork } from '../../dist/ValRouterCore-5cf45273.esm.js';
1
+ export { a3 as createValRuntime, a4 as proposalAsBuilt, a5 as servingBuildOf, a6 as stagedAfterBuild, a7 as valRuntime } from '../../dist/ValRouter-db465719.esm.js';
2
+ export { d as draftForRequest, r as readDraftChanges, s as serverDraftSource } from '../../dist/draftReads-1f29aedd.esm.js';
3
+ export { P as HEAD_BUDGET_BYTES, Q as HEAD_VERSIONS_PER_MODULE, N as ValHead, O as headWork } from '../../dist/ValRouterCore-b3773130.esm.js';
4
4
  import '@valbuild/core';
5
5
  import '@valbuild/ui/server';
6
6
  import 'path';
package/package.json CHANGED
@@ -37,7 +37,7 @@
37
37
  ],
38
38
  "exports": true
39
39
  },
40
- "version": "0.153.0",
40
+ "version": "0.153.1",
41
41
  "devDependencies": {
42
42
  "@prettier/sync": "^0.6.1",
43
43
  "@types/jest": "^30.0.0",
@@ -52,8 +52,8 @@
52
52
  "zod": "^4.4.3",
53
53
  "zod-validation-error": "^5.0.0",
54
54
  "@valbuild/core": "0.153.0",
55
- "@valbuild/shared": "0.153.0",
56
- "@valbuild/ui": "0.153.0"
55
+ "@valbuild/shared": "0.153.1",
56
+ "@valbuild/ui": "0.153.1"
57
57
  },
58
58
  "engines": {
59
59
  "node": "^20.19.0 || >=22"