@valbuild/next 0.126.0 → 0.128.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.
Files changed (26) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/README.md +31 -0
  3. package/client/dist/valbuild-next-client.cjs.dev.js +1 -1
  4. package/client/dist/valbuild-next-client.cjs.prod.js +1 -1
  5. package/client/dist/valbuild-next-client.esm.js +1 -1
  6. package/dist/ValNextProvider-062a8dc9.cjs.dev.js +1 -1
  7. package/dist/ValNextProvider-3d2cd7e4.esm.js +1 -1
  8. package/dist/ValNextProvider-da189afe.cjs.prod.js +1 -1
  9. package/dist/{ValOverlayContext-e42a2e14.esm.js → ValOverlayContext-398baef3.esm.js} +13 -11
  10. package/dist/{ValOverlayContext-5bd7628b.cjs.dev.js → ValOverlayContext-98d33d86.cjs.dev.js} +13 -11
  11. package/dist/ValOverlayContext-9c4ae06d.cjs.js +7 -0
  12. package/dist/{ValOverlayContext-d690744f.cjs.prod.js → ValOverlayContext-9c4ae06d.cjs.prod.js} +13 -11
  13. package/dist/valbuild-next.cjs.dev.js +1 -1
  14. package/dist/valbuild-next.cjs.prod.js +1 -1
  15. package/dist/valbuild-next.esm.js +1 -1
  16. package/dist/{version-7b12f65c.cjs.dev.js → version-4edf83c0.cjs.prod.js} +1 -1
  17. package/dist/{version-ed4739ee.cjs.prod.js → version-bf879c9b.cjs.dev.js} +1 -1
  18. package/dist/{version-f8b10637.esm.js → version-c1db43d1.esm.js} +1 -1
  19. package/package.json +8 -8
  20. package/rsc/dist/valbuild-next-rsc.cjs.dev.js +1 -1
  21. package/rsc/dist/valbuild-next-rsc.cjs.prod.js +1 -1
  22. package/rsc/dist/valbuild-next-rsc.esm.js +1 -1
  23. package/server/dist/valbuild-next-server.cjs.dev.js +1 -1
  24. package/server/dist/valbuild-next-server.cjs.prod.js +1 -1
  25. package/server/dist/valbuild-next-server.esm.js +1 -1
  26. package/dist/ValOverlayContext-d690744f.cjs.js +0 -7
package/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # @valbuild/next
2
2
 
