@lancedb/lancedb 0.41.0 → 0.42.0-beta.1

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/dist/native.js CHANGED
@@ -76,8 +76,8 @@ function requireNative() {
76
76
  try {
77
77
  const binding = require('@lancedb/lancedb-android-arm64');
78
78
  const bindingPackageVersion = require('@lancedb/lancedb-android-arm64/package.json').version;
79
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
80
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
80
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
81
81
  }
82
82
  return binding;
83
83
  }
@@ -95,8 +95,8 @@ function requireNative() {
95
95
  try {
96
96
  const binding = require('@lancedb/lancedb-android-arm-eabi');
97
97
  const bindingPackageVersion = require('@lancedb/lancedb-android-arm-eabi/package.json').version;
98
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
99
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
98
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
99
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
100
100
  }
101
101
  return binding;
102
102
  }
@@ -120,8 +120,8 @@ function requireNative() {
120
120
  try {
121
121
  const binding = require('@lancedb/lancedb-win32-x64-gnu');
122
122
  const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-gnu/package.json').version;
123
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
124
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
124
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
125
125
  }
126
126
  return binding;
127
127
  }
@@ -139,8 +139,8 @@ function requireNative() {
139
139
  try {
140
140
  const binding = require('@lancedb/lancedb-win32-x64-msvc');
141
141
  const bindingPackageVersion = require('@lancedb/lancedb-win32-x64-msvc/package.json').version;
142
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
143
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
142
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
143
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
144
144
  }
145
145
  return binding;
146
146
  }
@@ -159,8 +159,8 @@ function requireNative() {
159
159
  try {
160
160
  const binding = require('@lancedb/lancedb-win32-ia32-msvc');
161
161
  const bindingPackageVersion = require('@lancedb/lancedb-win32-ia32-msvc/package.json').version;
162
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
163
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
164
164
  }
165
165
  return binding;
166
166
  }
@@ -178,8 +178,8 @@ function requireNative() {
178
178
  try {
179
179
  const binding = require('@lancedb/lancedb-win32-arm64-msvc');
180
180
  const bindingPackageVersion = require('@lancedb/lancedb-win32-arm64-msvc/package.json').version;
181
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
182
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
181
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
182
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
183
183
  }
184
184
  return binding;
185
185
  }
@@ -201,8 +201,8 @@ function requireNative() {
201
201
  try {
202
202
  const binding = require('@lancedb/lancedb-darwin-universal');
203
203
  const bindingPackageVersion = require('@lancedb/lancedb-darwin-universal/package.json').version;
204
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
205
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
205
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
206
206
  }
207
207
  return binding;
208
208
  }
@@ -219,8 +219,8 @@ function requireNative() {
219
219
  try {
220
220
  const binding = require('@lancedb/lancedb-darwin-x64');
221
221
  const bindingPackageVersion = require('@lancedb/lancedb-darwin-x64/package.json').version;
222
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
223
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
223
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
224
224
  }
225
225
  return binding;
226
226
  }
@@ -238,8 +238,8 @@ function requireNative() {
238
238
  try {
239
239
  const binding = require('@lancedb/lancedb-darwin-arm64');
240
240
  const bindingPackageVersion = require('@lancedb/lancedb-darwin-arm64/package.json').version;
241
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
243
243
  }
244
244
  return binding;
245
245
  }
@@ -262,8 +262,8 @@ function requireNative() {
262
262
  try {
263
263
  const binding = require('@lancedb/lancedb-freebsd-x64');
264
264
  const bindingPackageVersion = require('@lancedb/lancedb-freebsd-x64/package.json').version;
265
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
266
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
267
267
  }
268
268
  return binding;
269
269
  }
@@ -281,8 +281,8 @@ function requireNative() {
281
281
  try {
282
282
  const binding = require('@lancedb/lancedb-freebsd-arm64');
283
283
  const bindingPackageVersion = require('@lancedb/lancedb-freebsd-arm64/package.json').version;
284
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
285
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
284
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
285
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
286
286
  }
287
287
  return binding;
288
288
  }
