@lancedb/lancedb 0.37.1-beta.1 → 0.37.1-beta.2

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.d.ts CHANGED
@@ -766,10 +766,7 @@ export interface LsmWriteSpec {
766
766
  column?: string
767
767
  /** Bucket variant: the number of buckets, in `[1, 1024]`. */
768
768
  numBuckets?: number
769
- /**
770
- * Indexes the MemWAL keeps up to date. Omitted resolves every
771
- * maintainable index on install; an empty array means none.
772
- */
769
+ /** Names of indexes the MemWAL should keep up to date during writes. */
773
770
  maintainedIndexes?: Array<string>
774
771
  /** Default `ShardWriter` configuration recorded in the MemWAL index. */
775
772
  writerConfigDefaults?: Record<string, string>
@@ -977,7 +974,12 @@ export interface SplitSequentialOptions {
977
974
  }
978
975
 
979
976
  export interface TableStatistics {
980
- /** The total number of bytes in the table */
977
+ /**
978
+ * The total size, in bytes, of the table's data files, index files, and
979
+ * overlay files
980
+ *
981
+ * Read from the manifest, so this excludes deletion files and manifests.
982
+ */
981
983
  totalBytes: number
982
984
  /** The number of rows in the table */
983
985
  numRows: number
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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
98
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
142
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
181
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
284
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
328
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
429
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
448
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
469
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
488
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
508
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
527
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
551
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
570
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 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.37.1-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.37.1-beta.1 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
589
+ if (bindingPackageVersion !== '0.37.1-beta.2' && 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.37.1-beta.2 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
591
591
  }
592
592
  return binding;
593
593
  }
@@ -17,7 +17,7 @@ export declare function sanitizeFixedSizeBinary(typeLike: object): FixedSizeBina
17
17
  export declare function sanitizeFixedSizeList(typeLike: object): FixedSizeList<any>;
18
18
  export declare function sanitizeMap(typeLike: object): Map_<any, any>;
19
19
  export declare function sanitizeDuration(typeLike: object): Duration<Type.Duration | Type.DurationSecond | Type.DurationMillisecond | Type.DurationMicrosecond | Type.DurationNanosecond>;
20
- export declare function sanitizeDictionary(typeLike: object): Dictionary<DataType<any, any>, TKeys>;
20
+ export declare function sanitizeDictionary(typeLike: object): Dictionary<DataType<Type, any>, TKeys>;
21
21
  export declare function sanitizeType(typeLike: unknown): DataType<any>;
22
22
  export declare function sanitizeField(fieldLike: unknown): Field;
23
23
  /**
package/dist/sanitize.js CHANGED
@@ -34,6 +34,13 @@ exports.dataTypeFromName = dataTypeFromName;
34
34
  // and so we must sanitize the input to ensure that it is compatible.
35
35
  const apache_arrow_1 = require("apache-arrow");
36
36
  const arrow_1 = require("./arrow");
37
+ function createSanitizationContext() {
38
+ return {
39
+ types: new WeakMap(),
40
+ vectors: new WeakMap(),
41
+ data: new WeakMap(),
42
+ };
43
+ }
37
44
  function sanitizeMetadata(metadataLike) {
38
45
  if (metadataLike === undefined || metadataLike === null) {
39
46
  return undefined;
@@ -115,21 +122,30 @@ function sanitizeInterval(typeLike) {
115
122
  return new arrow_1.Interval(typeLike.unit);
116
123
  }
117
124
  function sanitizeList(typeLike) {
125
+ return sanitizeListWithContext(typeLike, createSanitizationContext());
126
+ }
127
+ function sanitizeListWithContext(typeLike, context) {
118
128
  if (!("children" in typeLike) || !Array.isArray(typeLike.children)) {
119
129
  throw Error("Expected a List type to have an array-like `children` property");
120
130
  }
121
131
  if (typeLike.children.length !== 1) {
122
132
  throw Error("Expected a List type to have exactly one child");
123
133
  }
124
- return new arrow_1.List(sanitizeField(typeLike.children[0]));
134
+ return new arrow_1.List(sanitizeFieldWithContext(typeLike.children[0], context));
125
135
  }
126
136
  function sanitizeStruct(typeLike) {
137
+ return sanitizeStructWithContext(typeLike, createSanitizationContext());
138
+ }
139
+ function sanitizeStructWithContext(typeLike, context) {
127
140
  if (!("children" in typeLike) || !Array.isArray(typeLike.children)) {
128
141
  throw Error("Expected a Struct type to have an array-like `children` property");
129
142
  }
130
- return new arrow_1.Struct(typeLike.children.map((child) => sanitizeField(child)));
143
+ return new arrow_1.Struct(typeLike.children.map((child) => sanitizeFieldWithContext(child, context)));
131
144
  }
132
145
  function sanitizeUnion(typeLike) {
146
+ return sanitizeUnionWithContext(typeLike, createSanitizationContext());
147
+ }
148
+ function sanitizeUnionWithContext(typeLike, context) {
133
149
  if (!("typeIds" in typeLike) ||
134
150
  !("mode" in typeLike) ||
135
151
  typeof typeLike.mode !== "number") {
@@ -140,18 +156,23 @@ function sanitizeUnion(typeLike) {
140
156
  }
141
157
  return new arrow_1.Union(typeLike.mode,
142
158
  // biome-ignore lint/suspicious/noExplicitAny: skip
143
- typeLike.typeIds, typeLike.children.map((child) => sanitizeField(child)));
159
+ typeLike.typeIds, typeLike.children.map((child) => sanitizeFieldWithContext(child, context)));
144
160
  }
145
161
  function sanitizeTypedUnion(typeLike,
146
162
  // eslint-disable-next-line @typescript-eslint/naming-convention
147
163
  UnionType) {
164
+ return sanitizeTypedUnionWithContext(typeLike, UnionType, createSanitizationContext());
165
+ }
166
+ function sanitizeTypedUnionWithContext(typeLike,
167
+ // eslint-disable-next-line @typescript-eslint/naming-convention
168
+ UnionType, context) {
148
169
  if (!("typeIds" in typeLike)) {
149
170
  throw Error("Expected a DenseUnion/SparseUnion type to have a `typeIds` property");
150
171
  }
151
172
  if (!("children" in typeLike) || !Array.isArray(typeLike.children)) {
152
173
  throw Error("Expected a DenseUnion/SparseUnion type to have an array-like `children` property");
153
174
  }
154
- return new UnionType(typeLike.typeIds, typeLike.children.map((child) => sanitizeField(child)));
175
+ return new UnionType(typeLike.typeIds, typeLike.children.map((child) => sanitizeFieldWithContext(child, context)));
155
176
  }
156
177
  function sanitizeFixedSizeBinary(typeLike) {
157
178
  if (!("byteWidth" in typeLike) || typeof typeLike.byteWidth !== "number") {
@@ -160,6 +181,9 @@ function sanitizeFixedSizeBinary(typeLike) {
160
181
  return new arrow_1.FixedSizeBinary(typeLike.byteWidth);
161
182
  }
162
183
  function sanitizeFixedSizeList(typeLike) {
184
+ return sanitizeFixedSizeListWithContext(typeLike, createSanitizationContext());
185
+ }
186
+ function sanitizeFixedSizeListWithContext(typeLike, context) {
163
187
  if (!("listSize" in typeLike) || typeof typeLike.listSize !== "number") {
164
188
  throw Error("Expected a FixedSizeList type to have a `listSize` property");
165
189
  }
@@ -169,9 +193,12 @@ function sanitizeFixedSizeList(typeLike) {
169
193
  if (typeLike.children.length !== 1) {
170
194
  throw Error("Expected a FixedSizeList type to have exactly one child");
171
195
  }
172
- return new arrow_1.FixedSizeList(typeLike.listSize, sanitizeField(typeLike.children[0]));
196
+ return new arrow_1.FixedSizeList(typeLike.listSize, sanitizeFieldWithContext(typeLike.children[0], context));
173
197
  }
174
198
  function sanitizeMap(typeLike) {
199
+ return sanitizeMapWithContext(typeLike, createSanitizationContext());
200
+ }
201
+ function sanitizeMapWithContext(typeLike, context) {
175
202
  if (!("children" in typeLike) || !Array.isArray(typeLike.children)) {
176
203
  throw Error("Expected a Map type to have an array-like `children` property");
177
204
  }
@@ -181,7 +208,7 @@ function sanitizeMap(typeLike) {
181
208
  if (typeLike.children.length !== 1) {
182
209
  throw Error("Expected a Map type to have exactly one child");
183
210
  }
184
- return new arrow_1.Map_(sanitizeField(typeLike.children[0]), typeLike.keysSorted);
211
+ return new arrow_1.Map_(sanitizeFieldWithContext(typeLike.children[0], context), typeLike.keysSorted);
185
212
  }
186
213
  function sanitizeDuration(typeLike) {
187
214
  if (!("unit" in typeLike) || typeof typeLike.unit !== "number") {
@@ -190,6 +217,9 @@ function sanitizeDuration(typeLike) {
190
217
  return new arrow_1.Duration(typeLike.unit);
191
218
  }
192
219
  function sanitizeDictionary(typeLike) {
220
+ return sanitizeDictionaryWithContext(typeLike, createSanitizationContext());
221
+ }
222
+ function sanitizeDictionaryWithContext(typeLike, context) {
193
223
  if (!("id" in typeLike) || typeof typeLike.id !== "number") {
194
224
  throw Error("Expected a Dictionary type to have an `id` property");
195
225
  }
@@ -202,16 +232,23 @@ function sanitizeDictionary(typeLike) {
202
232
  if (!("isOrdered" in typeLike) || typeof typeLike.isOrdered !== "boolean") {
203
233
  throw Error("Expected a Dictionary type to have an `isOrdered` property");
204
234
  }
205
- return new arrow_1.Dictionary(sanitizeType(typeLike.dictionary), sanitizeType(typeLike.indices), typeLike.id, typeLike.isOrdered);
235
+ return new arrow_1.Dictionary(sanitizeTypeWithContext(typeLike.dictionary, context), sanitizeTypeWithContext(typeLike.indices, context), typeLike.id, typeLike.isOrdered);
206
236
  }
207
237
  // biome-ignore lint/suspicious/noExplicitAny: skip
208
238
  function sanitizeType(typeLike) {
239
+ return sanitizeTypeWithContext(typeLike, createSanitizationContext());
240
+ }
241
+ function sanitizeTypeWithContext(typeLike, context) {
209
242
  if (typeof typeLike === "string") {
210
243
  return dataTypeFromName(typeLike);
211
244
  }
212
245
  if (typeof typeLike !== "object" || typeLike === null) {
213
246
  throw Error("Expected a Type but object was null/undefined");
214
247
  }
248
+ const cached = context.types.get(typeLike);
249
+ if (cached !== undefined) {
250
+ return cached;
251
+ }
215
252
  if (!("typeId" in typeLike) ||
216
253
  !(typeof typeLike.typeId !== "function" ||
217
254
  typeof typeLike.typeId !== "number")) {
@@ -227,6 +264,11 @@ function sanitizeType(typeLike) {
227
264
  else {
228
265
  throw Error("Type's typeId property was not a function or number");
229
266
  }
267
+ const type = sanitizeTypeById(typeLike, typeId, context);
268
+ context.types.set(typeLike, type);
269
+ return type;
270
+ }
271
+ function sanitizeTypeById(typeLike, typeId, context) {
230
272
  switch (typeId) {
231
273
  case arrow_1.Type.NONE:
232
274
  throw Error("Received a Type with a typeId of NONE");
@@ -253,21 +295,21 @@ function sanitizeType(typeLike) {
253
295
  case arrow_1.Type.Interval:
254
296
  return sanitizeInterval(typeLike);
255
297
  case arrow_1.Type.List:
256
- return sanitizeList(typeLike);
298
+ return sanitizeListWithContext(typeLike, context);
257
299
  case arrow_1.Type.Struct:
258
- return sanitizeStruct(typeLike);
300
+ return sanitizeStructWithContext(typeLike, context);
259
301
  case arrow_1.Type.Union:
260
- return sanitizeUnion(typeLike);
302
+ return sanitizeUnionWithContext(typeLike, context);
261
303
  case arrow_1.Type.FixedSizeBinary:
262
304
  return sanitizeFixedSizeBinary(typeLike);
263
305
  case arrow_1.Type.FixedSizeList:
264
- return sanitizeFixedSizeList(typeLike);
306
+ return sanitizeFixedSizeListWithContext(typeLike, context);
265
307
  case arrow_1.Type.Map:
266
- return sanitizeMap(typeLike);
308
+ return sanitizeMapWithContext(typeLike, context);
267
309
  case arrow_1.Type.Duration:
268
310
  return sanitizeDuration(typeLike);
269
311
  case arrow_1.Type.Dictionary:
270
- return sanitizeDictionary(typeLike);
312
+ return sanitizeDictionaryWithContext(typeLike, context);
271
313
  case arrow_1.Type.Int8:
272
314
  return new arrow_1.Int8();
273
315
  case arrow_1.Type.Int16:
@@ -311,9 +353,9 @@ function sanitizeType(typeLike) {
311
353
  case arrow_1.Type.TimestampSecond:
312
354
  return sanitizeTypedTimestamp(typeLike, arrow_1.TimestampSecond);
313
355
  case arrow_1.Type.DenseUnion:
314
- return sanitizeTypedUnion(typeLike, arrow_1.DenseUnion);
356
+ return sanitizeTypedUnionWithContext(typeLike, arrow_1.DenseUnion, context);
315
357
  case arrow_1.Type.SparseUnion:
316
- return sanitizeTypedUnion(typeLike, arrow_1.SparseUnion);
358
+ return sanitizeTypedUnionWithContext(typeLike, arrow_1.SparseUnion, context);
317
359
  case arrow_1.Type.IntervalDayTime:
318
360
  return new arrow_1.IntervalDayTime();
319
361
  case arrow_1.Type.IntervalYearMonth:
@@ -331,6 +373,9 @@ function sanitizeType(typeLike) {
331
373
  }
332
374
  }
333
375
  function sanitizeField(fieldLike) {
376
+ return sanitizeFieldWithContext(fieldLike, createSanitizationContext());
377
+ }
378
+ function sanitizeFieldWithContext(fieldLike, context) {
334
379
  if (fieldLike instanceof arrow_1.Field) {
335
380
  return fieldLike;
336
381
  }
@@ -344,7 +389,7 @@ function sanitizeField(fieldLike) {
344
389
  }
345
390
  let type;
346
391
  try {
347
- type = sanitizeType(fieldLike.type);
392
+ type = sanitizeTypeWithContext(fieldLike.type, context);
348
393
  }
349
394
  catch (error) {
350
395
  throw Error(`Unable to sanitize type for field: ${fieldLike.name} due to error: ${error}`, { cause: error });
@@ -371,6 +416,9 @@ function sanitizeField(fieldLike) {
371
416
  * than lancedb is using.
372
417
  */
373
418
  function sanitizeSchema(schemaLike) {
419
+ return sanitizeSchemaWithContext(schemaLike, createSanitizationContext());
420
+ }
421
+ function sanitizeSchemaWithContext(schemaLike, context) {
374
422
  if (schemaLike instanceof arrow_1.Schema) {
375
423
  return schemaLike;
376
424
  }
@@ -387,7 +435,7 @@ function sanitizeSchema(schemaLike) {
387
435
  if (!Array.isArray(schemaLike.fields)) {
388
436
  throw Error("The schema passed in had a 'fields' property but it was not an array");
389
437
  }
390
- const sanitizedFields = schemaLike.fields.map((field) => sanitizeField(field));
438
+ const sanitizedFields = schemaLike.fields.map((field) => sanitizeFieldWithContext(field, context));
391
439
  return new arrow_1.Schema(sanitizedFields, metadata);
392
440
  }
393
441
  function sanitizeTable(tableLike) {
@@ -403,11 +451,12 @@ function sanitizeTable(tableLike) {
403
451
  if (!("batches" in tableLike)) {
404
452
  throw Error("The table passed in does not appear to be a table (no 'columns' property)");
405
453
  }
406
- const schema = sanitizeSchema(tableLike.schema);
407
- const batches = tableLike.batches.map(sanitizeRecordBatch);
454
+ const context = createSanitizationContext();
455
+ const schema = sanitizeSchemaWithContext(tableLike.schema, context);
456
+ const batches = tableLike.batches.map((batch) => sanitizeRecordBatch(batch, context));
408
457
  return new arrow_1.Table(schema, batches);
409
458
  }
410
- function sanitizeRecordBatch(batchLike) {
459
+ function sanitizeRecordBatch(batchLike, context) {
411
460
  if (batchLike instanceof arrow_1.RecordBatch) {
412
461
  return batchLike;
413
462
  }
@@ -420,20 +469,35 @@ function sanitizeRecordBatch(batchLike) {
420
469
  if (!("data" in batchLike)) {
421
470
  throw Error("The record batch passed in does not appear to be a record batch (no 'data' property)");
422
471
  }
423
- const schema = sanitizeSchema(batchLike.schema);
424
- const data = sanitizeData(batchLike.data);
472
+ const schema = sanitizeSchemaWithContext(batchLike.schema, context);
473
+ const data = sanitizeData(batchLike.data, context);
425
474
  return new arrow_1.RecordBatch(schema, data);
426
475
  }
427
- function sanitizeData(dataLike) {
476
+ function sanitizeData(dataLike, context) {
428
477
  if (dataLike instanceof apache_arrow_1.Data) {
429
478
  return dataLike;
430
479
  }
431
- return new apache_arrow_1.Data(dataLike.type, dataLike.offset, dataLike.length, dataLike.nullCount, {
480
+ const cachedData = context.data.get(dataLike);
481
+ if (cachedData !== undefined) {
482
+ return cachedData;
483
+ }
484
+ const dictionaryLike = dataLike.dictionary;
485
+ let dictionary;
486
+ if (dictionaryLike !== undefined) {
487
+ dictionary = context.vectors.get(dictionaryLike);
488
+ if (dictionary === undefined) {
489
+ dictionary = new apache_arrow_1.Vector(dictionaryLike.data.map((data) => sanitizeData(data, context)));
490
+ context.vectors.set(dictionaryLike, dictionary);
491
+ }
492
+ }
493
+ const data = new apache_arrow_1.Data(sanitizeTypeWithContext(dataLike.type, context), dataLike.offset, dataLike.length, dataLike.nullCount, {
432
494
  [apache_arrow_1.BufferType.OFFSET]: dataLike.valueOffsets,
433
495
  [apache_arrow_1.BufferType.DATA]: dataLike.values,
434
496
  [apache_arrow_1.BufferType.VALIDITY]: dataLike.nullBitmap,
435
497
  [apache_arrow_1.BufferType.TYPE]: dataLike.typeIds,
436
- });
498
+ }, dataLike.children.map((child) => sanitizeData(child, context)), dictionary);
499
+ context.data.set(dataLike, data);
500
+ return data;
437
501
  }
438
502
  const constructorsByTypeName = {
439
503
  null: () => new arrow_1.Null(),
package/dist/table.d.ts CHANGED
@@ -142,11 +142,7 @@ export interface LsmWriteSpec {
142
142
  column?: string;
143
143
  /** Bucket variant: the number of buckets, in `[1, 1024]`. */
144
144
  numBuckets?: number;
145
- /**
146
- * Indexes the MemWAL keeps up to date. Omit to maintain every supported
147
- * index, resolved on install — a snapshot, so indexes created later are not
148
- * maintained. Pass `[]` for none.
149
- */
145
+ /** Names of indexes the MemWAL should keep up to date during writes. */
150
146
  maintainedIndexes?: string[];
151
147
  /** Default `ShardWriter` configuration recorded in the MemWAL index. */
152
148
  writerConfigDefaults?: Record<string, string>;
@@ -497,11 +493,6 @@ export declare abstract class Table {
497
493
  * All variants require the table to have an unenforced primary key
498
494
  * ({@link Table#setUnenforcedPrimaryKey}); bucket sharding additionally
499
495
  * requires it to be the single column being bucketed.
500
- *
501
- * Omitting `maintainedIndexes` maintains every index on the table, resolved
502
- * here, failing if one cannot be maintained — name them to install anyway.
503
- * Naming them pins an exact set, and a still-building index is rejected
504
- * rather than quietly omitted.
505
496
  * @param {LsmWriteSpec} spec The sharding spec to install.
506
497
  * @returns {Promise<void>}
507
498
  * @example
@@ -529,10 +520,9 @@ export declare abstract class Table {
529
520
  *
530
521
  * Resolves to `undefined` when the MemWAL LSM write path is not enabled (no
531
522
  * spec has been set, or it was removed with {@link Table#unsetLsmWriteSpec}).
532
- * The returned spec mirrors what was passed to
533
- * {@link Table#setLsmWriteSpec}, except that `maintainedIndexes` always
534
- * reports the concrete list resolved when the spec was set — `undefined`
535
- * never round-trips.
523
+ * The returned spec including its `maintainedIndexes` and
524
+ * `writerConfigDefaults` mirrors what was passed to
525
+ * {@link Table#setLsmWriteSpec}.
536
526
  * @returns {Promise<LsmWriteSpec | undefined>}
537
527
  */
538
528
  abstract getLsmWriteSpec(): Promise<LsmWriteSpec | undefined>;
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "ann"
12
12
  ],
13
13
  "private": false,
14
- "version": "0.37.1-beta.1",
14
+ "version": "0.37.1-beta.2",
15
15
  "main": "dist/index.js",
16
16
  "exports": {
17
17
  ".": "./dist/index.js",
@@ -106,13 +106,13 @@
106
106
  "optionalDependencies": {
107
107
  "@huggingface/transformers": "3.0.2",
108
108
  "openai": "4.29.2",
109
- "@lancedb/lancedb-darwin-arm64": "0.37.1-beta.1",
110
- "@lancedb/lancedb-linux-x64-gnu": "0.37.1-beta.1",
111
- "@lancedb/lancedb-linux-arm64-gnu": "0.37.1-beta.1",
112
- "@lancedb/lancedb-linux-x64-musl": "0.37.1-beta.1",
113
- "@lancedb/lancedb-linux-arm64-musl": "0.37.1-beta.1",
114
- "@lancedb/lancedb-win32-x64-msvc": "0.37.1-beta.1",
115
- "@lancedb/lancedb-win32-arm64-msvc": "0.37.1-beta.1"
109
+ "@lancedb/lancedb-darwin-arm64": "0.37.1-beta.2",
110
+ "@lancedb/lancedb-linux-x64-gnu": "0.37.1-beta.2",
111
+ "@lancedb/lancedb-linux-arm64-gnu": "0.37.1-beta.2",
112
+ "@lancedb/lancedb-linux-x64-musl": "0.37.1-beta.2",
113
+ "@lancedb/lancedb-linux-arm64-musl": "0.37.1-beta.2",
114
+ "@lancedb/lancedb-win32-x64-msvc": "0.37.1-beta.2",
115
+ "@lancedb/lancedb-win32-arm64-msvc": "0.37.1-beta.2"
116
116
  },
117
117
  "peerDependencies": {
118
118
  "@types/node": ">=18",