+2
-0
@@ -300,2 +300,4 @@ // Type definitions for genosdb | ||
| link(sourceId: string, targetId: string): Promise<void> | ||
| /** Remove a directed edge between two nodes; both nodes stay. */ | ||
| unlink(sourceId: string, targetId: string): Promise<void> | ||
| /** Delete a node and its references. */ | ||
@@ -302,0 +304,0 @@ remove(id: string): Promise<void> |
+2
-2
@@ -7,3 +7,3 @@ # GenosDB (GDB) | ||
| Install: `npm i genosdb` · Current version: 0.25.0 · Runtime dependencies: none. | ||
| Install: `npm i genosdb` · Current version: 0.26.0 · Runtime dependencies: none. | ||
@@ -28,3 +28,3 @@ ## What it is good for | ||
| - The database is created with an **async factory**, never with `new`: `const db = await gdb(name, options)`. | ||
| - Core methods: `put(value, id?)` · `get(id, callback?)` · `map(options?, callback?)` · `link(sourceId, targetId)` · `remove(id)` · `clear()` · `use(middleware)`. | ||
| - Core methods: `put(value, id?)` · `get(id, callback?)` · `map(options?, callback?)` · `link(sourceId, targetId)` · `unlink(sourceId, targetId)` · `remove(id)` · `clear()` · `use(middleware)`. | ||
| - `map` and `get` become reactive when given a callback. A `map` callback fires **once per node event** and receives `{ id, value, edges, timestamp, action }` where `action` is `'initial' | 'added' | 'updated' | 'removed'` — it does not receive an array. | ||
@@ -31,0 +31,0 @@ - Query operators live **inside** `query`: `$eq $ne $gt $gte $lt $lte $in $between $exists $startsWith $endsWith $contains $text $like $regex $not $and $or $edge`, plus `$near`/`$bbox` with the geo module. `$edge` performs recursive graph traversal and also goes inside `query`. `$text` matches per field (accent-insensitive), not across the whole node. |
+1
-1
| { | ||
| "name": "genosdb", | ||
| "version": "0.25.0", | ||
| "version": "0.26.0", | ||
| "description": "GenosDB (GDB): distributed graph database in real-time, peer-to-peer, scalable storage - efficient querying of complex relationships.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
2057413
0.08%6301
0.11%