@hyperfixi/patterns-reference 2.9.2 → 2.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperfixi/patterns-reference",
3
- "version": "2.9.2",
3
+ "version": "2.9.4",
4
4
  "description": "Queryable patterns database for hyperscript with multilingual translations and LLM support",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -66,17 +66,17 @@
66
66
  },
67
67
  "homepage": "https://github.com/codetalcott/hyperfixi/tree/main/packages/patterns-reference#readme",
68
68
  "dependencies": {
69
- "@lokascript/semantic": "^2.9.2",
70
- "better-sqlite3": "^12.11.1"
69
+ "@lokascript/semantic": "^2.9.4",
70
+ "better-sqlite3": "^13.0.1"
71
71
  },
72
72
  "devDependencies": {
73
- "@hyperfixi/core": "^2.9.2",
74
- "@hyperfixi/reactivity": "^2.9.2",
75
- "@hyperfixi/realtime": "^2.9.2",
73
+ "@hyperfixi/core": "^2.9.4",
74
+ "@hyperfixi/reactivity": "^2.9.4",
75
+ "@hyperfixi/realtime": "^2.9.4",
76
76
  "@types/better-sqlite3": "^7.6.0",
77
- "@types/node": "^20.0.0",
77
+ "@types/node": "^26.1.2",
78
78
  "hyperscript.org": "0.9.93",
79
- "jsdom": "^26.0.0",
79
+ "jsdom": "^30.0.0",
80
80
  "tsup": "^8.0.0",
81
81
  "tsx": "^4.23.1",
82
82
  "typescript": "^5.0.0",
@@ -172,8 +172,7 @@ export async function getCommandByName(
172
172
  const db = getDatabase({ ...options, readonly: true });
173
173
 
174
174
  const row = db.prepare('SELECT * FROM commands WHERE LOWER(name) = LOWER(?)').get(name) as
175
- | CommandRow
176
- | undefined;
175
+ CommandRow | undefined;
177
176
 
178
177
  return row ? mapCommand(row) : null;
179
178
  }
@@ -224,8 +223,7 @@ export async function getExpressionByName(
224
223
  const db = getDatabase({ ...options, readonly: true });
225
224
 
226
225
  const row = db.prepare('SELECT * FROM expressions WHERE LOWER(name) = LOWER(?)').get(name) as
227
- | ExpressionRow
228
- | undefined;
226
+ ExpressionRow | undefined;
229
227
 
230
228
  if (!row) return null;
231
229
 
@@ -312,8 +310,7 @@ export async function getKeywordByName(
312
310
  const db = getDatabase({ ...options, readonly: true });
313
311
 
314
312
  const row = db.prepare('SELECT * FROM keywords WHERE LOWER(name) = LOWER(?)').get(name) as
315
- | KeywordRow
316
- | undefined;
313
+ KeywordRow | undefined;
317
314
 
318
315
  return row ? mapKeyword(row) : null;
319
316
  }
@@ -343,8 +340,7 @@ export async function getFeatureByName(
343
340
  const db = getDatabase({ ...options, readonly: true });
344
341
 
345
342
  const row = db.prepare('SELECT * FROM features WHERE LOWER(name) = LOWER(?)').get(name) as
346
- | FeatureRow
347
- | undefined;
343
+ FeatureRow | undefined;
348
344
 
349
345
  return row ? mapFeature(row) : null;
350
346
  }
@@ -367,11 +367,7 @@ export interface SpecialSymbol {
367
367
  * Element type for searching across language elements.
368
368
  */
369
369
  export type LanguageElementType =
370
- | 'command'
371
- | 'expression'
372
- | 'keyword'
373
- | 'feature'
374
- | 'special_symbol';
370
+ 'command' | 'expression' | 'keyword' | 'feature' | 'special_symbol';
375
371
 
376
372
  /**
377
373
  * A language element (union of all documentation types).