@plitzi/sdk-server 0.38.9 → 0.38.11
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/CHANGELOG.md +263 -0
- package/README.md +3 -3
- package/dist/auth.js +1 -1
- package/dist/core/auth/createAuth.js +1 -1
- package/dist/core/http/stages/signInRoute.js +1 -1
- package/dist/core/server/baseServer.js +11 -6
- package/dist/core/server/fleet/stores.d.ts +7 -0
- package/dist/core/server/fleet/stores.js +16 -2
- package/dist/core/server/fleet/supervisor.d.ts +2 -0
- package/dist/core/server/fleet/supervisor.js +14 -2
- package/dist/core/server/pageServer.js +1 -1
- package/dist/functions-api.d.ts +29 -0
- package/dist/helpers/cache/cacheManager.d.ts +9 -2
- package/dist/helpers/cache/cacheManager.js +46 -22
- package/dist/helpers/cache/keys.d.ts +12 -5
- package/dist/helpers/cache/keys.js +56 -11
- package/dist/modules/actions/index.js +6 -2
- package/dist/modules/actions/jobs/later.d.ts +43 -0
- package/dist/modules/actions/jobs/later.js +66 -0
- package/dist/modules/actions/jobs/later.test.d.ts +1 -0
- package/dist/modules/actions/jobs/memoryQueue.js +14 -1
- package/dist/modules/actions/jobs/worker.js +2 -2
- package/dist/modules/actions/runtime/credentials.d.ts +10 -0
- package/dist/modules/actions/runtime/credentials.js +28 -0
- package/dist/modules/actions/runtime/credentials.test.d.ts +1 -0
- package/dist/modules/actions/runtime/fileKv.d.ts +8 -3
- package/dist/modules/actions/runtime/fileKv.js +79 -7
- package/dist/modules/actions/runtime/precheck.js +1 -1
- package/dist/modules/actions/runtime/runAction.d.ts +4 -1
- package/dist/modules/actions/runtime/runAction.js +26 -4
- package/dist/modules/actions/runtime/taskContext.d.ts +4 -1
- package/dist/modules/actions/runtime/taskContext.js +7 -1
- package/dist/modules/actions/tasks/flow.js +113 -35
- package/dist/modules/actions/types.d.ts +8 -0
- package/dist/modules/functions/build.js +1 -1
- package/dist/modules/functions/capabilities.js +21 -0
- package/dist/modules/functions/context.js +6 -0
- package/dist/modules/functions/contract.d.ts +10 -0
- package/dist/modules/functions/driver.js +8 -0
- package/dist/modules/functions/local.d.ts +1 -1
- package/dist/modules/functions/local.js +2 -1
- package/dist/modules/functions/manifest.js +6 -1
- package/dist/modules/functions/protocol.d.ts +7 -0
- package/dist/modules/mongo/jobQueue.js +26 -0
- package/dist/modules/mysql/jobs/jobQueue.js +21 -2
- package/dist/modules/mysql/jobs/schema.d.ts +3 -2
- package/dist/modules/mysql/jobs/schema.js +24 -11
- package/dist/modules/project/serveProject.d.ts +5 -2
- package/dist/modules/project/serveProject.js +31 -6
- package/dist/modules/realtime/handlers.d.ts +4 -1
- package/dist/modules/realtime/handlers.js +8 -4
- package/dist/modules/realtime/hub.d.ts +3 -1
- package/dist/modules/realtime/hub.js +8 -4
- package/dist/modules/ssr/prepareRender.js +8 -6
- package/dist/modules/ssr/resolvePageSeo.d.ts +4 -1
- package/dist/modules/ssr/resolvePageSeo.js +7 -3
- package/package.json +3 -3
- package/skills/plitzi-authoring/CHEATSHEET.md +4 -2
- package/skills/plitzi-authoring/recipes/filter-a-list.ts +0 -2
- package/skills/plitzi-authoring/recipes/forms-and-modals.ts +2 -1
- package/skills/plitzi-authoring/recipes/style-a-page.ts +1 -1
- package/skills/plitzi-authoring/reference/accessibility.md +1 -0
- package/skills/plitzi-authoring/reference/authoring-errors.md +9 -4
- package/skills/plitzi-authoring/reference/data-and-visibility.md +11 -10
- package/skills/plitzi-authoring/reference/flows.md +2 -2
- package/skills/plitzi-authoring/reference/layouts.md +5 -2
- package/skills/plitzi-authoring/reference/lists.md +1 -0
- package/skills/plitzi-authoring/reference/plugins.md +3 -2
- package/skills/plitzi-authoring/reference/realtime.md +4 -1
- package/skills/plitzi-authoring/reference/structure.md +3 -1
- package/skills/plitzi-authoring/reference/typed-sources.md +6 -4
|
@@ -93,7 +93,9 @@ pages: [
|
|
|
93
93
|
|
|
94
94
|
Adding a page is adding an entry; two entries of one id or slug are refused as any two pages are. For one shape over
|
|
95
95
|
records a visitor browses — a product, a post — a single page with a route param (`slug: 'posts/:postId'`) reading
|
|
96
|
-
the record is the answer instead: one page, as many addresses as records.
|
|
96
|
+
the record is the answer instead: one page, as many addresses as records. Its `seoTitle` can say the record —
|
|
97
|
+
`'{{ apiContainer_post.title }} — Blog'` — read from a provider on the page with `runtime: 'server'`, or from
|
|
98
|
+
`navigation`: the server writes the head with it, so a link preview shows it. Anything else is refused (`page-template`).
|
|
97
99
|
|
|
98
100
|
## Names
|
|
99
101
|
|
|
@@ -13,10 +13,12 @@ apiContainer({ id: site.id, query: '/data/home.json', children: [
|
|
|
13
13
|
] })
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
- A path is the source's full name (`apiContainer_site.data.hero.title`), so it goes in `from`, `items`, `bind
|
|
17
|
-
`visible`
|
|
18
|
-
type-checked lint refuses an object in
|
|
19
|
-
|
|
16
|
+
- A path is the source's full name (`apiContainer_site.data.hero.title`), so it goes in `from`, `items`, `bind`,
|
|
17
|
+
`visible` and the binding helpers (`bindTemplate`, `visibleWhen`, `hiddenWhen`, `variantFrom`) as it is, and into a
|
|
18
|
+
template through `twig` (a plain template literal writes the same text, but a type-checked lint refuses an object in
|
|
19
|
+
one).
|
|
20
|
+
- A list fed by a path hands its `row` the item typed: every field any item of the sample has — `p.item`, `p.index`,
|
|
21
|
+
and `p.inTemplate` as an untyped row has it, so turning a list typed changes none of its templates.
|
|
20
22
|
- An item of a list is read by position: `site.data.sections[1]`.
|
|
21
23
|
- A provider fed by a server action publishes the action's output at its root: `actionSource('feed', sample)` types
|
|
22
24
|
it — `feed.stories`, and `feed.data` is a type error — with a sample of what the action's last step answers.
|