mirror of
https://github.com/ruvnet/RuVector.git
synced 2026-05-23 04:27:11 +00:00
Implements the three missing delete primitives on GraphDatabase.prototype,
unblocking the ruflo bridge from relying solely on the SQL fallback path.
**API additions:**
deleteNode(id, {cascade?}) → {deletedNode, deletedEdges}
deleteEdge(id) → {deleted}
deleteHyperedge(id) → {deleted}
cascade=true on deleteNode removes all incident hyperedges atomically
(no racy enumerate-then-delete required by callers).
**Rust changes:**
- ruvector-core/hypergraph: HypergraphIndex::remove_entity(cascade)
+ remove_hyperedge() with full bipartite-index + temporal-index cleanup
- ruvector-graph/graph: GraphDB::delete_hyperedge() + delete_hyperedges_by_node()
symmetric to create_hyperedge, propagates to GraphStorage when enabled
- ruvector-graph-node/lib: three new #[napi] async NAPI methods, each
propagating through HypergraphIndex → GraphDB → GraphStorage in order
- ruvector-graph-node/types: JsDeleteNodeOptions, JsDeleteNodeResult,
JsDeleteResult return types
**Versions:** workspace 2.2.1 → 2.2.2; @ruvector/graph-node 2.0.3 → 2.0.4
(platform optionalDependencies aligned to 2.0.4)
Co-Authored-By: claude-flow <ruv@ruv.net>
67 lines
No EOL
1.6 KiB
JSON
67 lines
No EOL
1.6 KiB
JSON
{
|
|
"name": "@ruvector/graph-node",
|
|
"version": "2.0.4",
|
|
"description": "Native Node.js bindings for RuVector Graph Database with hypergraph support, Cypher queries, and persistence - 10x faster than WASM",
|
|
"main": "index.js",
|
|
"types": "index.d.ts",
|
|
"author": "ruv.io Team <info@ruv.io> (https://ruv.io)",
|
|
"homepage": "https://ruv.io",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/ruvnet/ruvector.git",
|
|
"directory": "npm/packages/graph-node"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/ruvnet/ruvector/issues"
|
|
},
|
|
"license": "MIT",
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"files": [
|
|
"index.js",
|
|
"index.d.ts",
|
|
"README.md"
|
|
],
|
|
"scripts": {
|
|
"build:napi": "napi build --platform --release --cargo-cwd ../../../crates/ruvector-graph-node",
|
|
"test": "node test.js",
|
|
"benchmark": "node benchmark.js",
|
|
"publish:platforms": "node scripts/publish-platforms.js"
|
|
},
|
|
"devDependencies": {
|
|
"@napi-rs/cli": "^2.18.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"@ruvector/graph-node-linux-x64-gnu": "2.0.4",
|
|
"@ruvector/graph-node-linux-arm64-gnu": "2.0.4",
|
|
"@ruvector/graph-node-darwin-x64": "2.0.4",
|
|
"@ruvector/graph-node-darwin-arm64": "2.0.4",
|
|
"@ruvector/graph-node-win32-x64-msvc": "2.0.4"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"keywords": [
|
|
"graph-database",
|
|
"graph",
|
|
"hypergraph",
|
|
"cypher",
|
|
"neo4j",
|
|
"vector-database",
|
|
"graph-query",
|
|
"knowledge-graph",
|
|
"property-graph",
|
|
"native",
|
|
"napi",
|
|
"rust",
|
|
"fast",
|
|
"performance",
|
|
"zero-copy",
|
|
"ai",
|
|
"machine-learning",
|
|
"rag",
|
|
"ruv",
|
|
"ruvector"
|
|
]
|
|
} |