@ampless/runtime 1.0.0-alpha.14 → 1.0.0-alpha.16
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/dist/dispatchers/index.d.ts +7 -7
- package/dist/index.d.ts +2 -2
- package/package.json +8 -8
|
@@ -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
|
|
33
|
-
* `post.
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
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
|
|
40
|
-
*
|
|
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.
|
|
3
|
+
"version": "1.0.0-alpha.16",
|
|
4
4
|
"description": "Public-side runtime for ampless: post fetching, theme dispatch, middleware, public route handlers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -41,16 +41,16 @@
|
|
|
41
41
|
"homepage": "https://github.com/heavymoons/ampless/tree/main/packages/runtime#readme",
|
|
42
42
|
"bugs": "https://github.com/heavymoons/ampless/issues",
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@radix-ui/react-dialog": "^1.1.
|
|
45
|
-
"@radix-ui/react-label": "^2.1.
|
|
46
|
-
"@radix-ui/react-slot": "^1.
|
|
44
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
45
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
46
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
47
47
|
"class-variance-authority": "^0.7.1",
|
|
48
48
|
"clsx": "^2.1.1",
|
|
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.
|
|
53
|
-
"@ampless/plugin-og-image": "0.2.0-alpha.
|
|
52
|
+
"ampless": "1.0.0-alpha.12",
|
|
53
|
+
"@ampless/plugin-og-image": "0.2.0-alpha.12"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"next": "^15 || ^16",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@aws-amplify/adapter-nextjs": "^1"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@types/react": "^19.
|
|
63
|
+
"@types/react": "^19.2.15",
|
|
64
64
|
"next": "^16.2.6",
|
|
65
|
-
"react": "^19.
|
|
65
|
+
"react": "^19.2.6"
|
|
66
66
|
},
|
|
67
67
|
"keywords": [
|
|
68
68
|
"ampless",
|