@valbuild/tanstack-build 0.146.0 → 0.148.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,26 @@
1
1
  # @valbuild/tanstack-build
2
2
 
3
+ ## 0.148.0
4
+
5
+ ### Patch Changes
6
+
7
+ - [#886](https://github.com/valbuild/val/pull/886) [`4176757`](https://github.com/valbuild/val/commit/41767579b01849473a94779122fd39c07dd99234) Thanks [@freekh](https://github.com/freekh)! - Building a project's dependency layer takes one build per target again, instead
8
+ of falling back to building every dependency on its own. A dependency that
9
+ reaches a Node builtin from the browser side (`@valbuild/tanstack/server`,
10
+ `@valbuild/mcp`, `sharp`) or loads a native binary (`@tailwindcss/vite`) used
11
+ to fail the first build, and finding out which one did took two builds per
12
+ dependency. Now the first build finds them, and the layer is the same as
13
+ before.
14
+
15
+ The import check after each build also reads only a chunk's import
16
+ statements, found with `es-module-lexer`, instead of parsing the whole chunk:
17
+ Val's server chunk is 20 MB.
18
+
19
+ On the `template-tanstack` projects the two together took a layer build from
20
+ about 45 s and 2.8 GB to 8–12 s and 1.1–1.25 GB. Each server-only or skipped dependency is
21
+ now reported with the builtin or binary it reached and the module that asked
22
+ for it.
23
+
3
24
  ## 0.146.0
4
25
 
5
26
  ### Minor Changes
@@ -92,8 +92,8 @@ export interface VendorLayer {
92
92
  * Specifiers built for the worker but not the browser.
93
93
  *
94
94
  * A server-only dependency is not a failure. `@valbuild/tanstack/server`
95
- * cannot build for a browser -- it reaches TanStack's SSR path, which lands
96
- * on `node:stream/web` -- and has no business in a client bundle either.
95
+ * cannot build for a browser -- it reaches Node's `path` through Val's
96
+ * server -- and has no business in a client bundle either.
97
97
  * Dropping it entirely would mean such a package can never be layered, so it
98
98
  * is layered for the side that can use it, and the builder rejects a client
99
99
  * import of it by name.
@@ -1101,7 +1101,7 @@ var packageJson = {
1101
1101
  url: "git+https://github.com/valbuild/val.git"
1102
1102
  },
1103
1103
  license: "MIT",
1104
- version: "0.146.0",
1104
+ version: "0.148.0",
1105
1105
  sideEffects: false,
1106
1106
  main: "dist/valbuild-tanstack-build.cjs.js",
1107
1107
  module: "dist/valbuild-tanstack-build.esm.js",
@@ -1137,6 +1137,7 @@ var packageJson = {
1137
1137
  },
1138
1138
  dependencies: {
1139
1139
  "@rolldown/browser": "^1.2.5",
1140
+ "es-module-lexer": "^2.3.2",
1140
1141
  tailwindcss: "^4.3.3"
1141
1142
  },
1142
1143
  peerDependencies: {
@@ -1101,7 +1101,7 @@ var packageJson = {
1101
1101
  url: "git+https://github.com/valbuild/val.git"
1102
1102
  },
1103
1103
  license: "MIT",
1104
- version: "0.146.0",
1104
+ version: "0.148.0",
1105
1105
  sideEffects: false,
1106
1106
  main: "dist/valbuild-tanstack-build.cjs.js",
1107
1107
  module: "dist/valbuild-tanstack-build.esm.js",
@@ -1137,6 +1137,7 @@ var packageJson = {
1137
1137
  },
1138
1138
  dependencies: {
1139
1139
  "@rolldown/browser": "^1.2.5",
1140
+ "es-module-lexer": "^2.3.2",
1140
1141
  tailwindcss: "^4.3.3"
1141
1142
  },
1142
1143
  peerDependencies: {
@@ -1100,7 +1100,7 @@ var packageJson = {
1100
1100
  url: "git+https://github.com/valbuild/val.git"
1101
1101
  },
1102
1102
  license: "MIT",
1103
- version: "0.146.0",
1103
+ version: "0.148.0",
1104
1104
  sideEffects: false,
1105
1105
  main: "dist/valbuild-tanstack-build.cjs.js",
1106
1106
  module: "dist/valbuild-tanstack-build.esm.js",
@@ -1136,6 +1136,7 @@ var packageJson = {
1136
1136
  },
1137
1137
  dependencies: {
1138
1138
  "@rolldown/browser": "^1.2.5",
1139
+ "es-module-lexer": "^2.3.2",
1139
1140
  tailwindcss: "^4.3.3"
1140
1141
  },
1141
1142
  peerDependencies: {