brumate 0.0.1 → 0.1.1

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 (81) hide show
  1. package/README.md +43 -72
  2. package/dist/boot-DN1ZU8Hg.d.ts +37 -0
  3. package/dist/cli.js +2 -2
  4. package/dist/{client-DuDTDePF.d.ts → client-DwJInP_a.d.ts} +133 -44
  5. package/dist/client-routes-DakuM32C.js +94 -0
  6. package/dist/client-routes-DakuM32C.js.map +1 -0
  7. package/dist/{cookies-rgIAc8IE.js → cookies-Av5WFmcf.js} +18 -8
  8. package/dist/cookies-Av5WFmcf.js.map +1 -0
  9. package/dist/{devtools-Bm8cS7hX.js → devtools-BKjnHrnv.js} +10 -5
  10. package/dist/devtools-BKjnHrnv.js.map +1 -0
  11. package/dist/{devtools-panel-CTbDSBBA.js → devtools-panel-AWOn0VK2.js} +23 -26
  12. package/dist/devtools-panel-AWOn0VK2.js.map +1 -0
  13. package/dist/{files-D_JUcSU5.js → files-DdT84mPy.js} +22 -3
  14. package/dist/{files-D_JUcSU5.js.map → files-DdT84mPy.js.map} +1 -1
  15. package/dist/{html-CxWpXngy.js → html-DEeoepg3.js} +47 -10
  16. package/dist/html-DEeoepg3.js.map +1 -0
  17. package/dist/{html-DV-Tezgq.d.ts → html-Du8jY2Cc.d.ts} +14 -2
  18. package/dist/index.d.ts +65 -6
  19. package/dist/index.js +20 -4
  20. package/dist/index.js.map +1 -1
  21. package/dist/{inspect-CGCWfaEx.js → inspect-BPchdWbU.js} +887 -172
  22. package/dist/inspect-BPchdWbU.js.map +1 -0
  23. package/dist/loader-Dc9OwY5I.js +101 -0
  24. package/dist/loader-Dc9OwY5I.js.map +1 -0
  25. package/dist/{navigate-C5dP89YL.js → navigate-CzLjnoPH.js} +112 -59
  26. package/dist/navigate-CzLjnoPH.js.map +1 -0
  27. package/dist/{produce-BjQGMpqL.d.ts → produce-CtZ32UGG.d.ts} +13 -3
  28. package/dist/{rpc-B86KKjzx.js → rpc-9fSqL_YK.js} +57 -12
  29. package/dist/rpc-9fSqL_YK.js.map +1 -0
  30. package/dist/runtime/client.d.ts +4 -4
  31. package/dist/runtime/client.js +599 -306
  32. package/dist/runtime/client.js.map +1 -1
  33. package/dist/runtime/devtools.d.ts +3 -1
  34. package/dist/runtime/devtools.js +1 -1
  35. package/dist/runtime/hot.d.ts +1 -1
  36. package/dist/runtime/hot.js +9 -5
  37. package/dist/runtime/hot.js.map +1 -1
  38. package/dist/runtime/html.d.ts +2 -2
  39. package/dist/runtime/html.js +1 -1
  40. package/dist/runtime/loader.d.ts +12 -2
  41. package/dist/runtime/loader.js +3 -1
  42. package/dist/runtime/server.d.ts +4 -4
  43. package/dist/runtime/server.js +5 -5
  44. package/dist/runtime/signals.d.ts +2 -2
  45. package/dist/runtime/signals.js +5 -5
  46. package/dist/runtime/signals.js.map +1 -1
  47. package/dist/runtime/static-loader.d.ts +3 -0
  48. package/dist/runtime/static-loader.js +1 -0
  49. package/dist/runtime/testing.d.ts +21 -2
  50. package/dist/runtime/testing.js +83 -7
  51. package/dist/runtime/testing.js.map +1 -1
  52. package/dist/{server-sQCvduOz.d.ts → server-BxqjLUnV.d.ts} +211 -20
  53. package/dist/{server-CX3JnPCs.js → server-DZsgnPKS.js} +595 -185
  54. package/dist/server-DZsgnPKS.js.map +1 -0
  55. package/dist/shared-CWYOd0H3.js +40 -0
  56. package/dist/shared-CWYOd0H3.js.map +1 -0
  57. package/dist/static-loader-BcFh4ebX.d.ts +11 -0
  58. package/dist/static-loader-ClNkHZGn.js +185 -0
  59. package/dist/static-loader-ClNkHZGn.js.map +1 -0
  60. package/dist/stream-bgNCMcaA.js +280 -0
  61. package/dist/stream-bgNCMcaA.js.map +1 -0
  62. package/dist/vite.d.ts +30 -5
  63. package/dist/vite.js +501 -62
  64. package/dist/vite.js.map +1 -1
  65. package/package.json +7 -2
  66. package/types.d.ts +5 -0
  67. package/dist/cookies-rgIAc8IE.js.map +0 -1
  68. package/dist/devtools-Bm8cS7hX.js.map +0 -1
  69. package/dist/devtools-panel-CTbDSBBA.js.map +0 -1
  70. package/dist/html-CxWpXngy.js.map +0 -1
  71. package/dist/inspect-CGCWfaEx.js.map +0 -1
  72. package/dist/loader-BUhNqDHw.d.ts +0 -30
  73. package/dist/loader-py4qu6tQ.js +0 -215
  74. package/dist/loader-py4qu6tQ.js.map +0 -1
  75. package/dist/navigate-C5dP89YL.js.map +0 -1
  76. package/dist/rpc-B86KKjzx.js.map +0 -1
  77. package/dist/server-CX3JnPCs.js.map +0 -1
  78. package/dist/shared-BE_oBSDM.js +0 -176
  79. package/dist/shared-BE_oBSDM.js.map +0 -1
  80. package/dist/stream-cvhqOzfs.js +0 -145
  81. package/dist/stream-cvhqOzfs.js.map +0 -1
