@kayjs/kay 1.106.0 → 1.107.0

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 (222) hide show
  1. package/README.md +2 -2
  2. package/dist/eslint.js +428 -176
  3. package/editors/zed/extension.toml +2 -2
  4. package/llms/action-protection.md +1 -1
  5. package/llms/actions-refused-fields.md +22 -0
  6. package/llms/actions.md +2 -22
  7. package/llms/browser-only.md +1 -1
  8. package/llms/compiler-api.md +1 -1
  9. package/llms/components.md +1 -1
  10. package/llms/deprecated-lints.md +2 -3
  11. package/llms/island-and-form-lints.md +1 -0
  12. package/llms/islands.md +10 -1
  13. package/llms/project-new-and-add.md +1 -1
  14. package/llms/project.md +2 -2
  15. package/llms/schemas.md +6 -4
  16. package/llms/upgrading.md +19 -1
  17. package/llms/whats-new.md +14 -1
  18. package/package.json +15 -6
  19. package/src/build/client.ts +20 -24
  20. package/src/build/entry-files.ts +19 -0
  21. package/src/build/lazy-components.ts +130 -0
  22. package/src/build/lazy-manifest.ts +56 -0
  23. package/src/build/lazy-stubs.ts +31 -0
  24. package/src/build/plugin.ts +3 -1
  25. package/src/build/runtime-chunk.ts +1 -1
  26. package/src/build/transform.ts +17 -7
  27. package/src/build/variants.ts +7 -4
  28. package/src/check/action-options.ts +56 -0
  29. package/src/check/schema-json.ts +226 -0
  30. package/src/check/shadow-types.ts +11 -9
  31. package/src/compiler/codegen.ts +7 -17
  32. package/src/compiler/deprecated-lints-1-105.ts +41 -0
  33. package/src/compiler/deprecated-lints-1-106.ts +1 -1
  34. package/src/compiler/deprecated-lints-1-107.ts +14 -0
  35. package/src/compiler/deprecated-lints.ts +7 -55
  36. package/src/compiler/import-edits.ts +15 -0
  37. package/src/compiler/index.ts +8 -3
  38. package/src/compiler/island-declaration.ts +15 -0
  39. package/src/compiler/kay-exports.ts +1 -0
  40. package/src/compiler/lazy-imports.ts +357 -0
  41. package/src/compiler/parser.ts +2 -2
  42. package/src/compiler/route-lints.ts +2 -0
  43. package/src/compiler/schema-lints.ts +13 -0
  44. package/src/compiler/script-server.ts +6 -3
  45. package/src/content/validate.ts +1 -1
  46. package/src/new.ts +6 -2
  47. package/src/runtime/action.ts +47 -4
  48. package/src/runtime/client.ts +10 -0
  49. package/src/runtime/dom-lazy.ts +276 -0
  50. package/src/runtime/field-errors.ts +58 -0
  51. package/src/runtime/field-refusal.ts +179 -0
  52. package/src/runtime/form.ts +3 -2
  53. package/src/runtime/html.ts +6 -1
  54. package/src/runtime/index.ts +2 -0
  55. package/src/runtime/island.server.ts +36 -2
  56. package/src/runtime/schema-record.ts +2 -1
  57. package/src/runtime/schema.client.ts +104 -14
  58. package/src/runtime/schema.ts +9 -2
  59. package/src/runtime/standard-schema.ts +32 -0
  60. package/src/runtime/validate-run.client.ts +179 -0
  61. package/src/runtime/validate.client.ts +11 -0
  62. package/src/runtime/validate.ts +4 -137
  63. package/src/server/actions.ts +48 -43
  64. package/src/server/answer.ts +102 -0
  65. package/src/server/api-input.ts +166 -0
  66. package/src/server/api.ts +12 -44
  67. package/src/server/app-stages.ts +15 -8
  68. package/src/server/app.ts +5 -2
  69. package/src/server/client.ts +2 -0
  70. package/src/server/dev.ts +7 -9
  71. package/src/server/file-limit.ts +7 -1
  72. package/src/server/forms.ts +1 -1
  73. package/src/server/host-allowlist.ts +7 -7
  74. package/src/server/index.ts +2 -0
  75. package/src/server/kay-routes.ts +221 -0
  76. package/src/server/kay-server.ts +228 -0
  77. package/src/server/kept-exports.ts +1 -0
  78. package/src/server/library.ts +0 -2
  79. package/src/server/mcp.ts +1 -1
  80. package/src/server/openapi.ts +12 -3
  81. package/src/server/phases.ts +249 -0
  82. package/src/server/protection.ts +6 -6
  83. package/src/server/proxy-key.ts +8 -8
  84. package/src/server/query.ts +4 -25
  85. package/src/server/receive.ts +43 -0
  86. package/src/server/render-document.ts +13 -3
  87. package/src/server/request-context.ts +137 -0
  88. package/src/server/schema-check.ts +1 -1
  89. package/src/server/socket.ts +19 -47
  90. package/src/server/stream.ts +1 -1
  91. package/src/server/validate.ts +346 -0
  92. package/src/test/mount.ts +6 -2
  93. package/types/build/client.d.ts +3 -2
  94. package/types/build/client.d.ts.map +1 -1
  95. package/types/build/entry-files.d.ts +4 -0
  96. package/types/build/entry-files.d.ts.map +1 -0
  97. package/types/build/lazy-components.d.ts +6 -0
  98. package/types/build/lazy-components.d.ts.map +1 -0
  99. package/types/build/lazy-manifest.d.ts +19 -0
  100. package/types/build/lazy-manifest.d.ts.map +1 -0
  101. package/types/build/lazy-stubs.d.ts +5 -0
  102. package/types/build/lazy-stubs.d.ts.map +1 -0
  103. package/types/build/plugin.d.ts +1 -0
  104. package/types/build/plugin.d.ts.map +1 -1
  105. package/types/build/transform.d.ts +3 -1
  106. package/types/build/transform.d.ts.map +1 -1
  107. package/types/build/variants.d.ts.map +1 -1
  108. package/types/check/action-options.d.ts +3 -0
  109. package/types/check/action-options.d.ts.map +1 -0
  110. package/types/check/schema-json.d.ts +3 -0
  111. package/types/check/schema-json.d.ts.map +1 -0
  112. package/types/check/shadow-types.d.ts.map +1 -1
  113. package/types/compiler/codegen.d.ts +2 -0
  114. package/types/compiler/codegen.d.ts.map +1 -1
  115. package/types/compiler/deprecated-lints-1-105.d.ts +39 -0
  116. package/types/compiler/deprecated-lints-1-105.d.ts.map +1 -0
  117. package/types/compiler/deprecated-lints-1-106.d.ts +1 -1
  118. package/types/compiler/deprecated-lints-1-106.d.ts.map +1 -1
  119. package/types/compiler/deprecated-lints-1-107.d.ts +12 -0
  120. package/types/compiler/deprecated-lints-1-107.d.ts.map +1 -0
  121. package/types/compiler/deprecated-lints.d.ts +36 -44
  122. package/types/compiler/deprecated-lints.d.ts.map +1 -1
  123. package/types/compiler/import-edits.d.ts +1 -0
  124. package/types/compiler/import-edits.d.ts.map +1 -1
  125. package/types/compiler/index.d.ts +2 -0
  126. package/types/compiler/index.d.ts.map +1 -1
  127. package/types/compiler/island-declaration.d.ts +5 -0
  128. package/types/compiler/island-declaration.d.ts.map +1 -1
  129. package/types/compiler/kay-exports.d.ts.map +1 -1
  130. package/types/compiler/lazy-imports.d.ts +33 -0
  131. package/types/compiler/lazy-imports.d.ts.map +1 -0
  132. package/types/compiler/lints.d.ts +44 -44
  133. package/types/compiler/route-lints.d.ts +8 -0
  134. package/types/compiler/route-lints.d.ts.map +1 -1
  135. package/types/compiler/schema-lints.d.ts +11 -0
  136. package/types/compiler/schema-lints.d.ts.map +1 -0
  137. package/types/compiler/script-server.d.ts.map +1 -1
  138. package/types/new.d.ts +1 -0
  139. package/types/new.d.ts.map +1 -1
  140. package/types/runtime/action.d.ts +26 -1
  141. package/types/runtime/action.d.ts.map +1 -1
  142. package/types/runtime/client.d.ts.map +1 -1
  143. package/types/runtime/dom-lazy.d.ts +6 -0
  144. package/types/runtime/dom-lazy.d.ts.map +1 -0
  145. package/types/runtime/field-errors.d.ts +4 -0
  146. package/types/runtime/field-errors.d.ts.map +1 -0
  147. package/types/runtime/field-refusal.d.ts +37 -0
  148. package/types/runtime/field-refusal.d.ts.map +1 -0
  149. package/types/runtime/form.d.ts +1 -1
  150. package/types/runtime/form.d.ts.map +1 -1
  151. package/types/runtime/html.d.ts.map +1 -1
  152. package/types/runtime/index.d.ts +2 -0
  153. package/types/runtime/index.d.ts.map +1 -1
  154. package/types/runtime/island.server.d.ts +2 -0
  155. package/types/runtime/island.server.d.ts.map +1 -1
  156. package/types/runtime/schema-record.d.ts.map +1 -1
  157. package/types/runtime/schema.client.d.ts.map +1 -1
  158. package/types/runtime/schema.d.ts +6 -1
  159. package/types/runtime/schema.d.ts.map +1 -1
  160. package/types/runtime/standard-schema.d.ts +37 -0
  161. package/types/runtime/standard-schema.d.ts.map +1 -0
  162. package/types/runtime/validate-run.client.d.ts +4 -0
  163. package/types/runtime/validate-run.client.d.ts.map +1 -0
  164. package/types/runtime/validate.client.d.ts +4 -0
  165. package/types/runtime/validate.client.d.ts.map +1 -0
  166. package/types/runtime/validate.d.ts +1 -21
  167. package/types/runtime/validate.d.ts.map +1 -1
  168. package/types/server/actions.d.ts.map +1 -1
  169. package/types/server/answer.d.ts +6 -0
  170. package/types/server/answer.d.ts.map +1 -0
  171. package/types/server/api-input.d.ts +19 -0
  172. package/types/server/api-input.d.ts.map +1 -0
  173. package/types/server/api.d.ts.map +1 -1
  174. package/types/server/app-stages.d.ts +4 -1
  175. package/types/server/app-stages.d.ts.map +1 -1
  176. package/types/server/app.d.ts +2 -0
  177. package/types/server/app.d.ts.map +1 -1
  178. package/types/server/client.d.ts +1 -0
  179. package/types/server/client.d.ts.map +1 -1
  180. package/types/server/dev.d.ts +1 -1
  181. package/types/server/dev.d.ts.map +1 -1
  182. package/types/server/file-limit.d.ts.map +1 -1
  183. package/types/server/host-allowlist.d.ts +3 -3
  184. package/types/server/host-allowlist.d.ts.map +1 -1
  185. package/types/server/index.d.ts +2 -0
  186. package/types/server/index.d.ts.map +1 -1
  187. package/types/server/kay-routes.d.ts +47 -0
  188. package/types/server/kay-routes.d.ts.map +1 -0
  189. package/types/server/kay-server.d.ts +25 -0
  190. package/types/server/kay-server.d.ts.map +1 -0
  191. package/types/server/kept-exports.d.ts.map +1 -1
  192. package/types/server/library.d.ts +0 -1
  193. package/types/server/library.d.ts.map +1 -1
  194. package/types/server/openapi.d.ts.map +1 -1
  195. package/types/server/phases.d.ts +36 -0
  196. package/types/server/phases.d.ts.map +1 -0
  197. package/types/server/protection.d.ts +3 -2
  198. package/types/server/protection.d.ts.map +1 -1
  199. package/types/server/proxy-key.d.ts +3 -3
  200. package/types/server/proxy-key.d.ts.map +1 -1
  201. package/types/server/query.d.ts.map +1 -1
  202. package/types/server/receive.d.ts +9 -0
  203. package/types/server/receive.d.ts.map +1 -0
  204. package/types/server/render-document.d.ts.map +1 -1
  205. package/types/server/request-context.d.ts +29 -0
  206. package/types/server/request-context.d.ts.map +1 -0
  207. package/types/server/schema-check.d.ts +1 -0
  208. package/types/server/schema-check.d.ts.map +1 -1
  209. package/types/server/socket.d.ts +3 -5
  210. package/types/server/socket.d.ts.map +1 -1
  211. package/types/server/validate.d.ts +26 -0
  212. package/types/server/validate.d.ts.map +1 -0
  213. package/types/test/mount.d.ts.map +1 -1
  214. package/src/check/schema-type.ts +0 -9
  215. package/src/compiler/deprecated-script-fence.ts +0 -26
  216. package/src/server/field-errors.ts +0 -136
  217. package/types/check/schema-type.d.ts +0 -3
  218. package/types/check/schema-type.d.ts.map +0 -1
  219. package/types/compiler/deprecated-script-fence.d.ts +0 -3
  220. package/types/compiler/deprecated-script-fence.d.ts.map +0 -1
  221. package/types/server/field-errors.d.ts +0 -6
  222. package/types/server/field-errors.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"variants.d.ts","sourceRoot":"","sources":["../../src/build/variants.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,UAAU,QAAwC,CAAA;AAI/D,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEjD;AA4KD,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,SAAK,GAAG,MAAM,EAAE,CAE7D;AAyHD,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,EAAE,IAAI,SAAK,GAAG,MAAM,CAgDjG;AAGD,eAAO,MAAM,GAAG,eAAgB,CAAA;AAOhC,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,QAAQ,GAAE,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAa,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,CAAC,GAAG,OAAO,GAAG,CAAC,CA0D7K;AAkCD,qBAAa,YAAY;IAMX,OAAO,CAAC,QAAQ,CAAC,KAAK;IALlC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA8C;IACpE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAmC;IAC3D,OAA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,CAAmC;IAC3D,OAAO,CAAC,IAAI,CAA2B;IAGvC,YAA6B,KAAK,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,EAAI;YAGpD,OAAO;YAUP,GAAG;YAWH,IAAI;IAwBlB,OAAO,CAAC,MAAM;IAUR,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASzC;IAGK,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAmBhF;CACF;AAGD,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAwB9C"}
