@valbuild/tanstack-build 0.136.1 → 0.136.10

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,24 @@
1
1
  # @valbuild/tanstack-build
2
2
 
3
+ ## 0.136.10
4
+
5
+ ### Patch Changes
6
+
7
+ - [#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:
8
+
9
+ - **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.
10
+ - **`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"`.
11
+
12
+ ## 0.136.3
13
+
14
+ ### Patch Changes
15
+
16
+ - [#726](https://github.com/valbuild/val/pull/726) [`3b19534`](https://github.com/valbuild/val/commit/3b19534bb7aa16452a104906d9594083c3bc3e89) Thanks [@freekh](https://github.com/freekh)! - A Studio publish of a project with no repository now ships every edit that was saved, and keeps the site styled.
17
+
18
+ - A host that embeds the project's source can hand it to Val as `projectSource` (`initValServer(..., { http: { projectSource } })`). A publish then patches that text, not text fetched from the content service at a commit, which a project with no repository does not have. The build platform's wiring passes the build's own source, so `.val.ts` can be rendered for a project made on `/new`. Before, its first save produced no files, and the build that followed carried none of the save's edits.
19
+ - New route `GET /api/val/built-source`: the `.val.ts` text of every module changed since the running build, with every commit since it applied. The Studio builds from it, so an edit whose own publish failed, and a Finish publishing, are no longer left out of the next build.
20
+ - A Studio build that compiles no stylesheet (a browser cannot run Tailwind `@plugin`s) keeps the live site's. A Studio save never changes a stylesheet or a component, so the live CSS is still the right one.
21
+
3
22
  ## 0.136.1
4
23
 
5
24
  ### Patch Changes
@@ -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;