@tschk/moonshine-framework 0.4.49 → 0.4.80

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/routes.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tschk/moonshine-framework",
3
- "version": "0.4.49",
3
+ "version": "0.4.80",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -20,7 +20,7 @@
20
20
  "test": "bun test"
21
21
  },
22
22
  "dependencies": {
23
- "@tschk/moonshine": "^0.4.48"
23
+ "@tschk/moonshine": "^0.4.80"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/bun": "1.3.14",
package/src/routes.ts CHANGED
@@ -13,4 +13,10 @@ export type RouteDefinition = {
13
13
  middleware?: string[];
14
14
  errorBoundary?: string;
15
15
  dataFile?: string;
16
+ /**
17
+ * React only. `islands` (the default) hydrates each `island()` on the page;
18
+ * `route` hydrates the whole route tree — page and layouts — in the
19
+ * browser, as Next.js and Waku hydrate client components.
20
+ */
21
+ hydrate?: "islands" | "route";
16
22
  };