@@ -1,5 +1,4 @@
1
- import { c as replaceDeep, i as disabledFeatures, r as Upload, s as plugins } from "./shared-BE_oBSDM.js";
2
- import { n as fromChunkStream } from "./stream-cvhqOzfs.js";
1
+ import { a as plugins, c as replaceDeep, i as disabledFeatures, n as fromChunkStream, o as Upload } from "./stream-bgNCMcaA.js";
3
2
  import { toJSONAsync } from "seroval";
4
3
  //#region src/runtime/rpc.ts
5
4
  /**
@@ -29,7 +28,7 @@ async function call(prefix, id, args, signal) {
29
28
  if (files.length > 0) {
30
29
  const form = new FormData();
31
30
  form.set("args", json);
32
- const blobs = await Promise.all(files.map(async (file) => file instanceof Blob ? file : new Blob([await file.arrayBuffer()], { type: file.type })));
31
+ const blobs = await Promise.all(files.map((file) => file instanceof Blob ? file : file.arrayBuffer().then((data) => new Blob([data], { type: file.type }))));
33
32
  for (const [index, blob] of blobs.entries()) form.set(`file${index}`, blob, files[index].name ?? "blob");
34
33
  init = {
35
34
  headers: { "x-brumate-args": "form" },
@@ -39,30 +38,43 @@ async function call(prefix, id, args, signal) {
39
38
  headers: { "content-type": "application/json" },
40
39
  body: json
41
40
  };
42
- return answer(id, await fetch(`${prefix}/${encodeURIComponent(id)}`, {
41
+ return post(prefix, id, {
43
42
  ...init,
44
- method: "POST",
45
43
  signal
46
- }));
44
+ });
47
45
  }
48
46
  /**
49
47
  * Sends a form to a server function, and returns its result. The form data
50
48
  * goes as it is, files included, as when the browser posts the form.
51
49
  */
