@kitedb/core 0.2.6 → 0.2.8
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/README.md +23 -3
- package/dist/index.d.ts +159 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +502 -50
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +47 -19
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -2
- package/dist/schema.js.map +1 -1
- package/index.d.ts +114 -47
- package/index.js +120 -115
- package/package.json +5 -5
package/index.js
CHANGED
|
@@ -75,10 +75,10 @@ function requireNative() {
|
|
|
75
75
|
loadErrors.push(e)
|
|
76
76
|
}
|
|
77
77
|
try {
|
|
78
|
-
const binding = require('kitedb-android-arm64')
|
|
79
|
-
const bindingPackageVersion = require('kitedb-android-arm64/package.json').version
|
|
80
|
-
if (bindingPackageVersion !== '0.2.
|
|
81
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
78
|
+
const binding = require('@kitedb/core-android-arm64')
|
|
79
|
+
const bindingPackageVersion = require('@kitedb/core-android-arm64/package.json').version
|
|
80
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
81
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
82
82
|
}
|
|
83
83
|
return binding
|
|
84
84
|
} catch (e) {
|
|
@@ -91,10 +91,10 @@ function requireNative() {
|
|
|
91
91
|
loadErrors.push(e)
|
|
92
92
|
}
|
|
93
93
|
try {
|
|
94
|
-
const binding = require('kitedb-android-arm-eabi')
|
|
95
|
-
const bindingPackageVersion = require('kitedb-android-arm-eabi/package.json').version
|
|
96
|
-
if (bindingPackageVersion !== '0.2.
|
|
97
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
94
|
+
const binding = require('@kitedb/core-android-arm-eabi')
|
|
95
|
+
const bindingPackageVersion = require('@kitedb/core-android-arm-eabi/package.json').version
|
|
96
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
97
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
98
98
|
}
|
|
99
99
|
return binding
|
|
100
100
|
} catch (e) {
|
|
@@ -112,10 +112,10 @@ function requireNative() {
|
|
|
112
112
|
loadErrors.push(e)
|
|
113
113
|
}
|
|
114
114
|
try {
|
|
115
|
-
const binding = require('kitedb-win32-x64-gnu')
|
|
116
|
-
const bindingPackageVersion = require('kitedb-win32-x64-gnu/package.json').version
|
|
117
|
-
if (bindingPackageVersion !== '0.2.
|
|
118
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
115
|
+
const binding = require('@kitedb/core-win32-x64-gnu')
|
|
116
|
+
const bindingPackageVersion = require('@kitedb/core-win32-x64-gnu/package.json').version
|
|
117
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
118
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
119
119
|
}
|
|
120
120
|
return binding
|
|
121
121
|
} catch (e) {
|
|
@@ -128,10 +128,10 @@ function requireNative() {
|
|
|
128
128
|
loadErrors.push(e)
|
|
129
129
|
}
|
|
130
130
|
try {
|
|
131
|
-
const binding = require('kitedb-win32-x64-msvc')
|
|
132
|
-
const bindingPackageVersion = require('kitedb-win32-x64-msvc/package.json').version
|
|
133
|
-
if (bindingPackageVersion !== '0.2.
|
|
134
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
131
|
+
const binding = require('@kitedb/core-win32-x64-msvc')
|
|
132
|
+
const bindingPackageVersion = require('@kitedb/core-win32-x64-msvc/package.json').version
|
|
133
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
134
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
135
135
|
}
|
|
136
136
|
return binding
|
|
137
137
|
} catch (e) {
|
|
@@ -145,10 +145,10 @@ function requireNative() {
|
|
|
145
145
|
loadErrors.push(e)
|
|
146
146
|
}
|
|
147
147
|
try {
|
|
148
|
-
const binding = require('kitedb-win32-ia32-msvc')
|
|
149
|
-
const bindingPackageVersion = require('kitedb-win32-ia32-msvc/package.json').version
|
|
150
|
-
if (bindingPackageVersion !== '0.2.
|
|
151
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
148
|
+
const binding = require('@kitedb/core-win32-ia32-msvc')
|
|
149
|
+
const bindingPackageVersion = require('@kitedb/core-win32-ia32-msvc/package.json').version
|
|
150
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
151
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
152
152
|
}
|
|
153
153
|
return binding
|
|
154
154
|
} catch (e) {
|
|
@@ -161,10 +161,10 @@ function requireNative() {
|
|
|
161
161
|
loadErrors.push(e)
|
|
162
162
|
}
|
|
163
163
|
try {
|
|
164
|
-
const binding = require('kitedb-win32-arm64-msvc')
|
|
165
|
-
const bindingPackageVersion = require('kitedb-win32-arm64-msvc/package.json').version
|
|
166
|
-
if (bindingPackageVersion !== '0.2.
|
|
167
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
164
|
+
const binding = require('@kitedb/core-win32-arm64-msvc')
|
|
165
|
+
const bindingPackageVersion = require('@kitedb/core-win32-arm64-msvc/package.json').version
|
|
166
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
167
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
168
168
|
}
|
|
169
169
|
return binding
|
|
170
170
|
} catch (e) {
|
|
@@ -180,10 +180,10 @@ function requireNative() {
|
|
|
180
180
|
loadErrors.push(e)
|
|
181
181
|
}
|
|
182
182
|
try {
|
|
183
|
-
const binding = require('kitedb-darwin-universal')
|
|
184
|
-
const bindingPackageVersion = require('kitedb-darwin-universal/package.json').version
|
|
185
|
-
if (bindingPackageVersion !== '0.2.
|
|
186
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
183
|
+
const binding = require('@kitedb/core-darwin-universal')
|
|
184
|
+
const bindingPackageVersion = require('@kitedb/core-darwin-universal/package.json').version
|
|
185
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
186
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
187
187
|
}
|
|
188
188
|
return binding
|
|
189
189
|
} catch (e) {
|
|
@@ -196,10 +196,10 @@ function requireNative() {
|
|
|
196
196
|
loadErrors.push(e)
|
|
197
197
|
}
|
|
198
198
|
try {
|
|
199
|
-
const binding = require('kitedb-darwin-x64')
|
|
200
|
-
const bindingPackageVersion = require('kitedb-darwin-x64/package.json').version
|
|
201
|
-
if (bindingPackageVersion !== '0.2.
|
|
202
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
199
|
+
const binding = require('@kitedb/core-darwin-x64')
|
|
200
|
+
const bindingPackageVersion = require('@kitedb/core-darwin-x64/package.json').version
|
|
201
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
202
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
203
203
|
}
|
|
204
204
|
return binding
|
|
205
205
|
} catch (e) {
|
|
@@ -212,10 +212,10 @@ function requireNative() {
|
|
|
212
212
|
loadErrors.push(e)
|
|
213
213
|
}
|
|
214
214
|
try {
|
|
215
|
-
const binding = require('kitedb-darwin-arm64')
|
|
216
|
-
const bindingPackageVersion = require('kitedb-darwin-arm64/package.json').version
|
|
217
|
-
if (bindingPackageVersion !== '0.2.
|
|
218
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
215
|
+
const binding = require('@kitedb/core-darwin-arm64')
|
|
216
|
+
const bindingPackageVersion = require('@kitedb/core-darwin-arm64/package.json').version
|
|
217
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
218
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
219
219
|
}
|
|
220
220
|
return binding
|
|
221
221
|
} catch (e) {
|
|
@@ -232,10 +232,10 @@ function requireNative() {
|
|
|
232
232
|
loadErrors.push(e)
|
|
233
233
|
}
|
|
234
234
|
try {
|
|
235
|
-
const binding = require('kitedb-freebsd-x64')
|
|
236
|
-
const bindingPackageVersion = require('kitedb-freebsd-x64/package.json').version
|
|
237
|
-
if (bindingPackageVersion !== '0.2.
|
|
238
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
235
|
+
const binding = require('@kitedb/core-freebsd-x64')
|
|
236
|
+
const bindingPackageVersion = require('@kitedb/core-freebsd-x64/package.json').version
|
|
237
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
238
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
239
239
|
}
|
|
240
240
|
return binding
|
|
241
241
|
} catch (e) {
|
|
@@ -248,10 +248,10 @@ function requireNative() {
|
|
|
248
248
|
loadErrors.push(e)
|
|
249
249
|
}
|
|
250
250
|
try {
|
|
251
|
-
const binding = require('kitedb-freebsd-arm64')
|
|
252
|
-
const bindingPackageVersion = require('kitedb-freebsd-arm64/package.json').version
|
|
253
|
-
if (bindingPackageVersion !== '0.2.
|
|
254
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
251
|
+
const binding = require('@kitedb/core-freebsd-arm64')
|
|
252
|
+
const bindingPackageVersion = require('@kitedb/core-freebsd-arm64/package.json').version
|
|
253
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
254
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
255
255
|
}
|
|
256
256
|
return binding
|
|
257
257
|
} catch (e) {
|
|
@@ -269,10 +269,10 @@ function requireNative() {
|
|
|
269
269
|
loadErrors.push(e)
|
|
270
270
|
}
|
|
271
271
|
try {
|
|
272
|
-
const binding = require('kitedb-linux-x64-musl')
|
|
273
|
-
const bindingPackageVersion = require('kitedb-linux-x64-musl/package.json').version
|
|
274
|
-
if (bindingPackageVersion !== '0.2.
|
|
275
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
272
|
+
const binding = require('@kitedb/core-linux-x64-musl')
|
|
273
|
+
const bindingPackageVersion = require('@kitedb/core-linux-x64-musl/package.json').version
|
|
274
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
275
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
276
276
|
}
|
|
277
277
|
return binding
|
|
278
278
|
} catch (e) {
|
|
@@ -285,10 +285,10 @@ function requireNative() {
|
|
|
285
285
|
loadErrors.push(e)
|
|
286
286
|
}
|
|
287
287
|
try {
|
|
288
|
-
const binding = require('kitedb-linux-x64-gnu')
|
|
289
|
-
const bindingPackageVersion = require('kitedb-linux-x64-gnu/package.json').version
|
|
290
|
-
if (bindingPackageVersion !== '0.2.
|
|
291
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
288
|
+
const binding = require('@kitedb/core-linux-x64-gnu')
|
|
289
|
+
const bindingPackageVersion = require('@kitedb/core-linux-x64-gnu/package.json').version
|
|
290
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
291
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
292
292
|
}
|
|
293
293
|
return binding
|
|
294
294
|
} catch (e) {
|
|
@@ -303,10 +303,10 @@ function requireNative() {
|
|
|
303
303
|
loadErrors.push(e)
|
|
304
304
|
}
|
|
305
305
|
try {
|
|
306
|
-
const binding = require('kitedb-linux-arm64-musl')
|
|
307
|
-
const bindingPackageVersion = require('kitedb-linux-arm64-musl/package.json').version
|
|
308
|
-
if (bindingPackageVersion !== '0.2.
|
|
309
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
306
|
+
const binding = require('@kitedb/core-linux-arm64-musl')
|
|
307
|
+
const bindingPackageVersion = require('@kitedb/core-linux-arm64-musl/package.json').version
|
|
308
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
309
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
310
310
|
}
|
|
311
311
|
return binding
|
|
312
312
|
} catch (e) {
|
|
@@ -319,10 +319,10 @@ function requireNative() {
|
|
|
319
319
|
loadErrors.push(e)
|
|
320
320
|
}
|
|
321
321
|
try {
|
|
322
|
-
const binding = require('kitedb-linux-arm64-gnu')
|
|
323
|
-
const bindingPackageVersion = require('kitedb-linux-arm64-gnu/package.json').version
|
|
324
|
-
if (bindingPackageVersion !== '0.2.
|
|
325
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
322
|
+
const binding = require('@kitedb/core-linux-arm64-gnu')
|
|
323
|
+
const bindingPackageVersion = require('@kitedb/core-linux-arm64-gnu/package.json').version
|
|
324
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
325
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
326
326
|
}
|
|
327
327
|
return binding
|
|
328
328
|
} catch (e) {
|
|
@@ -337,10 +337,10 @@ function requireNative() {
|
|
|
337
337
|
loadErrors.push(e)
|
|
338
338
|
}
|
|
339
339
|
try {
|
|
340
|
-
const binding = require('kitedb-linux-arm-musleabihf')
|
|
341
|
-
const bindingPackageVersion = require('kitedb-linux-arm-musleabihf/package.json').version
|
|
342
|
-
if (bindingPackageVersion !== '0.2.
|
|
343
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
340
|
+
const binding = require('@kitedb/core-linux-arm-musleabihf')
|
|
341
|
+
const bindingPackageVersion = require('@kitedb/core-linux-arm-musleabihf/package.json').version
|
|
342
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
343
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
344
344
|
}
|
|
345
345
|
return binding
|
|
346
346
|
} catch (e) {
|
|
@@ -353,10 +353,10 @@ function requireNative() {
|
|
|
353
353
|
loadErrors.push(e)
|
|
354
354
|
}
|
|
355
355
|
try {
|
|
356
|
-
const binding = require('kitedb-linux-arm-gnueabihf')
|
|
357
|
-
const bindingPackageVersion = require('kitedb-linux-arm-gnueabihf/package.json').version
|
|
358
|
-
if (bindingPackageVersion !== '0.2.
|
|
359
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
356
|
+
const binding = require('@kitedb/core-linux-arm-gnueabihf')
|
|
357
|
+
const bindingPackageVersion = require('@kitedb/core-linux-arm-gnueabihf/package.json').version
|
|
358
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
359
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
360
360
|
}
|
|
361
361
|
return binding
|
|
362
362
|
} catch (e) {
|
|
@@ -371,10 +371,10 @@ function requireNative() {
|
|
|
371
371
|
loadErrors.push(e)
|
|
372
372
|
}
|
|
373
373
|
try {
|
|
374
|
-
const binding = require('kitedb-linux-loong64-musl')
|
|
375
|
-
const bindingPackageVersion = require('kitedb-linux-loong64-musl/package.json').version
|
|
376
|
-
if (bindingPackageVersion !== '0.2.
|
|
377
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
374
|
+
const binding = require('@kitedb/core-linux-loong64-musl')
|
|
375
|
+
const bindingPackageVersion = require('@kitedb/core-linux-loong64-musl/package.json').version
|
|
376
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
377
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
378
378
|
}
|
|
379
379
|
return binding
|
|
380
380
|
} catch (e) {
|
|
@@ -387,10 +387,10 @@ function requireNative() {
|
|
|
387
387
|
loadErrors.push(e)
|
|
388
388
|
}
|
|
389
389
|
try {
|
|
390
|
-
const binding = require('kitedb-linux-loong64-gnu')
|
|
391
|
-
const bindingPackageVersion = require('kitedb-linux-loong64-gnu/package.json').version
|
|
392
|
-
if (bindingPackageVersion !== '0.2.
|
|
393
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
390
|
+
const binding = require('@kitedb/core-linux-loong64-gnu')
|
|
391
|
+
const bindingPackageVersion = require('@kitedb/core-linux-loong64-gnu/package.json').version
|
|
392
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
393
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
394
394
|
}
|
|
395
395
|
return binding
|
|
396
396
|
} catch (e) {
|
|
@@ -405,10 +405,10 @@ function requireNative() {
|
|
|
405
405
|
loadErrors.push(e)
|
|
406
406
|
}
|
|
407
407
|
try {
|
|
408
|
-
const binding = require('kitedb-linux-riscv64-musl')
|
|
409
|
-
const bindingPackageVersion = require('kitedb-linux-riscv64-musl/package.json').version
|
|
410
|
-
if (bindingPackageVersion !== '0.2.
|
|
411
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
408
|
+
const binding = require('@kitedb/core-linux-riscv64-musl')
|
|
409
|
+
const bindingPackageVersion = require('@kitedb/core-linux-riscv64-musl/package.json').version
|
|
410
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
411
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
412
412
|
}
|
|
413
413
|
return binding
|
|
414
414
|
} catch (e) {
|
|
@@ -421,10 +421,10 @@ function requireNative() {
|
|
|
421
421
|
loadErrors.push(e)
|
|
422
422
|
}
|
|
423
423
|
try {
|
|
424
|
-
const binding = require('kitedb-linux-riscv64-gnu')
|
|
425
|
-
const bindingPackageVersion = require('kitedb-linux-riscv64-gnu/package.json').version
|
|
426
|
-
if (bindingPackageVersion !== '0.2.
|
|
427
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
424
|
+
const binding = require('@kitedb/core-linux-riscv64-gnu')
|
|
425
|
+
const bindingPackageVersion = require('@kitedb/core-linux-riscv64-gnu/package.json').version
|
|
426
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
427
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
428
428
|
}
|
|
429
429
|
return binding
|
|
430
430
|
} catch (e) {
|
|
@@ -438,10 +438,10 @@ function requireNative() {
|
|
|
438
438
|
loadErrors.push(e)
|
|
439
439
|
}
|
|
440
440
|
try {
|
|
441
|
-
const binding = require('kitedb-linux-ppc64-gnu')
|
|
442
|
-
const bindingPackageVersion = require('kitedb-linux-ppc64-gnu/package.json').version
|
|
443
|
-
if (bindingPackageVersion !== '0.2.
|
|
444
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
441
|
+
const binding = require('@kitedb/core-linux-ppc64-gnu')
|
|
442
|
+
const bindingPackageVersion = require('@kitedb/core-linux-ppc64-gnu/package.json').version
|
|
443
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
444
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
445
445
|
}
|
|
446
446
|
return binding
|
|
447
447
|
} catch (e) {
|
|
@@ -454,10 +454,10 @@ function requireNative() {
|
|
|
454
454
|
loadErrors.push(e)
|
|
455
455
|
}
|
|
456
456
|
try {
|
|
457
|
-
const binding = require('kitedb-linux-s390x-gnu')
|
|
458
|
-
const bindingPackageVersion = require('kitedb-linux-s390x-gnu/package.json').version
|
|
459
|
-
if (bindingPackageVersion !== '0.2.
|
|
460
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
457
|
+
const binding = require('@kitedb/core-linux-s390x-gnu')
|
|
458
|
+
const bindingPackageVersion = require('@kitedb/core-linux-s390x-gnu/package.json').version
|
|
459
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
460
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
461
461
|
}
|
|
462
462
|
return binding
|
|
463
463
|
} catch (e) {
|
|
@@ -474,10 +474,10 @@ function requireNative() {
|
|
|
474
474
|
loadErrors.push(e)
|
|
475
475
|
}
|
|
476
476
|
try {
|
|
477
|
-
const binding = require('kitedb-openharmony-arm64')
|
|
478
|
-
const bindingPackageVersion = require('kitedb-openharmony-arm64/package.json').version
|
|
479
|
-
if (bindingPackageVersion !== '0.2.
|
|
480
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
477
|
+
const binding = require('@kitedb/core-openharmony-arm64')
|
|
478
|
+
const bindingPackageVersion = require('@kitedb/core-openharmony-arm64/package.json').version
|
|
479
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
480
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
481
481
|
}
|
|
482
482
|
return binding
|
|
483
483
|
} catch (e) {
|
|
@@ -490,10 +490,10 @@ function requireNative() {
|
|
|
490
490
|
loadErrors.push(e)
|
|
491
491
|
}
|
|
492
492
|
try {
|
|
493
|
-
const binding = require('kitedb-openharmony-x64')
|
|
494
|
-
const bindingPackageVersion = require('kitedb-openharmony-x64/package.json').version
|
|
495
|
-
if (bindingPackageVersion !== '0.2.
|
|
496
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
493
|
+
const binding = require('@kitedb/core-openharmony-x64')
|
|
494
|
+
const bindingPackageVersion = require('@kitedb/core-openharmony-x64/package.json').version
|
|
495
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
496
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
497
497
|
}
|
|
498
498
|
return binding
|
|
499
499
|
} catch (e) {
|
|
@@ -506,10 +506,10 @@ function requireNative() {
|
|
|
506
506
|
loadErrors.push(e)
|
|
507
507
|
}
|
|
508
508
|
try {
|
|
509
|
-
const binding = require('kitedb-openharmony-arm')
|
|
510
|
-
const bindingPackageVersion = require('kitedb-openharmony-arm/package.json').version
|
|
511
|
-
if (bindingPackageVersion !== '0.2.
|
|
512
|
-
throw new Error(`Native binding package version mismatch, expected 0.2.
|
|
509
|
+
const binding = require('@kitedb/core-openharmony-arm')
|
|
510
|
+
const bindingPackageVersion = require('@kitedb/core-openharmony-arm/package.json').version
|
|
511
|
+
if (bindingPackageVersion !== '0.2.8' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
512
|
+
throw new Error(`Native binding package version mismatch, expected 0.2.8 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
513
513
|
}
|
|
514
514
|
return binding
|
|
515
515
|
} catch (e) {
|
|
@@ -538,7 +538,7 @@ if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
|
538
538
|
}
|
|
539
539
|
if (!nativeBinding || process.env.NAPI_RS_FORCE_WASI) {
|
|
540
540
|
try {
|
|
541
|
-
wasiBinding = require('kitedb-wasm32-wasi')
|
|
541
|
+
wasiBinding = require('@kitedb/core-wasm32-wasi')
|
|
542
542
|
nativeBinding = wasiBinding
|
|
543
543
|
} catch (err) {
|
|
544
544
|
if (process.env.NAPI_RS_FORCE_WASI) {
|
|
@@ -580,14 +580,19 @@ module.exports.Database = nativeBinding.Database
|
|
|
580
580
|
module.exports.JsGraphAccessor = nativeBinding.JsGraphAccessor
|
|
581
581
|
module.exports.JsIvfIndex = nativeBinding.JsIvfIndex
|
|
582
582
|
module.exports.JsIvfPqIndex = nativeBinding.JsIvfPqIndex
|
|
583
|
-
module.exports.
|
|
584
|
-
module.exports.
|
|
585
|
-
module.exports.
|
|
586
|
-
module.exports.
|
|
587
|
-
module.exports.
|
|
588
|
-
module.exports.
|
|
589
|
-
module.exports.
|
|
590
|
-
module.exports.
|
|
583
|
+
module.exports.Kite = nativeBinding.Kite
|
|
584
|
+
module.exports.KiteInsertBuilder = nativeBinding.KiteInsertBuilder
|
|
585
|
+
module.exports.KiteInsertExecutorMany = nativeBinding.KiteInsertExecutorMany
|
|
586
|
+
module.exports.KiteInsertExecutorSingle = nativeBinding.KiteInsertExecutorSingle
|
|
587
|
+
module.exports.KitePath = nativeBinding.KitePath
|
|
588
|
+
module.exports.KiteTraversal = nativeBinding.KiteTraversal
|
|
589
|
+
module.exports.KiteUpdateBuilder = nativeBinding.KiteUpdateBuilder
|
|
590
|
+
module.exports.KiteUpdateEdgeBuilder = nativeBinding.KiteUpdateEdgeBuilder
|
|
591
|
+
module.exports.KiteUpsertBuilder = nativeBinding.KiteUpsertBuilder
|
|
592
|
+
module.exports.KiteUpsertByIdBuilder = nativeBinding.KiteUpsertByIdBuilder
|
|
593
|
+
module.exports.KiteUpsertEdgeBuilder = nativeBinding.KiteUpsertEdgeBuilder
|
|
594
|
+
module.exports.KiteUpsertExecutorMany = nativeBinding.KiteUpsertExecutorMany
|
|
595
|
+
module.exports.KiteUpsertExecutorSingle = nativeBinding.KiteUpsertExecutorSingle
|
|
591
596
|
module.exports.VectorIndex = nativeBinding.VectorIndex
|
|
592
597
|
module.exports.bruteForceSearch = nativeBinding.bruteForceSearch
|
|
593
598
|
module.exports.collectMetrics = nativeBinding.collectMetrics
|
|
@@ -601,13 +606,13 @@ module.exports.JsCompressionType = nativeBinding.JsCompressionType
|
|
|
601
606
|
module.exports.JsDistanceMetric = nativeBinding.JsDistanceMetric
|
|
602
607
|
module.exports.JsSyncMode = nativeBinding.JsSyncMode
|
|
603
608
|
module.exports.JsTraversalDirection = nativeBinding.JsTraversalDirection
|
|
609
|
+
module.exports.kite = nativeBinding.kite
|
|
610
|
+
module.exports.kiteSync = nativeBinding.kiteSync
|
|
604
611
|
module.exports.openDatabase = nativeBinding.openDatabase
|
|
605
612
|
module.exports.pathConfig = nativeBinding.pathConfig
|
|
606
613
|
module.exports.plus100 = nativeBinding.plus100
|
|
607
614
|
module.exports.PropType = nativeBinding.PropType
|
|
608
615
|
module.exports.PropValueTag = nativeBinding.PropValueTag
|
|
609
|
-
module.exports.ray = nativeBinding.ray
|
|
610
|
-
module.exports.raySync = nativeBinding.raySync
|
|
611
616
|
module.exports.restoreBackup = nativeBinding.restoreBackup
|
|
612
617
|
module.exports.traversalStep = nativeBinding.traversalStep
|
|
613
618
|
module.exports.version = nativeBinding.version
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kitedb/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"description": "KiteDB - High-performance embedded graph database with vector search",
|
|
5
5
|
"author": "mask <mask@mask.dev>",
|
|
6
6
|
"homepage": "https://kitedb.vercel.com/",
|
|
@@ -136,9 +136,9 @@
|
|
|
136
136
|
},
|
|
137
137
|
"packageManager": "bun@1.2.4",
|
|
138
138
|
"optionalDependencies": {
|
|
139
|
-
"@kitedb/core-win32-x64-msvc": "0.2.
|
|
140
|
-
"@kitedb/core-darwin-x64": "0.2.
|
|
141
|
-
"@kitedb/core-linux-x64-gnu": "0.2.
|
|
142
|
-
"@kitedb/core-darwin-arm64": "0.2.
|
|
139
|
+
"@kitedb/core-win32-x64-msvc": "0.2.8",
|
|
140
|
+
"@kitedb/core-darwin-x64": "0.2.8",
|
|
141
|
+
"@kitedb/core-linux-x64-gnu": "0.2.8",
|
|
142
|
+
"@kitedb/core-darwin-arm64": "0.2.8"
|
|
143
143
|
}
|
|
144
144
|
}
|