@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.
Files changed (71) hide show
  1. package/CHANGELOG.md +263 -0
  2. package/README.md +3 -3
  3. package/dist/auth.js +1 -1
  4. package/dist/core/auth/createAuth.js +1 -1
  5. package/dist/core/http/stages/signInRoute.js +1 -1
  6. package/dist/core/server/baseServer.js +11 -6
  7. package/dist/core/server/fleet/stores.d.ts +7 -0
  8. package/dist/core/server/fleet/stores.js +16 -2
  9. package/dist/core/server/fleet/supervisor.d.ts +2 -0
  10. package/dist/core/server/fleet/supervisor.js +14 -2
  11. package/dist/core/server/pageServer.js +1 -1
  12. package/dist/functions-api.d.ts +29 -0
  13. package/dist/helpers/cache/cacheManager.d.ts +9 -2
  14. package/dist/helpers/cache/cacheManager.js +46 -22
  15. package/dist/helpers/cache/keys.d.ts +12 -5
  16. package/dist/helpers/cache/keys.js +56 -11
  17. package/dist/modules/actions/index.js +6 -2
  18. package/dist/modules/actions/jobs/later.d.ts +43 -0
  19. package/dist/modules/actions/jobs/later.js +66 -0
  20. package/dist/modules/actions/jobs/later.test.d.ts +1 -0
  21. package/dist/modules/actions/jobs/memoryQueue.js +14 -1
  22. package/dist/modules/actions/jobs/worker.js +2 -2
  23. package/dist/modules/actions/runtime/credentials.d.ts +10 -0
  24. package/dist/modules/actions/runtime/credentials.js +28 -0
  25. package/dist/modules/actions/runtime/credentials.test.d.ts +1 -0
  26. package/dist/modules/actions/runtime/fileKv.d.ts +8 -3
  27. package/dist/modules/actions/runtime/fileKv.js +79 -7
  28. package/dist/modules/actions/runtime/precheck.js +1 -1
  29. package/dist/modules/actions/runtime/runAction.d.ts +4 -1
  30. package/dist/modules/actions/runtime/runAction.js +26 -4
  31. package/dist/modules/actions/runtime/taskContext.d.ts +4 -1
  32. package/dist/modules/actions/runtime/taskContext.js +7 -1
  33. package/dist/modules/actions/tasks/flow.js +113 -35
  34. package/dist/modules/actions/types.d.ts +8 -0
  35. package/dist/modules/functions/build.js +1 -1
  36. package/dist/modules/functions/capabilities.js +21 -0
  37. package/dist/modules/functions/context.js +6 -0
  38. package/dist/modules/functions/contract.d.ts +10 -0
  39. package/dist/modules/functions/driver.js +8 -0
  40. package/dist/modules/functions/local.d.ts +1 -1
  41. package/dist/modules/functions/local.js +2 -1
  42. package/dist/modules/functions/manifest.js +6 -1
  43. package/dist/modules/functions/protocol.d.ts +7 -0
  44. package/dist/modules/mongo/jobQueue.js +26 -0
  45. package/dist/modules/mysql/jobs/jobQueue.js +21 -2
  46. package/dist/modules/mysql/jobs/schema.d.ts +3 -2
  47. package/dist/modules/mysql/jobs/schema.js +24 -11
  48. package/dist/modules/project/serveProject.d.ts +5 -2
  49. package/dist/modules/project/serveProject.js +31 -6
  50. package/dist/modules/realtime/handlers.d.ts +4 -1
  51. package/dist/modules/realtime/handlers.js +8 -4
  52. package/dist/modules/realtime/hub.d.ts +3 -1
  53. package/dist/modules/realtime/hub.js +8 -4
  54. package/dist/modules/ssr/prepareRender.js +8 -6
  55. package/dist/modules/ssr/resolvePageSeo.d.ts +4 -1
  56. package/dist/modules/ssr/resolvePageSeo.js +7 -3
  57. package/package.json +3 -3
  58. package/skills/plitzi-authoring/CHEATSHEET.md +4 -2
  59. package/skills/plitzi-authoring/recipes/filter-a-list.ts +0 -2
  60. package/skills/plitzi-authoring/recipes/forms-and-modals.ts +2 -1
  61. package/skills/plitzi-authoring/recipes/style-a-page.ts +1 -1
  62. package/skills/plitzi-authoring/reference/accessibility.md +1 -0
  63. package/skills/plitzi-authoring/reference/authoring-errors.md +9 -4
  64. package/skills/plitzi-authoring/reference/data-and-visibility.md +11 -10
  65. package/skills/plitzi-authoring/reference/flows.md +2 -2
  66. package/skills/plitzi-authoring/reference/layouts.md +5 -2
  67. package/skills/plitzi-authoring/reference/lists.md +1 -0
  68. package/skills/plitzi-authoring/reference/plugins.md +3 -2
  69. package/skills/plitzi-authoring/reference/realtime.md +4 -1
  70. package/skills/plitzi-authoring/reference/structure.md +3 -1
  71. 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` and
17
- `visible` as it is, and into a template through `twig` (a plain template literal writes the same text, but a
18
- type-checked lint refuses an object in one).
19
- - A list fed by a path hands its `row` the item typed: every field any item of the sample has.
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.