@ruvector/rvf-node 0.4.5 → 0.4.7

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
@@ -87,6 +87,17 @@ export interface RvfSegmentInfo {
87
87
  segType: string;
88
88
  }
89
89
 
90
+ /** Derivation types `derive()` accepts and a store can report. */
91
+ export type RvfDerivationType =
92
+ | 'clone'
93
+ | 'filter'
94
+ | 'merge'
95
+ | 'quantize'
96
+ | 'reindex'
97
+ | 'transform'
98
+ | 'snapshot'
99
+ | 'user_defined';
100
+
90
101
  export class RvfDatabase {
91
102
  static create(path: string, options: RvfOptions): RvfDatabase;
92
103
  static open(path: string): RvfDatabase;
@@ -119,7 +130,14 @@ export class RvfDatabase {
119
130
  fileId(): string;
120
131
  parentId(): string;
121
132
  lineageDepth(): number;
122
- derive(childPath: string, options?: RvfOptions): RvfDatabase;
133
+ /**
134
+ * Create an empty child that records this store as its parent and how it
135
+ * was derived (default `'filter'`). Unknown strings throw; `'merge'` is
136
+ * recorded with this store as the only parent.
137
+ */
138
+ derive(childPath: string, options?: RvfOptions | null, derivationType?: RvfDerivationType | null): RvfDatabase;
139
+ /** How this store was derived, or null (root store, or derived before rvf-node 0.4.7). */
140
+ derivationType(): RvfDerivationType | null;
123
141
  embedKernel(arch: number, kernelType: number, flags: number, image: Buffer, apiPort: number, cmdline?: string): number;
124
142
  extractKernel(): RvfKernelData | null;
125
143
  embedEbpf(programType: number, attachType: number, maxDimension: number, bytecode: Buffer, btf?: Buffer): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruvector/rvf-node",
3
- "version": "0.4.5",
3
+ "version": "0.4.7",
4
4
  "description": "Native Node.js (N-API) bindings for the RuVector Format vector database, built in Rust: HNSW indexing and search over portable .rvf files.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
Binary file
Binary file
Binary file
Binary file
Binary file