@ampless/runtime 1.0.0-alpha.14 → 1.0.0-alpha.15

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.
@@ -29,13 +29,13 @@ type ThemePostMetadata = (props: Props$1) => Promise<Metadata>;
29
29
  * the theme's `components.Post` server component.
30
30
  *
31
31
  * Routing decision (no_layout HTML vs static bundle vs themed) lives
32
- * in middleware now — middleware fetches `post.format` /
33
- * `post.metadata` / `post.updatedAt` from AppSync once per slug
34
- * (Lambda-memory LRU, 60s TTL) and rewrites the request to either
35
- * this dispatcher (themed render) or the unified route handler at
36
- * `/r/<slug>(/...)` (no_layout HTML or static bundle). That keeps the
37
- * decision in one place and avoids the dispatcher's extra AppSync
38
- * round-trip when the post is a themed render.
32
+ * in middleware. Middleware fetches `post.format` / `post.metadata` /
33
+ * `post.updatedAt` from AppSync once per slug (Lambda-memory LRU, 60s
34
+ * TTL) and rewrites the request to either this dispatcher (themed
35
+ * render) or the unified route handler at `/r/<slug>(/...)` (no_layout
36
+ * HTML or static bundle). That keeps the decision in one place and
37
+ * avoids the dispatcher's extra AppSync round-trip when the post is a
38
+ * themed render.
39
39
  *
40
40
  * If the theme doesn't declare a Post component at all, returns
41
41
  * Next.js's notFound() (404).
package/dist/index.d.ts CHANGED
@@ -36,8 +36,8 @@ interface PublicPostShape {
36
36
  metadata?: unknown;
37
37
  /**
38
38
  * ISO 8601 timestamp from DynamoDB's auto-managed `updatedAt`.
39
- * Surfaced through the `PublicPost` projection in v0.2 alpha so
40
- * middleware can compute the `metadata.cache='auto'` cooldown.
39
+ * Surfaced through the `PublicPost` projection so middleware can
40
+ * compute the `metadata.cache='auto'` cooldown.
41
41
  */
42
42
  updatedAt?: string | null;
43
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ampless/runtime",
3
- "version": "1.0.0-alpha.14",
3
+ "version": "1.0.0-alpha.15",
4
4
  "description": "Public-side runtime for ampless: post fetching, theme dispatch, middleware, public route handlers",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -49,8 +49,8 @@
49
49
  "lucide-react": "^1.16.0",
50
50
  "marked": "^14.1.4",
51
51
  "tailwind-merge": "^3.6.0",
52
- "ampless": "1.0.0-alpha.10",
53
- "@ampless/plugin-og-image": "0.2.0-alpha.10"
52
+ "ampless": "1.0.0-alpha.11",
53
+ "@ampless/plugin-og-image": "0.2.0-alpha.11"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "next": "^15 || ^16",