@@ -306,8 +306,8 @@ function requireNative() {
306
306
  try {
307
307
  const binding = require('@lancedb/lancedb-linux-x64-musl');
308
308
  const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-musl/package.json').version;
309
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
310
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
310
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
311
311
  }
312
312
  return binding;
313
313
  }
@@ -325,8 +325,8 @@ function requireNative() {
325
325
  try {
326
326
  const binding = require('@lancedb/lancedb-linux-x64-gnu');
327
327
  const bindingPackageVersion = require('@lancedb/lancedb-linux-x64-gnu/package.json').version;
328
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
328
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
330
330
  }
331
331
  return binding;
332
332
  }
@@ -346,8 +346,8 @@ function requireNative() {
346
346
  try {
347
347
  const binding = require('@lancedb/lancedb-linux-arm64-musl');
348
348
  const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-musl/package.json').version;
349
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
350
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
350
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
351
351
  }
352
352
  return binding;
353
353
  }
@@ -365,8 +365,8 @@ function requireNative() {
365
365
  try {
366
366
  const binding = require('@lancedb/lancedb-linux-arm64-gnu');
367
367
  const bindingPackageVersion = require('@lancedb/lancedb-linux-arm64-gnu/package.json').version;
368
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
369
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
369
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
370
370
  }
371
371
  return binding;
372
372
  }
@@ -386,8 +386,8 @@ function requireNative() {
386
386
  try {
387
387
  const binding = require('@lancedb/lancedb-linux-arm-musleabihf');
388
388
  const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-musleabihf/package.json').version;
389
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
390
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
390
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
391
391
  }
392
392
  return binding;
393
393
  }
@@ -405,8 +405,8 @@ function requireNative() {
405
405
  try {
406
406
  const binding = require('@lancedb/lancedb-linux-arm-gnueabihf');
407
407
  const bindingPackageVersion = require('@lancedb/lancedb-linux-arm-gnueabihf/package.json').version;
408
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
409
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
409
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
410
410
  }
411
411
  return binding;
412
412
  }
@@ -426,8 +426,8 @@ function requireNative() {
426
426
  try {
427
427
  const binding = require('@lancedb/lancedb-linux-loong64-musl');
428
428
  const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-musl/package.json').version;
429
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
430
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
429
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
430
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
431
431
  }
432
432
  return binding;
433
433
  }
@@ -445,8 +445,8 @@ function requireNative() {
445
445
  try {
446
446
  const binding = require('@lancedb/lancedb-linux-loong64-gnu');
447
447
  const bindingPackageVersion = require('@lancedb/lancedb-linux-loong64-gnu/package.json').version;
448
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
449
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
448
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
449
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
450
450
  }
451
451
  return binding;
452
452
  }
@@ -466,8 +466,8 @@ function requireNative() {
466
466
  try {
467
467
  const binding = require('@lancedb/lancedb-linux-riscv64-musl');
468
468
  const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-musl/package.json').version;
469
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
470
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
469
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
470
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
471
471
  }
472
472
  return binding;
473
473
  }
@@ -485,8 +485,8 @@ function requireNative() {
485
485
  try {
486
486
  const binding = require('@lancedb/lancedb-linux-riscv64-gnu');
487
487
  const bindingPackageVersion = require('@lancedb/lancedb-linux-riscv64-gnu/package.json').version;
488
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
489
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
488
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
489
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
490
490
  }
491
491
  return binding;
492
492
  }
@@ -505,8 +505,8 @@ function requireNative() {
505
505
  try {
506
506
  const binding = require('@lancedb/lancedb-linux-ppc64-gnu');
507
507
  const bindingPackageVersion = require('@lancedb/lancedb-linux-ppc64-gnu/package.json').version;
508
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
509
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
508
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
509
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
510
510
  }
511
511
  return binding;
512
512
  }
@@ -524,8 +524,8 @@ function requireNative() {
524
524
  try {
525
525
  const binding = require('@lancedb/lancedb-linux-s390x-gnu');
526
526
  const bindingPackageVersion = require('@lancedb/lancedb-linux-s390x-gnu/package.json').version;
527
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
528
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
527
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
528
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
529
529
  }
530
530
  return binding;
531
531
  }