52
50
  async function submit(prefix, id, form) {
53
- return answer(id, await fetch(`${prefix}/${encodeURIComponent(id)}`, {
54
- method: "POST",
51
+ return post(prefix, id, {
55
52
  headers: { "x-brumate-result": "1" },
56
53
  body: form
54
+ });
55
+ }
56
+ /** Posts to a server function, and reads its answer. */
57
+ async function post(prefix, id, init) {
58
+ return answer(id, await fetch(`${prefix}/${encodeURIComponent(id)}`, {
59
+ ...init,
60
+ method: "POST"
57
61
  }));
58
62
  }
59
63
  /** Reads the answer of a server function: its result, a redirect or an error. */
60
64
  async function answer(id, response) {
61
65
  const refreshed = response.headers.get("x-brumate-refresh");
62
- if (refreshed) document.dispatchEvent(new CustomEvent("brumate:refresh", { detail: refreshed.split(",") }));
66
+ if (refreshed) {
67
+ const ids = refreshed.split(",");
68
+ refreshMemos(ids);
69
+ document.dispatchEvent(new CustomEvent("brumate:refresh", { detail: ids }));
70
+ }
63
71
  const location = response.headers.get("x-brumate-redirect");
64
72
  if (location !== null) {
65
- window.location.assign(location);
73
+ const redirect = new CustomEvent("brumate:redirect", {
74
+ detail: location,
75
+ cancelable: true
76
+ });
77
+ if (document.dispatchEvent(redirect)) window.location.assign(location);
66
78
  return new Promise(() => {});
67
79
  }
68
80
  if (!response.ok) {
@@ -77,7 +89,40 @@ async function answer(id, response) {
77
89
  }
78
90
  return fromChunkStream(response.body);
79
91
  }
92
+ /**
93
+ * Loads again the memos that call these server functions, after a server
94
+ * function named them with `refresh`. Each component on the page knows its
95
+ * own memos, from its client module. It is here, and not in the core, because
96
+ * only the answer of a server call starts it.
97
+ */
98
+ function refreshMemos(ids) {
99
+ return import("./runtime/client.js").then(({ descendants, loadModule, loadPart, scopes }) => {
100
+ for (const root of scopes.values()) {
101
+ if (!root.m) continue;
102
+ loadModule(root.m).then(async (module) => {
103
+ const entries = ids.flatMap((id) => module.refresh?.[id] ?? []);
104
+ if (entries.length === 0) return;
105
+ const updates = await loadPart(module, "update");
106
+ for (const [kind, name] of entries) for (const target of kind === root.k ? [root] : descendants(root, kind)) if (scopes.has(target.id)) updates[name](target);
107
+ });
108
+ }
109
+ });
110
+ }
111
+ /**
112
+ * Sends a form to the server function of its `$action`, and writes the
113
+ * result into the `$action` when it arrives. It is pending until then. See
114
+ * `submitAction` in the core.
115
+ */
116
+ function sendAction(form, submitter) {
117
+ const [scopeId, slot] = form.getAttribute("b-result").split(":").map(Number);
118
+ const data = new FormData(form, submitter);
119
+ const action = form.getAttribute("b-action");
120
+ return import("./runtime/client.js").then(({ asyncMemo, rpcPrefix, scopes, track }) => {
121
+ const scope = scopes.get(scopeId);
122
+ if (scope) asyncMemo(scope, slot, track(submit(rpcPrefix, action, data)));
123
+ });
124
+ }
80
125
  //#endregion
81
- export { call, submit };
126
+ export { call, sendAction };
82
127
 
83
- //# sourceMappingURL=rpc-B86KKjzx.js.map
128
+ //# sourceMappingURL=rpc-9fSqL_YK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc-9fSqL_YK.js","names":[],"sources":["../src/runtime/rpc.ts"],"sourcesContent":["import { toJSONAsync } from 'seroval';\nimport type { Scope } from './client.ts';\nimport { disabledFeatures, plugins } from './serial.ts';\nimport { Upload, replaceDeep } from './calls.ts';\nimport { fromChunkStream } from './stream.ts';\n\n/**\n * True for a file or a blob. One from another frame, or another DOM, is an\n * instance of another `Blob` class, so its methods tell instead.\n */\nfunction isBlob(value: unknown): value is Blob {\n if (value instanceof Blob) {\n return true;\n }\n const blob = value as Partial<Blob> | null;\n return (\n typeof blob === 'object' &&\n blob !== null &&\n typeof blob.size === 'number' &&\n typeof blob.type === 'string' &&\n typeof blob.arrayBuffer === 'function' &&\n typeof blob.slice === 'function'\n );\n}\n\n/**\n * Calls a server function. It is a separate module, so pages that never call\n * one never load seroval's serializer.\n *\n * Files and blobs in the arguments, in arrays and plain objects, go as parts\n * of multipart form data. `signal` aborts the call.\n */\nexport async function call(\n prefix: string,\n id: string,\n args: unknown[],\n signal?: AbortSignal,\n): Promise<unknown> {\n const files: Blob[] = [];\n const sent = replaceDeep(args, (value) =>\n isBlob(value) ? new Upload(files.push(value) - 1) : undefined,\n );\n const json = JSON.stringify(await toJSONAsync(sent, { plugins, disabledFeatures }));\n let init: RequestInit;\n if (files.length > 0) {\n const form = new FormData();\n form.set('args', json);\n // A blob of another DOM is copied, because form data takes only its own.\n const blobs = await Promise.all(\n files.map((file: Blob) =>\n // Typed as a Blob, so the check narrows a blob of another DOM to never.\n file instanceof Blob\n ? file\n : (file as Blob)\n .arrayBuffer()\n .then((data) => new Blob([data], { type: (file as Blob).type })),\n ),\n );\n for (const [index, blob] of blobs.entries()) {\n form.set(`file${index}`, blob, (files[index] as Partial<File>).name ?? 'blob');\n }\n init = { headers: { 'x-brumate-args': 'form' }, body: form };\n } else {\n init = { headers: { 'content-type': 'application/json' }, body: json };\n }\n return post(prefix, id, { ...init, signal });\n}\n\n/**\n * Sends a form to a server function, and returns its result. The form data\n * goes as it is, files included, as when the browser posts the form.\n */\nexport async function submit(prefix: string, id: string, form: FormData): Promise<unknown> {\n return post(prefix, id, { headers: { 'x-brumate-result': '1' }, body: form });\n}\n\n/** Posts to a server function, and reads its answer. */\nasync function post(prefix: string, id: string, init: RequestInit): Promise<unknown> {\n return answer(\n id,\n await fetch(`${prefix}/${encodeURIComponent(id)}`, { ...init, method: 'POST' }),\n );\n}\n\n/** Reads the answer of a server function: its result, a redirect or an error. */\nasync function answer(id: string, response: Response): Promise<unknown> {\n // The server functions whose memos load again, from `refresh` on the server.\n const refreshed = response.headers.get('x-brumate-refresh');\n if (refreshed) {\n const ids = refreshed.split(',');\n void refreshMemos(ids);\n document.dispatchEvent(new CustomEvent('brumate:refresh', { detail: ids }));\n }\n const location = response.headers.get('x-brumate-redirect');\n if (location !== null) {\n // The loader navigates on the client when it can. Without client navigation, the page loads in full.\n const redirect = new CustomEvent('brumate:redirect', { detail: location, cancelable: true });\n if (document.dispatchEvent(redirect)) {\n window.location.assign(location);\n }\n // The page is leaving, so the call never settles.\n return new Promise(() => {});\n }\n if (!response.ok) {\n let message = `Server function \"${id}\" failed with status ${response.status}`;\n try {\n message = ((await response.json()) as { error: string }).error;\n } catch {\n // The body is not the error of a server function.\n }\n throw Object.assign(new Error(message), { name: 'ServerError', status: response.status });\n }\n // Promises and async iterables in the result settle as the rest of the answer arrives.\n return fromChunkStream(response.body!);\n}\n\n// The code below reads the core with `import()`, not a static import: a module that imports\n// the core statically would make the package build move the core into a chunk of its own, behind\n// a module that only re-exports it, which a page loads one after the other. The core is loaded\n// already when it runs, so the import costs no request. It names the exports it uses, so a build\n// keeps only them.\n\n/**\n * Loads again the memos that call these server functions, after a server\n * function named them with `refresh`. Each component on the page knows its\n * own memos, from its client module. It is here, and not in the core, because\n * only the answer of a server call starts it.\n */\nexport function refreshMemos(ids: string[]): Promise<void> {\n return import('./client.ts').then(({ descendants, loadModule, loadPart, scopes }) => {\n for (const root of scopes.values()) {\n if (!root.m) {\n continue;\n }\n void loadModule(root.m).then(async (module) => {\n const entries = ids.flatMap((id) => module.refresh?.[id] ?? []);\n if (entries.length === 0) {\n return;\n }\n const updates = await loadPart(module, 'update');\n for (const [kind, name] of entries) {\n for (const target of kind === root.k ? [root] : descendants(root, kind)) {\n if (scopes.has(target.id)) {\n (updates[name] as (scope: Scope) => void)(target);\n }\n }\n }\n });\n }\n });\n}\n\n/**\n * Sends a form to the server function of its `$action`, and writes the\n * result into the `$action` when it arrives. It is pending until then. See\n * `submitAction` in the core.\n */\nexport function sendAction(form: HTMLFormElement, submitter: HTMLElement | null): Promise<void> {\n const [scopeId, slot] = form.getAttribute('b-result')!.split(':').map(Number) as [number, number];\n const data = new FormData(form, submitter);\n const action = form.getAttribute('b-action')!;\n return import('./client.ts').then(({ asyncMemo, rpcPrefix, scopes, track }) => {\n const scope = scopes.get(scopeId);\n if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AW;IAC7C,MAAM,UAAU,IAAI,SAAS,OAAO,OAAO,UAAU,OAAO,CAAC,CAAC;IAC9D,IAAI,QAAQ,WAAW,GACrB;IAEF,MAAM,UAAU,MAAM,SAAS,QAAQ,QAAQ;IAC/C,KAAK,MAAM,CAAC,MAAM,SAAS,SACzB,KAAK,MAAM,UAAU,SAAS,KAAK,IAAI,CAAC,IAAI,IAAI,YAAY,MAAM,IAAI,GACpE,IAAI,OAAO,IAAI,OAAO,EAAE,GACtB,QAAS,KAAK,CAA4B,MAAM;GAIxD,CAAC;EACH;CACF,CAAC;AACH;;;;;;AAOA,SAAgB,WAAW,MAAuB,WAA8C;CAC9F,MAAM,CAAC,SAAS,QAAQ,KAAK,aAAa,UAAU,CAAC,CAAE,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM;CAC5E,MAAM,OAAO,IAAI,SAAS,MAAM,SAAS;CACzC,MAAM,SAAS,KAAK,aAAa,UAAU;CAC3C,OAAO,OAAO,sBAAc,CAAC,MAAM,EAAE,WAAW,WAAW,QAAQ,YAAY;EAC7E,MAAM,QAAQ,OAAO,IAAI,OAAO;EAChC,IAAI,OACF,UAAU,OAAO,MAAM,MAAM,OAAO,WAAW,QAAQ,IAAI,CAAC,CAAC;CAEjE,CAAC;AACH"}
@@ -1,5 +1,5 @@
1
- import { a as attribute, d as raw, h as vars, i as affix, p as spread, s as escape, t as Raw } from "../html-DV-Tezgq.js";
2
- import { t as produce } from "../produce-BjQGMpqL.js";
1
+ import { a as attribute, h as spread, i as affix, l as escape, p as raw, s as classAttribute, t as Raw, v as vars } from "../html-Du8jY2Cc.js";
2
+ import { n as ElementReference, r as FunctionReference, t as produce } from "../produce-CtZ32UGG.js";
3
3
  import { n as createContext } from "../context-aeo9esY9.js";
4
- import { A as portal, B as text, C as init, D as loadModule, E as list, F as rpc, H as update, I as scopeOf, L as set, M as provide, N as rekey, O as memo, P as reset, R as setVar, S as handle, T as leavePage, V as title, _ as dynamic, a as DevtoolsHooks, b as get, c as action, d as attrs, f as branch, g as dispose, h as context, i as DEVTOOLS, j as prop, k as pending, l as asyncMemo, m as component, n as Component, o as Part, p as cells, r as CoreOptions, s as Scope, t as ClientModule, u as attr, v as effect, w as insert, x as guess, y as fill, z as submitAction } from "../client-DuDTDePF.js";
5
- export { ClientModule, Component, CoreOptions, DEVTOOLS, DevtoolsHooks, Part, type Raw, Scope, action, affix, asyncMemo, attr, attribute, attrs, branch, cells, component, context, createContext, dispose, dynamic, effect, escape, fill, get, guess, handle, init, insert, leavePage, list, loadModule, memo, pending, portal, produce, prop, provide, raw, rekey, reset, rpc, scopeOf, set, setVar, spread, submitAction, text, title, update, vars };
4
+ import { $ as removeScope, A as get, B as loadModule, C as descendants, D as elementAt, E as effect, F as init, G as offscreen, H as loader, I as insert, J as prop, K as pending, L as leavePage, M as handle, N as handlerProp, O as fill, P as hooks, Q as removeRoot, R as leaveRoutes, S as createScope, T as dynamic, U as makeId, V as loadPart, W as memo, X as rekey, Y as provideValue, Z as remount, _ as branch, a as DevtoolsHooks, at as set, b as consumeContext, c as Scope, ct as setSlots, d as addPortal, dt as text, et as reset, f as addStyle, ft as title, g as attrs, gt as writeText, h as attr, ht as updateContext, i as DEVTOOLS, it as scopes, j as guess, k as forget, l as action, lt as setVar, m as asyncMemo, mt as update, n as Component, nt as rpcPrefix, o as HiddenBody, ot as setItem, p as afterInsert, pt as track, q as portalTo, r as CoreOptions, rt as scopeOf, s as Part, st as setOwner, t as ClientModule, tt as rpc, u as addHead, ut as submitAction, v as cells, w as dispose, x as content, y as component, z as list } from "../client-DwJInP_a.js";
5
+ export { ClientModule, Component, CoreOptions, DEVTOOLS, DevtoolsHooks, ElementReference, FunctionReference, HiddenBody, Part, type Raw, Scope, action, addHead, addPortal, addStyle, affix, afterInsert, asyncMemo, attr, attribute, attrs, branch, cells, classAttribute, component, consumeContext, content, createContext, createScope, descendants, dispose, dynamic, effect, elementAt, escape, fill, forget, get, guess, handle, handlerProp, hooks, init, insert, leavePage, leaveRoutes, list, loadModule, loadPart, loader, makeId, memo, offscreen, pending, portalTo, produce, prop, provideValue, raw, rekey, remount, removeRoot, removeScope, reset, rpc, rpcPrefix, scopeOf, scopes, set, setItem, setOwner, setSlots, setVar, spread, submitAction, text, title, track, update, updateContext, vars, writeText };