From 8dbb920735cf3beab19b8f923fd400fb2df3e580 Mon Sep 17 00:00:00 2001 From: Adhityan KV Date: Sat, 1 Jul 2023 20:37:38 +0200 Subject: [PATCH] peer dependencies instead of optional ones --- README.md | 2 +- package-lock.json | 122 ++++++++++++++++++++++++++++++++++++---------- package.json | 17 +++++-- 3 files changed, 111 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index f57914c2..6bba4e30 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

-EmbedJS is a NodeJS framework to easily enable LLM powered interactions over any dataset. It simplifies the process of loading a dataset, chunking it, creating embeddings and then storing onto a vector database. +EmbedJS is a NodeJS framework that enables LLM powered interactions over any dataset with ease. It simplifies the process of loading a dataset, chunking it, creating embeddings and then storing onto a vector database. Here's an example diff --git a/package-lock.json b/package-lock.json index 78554d71..fc20c130 100644 --- a/package-lock.json +++ b/package-lock.json @@ -31,10 +31,21 @@ "engines": { "node": ">= 18.0.0" }, - "optionalDependencies": { + "peerDependencies": { "@pinecone-database/pinecone": "^0.1.6", "lmdb": "^2.8.2", "vectordb": "^0.1.8" + }, + "peerDependenciesMeta": { + "@pinecone-database/pinecone": { + "optional": true + }, + "lmdb": { + "optional": true + }, + "vectordb": { + "optional": true + } } }, "node_modules/@aashutoshrathi/word-wrap": { @@ -60,6 +71,7 @@ "resolved": "https://registry.npmjs.org/@apache-arrow/ts/-/ts-12.0.1.tgz", "integrity": "sha512-oLL/la62/eff4/nTtU4mZzx/SuIIAjrFx6sTSRDZ65a1Ej84IIMptVb/i5rnp2kY14GFnyc928MyJexQmQc4zA==", "optional": true, + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -77,13 +89,15 @@ "version": "18.14.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.5.tgz", "integrity": "sha512-CRT4tMK/DHYhw1fcCEBwME9CSaZNclxfzVMe7GsO6ULSwsttbj70wSiX6rZdIjGblu93sTJxLdhNIT85KKI7Qw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@apache-arrow/ts/node_modules/tslib": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@eslint-community/eslint-utils": { "version": "4.4.0", @@ -192,7 +206,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@lmdb/lmdb-darwin-x64": { "version": "2.8.2", @@ -204,7 +219,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@lmdb/lmdb-linux-arm": { "version": "2.8.2", @@ -216,7 +232,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@lmdb/lmdb-linux-arm64": { "version": "2.8.2", @@ -228,7 +245,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@lmdb/lmdb-linux-x64": { "version": "2.8.2", @@ -240,7 +258,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@lmdb/lmdb-win32-x64": { "version": "2.8.2", @@ -252,7 +271,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-darwin-arm64": { "version": "3.0.2", @@ -264,7 +284,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-darwin-x64": { "version": "3.0.2", @@ -276,7 +297,8 @@ "optional": true, "os": [ "darwin" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm": { "version": "3.0.2", @@ -288,7 +310,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-linux-arm64": { "version": "3.0.2", @@ -300,7 +323,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-linux-x64": { "version": "3.0.2", @@ -312,7 +336,8 @@ "optional": true, "os": [ "linux" - ] + ], + "peer": true }, "node_modules/@msgpackr-extract/msgpackr-extract-win32-x64": { "version": "3.0.2", @@ -324,7 +349,8 @@ "optional": true, "os": [ "win32" - ] + ], + "peer": true }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -366,6 +392,7 @@ "resolved": "https://registry.npmjs.org/@pinecone-database/pinecone/-/pinecone-0.1.6.tgz", "integrity": "sha512-tCnVc28udecthhgSBTdcMhYEW+xsR++AdZasp+ZE/AvUD1hOR2IR3edjk9m0sDxZyvXbno2KeqUbLIOZr7sCTw==", "optional": true, + "peer": true, "dependencies": { "cross-fetch": "^3.1.5" }, @@ -389,13 +416,15 @@ "version": "5.2.0", "resolved": "https://registry.npmjs.org/@types/command-line-args/-/command-line-args-5.2.0.tgz", "integrity": "sha512-UuKzKpJJ/Ief6ufIaIzr3A/0XnluX7RvFgwkV89Yzvm77wCh1kFaFmqN8XEnGcN62EuHdedQjEMb8mYxFLGPyA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/command-line-usage": { "version": "5.0.2", "resolved": "https://registry.npmjs.org/@types/command-line-usage/-/command-line-usage-5.0.2.tgz", "integrity": "sha512-n7RlEEJ+4x4TS7ZQddTmNSxP+zziEG0TNsMfiRIxcIVXt71ENJ9ojeXmGO3wPoTdn7pJcU2xc3CJYMktNT6DPg==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/html-to-text": { "version": "9.0.1", @@ -419,7 +448,8 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@types/pad-left/-/pad-left-2.1.1.tgz", "integrity": "sha512-Xd22WCRBydkGSApl5Bw0PhAOHKSVjNL3E3AwzKaps96IMraPqy5BvZIsBVK6JLwdybUzjHnuWVwpDd0JjTfHXA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/@types/pdf-parse": { "version": "1.1.1", @@ -693,6 +723,7 @@ "resolved": "https://registry.npmjs.org/apache-arrow/-/apache-arrow-12.0.1.tgz", "integrity": "sha512-g17ARsc/KEAzViy8PEFsDBlL4ZLx3BesgQCplDLgUWtY0aFWNdEmfaZsbbXVRDfQ21D7vbUKtu0ZWNgcbxDrig==", "optional": true, + "peer": true, "dependencies": { "@types/command-line-args": "5.2.0", "@types/command-line-usage": "5.0.2", @@ -713,13 +744,15 @@ "version": "18.14.5", "resolved": "https://registry.npmjs.org/@types/node/-/node-18.14.5.tgz", "integrity": "sha512-CRT4tMK/DHYhw1fcCEBwME9CSaZNclxfzVMe7GsO6ULSwsttbj70wSiX6rZdIjGblu93sTJxLdhNIT85KKI7Qw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/apache-arrow/node_modules/tslib": { "version": "2.6.0", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.0.tgz", "integrity": "sha512-7At1WUettjcSRHXCyYtTselblcHl9PJFFVKiCAy/bY97+BPZXSQ2wbq0P9s8tK2G7dFQfNnlJnPAiArVBVBsfA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/argparse": { "version": "2.0.1", @@ -731,6 +764,7 @@ "resolved": "https://registry.npmjs.org/array-back/-/array-back-3.1.0.tgz", "integrity": "sha512-TkuxA4UCOvxuDK6NZYXCalszEzj+TLszyASooky+i742l9TqsOdYCMJJupxRic61hwquNtppB3hgcuq9SVSH1Q==", "optional": true, + "peer": true, "engines": { "node": ">=6" } @@ -917,6 +951,7 @@ "resolved": "https://registry.npmjs.org/command-line-args/-/command-line-args-5.2.1.tgz", "integrity": "sha512-H4UfQhZyakIjC74I9d34fGYDwk3XpSr17QhEd0Q3I9Xq1CETHo4Hcuo87WyWHpAF1aSLjLRf5lD9ZGX2qStUvg==", "optional": true, + "peer": true, "dependencies": { "array-back": "^3.1.0", "find-replace": "^3.0.0", @@ -932,6 +967,7 @@ "resolved": "https://registry.npmjs.org/command-line-usage/-/command-line-usage-6.1.3.tgz", "integrity": "sha512-sH5ZSPr+7UStsloltmDh7Ce5fb8XPlHyoPzTpyyMuYCtervL65+ubVZ6Q61cFtFl62UyJlc8/JwERRbAFPUqgw==", "optional": true, + "peer": true, "dependencies": { "array-back": "^4.0.2", "chalk": "^2.4.2", @@ -947,6 +983,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "optional": true, + "peer": true, "dependencies": { "color-convert": "^1.9.0" }, @@ -959,6 +996,7 @@ "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -968,6 +1006,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "optional": true, + "peer": true, "dependencies": { "ansi-styles": "^3.2.1", "escape-string-regexp": "^1.0.5", @@ -982,6 +1021,7 @@ "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", "optional": true, + "peer": true, "dependencies": { "color-name": "1.1.3" } @@ -990,13 +1030,15 @@ "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/command-line-usage/node_modules/escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "optional": true, + "peer": true, "engines": { "node": ">=0.8.0" } @@ -1006,6 +1048,7 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", "optional": true, + "peer": true, "engines": { "node": ">=4" } @@ -1015,6 +1058,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "optional": true, + "peer": true, "dependencies": { "has-flag": "^3.0.0" }, @@ -1027,6 +1071,7 @@ "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -1104,6 +1149,7 @@ "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "optional": true, + "peer": true, "engines": { "node": ">=4.0.0" } @@ -1135,6 +1181,7 @@ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz", "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -1553,6 +1600,7 @@ "resolved": "https://registry.npmjs.org/find-replace/-/find-replace-3.0.0.tgz", "integrity": "sha512-6Tb2myMioCAgv5kfvP5/PkZZ/ntTpVK39fHY7WkWBgvbeE+VHd/tZuZ4mrC+bxh4cfOZeYKVPaJIZtZXV7GNCQ==", "optional": true, + "peer": true, "dependencies": { "array-back": "^3.0.1" }, @@ -1601,7 +1649,8 @@ "version": "23.3.3", "resolved": "https://registry.npmjs.org/flatbuffers/-/flatbuffers-23.3.3.tgz", "integrity": "sha512-jmreOaAT1t55keaf+Z259Tvh8tR/Srry9K8dgCgvizhKSEr6gLGgaOJI2WFL5fkOpGOGRZwxUrlFn0GCmXUy6g==", - "optional": true + "optional": true, + "peer": true }, "node_modules/flatted": { "version": "3.2.7", @@ -1897,6 +1946,7 @@ "resolved": "https://registry.npmjs.org/json-bignum/-/json-bignum-0.0.3.tgz", "integrity": "sha512-2WHyXj3OfHSgNyuzDbSxI1w2jgw5gkWSWhS7Qg4bWXx1nLk3jnbwfUeS0PSba3IzpTUWdHxBieELUzXRjQB2zg==", "optional": true, + "peer": true, "engines": { "node": ">=0.8" } @@ -2202,6 +2252,7 @@ "integrity": "sha512-G5scdU7lStJzoxQv3dym0rvryTbPC+fhf2qe/uF022KVzyDawlby552vdWeA/OCQVF297lchWkR3dukIfTd/Zw==", "hasInstallScript": true, "optional": true, + "peer": true, "dependencies": { "msgpackr": "^1.9.5", "node-addon-api": "^6.1.0", @@ -2241,7 +2292,8 @@ "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -2374,6 +2426,7 @@ "resolved": "https://registry.npmjs.org/msgpackr/-/msgpackr-1.9.5.tgz", "integrity": "sha512-/IJ3cFSN6Ci3eG2wLhbFEL6GT63yEaoN/R5My2QkV6zro+OJaVRLPlwvxY7EtHYSmDlQpk8stvOQTL2qJFkDRg==", "optional": true, + "peer": true, "optionalDependencies": { "msgpackr-extract": "^3.0.2" } @@ -2384,6 +2437,7 @@ "integrity": "sha512-SdzXp4kD/Qf8agZ9+iTu6eql0m3kWm1A2y1hkpTeVNENutaB0BwHlSvAIaMxwntmRUAUjon2V4L8Z/njd0Ct8A==", "hasInstallScript": true, "optional": true, + "peer": true, "dependencies": { "node-gyp-build-optional-packages": "5.0.7" }, @@ -2404,6 +2458,7 @@ "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.0.7.tgz", "integrity": "sha512-YlCCc6Wffkx0kHkmam79GKvDQ6x+QZkMjFGrIMxgFNILFvGSbCp2fCBC55pGTT9gVaz8Na5CLmxt/urtzRv36w==", "optional": true, + "peer": true, "bin": { "node-gyp-build-optional-packages": "bin.js", "node-gyp-build-optional-packages-optional": "optional.js", @@ -2426,7 +2481,8 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-6.1.0.tgz", "integrity": "sha512-+eawOlIgy680F0kBzPUNFhMZGtJ1YmqM6l4+Crf4IkImjYrO/mqPwRMh352g23uIaQKFItcQ64I7KMaJxHgAVA==", - "optional": true + "optional": true, + "peer": true }, "node_modules/node-ensure": { "version": "0.0.0", @@ -2457,6 +2513,7 @@ "resolved": "https://registry.npmjs.org/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.1.0.tgz", "integrity": "sha512-Jy0ZKyeFh3QwhJT2augyHuhn0WZ15osYBKNw4U6WAp8nadAgcB60uKJ80Y7HG2OkKnTNOtiUwqNZbSKW/nkvKg==", "optional": true, + "peer": true, "dependencies": { "detect-libc": "^2.0.1" }, @@ -2537,7 +2594,8 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/ordered-binary/-/ordered-binary-1.4.0.tgz", "integrity": "sha512-EHQ/jk4/a9hLupIKxTfUsQRej1Yd/0QLQs3vGvIqg5ZtCYSzNhkzHoZc7Zf4e4kUlDaC3Uw8Q/1opOLNN2OKRQ==", - "optional": true + "optional": true, + "peer": true }, "node_modules/p-finally": { "version": "1.0.0", @@ -2620,6 +2678,7 @@ "resolved": "https://registry.npmjs.org/pad-left/-/pad-left-2.1.0.tgz", "integrity": "sha512-HJxs9K9AztdIQIAIa/OIazRAUW/L6B9hbQDxO4X07roW3eo9XqZc2ur9bn1StH9CnbbI9EgvejHQX7CBpCF1QA==", "optional": true, + "peer": true, "dependencies": { "repeat-string": "^1.5.4" }, @@ -2829,6 +2888,7 @@ "resolved": "https://registry.npmjs.org/reduce-flatten/-/reduce-flatten-2.0.0.tgz", "integrity": "sha512-EJ4UNY/U1t2P/2k6oqotuX2Cc3T6nxJwsM0N0asT7dhrtH1ltUxDn4NalSYmPE2rCkVpcf/X6R0wDwcFpzhd4w==", "optional": true, + "peer": true, "engines": { "node": ">=6" } @@ -2838,6 +2898,7 @@ "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==", "optional": true, + "peer": true, "engines": { "node": ">=0.10" } @@ -3004,6 +3065,7 @@ "resolved": "https://registry.npmjs.org/table-layout/-/table-layout-1.0.2.tgz", "integrity": "sha512-qd/R7n5rQTRFi+Zf2sk5XVVd9UQl6ZkduPFC3S7WEGJAmetDTjY3qPN50eSKzwuzEyQKy5TN2TiZdkIjos2L6A==", "optional": true, + "peer": true, "dependencies": { "array-back": "^4.0.1", "deep-extend": "~0.6.0", @@ -3019,6 +3081,7 @@ "resolved": "https://registry.npmjs.org/array-back/-/array-back-4.0.2.tgz", "integrity": "sha512-NbdMezxqf94cnNfWLL7V/im0Ub+Anbb0IoZhvzie8+4HJ4nMQuzHuy49FkGYCJK2yAloZ3meiB6AVMClbrI1vg==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -3028,6 +3091,7 @@ "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -3118,6 +3182,7 @@ "resolved": "https://registry.npmjs.org/typical/-/typical-4.0.0.tgz", "integrity": "sha512-VAH4IvQ7BDFYglMd7BPRDfLgxZZX4O4TFcRDA6EN5X7erNJJq+McIEp8np9aVtxrCJ6qx4GTYVfOWNjcqwZgRw==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -3144,6 +3209,7 @@ "resolved": "https://registry.npmjs.org/vectordb/-/vectordb-0.1.8.tgz", "integrity": "sha512-4PfIFoKU9U3esZz+rfuFFpdpxIP2Vqo6b416EYQNOF6DC1wVawgbhvps+gI4eOokh2i094i8Q9/inb02XJwZ2Q==", "optional": true, + "peer": true, "dependencies": { "@apache-arrow/ts": "^12.0.0", "apache-arrow": "^12.0.0" @@ -3153,7 +3219,8 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/weak-lru-cache/-/weak-lru-cache-1.2.2.tgz", "integrity": "sha512-DEAoo25RfSYMuTGc9vPJzZcZullwIqRDSI9LOy+fkCJPi6hykCnfKaXTuPBDuXAUcqHXyOgFtHNp/kB2FjYHbw==", - "optional": true + "optional": true, + "peer": true }, "node_modules/webidl-conversions": { "version": "3.0.1", @@ -3189,6 +3256,7 @@ "resolved": "https://registry.npmjs.org/wordwrapjs/-/wordwrapjs-4.0.1.tgz", "integrity": "sha512-kKlNACbvHrkpIw6oPeYDSmdCTu2hdMHoyXLTcUKala++lx5Y+wjJ/e474Jqv5abnVmwxw08DiTuHmw69lJGksA==", "optional": true, + "peer": true, "dependencies": { "reduce-flatten": "^2.0.0", "typical": "^5.2.0" @@ -3202,6 +3270,7 @@ "resolved": "https://registry.npmjs.org/typical/-/typical-5.2.0.tgz", "integrity": "sha512-dvdQgNDNJo+8B2uBQoqdb11eUCE1JQXhvjC/CZtgvZseVd5TYMXnq0+vuUemXbd/Se29cTaUuPX3YIc2xgbvIg==", "optional": true, + "peer": true, "engines": { "node": ">=8" } @@ -3232,6 +3301,7 @@ "integrity": "sha512-/0V5q0WbslqnwP91tirOvldvYISzaqhClxzyUKXYxs07yUILIs5jx/k6CFe8bvKSkds5w+eiOqta39Wk3WxdcQ==", "hasInstallScript": true, "optional": true, + "peer": true, "bin": { "yarn": "bin/yarn.js", "yarnpkg": "bin/yarn.js" diff --git a/package.json b/package.json index 1af9159b..88ac70fd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@llmembed/embedjs", - "version": "0.0.5", - "description": "A framework to easily create LLM Embeddings over a dataset", + "version": "0.0.7", + "description": "A NodeJS framework to easily work with LLMs and custom datasets", "main": "dist/index.js", "types": "dist/index.d.ts", "type": "module", @@ -49,11 +49,22 @@ "typescript": "^5.1.6", "@types/html-to-text": "^9.0.1" }, - "optionalDependencies": { + "peerDependencies": { "@pinecone-database/pinecone": "^0.1.6", "lmdb": "^2.8.2", "vectordb": "^0.1.8" }, + "peerDependenciesMeta": { + "@pinecone-database/pinecone": { + "optional": true + }, + "vectordb": { + "optional": true + }, + "lmdb": { + "optional": true + } + }, "engines": { "node": ">= 18.0.0" }