@savvifi/meridian-aion-web 0.3.0 → 0.3.2

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.
@@ -49,7 +49,12 @@ export async function renderMeridianEntityView(input) {
49
49
  const composition = compositions[entityType];
50
50
  if (!composition)
51
51
  return miss();
52
- const view = projectEntityView(composition, { kind });
52
+ // CURSOR pagination: the aion entity list ops now honor a runtime page size +
53
+ // pageToken and return a real `{ items, nextToken, hasMore, totalCount }` page
54
+ // (DEV-18242), so page true server-side — the renderer sends `pageToken`/`pageSize`
55
+ // and reads `nextToken`/`totalCount` back. Scales past one page, unlike the prior
56
+ // CLIENT workaround that fetched a bounded set and sliced it locally.
57
+ const view = projectEntityView(composition, { kind, pagination: "cursor", pageSize: 20 });
53
58
  const invoker = createEntityOpsInvoker(caller.entities?.ops);
54
59
  // Pre-fetch page-0 for the table so the SSR HTML carries real rows (and the
55
60
  // client hydrates without an immediate refetch). Non-fatal: on failure we
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@savvifi/meridian-aion-web",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "description": "The aion/web <-> meridian-ux render seam: renderMeridianEntityView (server — parse route, load composition, project to a ViewDescriptor, pre-fetch page-0, render + dehydrate) + MeridianEntityView (client hydration) + savviSkin. Lets an SSR host (e.g. aion/web on Hono+Vite) render entity routes through meridian instead of the legacy React path.",
6
6
  "publishConfig": {