@valbuild/tanstack-build 0.136.3 → 0.138.4

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,22 @@
1
1
  # @valbuild/tanstack-build
2
2
 
3
+ ## 0.138.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [#771](https://github.com/valbuild/val/pull/771) [`63bff05`](https://github.com/valbuild/val/commit/63bff0589b6df42efaa63ec606688d20a9670439) Thanks [@freekh](https://github.com/freekh)! - Changes that are already published no longer briefly vanish from the Studio, or show up twice, right after a publish in app mode.
8
+
9
+ A build the Studio makes in the browser now records which publish it was made for, so Val knows exactly which changes the running site already has. Before this, Val worked that out from whichever build was live, and was wrong for a moment while a publish was going live. A reload in that moment could hide changes that were not on the site yet, or apply ones that were a second time. Projects set up before this release need no changes.
10
+
11
+ ## 0.136.10
12
+
13
+ ### Patch Changes
14
+
15
+ - [#741](https://github.com/valbuild/val/pull/741) [`4d3e7dc`](https://github.com/valbuild/val/commit/4d3e7dce6b07390f6c47089b5a949dc5fd8409fd) Thanks [@freekh](https://github.com/freekh)! - Sites published in app mode are now built the way `vite build` builds them:
16
+
17
+ - **TanStack Devtools are removed.** `@tanstack/react-devtools` has no production switch; `vite build` drops it only because the `devtools()` plugin in `vite.config.ts` strips it from your source, and app mode does not run Vite plugins. So a project that renders `<TanStackDevtools>` unconditionally, as the starter template does, showed the devtools panel on its published site. The builder now does the same stripping itself.
18
+ - **`import.meta.env.DEV`, `PROD`, `MODE`, `SSR` and `BASE_URL` are defined**, and `process.env.NODE_ENV` is `"production"` in your own code. Before, `import.meta.env.PROD` read `undefined` and `process.env.NODE_ENV` read `"development"`.
19
+
3
20
  ## 0.136.3
4
21
 
5
22
  ### Patch Changes
@@ -63,6 +63,8 @@ export declare const VAL_SERVER_PATH = "src/val/val.server.ts";
63
63
  * would be a bug that only shows up on the second publish.
64
64
  */
65
65
  export declare function wiredValServer(options: WireOptions): string;
66
+ /** The publish job a record is wired for: see `BUILT_FOR_JOB` in the template. */
67
+ export declare function bakedJob(files: Record<string, string>): string | undefined;
66
68
  export declare function bakedGit(files: Record<string, string>): {
67
69
  commit: string;
68
70
  branch: string;
@@ -92,7 +94,12 @@ export declare function bakedGit(files: Record<string, string>): {
92
94
  export declare function rebakeGit(files: Record<string, string>, git: {
93
95
  commit: string;
94
96
  branch: string;
95
- } | null): Record<string, string>;
97
+ } | null,
98
+ /**
99
+ * The publish job a tab is building this for, or `null`. A Studio that
100
+ * predates jobs leaves it out, and the file keeps what it had.
101
+ */
102
+ job?: string | null): Record<string, string>;
96
103
  /** Is this a Val project at all? */
97
104
  export declare function isValProject(files: Record<string, string>): boolean;
98
105
  /**
@@ -300,4 +300,22 @@ function _slicedToArray(r, e) {
300
300
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
301
301
  }
302
302
 
303
- export { _createForOfIteratorHelper as _, _asyncToGenerator as a, _regenerator as b, _toConsumableArray as c, _slicedToArray as d, _objectSpread2 as e, _defineProperty as f };
303
+ function _regeneratorValues(e) {
304
+ if (null != e) {
305
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
306
+ r = 0;
307
+ if (t) return t.call(e);
308
+ if ("function" == typeof e.next) return e;
309
+ if (!isNaN(e.length)) return {
310
+ next: function () {
311
+ return e && r >= e.length && (e = void 0), {
312
+ value: e && e[r++],
313
+ done: !e
314
+ };
315
+ }
316
+ };
317
+ }
318
+ throw new TypeError(typeof e + " is not iterable");
319
+ }
320
+
321
+ export { _createForOfIteratorHelper as _, _asyncToGenerator as a, _regenerator as b, _toConsumableArray as c, _slicedToArray as d, _regeneratorValues as e, _objectSpread2 as f, _defineProperty as g };
@@ -302,10 +302,29 @@ function _slicedToArray(r, e) {
302
302
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
303
303
  }
304
304
 
305
+ function _regeneratorValues(e) {
306
+ if (null != e) {
307
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
308
+ r = 0;
309
+ if (t) return t.call(e);
310
+ if ("function" == typeof e.next) return e;
311
+ if (!isNaN(e.length)) return {
312
+ next: function () {
313
+ return e && r >= e.length && (e = void 0), {
314
+ value: e && e[r++],
315
+ done: !e
316
+ };
317
+ }
318
+ };
319
+ }
320
+ throw new TypeError(typeof e + " is not iterable");
321
+ }
322
+
305
323
  exports._asyncToGenerator = _asyncToGenerator;
306
324
  exports._createForOfIteratorHelper = _createForOfIteratorHelper;
307
325
  exports._defineProperty = _defineProperty;
308
326
  exports._objectSpread2 = _objectSpread2;
309
327
  exports._regenerator = _regenerator;
328
+ exports._regeneratorValues = _regeneratorValues;
310
329
  exports._slicedToArray = _slicedToArray;
311
330
  exports._toConsumableArray = _toConsumableArray;
@@ -302,10 +302,29 @@ function _slicedToArray(r, e) {
302
302
  return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
303
303
  }
304
304
 
305
+ function _regeneratorValues(e) {
306
+ if (null != e) {
307
+ var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"],
308
+ r = 0;
309
+ if (t) return t.call(e);
310
+ if ("function" == typeof e.next) return e;
311
+ if (!isNaN(e.length)) return {
312
+ next: function () {
313
+ return e && r >= e.length && (e = void 0), {
314
+ value: e && e[r++],
315
+ done: !e
316
+ };
317
+ }
318
+ };
319
+ }
320
+ throw new TypeError(typeof e + " is not iterable");
321
+ }
322
+
305
323
  exports._asyncToGenerator = _asyncToGenerator;
306
324
  exports._createForOfIteratorHelper = _createForOfIteratorHelper;
307
325
  exports._defineProperty = _defineProperty;
308
326
  exports._objectSpread2 = _objectSpread2;
309
327
  exports._regenerator = _regenerator;
328
+ exports._regeneratorValues = _regeneratorValues;
310
329
  exports._slicedToArray = _slicedToArray;
311
330
  exports._toConsumableArray = _toConsumableArray;