hnswlib-wasm
Advanced tools
Comparing version 0.6.7 to 0.7.0
@@ -203,3 +203,3 @@ /***************** GENERATED FILE ********************/ | ||
*/ | ||
constructor(spaceName: SpaceName, numDimensions: number); | ||
constructor(spaceName: SpaceName, numDimensions: number, autoSaveFilename: string); | ||
/** | ||
@@ -237,11 +237,2 @@ * Initialize index. | ||
/** | ||
* Automatically saves the search index after modifications. | ||
* The Default is false, so you must call writeIndex() manually. | ||
* Its good idea to set this to true if you want to save the index after every modification, especially since the browser may refresh or close. | ||
* @param autoSave | ||
* @param fileName | ||
*/ | ||
setAutoSave(autoSave: boolean, fileName: string): void; | ||
/** | ||
* resizes the search index. | ||
@@ -248,0 +239,0 @@ * @param {number} newMaxElements The new maximum number of data points. |
@@ -96,3 +96,3 @@ let IDBFS_STORE_NAME, defaultParams, hnswParamsForAda, loadHnswlib, syncFileSystem, waitForFileSystemInitalized, waitForFileSystemSynced; | ||
if (!library) { | ||
const temp = await import("./hnswlib-6e768e79.js"); | ||
const temp = await import("./hnswlib-4b805300.js"); | ||
const factoryFunc = temp.default; | ||
@@ -99,0 +99,0 @@ library = await factoryFunc(); |
@@ -137,2 +137,4 @@ /***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
export const defaultParams = { | ||
@@ -426,1 +428,5 @@ /** | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ |
@@ -203,3 +203,3 @@ /***************** GENERATED FILE ********************/ | ||
*/ | ||
constructor(spaceName: SpaceName, numDimensions: number); | ||
constructor(spaceName: SpaceName, numDimensions: number, autoSaveFilename: string); | ||
/** | ||
@@ -237,11 +237,2 @@ * Initialize index. | ||
/** | ||
* Automatically saves the search index after modifications. | ||
* The Default is false, so you must call writeIndex() manually. | ||
* Its good idea to set this to true if you want to save the index after every modification, especially since the browser may refresh or close. | ||
* @param autoSave | ||
* @param fileName | ||
*/ | ||
setAutoSave(autoSave: boolean, fileName: string): void; | ||
/** | ||
* resizes the search index. | ||
@@ -248,0 +239,0 @@ * @param {number} newMaxElements The new maximum number of data points. |
@@ -22,2 +22,4 @@ /***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
@@ -66,1 +68,5 @@ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ | ||
/***************** GENERATED FILE ********************/ |
{ | ||
"name": "hnswlib-wasm", | ||
"version": "0.6.7", | ||
"version": "0.7.0", | ||
"description": "typescript and wasm bindings for Hnswlib", | ||
@@ -5,0 +5,0 @@ "module": "./dist/hnswlib.js", |
Sorry, the diff of this file is not supported yet
3009094
19663