@decocms/tanstack 7.3.1 → 7.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decocms/tanstack",
3
- "version": "7.3.1",
3
+ "version": "7.5.0",
4
4
  "type": "module",
5
5
  "description": "Deco framework binding for TanStack Start + Cloudflare Workers",
6
6
  "repository": {
@@ -22,9 +22,9 @@
22
22
  "lint:unused": "knip"
23
23
  },
24
24
  "dependencies": {
25
- "@decocms/blocks": "7.3.1",
26
- "@decocms/blocks-admin": "7.3.1",
27
- "@decocms/blocks-cli": "7.3.1",
25
+ "@decocms/blocks": "7.5.0",
26
+ "@decocms/blocks-admin": "7.5.0",
27
+ "@decocms/blocks-cli": "7.5.0",
28
28
  "@deco-cx/warp-node": "^0.3.16",
29
29
  "fast-json-patch": "^3.1.0",
30
30
  "ws": "^8.18.0"
@@ -14,7 +14,7 @@
14
14
  * — V8's JSON parser is 2-10x faster than the JS parser for large data.
15
15
  *
16
16
  * meta.gen handling:
17
- * The admin schema bundle (`server/admin/meta.gen.json`) is server-only;
17
+ * The admin schema bundle (`.deco/meta.gen.json`) is server-only;
18
18
  * the client receives pre-resolved blocks via the SSR payload. Stubbing
19
19
  * it on the client cuts a typically-large module out of the browser bundle.
20
20
  * Match is done by substring on the import id, so any path style works.
@@ -209,7 +209,7 @@ export function decoVitePlugin() {
209
209
  // below) so we don't depend on the consumer's TS loader.
210
210
  const cwd = process.cwd();
211
211
  const blocksDir = path.resolve(cwd, ".deco/blocks");
212
- const outFile = path.resolve(cwd, "src/server/cms/blocks.gen.ts");
212
+ const outFile = path.resolve(cwd, ".deco/blocks.gen.ts");
213
213
  const jsonFile = outFile.replace(/\.ts$/, ".json");
214
214
 
215
215
  // Lazily load the block generator module (generateBlocks for the cold-start
@@ -376,8 +376,10 @@ export function decoVitePlugin() {
376
376
  // --- meta.gen.json auto-regeneration ---
377
377
  // When section/loader/app source files change (types, JSDoc, Props),
378
378
  // re-run generate-schema.ts so meta.gen.json stays in sync during dev.
379
+ // No --out is passed to the generator below, so it writes to its own
380
+ // default (.deco/meta.gen.json) — this constant must track that default.
379
381
  const schemaWatchDirs = ["src"];
380
- const schemaOutFile = path.resolve(cwd, "src/server/admin/meta.gen.json");
382
+ const schemaOutFile = path.resolve(cwd, ".deco/meta.gen.json");
381
383
 
382
384
  // Resolve the site name once from vite define or env.
383
385
  const definedSite = server.config.define?.["process.env.DECO_SITE_NAME"];