mono-jsx 0.10.0-beta.3 → 0.10.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsx-runtime.mjs +2 -2
- package/package.json +2 -2
- package/types/render.d.ts +2 -1
package/jsx-runtime.mjs
CHANGED
|
@@ -179,7 +179,7 @@ var $setup = /* @__PURE__ */ Symbol.for("mono.setup");
|
|
|
179
179
|
var $rpc = /* @__PURE__ */ Symbol.for("mono.rpc");
|
|
180
180
|
|
|
181
181
|
// version.ts
|
|
182
|
-
var VERSION = "0.10.0-beta.
|
|
182
|
+
var VERSION = "0.10.0-beta.4";
|
|
183
183
|
|
|
184
184
|
// render.ts
|
|
185
185
|
var FunctionIdGenerator = class extends Map {
|
|
@@ -534,7 +534,7 @@ async function render(node, options, write, writeJS, componentMode, routeForm) {
|
|
|
534
534
|
if (Object.keys(sessionStore).length > 0) {
|
|
535
535
|
const data = JSON.stringify([
|
|
536
536
|
sessionStore,
|
|
537
|
-
Math.floor((expires ? expires.getTime() : Date.now() + (maxAge ??
|
|
537
|
+
Math.floor((expires ? expires.getTime() : Date.now() + (maxAge ?? 1800) * 1e3) / 1e3)
|
|
538
538
|
]);
|
|
539
539
|
const signature = await subtle.sign(
|
|
540
540
|
"HMAC",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mono-jsx",
|
|
3
|
-
"version": "0.10.0-beta.
|
|
4
|
-
"description": "`<html>` as a `Response
|
|
3
|
+
"version": "0.10.0-beta.4",
|
|
4
|
+
"description": "`<html>` as a `Response` (Yet another JSX runtime for server-side rendering).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.mjs",
|
|
7
7
|
"types": "./types/index.d.ts",
|
package/types/render.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference path="./htmx.d.ts" />
|
|
2
2
|
|
|
3
|
+
import { inflate } from "node:zlib";
|
|
3
4
|
import type { ComponentType } from "./jsx.d.ts";
|
|
4
5
|
|
|
5
6
|
export type MaybeModule<T> = T | Promise<{ default: T; FormHandler?: Function }>;
|
|
@@ -61,7 +62,7 @@ export type SessionOptions = {
|
|
|
61
62
|
* The cookie options to be used by the session.
|
|
62
63
|
*/
|
|
63
64
|
cookie?: CookieOptions;
|
|
64
|
-
// TODO: add session
|
|
65
|
+
// TODO: add session storage options
|
|
65
66
|
};
|
|
66
67
|
|
|
67
68
|
/**
|