From 44153a67ad6e0cff39eeff18fb021bfd92a5a15e Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Sun, 16 Mar 2025 22:00:08 +0100 Subject: [PATCH] type definitions v0.8 --- README.md | 6 +- demo/autocomplete.html | 4 +- dist/db/indexeddb/index.cjs | 133 +- dist/flexsearch.bundle.debug.js | 1358 +++++++++-------- dist/flexsearch.bundle.min.js | 179 +-- dist/flexsearch.bundle.module.debug.js | 1352 ++++++++-------- dist/flexsearch.bundle.module.min.js | 181 +-- dist/flexsearch.compact.debug.js | 1147 +++++++------- dist/flexsearch.compact.min.js | 83 +- dist/flexsearch.compact.module.debug.js | 1141 +++++++------- dist/flexsearch.compact.module.min.js | 85 +- dist/flexsearch.es5.debug.js | 1330 ++++++++-------- dist/flexsearch.es5.min.js | 225 +-- dist/flexsearch.light.debug.js | 381 +++-- dist/flexsearch.light.min.js | 38 +- dist/flexsearch.light.module.debug.js | 375 +++-- dist/flexsearch.light.module.min.js | 40 +- dist/lang/de.min.js | 132 +- dist/lang/en.min.js | 132 +- dist/lang/fr.min.js | 132 +- dist/module-debug/{webpack.js => bundle.js} | 60 +- dist/module-debug/cache.js | 7 +- dist/module-debug/charset/latin/soundex.js | 2 +- dist/module-debug/db/indexeddb/index.js | 2 +- dist/module-debug/document.js | 17 +- dist/module-debug/document/search.js | 13 +- dist/module-debug/index.js | 14 +- dist/module-debug/index/search.js | 59 +- dist/module-debug/lang/de.js | 4 +- dist/module-debug/lang/fr.js | 2 +- dist/module-debug/preset.js | 11 +- dist/module-debug/type.js | 339 ++-- dist/module-debug/worker.js | 2 +- dist/module-debug/worker/handler.js | 4 +- dist/module-min/bundle.js | 1 + dist/module-min/cache.js | 2 +- dist/module-min/document.js | 2 +- dist/module-min/document/search.js | 2 +- dist/module-min/index.js | 2 +- dist/module-min/index/search.js | 2 +- dist/module-min/type.js | 2 +- dist/module-min/webpack.js | 1 - dist/module-min/worker/handler.js | 2 +- dist/module/{webpack.js => bundle.js} | 60 +- dist/module/cache.js | 7 +- dist/module/charset/latin/soundex.js | 2 +- dist/module/db/indexeddb/index.js | 2 +- dist/module/document.js | 17 +- dist/module/document/search.js | 13 +- dist/module/index.js | 14 +- dist/module/index/search.js | 59 +- dist/module/lang/de.js | 4 +- dist/module/lang/fr.js | 2 +- dist/module/preset.js | 11 +- dist/module/type.js | 339 ++-- dist/module/worker.js | 2 +- dist/module/worker/handler.js | 4 +- .../basic-persistent/index.html | 2 +- .../browser-legacy/basic-resolver/index.html | 2 +- .../basic-suggestion/index.html | 2 +- .../browser-legacy/basic-worker/index.html | 2 +- example/browser-legacy/basic/index.html | 2 +- .../document-highlighting/index.html | 2 +- .../document-persistent/index.html | 2 +- .../browser-legacy/document-worker/index.html | 2 +- example/browser-legacy/document/index.html | 2 +- .../browser-legacy/language-pack/index.html | 4 +- .../basic-persistent/index.html | 2 +- .../browser-module/basic-resolver/index.html | 2 +- .../basic-suggestion/index.html | 2 +- .../basic-worker-extern-config/config.js | 2 +- example/browser-module/basic/index.html | 2 +- .../document-highlighting/index.html | 2 +- .../document-persistent/index.html | 2 +- .../config.originalTitle.js | 4 +- .../config.primaryTitle.js | 4 +- example/browser-module/document/index.html | 2 +- .../browser-module/language-pack/index.html | 4 +- index.d.ts | 698 +++++---- src/{webpack.js => bundle.js} | 66 +- src/cache.js | 7 +- src/charset/latin/soundex.js | 2 +- src/db/indexeddb/index.js | 2 +- src/db/sqlite/package-lock.json | 1348 ++++++++++++++++ src/document.js | 15 +- src/document/search.js | 20 +- src/index.js | 21 +- src/index/search.js | 58 +- src/lang/de.js | 4 +- src/lang/fr.js | 2 +- src/preset.js | 20 +- src/resolve/default.js | 4 +- src/type.js | 339 ++-- src/worker.js | 2 +- src/worker/handler.js | 4 +- task/build.js | 6 +- 96 files changed, 7121 insertions(+), 5089 deletions(-) rename dist/module-debug/{webpack.js => bundle.js} (84%) create mode 100644 dist/module-min/bundle.js delete mode 100644 dist/module-min/webpack.js rename dist/module/{webpack.js => bundle.js} (84%) rename src/{webpack.js => bundle.js} (86%) create mode 100644 src/db/sqlite/package-lock.json diff --git a/README.md b/README.md index 684d9f7..51d09e7 100644 --- a/README.md +++ b/README.md @@ -2321,10 +2321,10 @@ for(let i = 0; i < files.length; i++){ - Using the `async` variants like `.searchAsync` is now deprecated (but still works), asynchronous responses will always return from Worker-Index and from Persistent-Index, everything else will return a non-promised result. Having both types of methods looks like the developers can choose between them, but they can't. - Any of your exports from versions below v0.8 are not compatible to import into v0.8 -## Not finished yet +## What's next? Unfortunately, not everything could be finished and needs to be done in the upcoming version. -- The `Resolver` does not support Document-Indexes, there is still some work to do. +- The `Resolver` currently does not support Document-Indexes, there is still some work to do. - Config serialization for persistent indexes (store configuration, check migrations, import and restore field configurations) -- Tooling for persistent indexes (list all tables, remove tables) \ No newline at end of file +- Tooling for persistent indexes (list all tables, remove tables) diff --git a/demo/autocomplete.html b/demo/autocomplete.html index 816de3e..a3030db 100644 --- a/demo/autocomplete.html +++ b/demo/autocomplete.html @@ -76,8 +76,8 @@
+ + + + + + + + + + - +