@@ -0,0 +1,3 @@
1
+ import type { CheckDiagnostic, CheckOptions } from '.';
2
+ export declare function actionOptions(root: string, options: CheckOptions): Promise<CheckDiagnostic[]>;
3
+ //# sourceMappingURL=action-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"action-options.d.ts","sourceRoot":"","sources":["../../src/check/action-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AAatD,wBAAsB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CA0CnG"}
@@ -0,0 +1,3 @@
1
+ import type { CheckDiagnostic, CheckOptions } from '.';
2
+ export declare function schemaJson(root: string, options: CheckOptions): Promise<CheckDiagnostic[]>;
3
+ //# sourceMappingURL=schema-json.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema-json.d.ts","sourceRoot":"","sources":["../../src/check/schema-json.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,GAAG,CAAA;AA0MtD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,GAAG,OA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AK,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,UAAU,GAAG,eAAe,CAE5K"}
@@ -2,6 +2,7 @@ import type { ClassTable } from '../runtime/class-table';
2
2
  import type { UiEntry } from '../runtime/ui';
3
3
  import type { KayFile } from './ast';
4
4
  import type { IslandCause } from './island-cause';
5
+ import type { LazyImport } from './lazy-imports';
5
6
  import type { Rewrite } from './mapping';
6
7
  import type { AwaitAlert, WRITE_HELPERS } from './names';
