@fougere/next 0.12.2-alpha.0 → 0.12.5-alpha.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": "@fougere/next",
3
- "version": "0.12.2-alpha.0",
3
+ "version": "0.12.5-alpha.0",
4
4
  "description": "The Next.js adapter: mounting, and the one import that is genuinely Next.",
5
5
  "keywords": [
6
6
  "fougere",
@@ -50,9 +50,9 @@
50
50
  "dependencies": {
51
51
  "jiti": "^2.7.0",
52
52
  "terser-webpack-plugin": "^5.3.14",
53
- "@fougere/app": "0.12.2-alpha.0",
54
- "@fougere/compiler": "0.12.2-alpha.0",
55
- "@fougere/core": "0.12.2-alpha.0"
53
+ "@fougere/app": "0.12.5-alpha.0",
54
+ "@fougere/compiler": "0.12.5-alpha.0",
55
+ "@fougere/core": "0.12.5-alpha.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "next": "^15.5.7",
@@ -1,3 +1,4 @@
1
+ import type { Page } from '@fougere/core';
1
2
  import { invoke } from '@fougere/next';
2
3
  // Replace with an entity your own frond declares.
3
4
  import Post from '@fronds/blog/entities/Post';
@@ -10,7 +11,7 @@ import Post from '@fronds/blog/entities/Post';
10
11
  * `useQuery` from `@fougere/react` instead, with a facade from `@fronds/facade`.
11
12
  */
12
13
  export default async function Home() {
13
- const rows = await invoke<Post[]>(Post, 'list');
14
+ const { items: rows } = await invoke<Page<Post>>(Post, 'list');
14
15
 
15
16
  return (
16
17
  <main style={{ maxWidth: 720, margin: '3rem auto', fontFamily: 'system-ui' }}>