@@ -548,8 +548,8 @@ function requireNative() {
548
548
  try {
549
549
  const binding = require('@lancedb/lancedb-openharmony-arm64');
550
550
  const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm64/package.json').version;
551
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
552
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
551
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
552
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
553
553
  }
554
554
  return binding;
555
555
  }
@@ -567,8 +567,8 @@ function requireNative() {
567
567
  try {
568
568
  const binding = require('@lancedb/lancedb-openharmony-x64');
569
569
  const bindingPackageVersion = require('@lancedb/lancedb-openharmony-x64/package.json').version;
570
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
571
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
570
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
571
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
572
572
  }
573
573
  return binding;
574
574
  }
@@ -586,8 +586,8 @@ function requireNative() {
586
586
  try {
587
587
  const binding = require('@lancedb/lancedb-openharmony-arm');
588
588
  const bindingPackageVersion = require('@lancedb/lancedb-openharmony-arm/package.json').version;
589
- if (bindingPackageVersion !== '0.41.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
590
- throw new Error(`Native binding package version mismatch, expected 0.41.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
589
+ if (bindingPackageVersion !== '0.42.0-beta.1' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
590
+ throw new Error(`Native binding package version mismatch, expected 0.42.0-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
591
591
  }
592
592
  return binding;
593
593
  }
@@ -667,6 +667,7 @@ module.exports.Branches = nativeBinding.Branches;
667
667
  module.exports.Catalog = nativeBinding.Catalog;
668
668
  module.exports.Connection = nativeBinding.Connection;
669
669
  module.exports.DatabaseNames = nativeBinding.DatabaseNames;
670
+ module.exports.Expr = nativeBinding.Expr;
670
671
  module.exports.Index = nativeBinding.Index;
671
672
  module.exports.Job = nativeBinding.Job;
672
673
  module.exports.JobListing = nativeBinding.JobListing;
@@ -687,8 +688,13 @@ module.exports.TagContents = nativeBinding.TagContents;
687
688
  module.exports.Tags = nativeBinding.Tags;
688
689
  module.exports.TakeQuery = nativeBinding.TakeQuery;
689
690
  module.exports.VectorQuery = nativeBinding.VectorQuery;
691
+ module.exports.col = nativeBinding.col;
690
692
  module.exports.experimentalFunctionsEnabled = nativeBinding.experimentalFunctionsEnabled;
693
+ module.exports.func = nativeBinding.func;
691
694
  module.exports.lancedbMetricsCatalog = nativeBinding.lancedbMetricsCatalog;
695
+ module.exports.lit = nativeBinding.lit;
696
+ module.exports.litBool = nativeBinding.litBool;
697
+ module.exports.litInt = nativeBinding.litInt;
692
698
  module.exports.permutationBuilder = nativeBinding.permutationBuilder;
693
699
  module.exports.registerLancedbMetricsRecorder = nativeBinding.registerLancedbMetricsRecorder;
694
700
  module.exports.snapshotLancedbMetrics = nativeBinding.snapshotLancedbMetrics;
package/dist/query.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Table as ArrowTable, type IntoVector, RecordBatch } from "./arrow";
2
+ import { Expr } from "./expr";
2
3
  import { type IvfPqOptions } from "./indices";
3
4
  import { JsFullTextQuery, RecordBatchIterator as NativeBatchIterator, Query as NativeQuery, Table as NativeTable, TakeQuery as NativeTakeQuery, VectorQuery as NativeVectorQuery } from "./native";
4
5
  import { Reranker } from "./rerankers";
@@ -237,11 +238,16 @@ export declare class StandardQueryBase<NativeQueryType extends NativeQuery | Nat
237
238
  /**
238
239
  * A filter statement to be applied to this query.
239
240
  *
240
- * The filter should be supplied as an SQL query string. For example:
241
+ * The filter may be an SQL query string or an expression built with `col`,
242
+ * which preserves case-sensitive column names. For example:
241
243
  * @example
242
244
  * x > 10
243
245
  * y > 0 AND y < 100
244
246
  * x > 5 OR y = 'test'
247
+ * @example
248
+ * ```ts
249
+ * table.query().where(col("firstName").eq("Alice"));
250
+ * ```
245
251
  *
246
252
  * Filtering performance can often be improved by creating a scalar index
247
253
  * on the filter column(s).
@@ -249,7 +255,7 @@ export declare class StandardQueryBase<NativeQueryType extends NativeQuery | Nat
249
255
  * Calling this multiple times combines the filters with a logical AND rather
250
256
  * than replacing the previous filter.
251
257
  */
252
- where(predicate: string): this;
258
+ where(predicate: string | Expr): this;
253
259
  /**
254
260
  * A filter statement to be applied to this query.
255
261
  * @see where
@@ -403,6 +409,23 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
403
409
  * also increase the latency of your query. The default value is 1.5*limit.
404
410
  */
405
411
  ef(ef: number): VectorQuery;
412
+ /**
413
+ * Set the speed / accuracy tradeoff to use for approximate search
414
+ *
415
+ * This currently affects RQ-quantized indexes, such as IVF_RQ, and
416
+ * prefiltered search on HNSW indexes, where "fast" enables the ACORN
417
+ * traversal. Other index types ignore this setting.
418
+ *
419
+ * "fast" favors lower latency and may reduce recall, "normal" (the default)
420
+ * uses the index's default balance, and "accurate" favors higher recall and
421
+ * may increase latency.
422
+ *
423
+ * @example
424
+ * ```ts
425
+ * table.vectorSearch([0.1, 0.2]).approxMode("fast").limit(10);
426
+ * ```
427
+ */
428
+ approxMode(approxMode: "fast" | "normal" | "accurate"): VectorQuery;
406
429
  /**
407
430
  * Set the vector column to query
408
431
  *
package/dist/query.js CHANGED
@@ -7,6 +7,7 @@ exports.RecordBatchIterator = RecordBatchIterator;
7
7
  exports.createAutoQuery = createAutoQuery;
8
8
  exports.instanceOfFullTextQuery = instanceOfFullTextQuery;
9
9
  const arrow_1 = require("./arrow");
10
+ const expr_1 = require("./expr");
10
11
  const native_1 = require("./native");
11
12
  async function* RecordBatchIterator(promisedInner) {
12
13
  const inner = await promisedInner;
@@ -415,11 +416,16 @@ class StandardQueryBase extends QueryBase {
415
416
  /**
416
417
  * A filter statement to be applied to this query.
417
418
  *
418
- * The filter should be supplied as an SQL query string. For example:
419
+ * The filter may be an SQL query string or an expression built with `col`,
420
+ * which preserves case-sensitive column names. For example:
419
421
  * @example
420
422
  * x > 10
421
423
  * y > 0 AND y < 100
422
424
  * x > 5 OR y = 'test'
425
+ * @example
426
+ * ```ts
427
+ * table.query().where(col("firstName").eq("Alice"));
428
+ * ```
423
429
  *
424
430
  * Filtering performance can often be improved by creating a scalar index
425
431
  * on the filter column(s).
@@ -428,7 +434,14 @@ class StandardQueryBase extends QueryBase {
428
434
  * than replacing the previous filter.
429
435
  */
430
436
  where(predicate) {
431
- this.doCall((inner) => inner.onlyIf(predicate));
437
+ this.doCall((inner) => {
438
+ if (predicate instanceof expr_1.Expr) {
439
+ inner.onlyIf(predicate.toSql());
440
+ }
441
+ else {
442
+ inner.onlyIf(predicate);
443
+ }
444
+ });
432
445
  return this;
433
446
  }
434
447
  /**
@@ -653,6 +666,26 @@ class VectorQuery extends StandardQueryBase {
653
666
  this.doVectorCall((inner) => inner.ef(ef));
654
667
  return this;
655
668
  }
669
+ /**
670
+ * Set the speed / accuracy tradeoff to use for approximate search
671
+ *
672
+ * This currently affects RQ-quantized indexes, such as IVF_RQ, and
673
+ * prefiltered search on HNSW indexes, where "fast" enables the ACORN
674
+ * traversal. Other index types ignore this setting.
675
+ *
676
+ * "fast" favors lower latency and may reduce recall, "normal" (the default)
677
+ * uses the index's default balance, and "accurate" favors higher recall and
678
+ * may increase latency.
679
+ *
680
+ * @example
681
+ * ```ts
682
+ * table.vectorSearch([0.1, 0.2]).approxMode("fast").limit(10);
683
+ * ```
684
+ */
685
+ approxMode(approxMode) {
686
+ super.doCall((inner) => inner.approxMode(approxMode));
687
+ return this;
688
+ }
656
689
  /**
657
690
  * Set the vector column to query
658
691
  *
package/dist/table.d.ts CHANGED
@@ -68,8 +68,8 @@ export interface AddDataOptions {
68
68
  /**
69
69
  * Whether blob URIs outside registered external bases may be written.
70
70
  *
71
- * Defaults to `false`. This option is supported only for local/native
72
- * tables; remote tables return an error when it is enabled. An enabled write
71
+ * Defaults to `false`. This option is supported only in LanceDB Embedded;
72
+ * LanceDB Enterprise returns an error when it is enabled. An enabled write
73
73
  * stores the absolute URI reference without registering a base or copying
74
74
  * the external object into the database. The object must remain accessible
75
75
  * when the blob is read later.
@@ -281,6 +281,24 @@ export declare abstract class Table {
281
281
  * We currently don't support custom named indexes.
282
282
  * The index name will always be `${column}_idx`.
283
283
  *
284
+ * On LanceDB Embedded tables the index is built before the returned promise
285
+ * resolves. On LanceDB Enterprise tables it resolves once the build is
286
+ * scheduled. Until the build finishes, a vector index may be missing from
287
+ * {@link Table.listIndices}, a scalar or FTS index may be listed with 0
288
+ * indexed rows, and queries won't use the index. To wait until the index is
289
+ * ready, set {@link IndexOptions.waitTimeoutSeconds}, call
290
+ * {@link Table.waitForIndex}, or use {@link Table.createIndexAsync} and wait
291
+ * on its job when the server returned a job ID.
292
+ *
293
+ * `waitTimeoutSeconds` waits for the submitted build when the server returns
294
+ * a job ID. On older servers that don't return one, it falls back to polling
295
+ * the index by name. {@link Table.waitForIndex} always waits by name. When
296
+ * replacing an existing index, those name-based waits may return before the
297
+ * new build finishes because the old index can still match.
298
+ * `createIndexAsync` can track a specific build only when the server returned
299
+ * a job ID; otherwise it returns an already-complete job and callers must
300
+ * use {@link Table.waitForIndex} for that build.
301
+ *
284
302
  * @example
285
303
  * // If the column has a vector (fixed size list) data type then
286
304
  * // an IvfPq vector index will be created.
@@ -297,6 +315,11 @@ export declare abstract class Table {
297
315
  * }),
298
316
  * });
299
317
  * @example
318
+ * // Or size the partitions by row count instead of choosing how many.
319
+ * await table.createIndex("vector", {
320
+ * config: lancedb.Index.ivfPq({ targetPartitionSize: 4096 }),
321
+ * });
322
+ * @example
300
323
  * // Or create a Scalar index
301
324
  * await table.createIndex("my_float_col");
302
325
  */
@@ -306,6 +329,11 @@ export declare abstract class Table {
306
329
  *
307
330
  * The job may already be complete when returned; callers must not assume
308
331
  * the index exists until {@link Job.wait} resolves.
332
+ *
333
+ * In LanceDB Enterprise, the returned job tracks this submission only if the
334
+ * server returns a job ID. If it does not, the job is already complete and
335
+ * does not wait for the background build; use {@link Table.waitForIndex} and
336
+ * account for the replacement caveat described in {@link Table.createIndex}.
309
337
  */
310
338
  abstract createIndexAsync(column: string, options?: Partial<IndexOptions>): Promise<Job>;
311
339
  /**
@@ -344,7 +372,7 @@ export declare abstract class Table {
344
372
  * Large columns (e.g. high-dimensional vectors or binary data) may not be
345
373
  * practical to prewarm.
346
374
  *
347
- * This feature is currently only supported on remote tables.
375
+ * This feature is currently only supported in LanceDB Enterprise.
348
376
  */
349
377
  abstract prewarmData(columns?: string[]): Promise<void>;
350
378
  /**
@@ -477,9 +505,9 @@ export declare abstract class Table {
477
505
  /**
478
506
  * Add new columns with defined values.
479
507
  *
480
- * Local computed-column declaration and refresh require a source build with
481
- * the `experimental-functions` Cargo feature. Published packages disable it;
482
- * remote Cloud/Enterprise operations remain available.
508
+ * LanceDB Embedded computed-column declaration and refresh require a source
509
+ * build with the `experimental-functions` Cargo feature. Published packages
510
+ * disable it; LanceDB Enterprise operations remain available.
483
511
  *
484
512
  * The `{ computed }` form stores the expression rather than evaluating it
485
513
  * now: the column is committed with no values, and rows get them from
@@ -491,7 +519,7 @@ export declare abstract class Table {
491
519
  * declaration reads a column, that column cannot be renamed, retyped or
492
520
  * dropped.
493
521
  *
494
- * On LanceDB Cloud and Enterprise the expression is planned by the
522
+ * In LanceDB Enterprise the expression is planned by the
495
523
  * server, and the refresh runs as a server job -- see
496
524
  * {@link Table#refreshColumnAsync}.
497
525
  * @param {AddColumnsSql[] | Field | Field[] | Schema} newColumnTransforms Either:
@@ -517,8 +545,8 @@ export declare abstract class Table {
517
545
  *
518
546
  * Rows appended since the last refresh are filled by the next one, and
519
547
  * rows whose inputs changed since they were computed are recomputed;
520
- * everything else is left as it is. Local tables only: a remote refresh
521
- * runs as a server job, through {@link Table#refreshColumnAsync}.
548
+ * everything else is left as it is. LanceDB Embedded only: in LanceDB
549
+ * Enterprise a refresh runs as a server job, through {@link Table#refreshColumnAsync}.
522
550
  * @param {string} column The name of the computed column to fill.
523
551
  * @returns {Promise<RefreshColumnResult>} A promise that resolves to the
524
552
  * number of rows filled and the new version number of the table.
@@ -527,14 +555,15 @@ export declare abstract class Table {
527
555
  /**
528
556
  * Like {@link Table#refreshColumn}, but returns a handle to the refresh
529
557
  * job instead of blocking until it completes.
530
- * Local refresh requires a source build with `experimental-functions`.
531
- * Remote Cloud/Enterprise jobs do not require this feature.
558
+ * LanceDB Embedded refresh requires a source build with
559
+ * `experimental-functions`. LanceDB Enterprise jobs do not require this
560
+ * feature.
532
561
  *
533
562
  * The job may already be complete when returned; callers must not assume
534
563
  * the column is filled until {@link Job.wait} resolves. Invalid input --
535
564
  * an unknown column, or one that is not computed -- rejects here rather
536
- * than failing the job. On local tables the job runs in-process; on
537
- * LanceDB Cloud and Enterprise it is the server's backfill job.
565
+ * than failing the job. In LanceDB Embedded the job runs in-process; in
566
+ * LanceDB Enterprise it is the server's backfill job.
538
567
  * @param {string} column The name of the computed column to fill.
539
568
  * @example
540
569
  * ```ts
@@ -550,7 +579,7 @@ export declare abstract class Table {
550
579
  * A refresh running under a skip policy records each row it skipped with
551
580
  * the input that failed and the error. This lists those records, newest
552
581
  * job first, plus a summary for any fragment whose per-row detail was
553
- * capped. LanceDB Cloud and Enterprise only; reading errors needs read
582
+ * capped. LanceDB Enterprise only; reading errors needs read
554
583
  * access to the table, since a message carries the value that failed.
555
584
  * @param {FunctionErrorsOptions} options Optional filters: `jobId`,
556
585
  * `column`, and `limit` (server default 10000, cap 100000).
@@ -574,6 +603,9 @@ export declare abstract class Table {
574
603
  abstract materializedViewDefinition(): Promise<string>;
575
604
  /**
576
605
  * Alter the name or nullability of columns.
606
+ *
607
+ * Local tables reject renaming source or vector columns referenced by
608
+ * `embedding_functions` schema metadata, preserving the embedding binding.
577
609
  * @param {ColumnAlteration[]} columnAlterations One or more alterations to
578
610
  * apply to columns.
579
611
  * @returns {Promise<AlterColumnsResult>} A promise that resolves to an object
@@ -605,6 +637,9 @@ export declare abstract class Table {
605
637
  * underlying storage. In order to remove the data, you must subsequently
606
638
  * call ``compact_files`` to rewrite the data without the removed columns and
607
639
  * then call ``cleanup_files`` to remove the old files.
640
+ *
641
+ * Local tables reject dropping source or vector columns referenced by
642
+ * `embedding_functions` schema metadata, preserving the embedding binding.
608
643
  * @param {string[]} columnNames The names of the columns to drop. These can
609
644
  * be nested column references (e.g. "a.b.c") or top-level column names
610
645
  * (e.g. "a").
@@ -838,7 +873,14 @@ export declare abstract class Table {
838
873
  * modification operations.
839
874
  */
840
875
  abstract optimize(options?: Partial<OptimizeOptions>): Promise<OptimizeStats>;
841
- /** List all indices that have been created with {@link Table.createIndex} */
876
+ /**
877
+ * List all indices that have been created with {@link Table.createIndex}
878
+ *
879
+ * On LanceDB Enterprise tables, an index whose build hasn't finished may be
880
+ * missing (vector indices) or listed with 0 indexed rows (scalar and FTS
881
+ * indices), and `numUnindexedRows` may be undefined. Use
882
+ * {@link Table.waitForIndex} to wait until an index is ready.
883
+ */
842
884
  abstract listIndices(): Promise<IndexConfig[]>;
843
885
  /**
844
886
  * Tokenize a full-text search query using the tokenizer configured on an FTS index.
@@ -846,7 +888,7 @@ export declare abstract class Table {
846
888
  * Specify exactly one of `column` or `indexName`.
847
889
  *
848
890
  * Model-backed tokenizers such as `jieba/*` and `lindera/*` are rebuilt in
849
- * the client process from index metadata. For remote tables, this means the
891
+ * the client process from index metadata. In LanceDB Enterprise, this means the
850
892
  * same tokenizer model files must also exist locally (under
851
893
  * `LANCE_LANGUAGE_MODEL_HOME`) and must match the files the server uses. A
852
894
  * mismatch cannot be detected: the returned tokens may differ from what the
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "ann"
12
12
  ],
13
13
  "private": false,
14
- "version": "0.41.0",
14
+ "version": "0.42.0-beta.1",
15
15
  "main": "dist/index.js",
16
16
  "exports": {
17
17
  ".": "./dist/index.js",
@@ -111,13 +111,13 @@
111
111
  "optionalDependencies": {
112
112
  "@huggingface/transformers": "3.0.2",
113
113
  "openai": "4.29.2",
114
- "@lancedb/lancedb-darwin-arm64": "0.41.0",
115
- "@lancedb/lancedb-linux-x64-gnu": "0.41.0",
116
- "@lancedb/lancedb-linux-arm64-gnu": "0.41.0",
117
- "@lancedb/lancedb-linux-x64-musl": "0.41.0",
118
- "@lancedb/lancedb-linux-arm64-musl": "0.41.0",
119
- "@lancedb/lancedb-win32-x64-msvc": "0.41.0",
120
- "@lancedb/lancedb-win32-arm64-msvc": "0.41.0"
114
+ "@lancedb/lancedb-darwin-arm64": "0.42.0-beta.1",
115
+ "@lancedb/lancedb-linux-x64-gnu": "0.42.0-beta.1",
116
+ "@lancedb/lancedb-linux-arm64-gnu": "0.42.0-beta.1",
117
+ "@lancedb/lancedb-linux-x64-musl": "0.42.0-beta.1",
118
+ "@lancedb/lancedb-linux-arm64-musl": "0.42.0-beta.1",
119
+ "@lancedb/lancedb-win32-x64-msvc": "0.42.0-beta.1",
120
+ "@lancedb/lancedb-win32-arm64-msvc": "0.42.0-beta.1"
121
121
  },
122
122
  "peerDependencies": {
123
123
  "@types/node": ">=22",