Sign In

genosdb

Package Overview
Dependencies
Maintainers
1
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

genosdb - npm Package Compare versions

Comparing version
0.25.0
to
0.26.0
+2
-0
dist/index.d.ts

@@ -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.

{
"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