@constela/start 1.2.20 → 1.2.21

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.
@@ -2,7 +2,7 @@ import {
2
2
  generateHydrationScript,
3
3
  renderPage,
4
4
  wrapHtml
5
- } from "./chunk-LIHJUGSX.js";
5
+ } from "./chunk-GYIQEWAI.js";
6
6
 
7
7
  // src/router/file-router.ts
8
8
  import fg from "fast-glob";
@@ -55,7 +55,11 @@ if (container_${jsId}) {
55
55
  createApp(widgetProgram_${jsId}, container_${jsId});
56
56
  }`;
57
57
  }).join("\n") : "";
58
- const routeDeclaration = route ? `const route = ${escapeJsonForScript(JSON.stringify(route))};` : "";
58
+ const routeDeclaration = route ? `const route = {
59
+ params: ${escapeJsonForScript(JSON.stringify(route.params || {}))},
60
+ query: Object.fromEntries(new URLSearchParams(window.location.search)),
61
+ path: window.location.pathname
62
+ };` : "";
59
63
  const hydrateOptions = route ? `{
60
64
  program,
61
65
  container: document.getElementById('app'),
package/dist/cli/index.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  createDevServer,
4
4
  loadConfig,
5
5
  resolveConfig
6
- } from "../chunk-AXCIL6BP.js";
7
- import "../chunk-LIHJUGSX.js";
6
+ } from "../chunk-57VB6R2P.js";
7
+ import "../chunk-GYIQEWAI.js";
8
8
 
9
9
  // src/cli/index.ts
10
10
  import { Command } from "commander";
package/dist/index.js CHANGED
@@ -23,12 +23,12 @@ import {
23
23
  transformCsv,
24
24
  transformMdx,
25
25
  transformYaml
26
- } from "./chunk-AXCIL6BP.js";
26
+ } from "./chunk-57VB6R2P.js";
27
27
  import {
28
28
  generateHydrationScript,
29
29
  renderPage,
30
30
  wrapHtml
31
- } from "./chunk-LIHJUGSX.js";
31
+ } from "./chunk-GYIQEWAI.js";
32
32
 
33
33
  // src/build/ssg.ts
34
34
  import { mkdir, writeFile } from "fs/promises";
@@ -2,7 +2,7 @@ import {
2
2
  generateHydrationScript,
3
3
  renderPage,
4
4
  wrapHtml
5
- } from "../chunk-LIHJUGSX.js";
5
+ } from "../chunk-GYIQEWAI.js";
6
6
  export {
7
7
  generateHydrationScript,
8
8
  renderPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constela/start",
3
- "version": "1.2.20",
3
+ "version": "1.2.21",
4
4
  "description": "Meta-framework for Constela applications",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -45,9 +45,9 @@
45
45
  "tailwindcss": "^4.0.0",
46
46
  "@constela/compiler": "0.7.1",
47
47
  "@constela/core": "0.7.0",
48
- "@constela/runtime": "0.10.2",
48
+ "@constela/router": "8.0.0",
49
49
  "@constela/server": "3.0.1",
50
- "@constela/router": "8.0.0"
50
+ "@constela/runtime": "0.10.2"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/mdast": "^4.0.4",