evikit 2.5.2 → 2.5.3

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/index.d.ts CHANGED
@@ -98,6 +98,7 @@ export const del: H<"del">;
98
98
  export const details: H<"details">;
99
99
  export const dialog: H<"dialog">;
100
100
  export const div: H<"div">;
101
+ export const ellipse: H<"ellipse">;
101
102
  export const em: H<"em">;
102
103
  export const fieldset: H<"fieldset">;
103
104
  export const figcaption: H<"figcaption">;
@@ -128,7 +129,9 @@ export const option: H<"option">;
128
129
  export const p: H<"p">;
129
130
  export const path: H<"path">;
130
131
  export const picture: H<"picture">;
132
+ export const polyline: H<"polyline">;
131
133
  export const pre: H<"pre">;
134
+ export const rect: H<"rect">;
132
135
  export const section: H<"section">;
133
136
  export const select: H<"select">;
134
137
  export const small: H<"small">;
@@ -142,7 +145,9 @@ export const svg: H<"svg">;
142
145
  export const table: H<"table">;
143
146
  export const tbody: H<"tbody">;
144
147
  export const td: H<"td">;
148
+ export const text: H<"text">;
145
149
  export const textarea: H<"textarea">;
150
+ export const th: H<"th">;
146
151
  export const thead: H<"thead">;
147
152
  export const title: H<"title">;
148
153
  export const tr: H<"tr">;
package/index.js CHANGED
@@ -165,6 +165,7 @@ export const del = HTMLElement("del");
165
165
  export const details = HTMLElement("details");
166
166
  export const dialog = HTMLElement("dialog");
167
167
  export const div = HTMLElement("div");
168
+ export const ellipse = HTMLElement("ellipse");
168
169
  export const em = HTMLElement("em");
169
170
  export const fieldset = HTMLElement("fieldset");
170
171
  export const figcaption = HTMLElement("figcaption");
@@ -195,7 +196,9 @@ export const option = HTMLElement("option");
195
196
  export const p = HTMLElement("p");
196
197
  export const path = HTMLElement("path");
197
198
  export const picture = HTMLElement("picture");
199
+ export const polyline = HTMLElement("polyline");
198
200
  export const pre = HTMLElement("pre");
201
+ export const rect = HTMLElement("rect");
199
202
  export const section = HTMLElement("section");
200
203
  export const select = HTMLElement("select");
201
204
  export const small = HTMLElement("small");
@@ -209,7 +212,9 @@ export const svg = HTMLElement("svg");
209
212
  export const table = HTMLElement("table");
210
213
  export const tbody = HTMLElement("tbody");
211
214
  export const td = HTMLElement("td");
215
+ export const text = HTMLElement("text");
212
216
  export const textarea = HTMLElement("textarea");
217
+ export const th = HTMLElement("th");
213
218
  export const thead = HTMLElement("thead");
214
219
  export const title = HTMLElement("title");
215
220
  export const tr = HTMLElement("tr");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "evikit",
3
3
  "description": "Preact/SQLite SSR framework for small web apps",
4
- "version": "2.5.2",
4
+ "version": "2.5.3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": "./index.js",
@@ -24,7 +24,6 @@
24
24
  "@fastify/busboy": "^3.2.0",
25
25
  "@types/gettext-parser": "^9.0.0",
26
26
  "@types/gettext.js": "^2.0.0",
27
- "@types/node": "^25",
28
27
  "@valibot/to-json-schema": "^1.7.0",
29
28
  "env-paths": "^4.0.0",
30
29
  "gettext-parser": "^9.0.2",
@@ -41,6 +40,7 @@
41
40
  "devDependencies": {
42
41
  "@eslint/compat": "^2.1.0",
43
42
  "@eslint/js": "^10.0.1",
43
+ "@types/node": "^24.13.3",
44
44
  "eslint": "^10.4.0",
45
45
  "eslint-config-prettier": "^10.1.8",
46
46
  "eslint-plugin-perfectionist": "^5.9.0",
package/sqlite.js CHANGED
@@ -6,6 +6,14 @@ import { getMetadata, parse } from "valibot";
6
6
 
7
7
  import { flatten, relations } from "./db.js";
8
8
 
9
+ /**
10
+ * @typedef Column
11
+ * @property {string} name
12
+ * @property {0 | 1} notnull
13
+ * @property {0 | 1} pk
14
+ * @property {"INTEGER" | "TEXT"} type
15
+ */
16
+
9
17
  /** @type {typeof import("./sqlite.d.ts").sqlite} */
10
18
  export function sqlite({ pkg, schema }) {
11
19
  const data = pkg
@@ -27,10 +35,9 @@ export function sqlite({ pkg, schema }) {
27
35
  )
28
36
  .all()
29
37
  ).map((table) => {
30
- const columns =
31
- /** @type {{ name: string, notnull: 0 | 1, pk: 0 | 1, type: "INTEGER" | "TEXT", }[]} */ (
32
- database.prepare(`pragma table_info(${table.name})`).all()
33
- );
38
+ const columns = /** @type {Column[]} */ (
39
+ database.prepare(`pragma table_info(${table.name})`).all()
40
+ );
34
41
  const foreignKeys =
35
42
  /** @type {{ from: string, on_delete: "CASCADE" | "SET NULL", on_update: "CASCADE" | "SET NULL", table: string, to: string, }[]} */ (
36
43
  database.prepare(`pragma foreign_key_list(${table.name})`).all()
@@ -144,7 +151,7 @@ export function sqlite({ pkg, schema }) {
144
151
  ({ name }) => name == wantColumn.name,
145
152
  );
146
153
 
147
- /** @param {typeof haveColumn} column */
154
+ /** @param {Column} column */
148
155
  function checkConstraint(column) {
149
156
  ok(column);
150
157
  ok(haveTable);