7
8
  import type { Sites } from './rewrite-types';
@@ -47,6 +48,7 @@ export interface GenerateOptions {
47
48
  contextModule?: string | undefined;
48
49
  ui?: UiEntry | undefined;
49
50
  uiAdded?: UiEntry | undefined;
51
+ lazy?: ReadonlyMap<string, LazyImport> | undefined;
50
52
  writtenProps?: ReadonlySet<string> | undefined;
51
53
  rewrites?: ReadonlyMap<number, Rewrite & {
52
54
  end: number;
@@ -1 +1 @@
1
- {"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/compiler/codegen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAyC,OAAO,EAAuD,MAAM,OAAO,CAAA;AAChI,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAEjD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAExD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAmC,cAAc,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAa/F,OAAO,EAAE,WAAW,EAAe,MAAM,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AgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,cAAc,GAAG,WAAW,GAAG,SAAS,CAqC1F;AAOD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAO7D"}
@@ -0,0 +1,39 @@
1
+ export declare const SOURCE_READERS: {
2
+ readonly 'deprecated-source-readers': {
3
+ readonly level: 'warn';
4
+ readonly group: 'deprecated';
5
+ readonly since: '1.105';
6
+ readonly site: true;
7
+ readonly summary: 'The readers and hooks of an island\'s sources before 1.105, which every source reads alike since: `data()` in place of `value()` (a `resource`), `last()` (a `stream` or `socket`) and `rows()` (a `local` collection), `onData` in place of `onSuccess` (a `track()` handle) and `onSync` (a collection), whose event hands `value` where they handed `data` and `rows`, an action\'s `data()` and `status()` in place of `succeeded()`, and a collection\'s `sync.queued()` and `sync.status()` in place of `unsynced()` and `syncStatus()`. The old names work until 1.108. Found in the TypeScript files and `.kay` files of the project, templates included, on a name bound once to a call of `resource`, `stream`, `socket` or `local` from `kay` or to a `.track()` call, as `kay check` reads no types: a source reached through a property, a prop or another file is not found; `succeeded()` is found on any receiver. The fix renames the member, and the `data` or `rows` of a hook\'s inline handler to `value`; `succeeded()?.data` becomes `data()` and `succeeded() !== undefined` becomes `status() === \'ready\'`. A `succeeded()` read in any other way, a handler that is no inline function and a shorthand hook are reported with no fix.';
8
+ readonly wrong: '---\nimport { local, resource } from \'kay\'\nimport notesApi from \'../api/notes\'\nimport { save } from \'./notes\'\n\nconst list = resource(notesApi, \'/\')\nconst notes = local({ key: \'id\', read: () => [], put: save })\n---\np {list.value()?.length} on the server, {notes.rows().length} here, {notes.unsynced()} waiting';
9
+ readonly right: '---\nimport { local, resource } from \'kay\'\nimport notesApi from \'../api/notes\'\nimport { save } from \'./notes\'\n\nconst list = resource(notesApi, \'/\')\nconst notes = local({ key: \'id\', read: () => [], put: save })\n---\np {list.data()?.length} on the server, {notes.data().length} here, {notes.sync.queued()} waiting';
10
+ };
11
+ readonly 'deprecated-live-api': {
12
+ readonly level: 'warn';
13
+ readonly group: 'deprecated';
14
+ readonly since: '1.105';
15
+ readonly site: true;
16
+ readonly summary: 'The forms of `set` and `presence` before 1.105, which write every live value and every room alike since: `set(next, { key })` of a value per key and `set(next, { user })` of a value per user in place of `set(key, next)` and `set(user, next)`, and `presence({ room, member })` in place of `presence(room, member)`. The old forms work until 1.108. Found in the TypeScript files and `.kay` files of the project, on a name bound once to a `live()` call from `kay`, or imported under the name of a declaration every file of the project agrees on (a value per key is one declared with a function of the key or `key: true`, per user with `user: true`), as `kay check` reads no types: a value reached through a namespace import or a property is not found. `presence` is the one imported from `kay`. The fix reorders the arguments of `set`, and writes the arguments of `presence` as one object, its options object spread into it; a `presence` given options that are no object written there is reported with no fix.';
17
+ readonly wrong: '// src/live.ts\nimport { live } from \'kay\'\n\nexport const room = live((id: string) => ({ id, users: 0 }))\n\nroom.set(\'lobby\', { id: \'lobby\', users: 3 })';
18
+ readonly right: '// src/live.ts\nimport { live } from \'kay\'\n\nexport const room = live((id: string) => ({ id, users: 0 }))\n\nroom.set({ id: \'lobby\', users: 3 }, { key: \'lobby\' })';
19
+ };
20
+ readonly 'deprecated-action-type': {
21
+ readonly level: 'warn';
22
+ readonly group: 'deprecated';
23
+ readonly since: '1.105';
24
+ readonly site: true;
25
+ readonly summary: '`Action<never, unknown>` before 1.105, the type a prop takes to accept any action: `Action` since, whose two parameters default to it. `Action<{ name: string }, string>` keeps its input and output types, and a `.with()` action crosses into an island as any other does. The old form works until 1.108. Found on the `Action` a file imports from `kay`, under any local name, in the TypeScript files and the fences of `.kay` files. The fix drops the type arguments.';
26
+ readonly wrong: '---\nimport type { Action } from \'kay\'\n\nconst { run } = props<{ run: Action<never, unknown> }>()\n---\nform(action={run})\n button Go';
27
+ readonly right: '---\nimport type { Action } from \'kay\'\n\nconst { run } = props<{ run: Action }>()\n---\nform(action={run})\n button Go';
28
+ };
29
+ readonly 'deprecated-action-readers': {
30
+ readonly level: 'warn';
31
+ readonly group: 'deprecated';
32
+ readonly since: '1.105';
33
+ readonly site: true;
34
+ readonly summary: 'An action\'s `failed()`, `error(field)` and `validate(form, field)` before 1.105, which a form shows and now reads from `form`: `form.failed()`, `form.error(field)` and `form.validate(form, field)`, the call state (`pending()`, `status()`, `data()`) staying on the action. The old names work until 1.108. Found in the TypeScript files and `.kay` files of the project, templates included, on a name bound once to a call of `action` from `kay`, to the `.with()` of one, or imported in lowercase from a `.kay` file, as `kay check` reads no types: an action reached through a property or a prop is not found. The fix writes `form.` before the name.';
35
+ readonly wrong: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.error(\'title\') ? \'true\' : undefined})\n if add.failed()\n p Not saved';
36
+ readonly right: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.form.error(\'title\') ? \'true\' : undefined})\n if add.form.failed()\n p Not saved';
37
+ };
38
+ };
39
+ //# sourceMappingURL=deprecated-lints-1-105.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecated-lints-1-105.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-105.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;iBAEvB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,msCAAmsC;iBAC5sC,KAAK,EAAE,uUAAuU;iBAC9U,KAAK,EAAE,yUAAyU;;;iBAGhV,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,++BAA++B;iBACx/B,KAAK,EAAE,kKAAkK;iBACzK,KAAK,EAAE,2KAA2K;;;iBAGlL,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,+cAA+c;iBACxd,KAAK,EAAE,4IAA4I;iBACnJ,KAAK,EAAE,4HAA4H;;;iBAGnI,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,soBAAsoB;iBAC/oB,KAAK,EAAE,yLAAyL;iBAChM,KAAK,EAAE,mMAAmM;;CAErK,CAAA"}
@@ -4,7 +4,7 @@ export declare const SCHEMA_BUILDERS: {
4
4
  readonly group: 'deprecated';
5
5
  readonly since: '1.106';
6
6
  readonly site: true;
7
- readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (collection frontmatter, `defineEnv`), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
7
+ readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (an action\'s input, an API route\'s body, `defineEnv`, collection frontmatter), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
8
8
  readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
9
9
  readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
10
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-lints-1-106.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-106.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;iBAExB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,i5CAAi5C;iBAC15C,KAAK,EAAE,6LAA6L;iBACpM,KAAK,EAAE,mLAAmL;;CAErJ,CAAA"}
1
+ {"version":3,"file":"deprecated-lints-1-106.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-106.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe;;iBAExB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,27CAA27C;iBACp8C,KAAK,EAAE,6LAA6L;iBACpM,KAAK,EAAE,mLAAmL;;CAErJ,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const ACTION_OPTIONS: {
2
+ readonly 'deprecated-action-options': {
3
+ readonly level: 'warn';
4
+ readonly group: 'deprecated';
5
+ readonly since: '1.107';
6
+ readonly site: true;
7
+ readonly summary: 'The arguments of `action` before 1.107, `action(schema, handler, options)` and `action(handler, options)`: the options come first, with the input in them, as an API route\'s do, `action({ input: schema, ...options }, handler)` and `action(options, handler)`. `input` is a plain record of fields or any schema. The old forms work until 2.0. Found on the `action` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files; the fix moves the arguments and keeps their text.';
8
+ readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string() }, ({ title }) => title, { maxSize: \'1mb\' })\n---\np x';
9
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string() }, maxSize: \'1mb\' }, ({ title }) => title)\n---\np x';
10
+ };
11
+ };
12
+ //# sourceMappingURL=deprecated-lints-1-107.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deprecated-lints-1-107.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints-1-107.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,cAAc;;iBAEvB,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,gfAAgf;iBACzf,KAAK,EAAE,yJAAyJ;iBAChK,KAAK,EAAE,gKAAgK;;CAElI,CAAA"}
@@ -8,33 +8,6 @@ export declare const DEPRECATED_LINTS: {
8
8
  readonly wrong: '// src/admin.ts\nexport async function members(auth: Auth, org: string) {\n await auth.requireAdmin()\n\n return auth.organizations.members(org)\n}';
9
9
  readonly right: '// src/admin.ts\nexport async function members(auth: Auth, org: string) {\n await auth.admin.require()\n\n return auth.organizations.listMembers(org)\n}';
10
10
  };
11
- readonly 'deprecated-schema-builders': {
12
- readonly level: 'warn';
13
- readonly group: 'deprecated';
14
- readonly since: '1.106';
15
- readonly site: true;
16
- readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (collection frontmatter, `defineEnv`), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
17
- readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
18
- readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
19
- };
20
- readonly 'deprecated-callback-handler': {
21
- readonly level: 'deny';
22
- readonly group: 'deprecated';
23
- readonly since: '1.105';
24
- readonly typed: true;
25
- readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
26
- readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
27
- readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
28
- };
29
- readonly 'deprecated-call-result': {
30
- readonly level: 'deny';
31
- readonly group: 'deprecated';
32
- readonly since: '1.105';
33
- readonly typed: true;
34
- readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
35
- readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
36
- readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
37
- };
38
11
  readonly 'deprecated-source-readers': {
39
12
  readonly level: 'warn';
40
13
  readonly group: 'deprecated';
@@ -71,6 +44,42 @@ export declare const DEPRECATED_LINTS: {
71
44
  readonly wrong: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.error(\'title\') ? \'true\' : undefined})\n if add.failed()\n p Not saved';
72
45
  readonly right: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.form.error(\'title\') ? \'true\' : undefined})\n if add.form.failed()\n p Not saved';
73
46
  };
47
+ readonly 'deprecated-schema-builders': {
48
+ readonly level: 'warn';
49
+ readonly group: 'deprecated';
50
+ readonly since: '1.106';
51
+ readonly site: true;
52
+ readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (an action\'s input, an API route\'s body, `defineEnv`, collection frontmatter), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
53
+ readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
54
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
55
+ };
56
+ readonly 'deprecated-action-options': {
57
+ readonly level: 'warn';
58
+ readonly group: 'deprecated';
59
+ readonly since: '1.107';
60
+ readonly site: true;
61
+ readonly summary: 'The arguments of `action` before 1.107, `action(schema, handler, options)` and `action(handler, options)`: the options come first, with the input in them, as an API route\'s do, `action({ input: schema, ...options }, handler)` and `action(options, handler)`. `input` is a plain record of fields or any schema. The old forms work until 2.0. Found on the `action` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files; the fix moves the arguments and keeps their text.';
62
+ readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string() }, ({ title }) => title, { maxSize: \'1mb\' })\n---\np x';
63
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string() }, maxSize: \'1mb\' }, ({ title }) => title)\n---\np x';
64
+ };
65
+ readonly 'deprecated-callback-handler': {
66
+ readonly level: 'deny';
67
+ readonly group: 'deprecated';
68
+ readonly since: '1.105';
69
+ readonly typed: true;
70
+ readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
71
+ readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
72
+ readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
73
+ };
74
+ readonly 'deprecated-call-result': {
75
+ readonly level: 'deny';
76
+ readonly group: 'deprecated';
77
+ readonly since: '1.105';
78
+ readonly typed: true;
79
+ readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
80
+ readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
81
+ readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
82
+ };
74
83
  readonly 'deprecated-ui-props': {
75
84
  readonly level: 'warn';
76
85
  readonly group: 'deprecated';
@@ -95,23 +104,6 @@ export declare const DEPRECATED_LINTS: {
95
104
  readonly wrong: '---\nimport Card from \'./card.kay\'\n---\nCard(class={{ head: \'p-6\' }})';
96
105
  readonly right: '---\nimport Card from \'./card.kay\'\n---\nCard(parts={{ head: \'p-6\' }})';
97
106
  };
98
- readonly 'deprecated-script-fence': {
99
- readonly level: 'warn';
100
- readonly group: 'deprecated';
101
- readonly since: '1.102';
102
- readonly summary: '`--- script` as the first fence of a file, `---` since 1.102: the bare line opens the component script wherever no named fence comes before it, so one fence had two spellings. `--- script` stays for a script that follows a `--- server`, `--- module` or `--- style` fence, where a bare `---` would close that fence instead, and `--- client` still replaces `---` rather than modifying it. The old form still works. The fix drops the word, keeping the type parameters of `--- script <T>` as `--- <T>`.';
103
- readonly wrong: '--- script\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
104
- readonly right: '---\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
105
- };
106
- readonly 'deprecated-schema-type': {
107
- readonly level: 'warn';
108
- readonly group: 'deprecated';
109
- readonly since: '1.103';
110
- readonly site: true;
111
- readonly summary: '`TSchema` imported from `kay/library`, `Schema` since 1.103: kay\'s own name for what `s` builds and every schema option takes, so a signature of the app does not name TypeBox, whose type follows the Elysia kay is built on. The old name works until 1.106. Found on an import from `kay/library` in the TypeScript files and `.kay` files of the project. The fix renames the import and each use of it; a file that already has a `Schema` of its own is reported with no fix, and one that imports it aliased with only the import renamed.';
112
- readonly wrong: '---\nimport type { TSchema } from \'kay/library\'\n\nexport function check<Fields extends TSchema>(fields: Fields) {\n return fields\n}\n---\np x';
113
- readonly right: '---\nimport type { Schema } from \'kay/library\'\n\nexport function check<Fields extends Schema>(fields: Fields) {\n return fields\n}\n---\np x';
114
- };
115
107
  readonly 'deprecated-package-names': {
116
108
  readonly level: 'warn';
117
109
  readonly group: 'deprecated';
@@ -1 +1 @@
1
- {"version":3,"file":"deprecated-lints.d.ts","sourceRoot":"","sources":["../../src/compiler/deprecated-lints.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;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AAE,0LAA0L;;;iBAGjM,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,qnBAAqnB;iBAC9nB,KAAK,EAAE,gJAAgJ;iBACvJ,KAAK,EAAE,6JAA6J;;;iBAGpK,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,kiBAAkiB;iBAC3iB,KAAK,EAAE,6GAA6G;iBACpH,KAAK,EAAE,sHAAsH;;;iBAG7H,KAAK,EAAE,MAAM;iBACb,KAAK,EAAE,YAAY;iBACnB,KAAK,EAAE,OAAO;iBACd,IAAI;iBACJ,OAAO,EAAE,4oBAA4oB;iBACrpB,KAAK,EAAE,yJAAyJ;iBAChK,KAAK,EAAE,qKAAqK;;CAEvI,CAAA;AAGzC,eAAO,MAAM,kBAAkB,EAAE,SAAS;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,EAgC9E,CAAA"}
@@ -2,4 +2,5 @@ import type { Fix, KayFile, Span } from './ast';
2
2
  import type { ImportBinding } from './script-shared';
3
3
  export declare function prologueLength(text: string): number;
4
4
  export declare function importEdits(file: KayFile, fence: Span | undefined, imports: readonly ImportBinding[], wanted: ReadonlyMap<string, string[]>): Fix['edits'];
5
+ export declare function withoutComma(src: string, specifier: Span, declaration: Span): Span;
5
6
  //# sourceMappingURL=import-edits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"import-edits.d.ts","sourceRoot":"","sources":["../../src/compiler/import-edits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAOpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOnD;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,CA4B1J"}
1
+ {"version":3,"file":"import-edits.d.ts","sourceRoot":"","sources":["../../src/compiler/import-edits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAOpD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOnD;AAGD,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,GAAG,SAAS,EAAE,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,CAAC,CA4B1J;AAMD,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,GAAG,IAAI,CASlF"}
@@ -2,6 +2,7 @@ import type { ClassTable } from '../runtime/class-table';
2
2
  import type { UiEntry } from '../runtime/ui';
3
3
  import type { Diagnostic } from './ast';
4
4
  import type { IslandCause } from './island-cause';
5
+ import type { ImportedComponents } from './lazy-imports';
5
6
  import type { LintLevels } from './lints';
6
7
  import type { ImportedSignals } from './module-signals';
7
8
  import type { AwaitAlert } from './names';
@@ -35,6 +36,7 @@ export interface CompileOptions {
35
36
  clientOnly?: boolean | undefined;
36
37
  insideIsland?: boolean | undefined;
37
38
  importedSignals?: ImportedSignals | undefined;
39
+ components?: ImportedComponents | undefined;
38
40
  classTable?: ClassTable | undefined;
39
41
  classMerge?: boolean | undefined;
40
42
  awaitAlert?: AwaitAlert | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compiler/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAa,UAAU,EAAuB,MAAM,OAAO,CAAA;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,KAAK,EAAE,eAAe,EAAc,MAAM,kBAAkB,CAAA;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAsBzC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAerC,YAAY,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AAEjD,MAAM,WAAW,cAAc;IAE7B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAEzB,aAAa,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAEnC,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAE7B,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;IAE/C,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAEnC,WAAW,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAElC,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,SAAS,CAAA;IAEjC,KA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,SAAS,CAAA;IAE7B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAE3B,KAAK,CAAC,EAAE,WAAW,GAAG,SAAS,CAAA;IAC/B,yNAAyN;IACzN,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAExB,OAAO,EAAE,MAAM,EAAE,CAAA;IAEjB,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,UAAU,EAAE,CAAA;CAC1B;AAWD,eAAO,MAAM,WAAW,aAA6F,CAAA;AA4FrH,wBAAsB,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAE1E;AA8BD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,IAAI,UAAQ,GAAG,OAAO,CAInG;AAID,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,eAAe,EAAE,IAAI,UAAQ,GAAG,QAAQ,GAAG,SAAS,CAK9H;AAQD,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,UAAU,EAAE,CAO7D;AAKD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,GAAE,cAAmB,GAAG,aAAa,CAqI1G;AAsLD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,SAAQ,GAAG,MAAM,CAE/D;AAGD,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAKtD"}
@@ -27,4 +27,9 @@ export declare function rolesOf(source: string, script: Span | undefined, fence:
27
27
  kind: 'island' | 'static';
28
28
  }) | undefined;
29
29
  };
30
+ export declare function spelledOutFirstFence(source: string, line: Span | undefined, word: {
31
+ start: number;
32
+ end: number;
33
+ word: string;
34
+ } | undefined): Diagnostic[];
30
35
  //# sourceMappingURL=island-declaration.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"island-declaration.d.ts","sourceRoot":"","sources":["../../src/compiler/island-declaration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC1D,OAAO,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAK7C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEzD,MAAM,WAAW,iBAAiB;IAEhC,IAAI,EAAE,IAAI,CAAA;IACV,MAAM,EAAE,YAAY,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACjD,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAE3B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;CACzB;AAED,eAAO,MAAM,WAAW,QAAqB,CAAA;AAM7C,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEnD;AAMD,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,IAAI,SAAS,GAAG;IAAE,IAAI,EAAE,qBAAqB,CAAA;CAAE,CAE3G;AAGD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,EAAE,QAAQ,GAAE,UAAU,EAAO,GAAG,iBAAiB,GAAG,SAAS,CAmF3I;AAqBD,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAIlD;AAGD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,MA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AM,CAAC,MAAM,EAAE,OAAO,CAAC,CA4FvD,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAExD,CAAA;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAKtE"}
1
+ {"version":3,"file":"kay-exports.d.ts","sourceRoot":"","sources":["../../src/compiler/kay-exports.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,OAAO,GAAG,SAAS,GAAG,QAAQ,CAAA;AAE1C,eAAO,MAAM,SAAS,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CA6FvD,CAAA;AAGD,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAExD,CAAA;AAGD,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAKtE"}
@@ -0,0 +1,33 @@
1
+ import type { KayFile, Span } from './ast';
2
+ import type { ImportBinding } from './script-shared';
3
+ export interface ImportedComponent {
4
+ key: string;
5
+ deferred: readonly string[];
6
+ size: number;
7
+ reach: readonly string[];
8
+ }
9
+ export type ImportedComponents = Readonly<Record<string, ImportedComponent>>;
10
+ export interface LazyImport {
11
+ key: string;
12
+ specifier: string;
13
+ declaration: {
14
+ start: number;
15
+ end: number;
16
+ };
17
+ }
18
+ export declare const LAZY_FLOOR = 2000;
19
+ export declare function deferredProps(file: KayFile, imports: readonly ImportBinding[], known: (specifier: string) => ImportedComponent | undefined): string[];
20
+ export declare function lazyImports(file: KayFile, imports: readonly ImportBinding[], known: ImportedComponents): Map<string, LazyImport>;
21
+ export declare function eagerReach(imports: readonly ImportBinding[], known: ImportedComponents, lazy: ReadonlyMap<string, LazyImport>): string[];
22
+ export declare function lazyImportsOf(file: KayFile, imports: readonly ImportBinding[], options: {
23
+ components?: ImportedComponents | undefined;
24
+ output?: string | undefined;
25
+ }, hydrated: boolean, routeFile: boolean, clientOnly: boolean): ReadonlyMap<string, LazyImport> | undefined;
26
+ export declare function lazyNoteImport(lazy: ReadonlyMap<string, LazyImport> | undefined, mode: string): string;
27
+ export declare function lazyDomImport(lazy: ReadonlyMap<string, LazyImport> | undefined): string;
28
+ export declare function lazyEdits(imports: readonly ImportBinding[], span: Span, lazy: ReadonlyMap<string, LazyImport> | undefined, mode: string, moduleId: string | undefined): {
29
+ start: number;
30
+ end: number;
31
+ text: string;
32
+ }[];
33
+ //# sourceMappingURL=lazy-imports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy-imports.d.ts","sourceRoot":"","sources":["../../src/compiler/lazy-imports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,OAAO,EAAQ,IAAI,EAAE,MAAM,OAAO,CAAA;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAKpD,MAAM,WAAW,iBAAiB;IAChC,GAAG,EAAE,MAAM,CAAA;IAEX,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;IAE3B,IAAI,EAAE,MAAM,CAAA;IAEZ,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CACzB;AAGD,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAA;AAG5E,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAA;CAC5C;AAGD,eAAO,MAAM,UAAU,OAAO,CAAA;AAkL9B,wBAAgB,aAAa,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,aAAa,EAAE,EAAE,KAAK,EAAE,CAAC,SAAS,EAAE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AC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,CAqBtN"}
@@ -98,33 +98,6 @@ export declare const LINTS: {
98
98
  readonly wrong: '// src/admin.ts\nexport async function members(auth: Auth, org: string) {\n await auth.requireAdmin()\n\n return auth.organizations.members(org)\n}';
99
99
  readonly right: '// src/admin.ts\nexport async function members(auth: Auth, org: string) {\n await auth.admin.require()\n\n return auth.organizations.listMembers(org)\n}';
100
100
  };
101
- readonly 'deprecated-schema-builders': {
102
- readonly level: 'warn';
103
- readonly group: 'deprecated';
104
- readonly since: '1.106';
105
- readonly site: true;
106
- readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (collection frontmatter, `defineEnv`), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
107
- readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
108
- readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
109
- };
110
- readonly 'deprecated-callback-handler': {
111
- readonly level: 'deny';
112
- readonly group: 'deprecated';
113
- readonly since: '1.105';
114
- readonly typed: true;
115
- readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
116
- readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
117
- readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
118
- };
119
- readonly 'deprecated-call-result': {
120
- readonly level: 'deny';
121
- readonly group: 'deprecated';
122
- readonly since: '1.105';
123
- readonly typed: true;
124
- readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
125
- readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
126
- readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
127
- };
128
101
  readonly 'deprecated-source-readers': {
129
102
  readonly level: 'warn';
130
103
  readonly group: 'deprecated';
@@ -161,6 +134,42 @@ export declare const LINTS: {
161
134
  readonly wrong: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.error(\'title\') ? \'true\' : undefined})\n if add.failed()\n p Not saved';
162
135
  readonly right: '---\nimport { add } from \'./notes.kay\'\n---\nform(action={add})\n input(name="title" aria-invalid={add.form.error(\'title\') ? \'true\' : undefined})\n if add.form.failed()\n p Not saved';
163
136
  };
137
+ readonly 'deprecated-schema-builders': {
138
+ readonly level: 'warn';
139
+ readonly group: 'deprecated';
140
+ readonly since: '1.106';
141
+ readonly site: true;
142
+ readonly summary: 'The PascalCase builders of `s` before 1.106, which kay\'s own lowercase builders replace, each taking the same field options (`optional`, `default`, `error`, `label`, `description`, `example`) and short names for the rest: `s.String` is `s.string` (`min`, `max`), `s.Integer` `s.int`, `s.Number` and `s.Numeric` `s.number`, `s.Boolean` and `s.BooleanString` `s.boolean`, `s.Array` `s.list`, `s.UnionEnum` and `s.UnionKeys` `s.enum`, and `s.Date`, `s.Literal`, `s.Union`, `s.Object`, `s.File`, `s.Files`, `s.Secret` and `s.Public` their lowercase names; `s.Optional(field)` is `optional: true` in the options of the field; an `s.Object({ ... })` that is the schema of an `action` or a `defineEnv` is the record of fields alone; and a file size written `\'2m\'` is `\'2mb\'`. The old names work until 2.0. Found on the `s` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files. The fix renames the builder and the options that changed; an `s.Optional` around anything but one of these builders, such as a helper of `kay/content`, is left as it is. A lowercase `s.object` refuses a key its shape lacks where kay reads the schema itself (an action\'s input, an API route\'s body, `defineEnv`, collection frontmatter), where `s.Object` let it by: write `{ extra: \'strip\' }` where the old way is wanted. A query, the headers and the cookies of a request carry keys no schema names, so their unknown keys are dropped whatever the schema says.';
143
+ readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action(s.Object({ title: s.String({ maxLength: 200 }), note: s.Optional(s.String()) }), ({ title }) => title)\n---\np x';
144
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string({ max: 200 }), note: s.string({ optional: true }) }, ({ title }) => title)\n---\np x';
145
+ };
146
+ readonly 'deprecated-action-options': {
147
+ readonly level: 'warn';
148
+ readonly group: 'deprecated';
149
+ readonly since: '1.107';
150
+ readonly site: true;
151
+ readonly summary: 'The arguments of `action` before 1.107, `action(schema, handler, options)` and `action(handler, options)`: the options come first, with the input in them, as an API route\'s do, `action({ input: schema, ...options }, handler)` and `action(options, handler)`. `input` is a plain record of fields or any schema. The old forms work until 2.0. Found on the `action` a file imports from `kay`, in the TypeScript files and the fences of `.kay` files; the fix moves the arguments and keeps their text.';
152
+ readonly wrong: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ title: s.string() }, ({ title }) => title, { maxSize: \'1mb\' })\n---\np x';
153
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string() }, maxSize: \'1mb\' }, ({ title }) => title)\n---\np x';
154
+ };
155
+ readonly 'deprecated-callback-handler': {
156
+ readonly level: 'deny';
157
+ readonly group: 'deprecated';
158
+ readonly since: '1.105';
159
+ readonly typed: true;
160
+ readonly summary: 'A function written for the arguments a kayjs-ui, kayjs-ai or kayjs-cms callback took before 1.105, given to a callback that takes one event object since: `onValueChange={query.set}`, `onCheckedChange={toggle}` with `toggle(on: boolean)` or `onFiles={upload}` with `upload(files: File[])`. Found where the type check refuses the function and the component comes from a `@kayjs` library; the fix writes `event => query.set(event.value)`, passing the fields the handler took, first ones first, and is applied where its parameter is no object (a parameter typed as an object may be written for the event already, so that fix is offered). A handler that is not a plain name, such as an arrow function, is reported with no fix. The old form fails the type check, and would receive the event where it took the value, so the level is `deny` until it is rewritten.';
161
+ readonly wrong: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={toggle})';
162
+ readonly right: '---\nimport { signal } from \'kay\'\nimport Checkbox from \'@kayjs/ui/checkbox.kay\'\n\nconst on = signal(false)\n\nfunction toggle(next: boolean) {\n on.set(next)\n}\n---\nCheckbox(label="Notify" checked={on()} onChange={event => toggle(event.checked)})';
163
+ };
164
+ readonly 'deprecated-call-result': {
165
+ readonly level: 'deny';
166
+ readonly group: 'deprecated';
167
+ readonly since: '1.105';
168
+ readonly typed: true;
169
+ readonly summary: 'An island\'s call read as its data, `const list = await call(notes, \'/\')` then `list.items`, or `await add(input)` then `.id`, which resolved with the data before 1.105 and answers a `CallResult`, `{ ok: true, data }` or `{ ok: false, error }`, since. Found where the type check refuses a field of a `CallResult`, in a `.kay` script or a module. The fix writes `.orThrow()` after the call, which resolves with the data and throws a refusal as the call did; it is applied where the call is written on an imported name and nothing reads `ok`, `data` or `error` of the answer, and offered otherwise. The old form fails the type check, so the level is `deny`.';
170
+ readonly wrong: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\')\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
171
+ readonly right: '---\nimport { call, signal } from \'kay\'\nimport notes from \'../api/notes\'\n\nconst names = signal(\'\')\n\nasync function load() {\n const list = await call(notes, \'/\').orThrow()\n\n names = list.items.join(\', \')\n}\n---\nbutton(onClick={load}) Load\np {names()}';
172
+ };
164
173
  readonly 'deprecated-ui-props': {
165
174
  readonly level: 'warn';
166
175
  readonly group: 'deprecated';
@@ -185,23 +194,6 @@ export declare const LINTS: {
185
194
  readonly wrong: '---\nimport Card from \'./card.kay\'\n---\nCard(class={{ head: \'p-6\' }})';
186
195
  readonly right: '---\nimport Card from \'./card.kay\'\n---\nCard(parts={{ head: \'p-6\' }})';
187
196
  };
188
- readonly 'deprecated-script-fence': {
189
- readonly level: 'warn';
190
- readonly group: 'deprecated';
191
- readonly since: '1.102';
192
- readonly summary: '`--- script` as the first fence of a file, `---` since 1.102: the bare line opens the component script wherever no named fence comes before it, so one fence had two spellings. `--- script` stays for a script that follows a `--- server`, `--- module` or `--- style` fence, where a bare `---` would close that fence instead, and `--- client` still replaces `---` rather than modifying it. The old form still works. The fix drops the word, keeping the type parameters of `--- script <T>` as `--- <T>`.';
193
- readonly wrong: '--- script\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
194
- readonly right: '---\nconst { title } = props<{ title: string }>()\n---\nh1 {title}';
195
- };
196
- readonly 'deprecated-schema-type': {
197
- readonly level: 'warn';
198
- readonly group: 'deprecated';
199
- readonly since: '1.103';
200
- readonly site: true;
201
- readonly summary: '`TSchema` imported from `kay/library`, `Schema` since 1.103: kay\'s own name for what `s` builds and every schema option takes, so a signature of the app does not name TypeBox, whose type follows the Elysia kay is built on. The old name works until 1.106. Found on an import from `kay/library` in the TypeScript files and `.kay` files of the project. The fix renames the import and each use of it; a file that already has a `Schema` of its own is reported with no fix, and one that imports it aliased with only the import renamed.';
202
- readonly wrong: '---\nimport type { TSchema } from \'kay/library\'\n\nexport function check<Fields extends TSchema>(fields: Fields) {\n return fields\n}\n---\np x';
203
- readonly right: '---\nimport type { Schema } from \'kay/library\'\n\nexport function check<Fields extends Schema>(fields: Fields) {\n return fields\n}\n---\np x';
204
- };
205
197
  readonly 'deprecated-package-names': {
206
198
  readonly level: 'warn';
207
199
  readonly group: 'deprecated';
@@ -722,6 +714,14 @@ export declare const LINTS: {
722
714
  readonly wrong: '---\nisland()\nconst rows = signal<{ text: string }[]>([])\n---\nfor row of rows()\n p {row.text}';
723
715
  readonly right: '---\nisland()\nconst rows = signal<{ text: string }[]>([])\n---\nfor row, i of rows() key={i}\n p {row.text}';
724
716
  };
717
+ readonly 'schema-without-json-schema': {
718
+ readonly level: 'warn';
719
+ readonly group: 'forms';
720
+ readonly site: true;
721
+ readonly summary: 'A Standard Schema validator with no `~standard.jsonSchema` where an action\'s `input` or an API route\'s `body`, `query`, `params`, `headers` or `cookie` takes a schema: it still validates, but a form shows no constraints, a form or a query is not read as numbers and booleans, and OpenAPI and MCP show an open schema. Read from the source, in `.ts` modules and `.kay` fences: a hand-written object with `~standard` and no `jsonSchema`, and what valibot builds (valibot carries none until `toStandardJsonSchema` from `@valibot/to-json-schema` wraps it), followed through a `const` and a relative import. Zod 4.2+ and ArkType 2.1.28+ carry it.';
722
+ readonly wrong: '--- server\nimport { action } from \'kay\'\nimport * as v from \'valibot\'\n\nexport const add = action({ input: v.object({ title: v.string() }) }, ({ title }) => title)\n---\np x';
723
+ readonly right: '--- server\nimport { action, s } from \'kay\'\n\nexport const add = action({ input: { title: s.string({ max: 200 }) } }, ({ title }) => title)\n---\np x';
724
+ };
725
725
  readonly 'serial-awaits': {
726
726
  readonly level: 'warn';
727
727
  readonly group: 'performance';