3
+ ## 0.128.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`8b52b33`](https://github.com/valbuild/val/commit/8b52b33e1f629f14f66cc71dcc7cf415d210c7d4), [`362fb49`](https://github.com/valbuild/val/commit/362fb49f30d2b04c4ff78d54dca2bf5ad978a05c), [`c595799`](https://github.com/valbuild/val/commit/c59579977a436ec530c6c69f2b340ab9829d97ab)]:
8
+ - @valbuild/core@0.128.0
9
+ - @valbuild/language-server@0.128.0
10
+ - @valbuild/mcp@0.128.0
11
+ - @valbuild/react@0.128.0
12
+ - @valbuild/server@0.128.0
13
+ - @valbuild/shared@0.128.0
14
+ - @valbuild/ui@0.127.0
15
+
16
+ ## 0.127.0
17
+
18
+ ### Patch Changes
19
+
20
+ - [#665](https://github.com/valbuild/val/pull/665) [`7072e07`](https://github.com/valbuild/val/commit/7072e07623c953a09ac14388ae22dada0b431ce3) Thanks [@freekh](https://github.com/freekh)! - `.nullable()` no longer drops the field's `.validate(...)` functions.
21
+
22
+ `.nullable()` returns a copy of the schema, and most of the schema classes built
23
+ that copy with an empty list of custom validators — so a validator declared
24
+ before the `.nullable()` was silently thrown away:
25
+
26
+ ```ts
27
+ s.number()
28
+ .validate((n) => (n > 100 ? "Too big" : false))
29
+ .nullable(); // the validator never ran
30
+ ```
31
+
32
+ `array`, `object`, `discriminatedUnion`, `enum`, `number`, `boolean`, `literal`,
33
+ `keyOf`, `date`, `dateTime`, `code`, `color` and `richtext` were affected;
34
+ `string`, `record`, `route`, `file` and `image` already carried them over, which
35
+ is why the bug was easy to miss. Validators now survive `.nullable()` on every
36
+ schema, in either order.
37
+
38
+ A validator on a nullable schema is called with `null` when the value is unset,
39
+ rather than being skipped — the same thing the schemas that never dropped them
40
+ have always done. If yours was written before the `.nullable()`, its argument is
41
+ typed as non-null even though `null` can reach it, so guard for it.
42
+
43
+ - Updated dependencies [[`7fa8699`](https://github.com/valbuild/val/commit/7fa869974bc895af992a7d5c18b76253636d7d65), [`600308d`](https://github.com/valbuild/val/commit/600308d0174990ad9f5c417147d160273489c65a), [`5b7fe05`](https://github.com/valbuild/val/commit/5b7fe05cec6365f9cd1de9ba31e65ed4a87edb63), [`88262ac`](https://github.com/valbuild/val/commit/88262ac8db068650a664981ef73556457d87741a), [`7072e07`](https://github.com/valbuild/val/commit/7072e07623c953a09ac14388ae22dada0b431ce3), [`29811c3`](https://github.com/valbuild/val/commit/29811c3f8c7e001a950e6f4833af6888e6a4efea), [`9983116`](https://github.com/valbuild/val/commit/99831164c5151aad7ca69de79e1d0d59878be251)]:
44
+ - @valbuild/core@0.127.0
45
+ - @valbuild/shared@0.127.0
46
+ - @valbuild/ui@0.127.0
47
+ - @valbuild/server@0.127.0
48
+ - @valbuild/react@0.127.0
49
+ - @valbuild/language-server@0.127.0
50
+ - @valbuild/mcp@0.127.0
51
+
3
52
  ## 0.126.0
4
53
 
5
54
  ### Patch Changes
package/README.md CHANGED
@@ -385,6 +385,16 @@ import { s } from "./val.config";
385
385
  s.string().nullable(); // <- Schema<string | null>
386
386
  ```
387
387
 
388
+ `.nullable()` can go before or after `.validate(...)` — a validator declared on
389
+ either side of it is kept, and runs on `null` too, so the validator decides for
390
+ itself what an unset value means:
391
+
392
+ ```ts
393
+ s.string()
394
+ .nullable()
395
+ .validate((val) => (val === null ? "Please fill this in" : false));
396
+ ```
397
+
388
398
  ## Read-only and hidden fields
389
399
 
390
400
  `.readonly()` renders a field disabled in the Val editor, and `.hidden()` leaves
@@ -1328,6 +1338,27 @@ s.string().validate((val) => {
1328
1338
  });
1329
1339
  ```
1330
1340
 
1341
+ `.validate(...)` and `.nullable()` can be written in either order: the validator
1342
+ is carried through the copy `.nullable()` makes. On a nullable schema the value
1343
+ reaching the validator can be `null`, and it is handed over rather than skipped —
1344
+ so a validator declared **before** the `.nullable()` has to guard for it, since
1345
+ its argument is still typed as non-null there:
1346
+
1347
+ ```ts
1348
+ s.string()
1349
+ .validate((val) => (val !== null && val.length > 80 ? "Too long" : false))
1350
+ .nullable();
1351
+
1352
+ // Declared after, and the argument is typed `string | null`:
1353
+ s.string()
1354
+ .nullable()
1355
+ .validate((val) => (val !== null && val.length > 80 ? "Too long" : false));
1356
+ ```
1357
+
1358
+ Not every modifier is order-free, though: a record's `.jsonValues()` changes the
1359
+ source shape, so it must come **before** `.validate(...)` and `.preview(...)`,
1360
+ and throws with that message if it does not.
1361
+
1331
1362
  ## Get in touch
1332
1363
 
1333
1364
  Join us on [discord](https://discord.gg/cZzqPvaX8k) to get help or give us feedback.
@@ -7,7 +7,7 @@ var routeFromVal = require('../../dist/routeFromVal-d53d5ffb.cjs.dev.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
10
- var ValOverlayContext = require('../../dist/ValOverlayContext-5bd7628b.cjs.dev.js');
10
+ var ValOverlayContext = require('../../dist/ValOverlayContext-98d33d86.cjs.dev.js');
11
11
  require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
12
12
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
13
13
  require('../../dist/objectSpread2-58024783.cjs.dev.js');
@@ -7,7 +7,7 @@ var routeFromVal = require('../../dist/routeFromVal-e0995830.cjs.prod.js');
7
7
  var core = require('@valbuild/core');
8
8
  var stega = require('@valbuild/react/stega');
9
9
  var React = require('react');
10
- var ValOverlayContext = require('../../dist/ValOverlayContext-d690744f.cjs.prod.js');
10
+ var ValOverlayContext = require('../../dist/ValOverlayContext-9c4ae06d.cjs.prod.js');
11
11
  require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
12
12
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
13
13
  require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
@@ -3,7 +3,7 @@ import { g as getJsonEntryStegaRoot, _ as _typeof, a as isJsonValuesRecordSchema
3
3
  import { Internal } from '@valbuild/core';
4
4
  import { getModuleIds, stegaEncode } from '@valbuild/react/stega';
5
5
  import React from 'react';
6
- import { useValOverlayContext } from '../../dist/ValOverlayContext-e42a2e14.esm.js';
6
+ import { useValOverlayContext } from '../../dist/ValOverlayContext-398baef3.esm.js';
7
7
  import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
8
8
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
9
9
  import '../../dist/objectSpread2-60d1bd93.esm.js';
@@ -11,7 +11,7 @@ var ui = require('@valbuild/ui');
11
11
  var navigation = require('next/navigation');
12
12
  var Script = require('next/script');
13
13
  var React = require('react');
14
- var ValOverlayContext = require('./ValOverlayContext-5bd7628b.cjs.dev.js');
14
+ var ValOverlayContext = require('./ValOverlayContext-98d33d86.cjs.dev.js');
15
15
  var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-080c1bbc.cjs.dev.js');
17
17
  var client = require('@valbuild/shared/client');
@@ -7,7 +7,7 @@ import { VERSION, VAL_APP_PATH, VAL_OVERLAY_ID } from '@valbuild/ui';
7
7
  import { useRouter, usePathname } from 'next/navigation';
8
8
  import Script from 'next/script';
9
9
  import React, { useEffect } from 'react';
10
- import { ValExternalStore, ValOverlayProvider } from './ValOverlayContext-e42a2e14.esm.js';
10
+ import { ValExternalStore, ValOverlayProvider } from './ValOverlayContext-398baef3.esm.js';
11
11
  import { SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/stega';
12
12
  import { p as prefixStyles, u as useConfigStorageSave, f as floatDarkBg, d as floatLightBg, v as valPrefixedClass, c as cn } from './fallbackColors-149dfbc9.esm.js';
13
13
  import { VAL_THEME_SESSION_STORAGE_KEY, isValCanvasFrame } from '@valbuild/shared/client';
@@ -11,7 +11,7 @@ var ui = require('@valbuild/ui');
11
11
  var navigation = require('next/navigation');
12
12
  var Script = require('next/script');
13
13
  var React = require('react');
14
- var ValOverlayContext = require('./ValOverlayContext-d690744f.cjs.prod.js');
14
+ var ValOverlayContext = require('./ValOverlayContext-9c4ae06d.cjs.prod.js');
15
15
  var stega = require('@valbuild/react/stega');
16
16
  var fallbackColors = require('./fallbackColors-e1d73b36.cjs.prod.js');
17
17
  var client = require('@valbuild/shared/client');
@@ -24,20 +24,22 @@ function _createClass(e, r, t) {
24
24
 
25
25
  var LOAD_TIMEOUT_MS = 10000;
26
26
  var ValExternalStore = /*#__PURE__*/function () {
27
- // Path-keyed cache of every source seen via update(). The single source of
28
- // truth: load state and snapshots are both derived from this, so data can be
29
- // queried for any combination of paths even before a subscriber registers.
30
-
31
- // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
32
- // Built lazily from loadedSources in get() and invalidated in update().
33
-
34
- // One-shot listeners used solely by waitForLoad. Kept separate from the
35
- // useSyncExternalStore listeners so waitForLoad never has to register (and
36
- // leak) a subscriberId.
37
-
38
27
  function ValExternalStore() {
39
28
  var _this = this;
40
29
  _classCallCheck(this, ValExternalStore);
30
+ _defineProperty(this, "listeners", void 0);
31
+ _defineProperty(this, "loadPromises", void 0);
32
+ // Path-keyed cache of every source seen via update(). The single source of
33
+ // truth: load state and snapshots are both derived from this, so data can be
34
+ // queried for any combination of paths even before a subscriber registers.
35
+ _defineProperty(this, "loadedSources", void 0);
36
+ // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
37
+ // Built lazily from loadedSources in get() and invalidated in update().
38
+ _defineProperty(this, "snapshots", void 0);
39
+ // One-shot listeners used solely by waitForLoad. Kept separate from the
40
+ // useSyncExternalStore listeners so waitForLoad never has to register (and
41
+ // leak) a subscriberId.
42
+ _defineProperty(this, "loadListeners", void 0);
41
43
  _defineProperty(this, "subscribe", function (paths) {
42
44
  return function (listener) {
43
45
  var subscriberId = createSubscriberId(paths);
@@ -32,20 +32,22 @@ function _createClass(e, r, t) {
32
32
 
33
33
  var LOAD_TIMEOUT_MS = 10000;
34
34
  var ValExternalStore = /*#__PURE__*/function () {
35
- // Path-keyed cache of every source seen via update(). The single source of
36
- // truth: load state and snapshots are both derived from this, so data can be
37
- // queried for any combination of paths even before a subscriber registers.
38
-
39
- // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
40
- // Built lazily from loadedSources in get() and invalidated in update().
41
-
42
- // One-shot listeners used solely by waitForLoad. Kept separate from the
43
- // useSyncExternalStore listeners so waitForLoad never has to register (and
44
- // leak) a subscriberId.
45
-
46
35
  function ValExternalStore() {
47
36
  var _this = this;
48
37
  _classCallCheck(this, ValExternalStore);
38
+ defineProperty._defineProperty(this, "listeners", void 0);
39
+ defineProperty._defineProperty(this, "loadPromises", void 0);
40
+ // Path-keyed cache of every source seen via update(). The single source of
41
+ // truth: load state and snapshots are both derived from this, so data can be
42
+ // queried for any combination of paths even before a subscriber registers.
43
+ defineProperty._defineProperty(this, "loadedSources", void 0);
44
+ // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
45
+ // Built lazily from loadedSources in get() and invalidated in update().
46
+ defineProperty._defineProperty(this, "snapshots", void 0);
47
+ // One-shot listeners used solely by waitForLoad. Kept separate from the
48
+ // useSyncExternalStore listeners so waitForLoad never has to register (and
49
+ // leak) a subscriberId.
50
+ defineProperty._defineProperty(this, "loadListeners", void 0);
49
51
  defineProperty._defineProperty(this, "subscribe", function (paths) {
50
52
  return function (listener) {
51
53
  var subscriberId = createSubscriberId(paths);
@@ -0,0 +1,7 @@
1
+ 'use strict';
2
+
3
+ if (process.env.NODE_ENV === "production") {
4
+ module.exports = require("./ValOverlayContext-9c4ae06d.cjs.prod.js");
5
+ } else {
6
+ module.exports = require("./ValOverlayContext-9c4ae06d.cjs.dev.js");
7
+ }
@@ -32,20 +32,22 @@ function _createClass(e, r, t) {
32
32
 
33
33
  var LOAD_TIMEOUT_MS = 10000;
34
34
  var ValExternalStore = /*#__PURE__*/function () {
35
- // Path-keyed cache of every source seen via update(). The single source of
36
- // truth: load state and snapshots are both derived from this, so data can be
37
- // queried for any combination of paths even before a subscriber registers.
38
-
39
- // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
40
- // Built lazily from loadedSources in get() and invalidated in update().
41
-
42
- // One-shot listeners used solely by waitForLoad. Kept separate from the
43
- // useSyncExternalStore listeners so waitForLoad never has to register (and
44
- // leak) a subscriberId.
45
-
46
35
  function ValExternalStore() {
47
36
  var _this = this;
48
37
  _classCallCheck(this, ValExternalStore);
38
+ defineProperty._defineProperty(this, "listeners", void 0);
39
+ defineProperty._defineProperty(this, "loadPromises", void 0);
40
+ // Path-keyed cache of every source seen via update(). The single source of
41
+ // truth: load state and snapshots are both derived from this, so data can be
42
+ // queried for any combination of paths even before a subscriber registers.
43
+ defineProperty._defineProperty(this, "loadedSources", void 0);
44
+ // Reference-stable per-subscriberId snapshot cache for useSyncExternalStore.
45
+ // Built lazily from loadedSources in get() and invalidated in update().
46
+ defineProperty._defineProperty(this, "snapshots", void 0);
47
+ // One-shot listeners used solely by waitForLoad. Kept separate from the
48
+ // useSyncExternalStore listeners so waitForLoad never has to register (and
49
+ // leak) a subscriberId.
50
+ defineProperty._defineProperty(this, "loadListeners", void 0);
49
51
  defineProperty._defineProperty(this, "subscribe", function (paths) {
50
52
  return function (listener) {
51
53
  var subscriberId = createSubscriberId(paths);
@@ -12,7 +12,7 @@ var NextImage = require('next/image');
12
12
  var jsxRuntime = require('react/jsx-runtime');
13
13
  var ValApp = require('./ValApp-294e5b53.cjs.dev.js');
14
14
  var ValModulesClient = require('./ValModulesClient-4ecabf99.cjs.dev.js');
15
- var version = require('./version-7b12f65c.cjs.dev.js');
15
+ var version = require('./version-bf879c9b.cjs.dev.js');
16
16
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-0445603c.cjs.dev.js');
17
17
  require('./defineProperty-f90345d7.cjs.dev.js');
18
18
  require('./unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
@@ -12,7 +12,7 @@ var NextImage = require('next/image');
12
12
  var jsxRuntime = require('react/jsx-runtime');
13
13
  var ValApp = require('./ValApp-ab8a96fd.cjs.prod.js');
14
14
  var ValModulesClient = require('./ValModulesClient-10c0721c.cjs.prod.js');
15
- var version = require('./version-ed4739ee.cjs.prod.js');
15
+ var version = require('./version-4edf83c0.cjs.prod.js');
16
16
  var createForOfIteratorHelper = require('./createForOfIteratorHelper-d4afcad8.cjs.prod.js');
17
17
  require('./defineProperty-8951f469.cjs.prod.js');
18
18
  require('./unsupportedIterableToArray-0d2087a2.cjs.prod.js');
@@ -11,7 +11,7 @@ import NextImage from 'next/image';
11
11
  import { jsx } from 'react/jsx-runtime';
12
12
  export { ValApp } from './ValApp-3a70afe1.esm.js';
13
13
  export { ValModulesClient, useRegisterValModules } from './ValModulesClient-0dd601a1.esm.js';
14
- import { V as VERSION } from './version-f8b10637.esm.js';
14
+ import { V as VERSION } from './version-c1db43d1.esm.js';
15
15
  import { _ as _createForOfIteratorHelper } from './createForOfIteratorHelper-5758a730.esm.js';
16
16
  import './defineProperty-cca5affa.esm.js';
17
17
  import './unsupportedIterableToArray-5baabfdc.esm.js';
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.126.0",
17
+ version: "0.128.0",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -14,7 +14,7 @@ var packageJson = {
14
14
  "next",
15
15
  "react"
16
16
  ],
17
- version: "0.126.0",
17
+ version: "0.128.0",
18
18
  scripts: {
19
19
  typecheck: "tsc --noEmit",
20
20
  test: "jest"
@@ -12,7 +12,7 @@ var packageJson = {
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- version: "0.126.0",
15
+ version: "0.128.0",
16
16
  scripts: {
17
17
  typecheck: "tsc --noEmit",
18
18
  test: "jest"
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "next",
13
13
  "react"
14
14
  ],
15
- "version": "0.126.0",
15
+ "version": "0.128.0",
16
16
  "main": "dist/valbuild-next.cjs.js",
17
17
  "module": "dist/valbuild-next.esm.js",
18
18
  "exports": {
@@ -47,13 +47,13 @@
47
47
  "dependencies": {
48
48
  "client-only": "^0.0.1",
49
49
  "server-only": "^0.0.1",
50
- "@valbuild/core": "0.126.0",
51
- "@valbuild/language-server": "0.126.0",
52
- "@valbuild/react": "0.126.0",
53
- "@valbuild/mcp": "0.126.0",
54
- "@valbuild/server": "0.126.0",
55
- "@valbuild/shared": "0.126.0",
56
- "@valbuild/ui": "0.126.0"
50
+ "@valbuild/core": "0.128.0",
51
+ "@valbuild/language-server": "0.128.0",
52
+ "@valbuild/mcp": "0.128.0",
53
+ "@valbuild/react": "0.128.0",
54
+ "@valbuild/server": "0.128.0",
55
+ "@valbuild/shared": "0.128.0",
56
+ "@valbuild/ui": "0.127.0"
57
57
  },
58
58
  "devDependencies": {
59
59
  "@testing-library/react": "^16.3.3",
@@ -11,7 +11,7 @@ var stega = require('@valbuild/react/stega');
11
11
  var core = require('@valbuild/core');
12
12
  var internal = require('@valbuild/shared/internal');
13
13
  var server = require('@valbuild/server');
14
- var version = require('../../dist/version-7b12f65c.cjs.dev.js');
14
+ var version = require('../../dist/version-bf879c9b.cjs.dev.js');
15
15
  require('../../dist/createForOfIteratorHelper-0445603c.cjs.dev.js');
16
16
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
17
17
  require('../../dist/slicedToArray-44036a76.cjs.dev.js');
@@ -11,7 +11,7 @@ var stega = require('@valbuild/react/stega');
11
11
  var core = require('@valbuild/core');
12
12
  var internal = require('@valbuild/shared/internal');
13
13
  var server = require('@valbuild/server');
14
- var version = require('../../dist/version-ed4739ee.cjs.prod.js');
14
+ var version = require('../../dist/version-4edf83c0.cjs.prod.js');
15
15
  require('../../dist/createForOfIteratorHelper-d4afcad8.cjs.prod.js');
16
16
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
17
17
  require('../../dist/slicedToArray-ce613de6.cjs.prod.js');
@@ -7,7 +7,7 @@ import { SET_RSC, stegaEncode, SET_AUTO_TAG_JSX_ENABLED } from '@valbuild/react/
7
7
  import { Internal } from '@valbuild/core';
8
8
  import { VAL_SESSION_COOKIE } from '@valbuild/shared/internal';
9
9
  import { createValServer } from '@valbuild/server';
10
- import { V as VERSION } from '../../dist/version-f8b10637.esm.js';
10
+ import { V as VERSION } from '../../dist/version-c1db43d1.esm.js';
11
11
  import '../../dist/createForOfIteratorHelper-5758a730.esm.js';
12
12
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
13
13
  import '../../dist/slicedToArray-aa291011.esm.js';
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-58024783.cjs.dev.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-7b12f65c.cjs.dev.js');
12
+ var version = require('../../dist/version-bf879c9b.cjs.dev.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-c8ab77c9.cjs.dev.js');
15
15
  require('../../dist/defineProperty-f90345d7.cjs.dev.js');
@@ -9,7 +9,7 @@ var objectSpread2 = require('../../dist/objectSpread2-13f847a9.cjs.prod.js');
9
9
  var core = require('@valbuild/core');
10
10
  var server = require('@valbuild/server');
11
11
  var server$1 = require('next/server');
12
- var version = require('../../dist/version-ed4739ee.cjs.prod.js');
12
+ var version = require('../../dist/version-4edf83c0.cjs.prod.js');
13
13
  var mcp = require('@valbuild/mcp');
14
14
  require('../../dist/unsupportedIterableToArray-0d2087a2.cjs.prod.js');
15
15
  require('../../dist/defineProperty-8951f469.cjs.prod.js');
@@ -5,7 +5,7 @@ import { _ as _objectSpread2 } from '../../dist/objectSpread2-60d1bd93.esm.js';
5
5
  import { Internal } from '@valbuild/core';
6
6
  import { createValApiRouter, createValServer } from '@valbuild/server';
7
7
  import { NextResponse } from 'next/server';
8
- import { V as VERSION } from '../../dist/version-f8b10637.esm.js';
8
+ import { V as VERSION } from '../../dist/version-c1db43d1.esm.js';
9
9
  import { initValMcp as initValMcp$1 } from '@valbuild/mcp';
10
10
  import '../../dist/unsupportedIterableToArray-5baabfdc.esm.js';
11
11
  import '../../dist/defineProperty-cca5affa.esm.js';
@@ -1,7 +0,0 @@
1
- 'use strict';
2
-
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./ValOverlayContext-d690744f.cjs.prod.js");
5
- } else {
6
- module.exports = require("./ValOverlayContext-d690744f.cjs.dev.js");
7
- }