@lancedb/lancedb 0.41.0-beta.0 → 0.41.0-beta.3

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.
@@ -1,6 +1,7 @@
1
1
  import { Data, SchemaLike, TableLike } from "./arrow";
2
2
  import { EmbeddingFunctionConfig } from "./embedding/registry";
3
3
  import { Job } from "./job";
4
+ import { Listing, ListingOptions } from "./listing";
4
5
  import { MaterializedView, MaterializedViewSelect } from "./materialized_view";
5
6
  import { Connection as LanceDbConnection } from "./native";
6
7
  import type { CreateNamespaceResponse, DescribeNamespaceResponse, DropNamespaceResponse, JobInfo, ListNamespacesResponse, ListTablesResponse } from "./native";
@@ -107,7 +108,7 @@ export interface TableNamesOptions {
107
108
  * the last table name from the previous page.
108
109
  */
109
110
  startAfter?: string;
110
- /** An optional limit to the number of results to return. */
111
+ /** The maximum number of names to return. Omitted returns all names; zero returns none. */
111
112
  limit?: number;
112
113
  }
113
114
  export interface ListTablesOptions {
@@ -120,6 +121,7 @@ export interface ListTablesOptions {
120
121
  pageToken?: string;
121
122
  /**
122
123
  * An upper bound on how many tables to return.
124
+ * Defaults to 100. Zero returns an empty page without a continuation token.
123
125
  *
124
126
  * A page may hold fewer than this and still not be the last one, so keep
125
127
  * going while the response carries a page token rather than while pages are
@@ -276,9 +278,11 @@ export declare abstract class Connection {
276
278
  /**
277
279
  * The names of the materialized views in this database.
278
280
  *
279
- * Found by reading every table's schema, so this costs an open per table.
281
+ * Iterate lazily with `for await...of`. Local listings inspect table schemas
282
+ * one page at a time. Options control page size and the starting token.
283
+ * See {@link Listing} for pagination state and error behavior.
280
284
  */
281
- abstract listMaterializedViews(): Promise<string[]>;
285
+ abstract listMaterializedViews(options?: ListingOptions): Listing<string>;
282
286
  /**
283
287
  * Drop the materialized view named `name`.
284
288
  *
@@ -330,8 +334,10 @@ export declare abstract class Connection {
330
334
  * The names of the views in one namespace.
331
335
  *
332
336
  * Names only; a definition comes from {@link describeView}.
337
+ * Iterate lazily with `for await...of`. See {@link Listing} for pagination
338
+ * state and error behavior; options control page size and the starting token.
333
339
  */
334
- abstract listViews(namespacePath?: string[]): Promise<string[]>;
340
+ abstract listViews(namespacePath?: string[], options?: ListingOptions): Listing<string>;
335
341
  abstract openTable(name: string, namespacePath?: string[], options?: Partial<OpenTableOptions>): Promise<Table>;
336
342
  /**
337
343
  * Creates a new Table and initialize it with new data.
@@ -488,8 +494,12 @@ export declare abstract class Connection {
488
494
  * connection-level call for any of them.
489
495
  */
490
496
  abstract openJob(jobId: string): Promise<Job>;
491
- /** List server-side jobs across the database's tables. */
492
- abstract listJobs(): Promise<JobInfo[]>;
497
+ /**
498
+ * Iterate lazily over server-side jobs across the database's tables.
499
+ * Use `for await...of`. Options control page size and the starting token.
500
+ * See {@link Listing} for pagination state and error behavior.
501
+ */
502
+ abstract listJobs(options?: ListingOptions): Listing<JobInfo>;
493
503
  /**
494
504
  * Request cancellation of a server-side job by id.
495
505
  *
@@ -530,14 +540,14 @@ export declare class LocalConnection extends Connection {
530
540
  withNoData?: boolean;
531
541
  }): Promise<MaterializedView>;
532
542
  openMaterializedView(name: string): Promise<MaterializedView>;
533
- listMaterializedViews(): Promise<string[]>;
543
+ listMaterializedViews(options?: ListingOptions): Listing<string>;
534
544
  dropMaterializedView(name: string, namespacePath?: string[]): Promise<void>;
535
545
  dropMaterializedViewAsync(name: string, namespacePath?: string[]): Promise<Job>;
536
546
  createView(name: string, query: string, namespacePath?: string[]): Promise<ViewDescription>;
537
547
  describeView(name: string, namespacePath?: string[]): Promise<ViewDescription>;
538
548
  dropView(name: string, namespacePath?: string[]): Promise<void>;
539
549
  dropViewAsync(name: string, namespacePath?: string[]): Promise<Job>;
540
- listViews(namespacePath?: string[]): Promise<string[]>;
550
+ listViews(namespacePath?: string[], options?: ListingOptions): Listing<string>;
541
551
  listTables(namespacePathOrOptions?: string[] | Partial<ListTablesOptions>, options?: Partial<ListTablesOptions>): Promise<ListTablesResponse>;
542
552
  openTable(name: string, namespacePath?: string[], options?: Partial<OpenTableOptions>): Promise<Table>;
543
553
  cloneTable(targetTableName: string, sourceUri: string, options?: {
@@ -562,7 +572,7 @@ export declare class LocalConnection extends Connection {
562
572
  dropNamespace(namespacePath: string[], options?: Partial<DropNamespaceOptions>): Promise<DropNamespaceResponse>;
563
573
  renameTable(currentName: string, newName: string, options?: RenameTableOptions): Promise<void>;
564
574
  openJob(jobId: string): Promise<Job>;
565
- listJobs(): Promise<JobInfo[]>;
575
+ listJobs(options?: ListingOptions): Listing<JobInfo>;
566
576
  cancelJob(jobId: string): Promise<boolean>;
567
577
  pauseJob(jobId: string): Promise<string>;
568
578
  resumeJob(jobId: string): Promise<string>;
@@ -8,6 +8,7 @@ const arrow_1 = require("./arrow");
8
8
  const arrow_2 = require("./arrow");
9
9
  const registry_1 = require("./embedding/registry");
10
10
  const job_1 = require("./job");
11
+ const listing_1 = require("./listing");
11
12
  const materialized_view_1 = require("./materialized_view");
12
13
  const view_1 = require("./view");
13
14
  const sanitize_1 = require("./sanitize");
@@ -79,8 +80,9 @@ class LocalConnection extends Connection {
79
80
  const innerTable = await this.inner.openMaterializedView(name);
80
81
  return new materialized_view_1.MaterializedView(new table_1.LocalTable(innerTable));
81
82
  }
82
- async listMaterializedViews() {
83
- return await this.inner.listMaterializedViews();
83
+ listMaterializedViews(options = {}) {
84
+ (0, listing_1.validateListingOptions)(options);
85
+ return new listing_1.Listing(this.inner.listMaterializedViews(options.pageToken, options.pageLimit));
84
86
  }
85
87
  async dropMaterializedView(name, namespacePath) {
86
88
  return this.inner.dropMaterializedView(name, namespacePath ?? []);
@@ -100,8 +102,9 @@ class LocalConnection extends Connection {
100
102
  async dropViewAsync(name, namespacePath) {
101
103
  return new job_1.Job(await this.inner.dropViewAsync(name, namespacePath ?? []));
102
104
  }
103
- async listViews(namespacePath) {
104
- return this.inner.listViews(namespacePath ?? []);
105
+ listViews(namespacePath, options = {}) {
106
+ (0, listing_1.validateListingOptions)(options);
107
+ return new listing_1.Listing(this.inner.listViews(namespacePath ?? [], options.pageToken, options.pageLimit));
105
108
  }
106
109
  async listTables(namespacePathOrOptions, options) {
107
110
  // Detect if first argument is namespacePath array or options object
@@ -243,8 +246,9 @@ class LocalConnection extends Connection {
243
246
  async openJob(jobId) {
244
247
  return new job_1.Job(await this.inner.openJob(jobId));
245
248
  }
246
- async listJobs() {
247
- return this.inner.listJobs();
249
+ listJobs(options = {}) {
250
+ (0, listing_1.validateListingOptions)(options);
251
+ return new listing_1.Listing(this.inner.listJobs(options.pageToken, options.pageLimit));
248
252
  }
249
253
  async cancelJob(jobId) {
250
254
  return this.inner.cancelJob(jobId);
package/dist/index.d.ts CHANGED
@@ -249,3 +249,4 @@ export declare function connectNamespace(implName: "rest", config: RestNamespace
249
249
  */
250
250
  export declare function connectNamespace(implName: string, properties: Record<string, string>, options?: Partial<ConnectNamespaceOptions>): Promise<Connection>;
251
251
  export { Catalog, CatalogOptions, DatabaseNames, connectCatalog, } from "./catalog";
252
+ export { Listing, ListingOptions } from "./listing";
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
  // SPDX-FileCopyrightText: Copyright The LanceDB Authors
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.connectCatalog = exports.DatabaseNames = exports.Catalog = exports.packBits = exports.rerankers = exports.Scannable = exports.PermutationBuilder = exports.permutationBuilder = exports.embedding = exports.MergeInsertBuilder = exports.OAuthSession = exports.OAuthFlowType = exports.ClientAuthMethod = exports.OAuthHeaderProvider = exports.StaticHeaderProvider = exports.HeaderProvider = exports.Branches = exports.Table = exports.Index = exports.Occur = exports.Operator = exports.FullTextQueryType = exports.BooleanQuery = exports.MultiMatchQuery = exports.BoostQuery = exports.PhraseQuery = exports.MatchQuery = exports.RecordBatchIterator = exports.TakeQuery = exports.VectorQuery = exports.QueryBase = exports.Query = exports.AutoQuery = exports.Job = exports.Session = exports.Connection = exports.BlobFile = exports.isBlobField = exports.blob = exports.VectorColumnOptions = exports.MakeArrowTableOptions = exports.makeJsonField = exports.makeArrowTable = exports.BranchContents = exports.TagContents = exports.Tags = exports.instrumentLanceDbMetrics = exports.NativeJsHeaderProvider = exports.MaterializedView = void 0;
5
+ exports.Listing = exports.connectCatalog = exports.DatabaseNames = exports.Catalog = exports.packBits = exports.rerankers = exports.Scannable = exports.PermutationBuilder = exports.permutationBuilder = exports.embedding = exports.MergeInsertBuilder = exports.OAuthSession = exports.OAuthFlowType = exports.ClientAuthMethod = exports.OAuthHeaderProvider = exports.StaticHeaderProvider = exports.HeaderProvider = exports.Branches = exports.Table = exports.Index = exports.Occur = exports.Operator = exports.FullTextQueryType = exports.BooleanQuery = exports.MultiMatchQuery = exports.BoostQuery = exports.PhraseQuery = exports.MatchQuery = exports.RecordBatchIterator = exports.TakeQuery = exports.VectorQuery = exports.QueryBase = exports.Query = exports.AutoQuery = exports.Job = exports.Session = exports.Connection = exports.BlobFile = exports.isBlobField = exports.blob = exports.VectorColumnOptions = exports.MakeArrowTableOptions = exports.makeJsonField = exports.makeArrowTable = exports.BranchContents = exports.TagContents = exports.Tags = exports.instrumentLanceDbMetrics = exports.NativeJsHeaderProvider = exports.MaterializedView = void 0;
6
6
  exports.tokenize = tokenize;
7
7
  exports.connect = connect;
8
8
  exports.connectNamespace = connectNamespace;
@@ -186,3 +186,5 @@ var catalog_1 = require("./catalog");
186
186
  Object.defineProperty(exports, "Catalog", { enumerable: true, get: function () { return catalog_1.Catalog; } });
187
187
  Object.defineProperty(exports, "DatabaseNames", { enumerable: true, get: function () { return catalog_1.DatabaseNames; } });
188
188
  Object.defineProperty(exports, "connectCatalog", { enumerable: true, get: function () { return catalog_1.connectCatalog; } });
189
+ var listing_1 = require("./listing");
190
+ Object.defineProperty(exports, "Listing", { enumerable: true, get: function () { return listing_1.Listing; } });
package/dist/indices.d.ts CHANGED
@@ -453,7 +453,7 @@ export interface IvfFlatOptions {
453
453
  */
454
454
  sampleRate?: number;
455
455
  }
456
- export type BaseTokenizer = "simple" | "whitespace" | "raw" | "ngram" | "icu" | "icu/split" | `jieba/${string}` | `lindera/${string}`;
456
+ export type BaseTokenizer = "simple" | "whitespace" | "raw" | "ngram" | "code" | "icu" | "icu/split" | `jieba/${string}` | `lindera/${string}`;
457
457
  /**
458
458
  * Options to create a full text search index
459
459
  */
@@ -477,6 +477,8 @@ export interface FtsOptions {
477
477
  *
478
478
  * "raw" - Raw tokenizer. This tokenizer does not split the text into tokens and indexes the entire text as a single token.
479
479
  *
480
+ * "code" - Code tokenizer. This tokenizer keeps snake_case and camelCase identifiers as single tokens.
481
+ *
480
482
  * "icu" - ICU dictionary-based word segmentation.
481
483
  *
482
484
  * "icu/split" - ICU segmentation with simple-style delimiter splitting.
@@ -0,0 +1,41 @@
1
+ /** Pagination controls for lazy resource listings. */
2
+ export interface ListingOptions {
3
+ /** Starting continuation token; omitted starts at the beginning. */
4
+ pageToken?: string;
5
+ /** Maximum results per request, not a limit on the whole listing. */
6
+ pageLimit?: number;
7
+ }
8
+ /** @internal */
9
+ export declare function validateListingOptions(options: ListingOptions): void;
10
+ /**
11
+ * A lazy async iterator over database resources with pagination state.
12
+ * Requests occur during iteration; request errors terminate the iterator.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * for await (const name of connection.listViews([], { pageLimit: 20 })) {
17
+ * console.log(name);
18
+ * }
19
+ * ```
20
+ */
21
+ export declare class Listing<T> implements AsyncIterableIterator<T> {
22
+ private readonly inner;
23
+ /** @hidden */
24
+ constructor(inner: {
25
+ next(): Promise<T | null | undefined>;
26
+ numPageResults(): number;
27
+ pageToken(): string | null | undefined;
28
+ });
29
+ [Symbol.asyncIterator](): AsyncIterableIterator<T>;
30
+ /** Fetch the next item, requesting another page only when needed. */
31
+ next(): Promise<IteratorResult<T>>;
32
+ /** Number of cached items available without another request. */
33
+ numPageResults(): number;
34
+ /**
35
+ * Token for the next request. Initially this is the supplied starting token.
36
+ * Returns undefined after fetching the final page, even with cached items.
37
+ * Drain the cache before saving a token to avoid skipping items on resumption.
38
+ * Failed requests terminate iteration and retain their token for a new iterator.
39
+ */
40
+ pageToken(): string | undefined;
41
+ }
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ // SPDX-License-Identifier: Apache-2.0
3
+ // SPDX-FileCopyrightText: Copyright The LanceDB Authors
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.Listing = void 0;
6
+ exports.validateListingOptions = validateListingOptions;
7
+ /** @internal */
8
+ function validateListingOptions(options) {
9
+ if (options.pageLimit !== undefined &&
10
+ (!Number.isInteger(options.pageLimit) ||
11
+ options.pageLimit <= 0 ||
12
+ options.pageLimit > 2147483647)) {
13
+ throw new Error("Listing page limit must be an integer between 1 and 2147483647");
14
+ }
15
+ }
16
+ /**
17
+ * A lazy async iterator over database resources with pagination state.
18
+ * Requests occur during iteration; request errors terminate the iterator.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * for await (const name of connection.listViews([], { pageLimit: 20 })) {
23
+ * console.log(name);
24
+ * }
25
+ * ```
26
+ */
27
+ class Listing {
28
+ inner;
29
+ /** @hidden */
30
+ constructor(inner) {
31
+ this.inner = inner;
32
+ }
33
+ [Symbol.asyncIterator]() {
34
+ return this;
35
+ }
36
+ /** Fetch the next item, requesting another page only when needed. */
37
+ async next() {
38
+ const value = await this.inner.next();
39
+ return value == null
40
+ ? { done: true, value: undefined }
41
+ : { done: false, value };
42
+ }
43
+ /** Number of cached items available without another request. */
44
+ numPageResults() {
45
+ return this.inner.numPageResults();
46
+ }
47
+ /**
48
+ * Token for the next request. Initially this is the supplied starting token.
49
+ * Returns undefined after fetching the final page, even with cached items.
50
+ * Drain the cache before saving a token to avoid skipping items on resumption.
51
+ * Failed requests terminate iteration and retain their token for a new iterator.
52
+ */
53
+ pageToken() {
54
+ return this.inner.pageToken() ?? undefined;
55
+ }
56
+ }
57
+ exports.Listing = Listing;
package/dist/native.d.ts CHANGED
@@ -58,7 +58,7 @@ export declare class Connection {
58
58
  createEmptyTable(name: string, schemaBuf: Buffer, mode: string, namespacePath?: Array<string> | undefined | null, storageOptions?: Record<string, string> | undefined | null): Promise<Table>
59
59
  createMaterializedView(name: string, source: string, projections: Array<Array<string>> | undefined | null, filter: string | undefined | null, limit: number | undefined | null, withNoData: boolean): Promise<Table>
60
60
  openMaterializedView(name: string): Promise<Table>
61
- listMaterializedViews(): Promise<Array<string>>
61
+ listMaterializedViews(pageToken?: string | undefined | null, pageLimit?: number | undefined | null): NameListing
62
62
  /** Drop a materialized view. */
63
63
  dropMaterializedView(name: string, namespacePath?: Array<string> | undefined | null): Promise<void>
64
64
  /** Create a view: a named query planned on every read. */
@@ -73,7 +73,7 @@ export declare class Connection {
73
73
  /** Start dropping a view and return the job deleting its definition. */
74
74
  dropViewAsync(name: string, namespacePath?: Array<string> | undefined | null): Promise<Job>
75
75
  /** The names of the views in one namespace. */
76
- listViews(namespacePath?: Array<string> | undefined | null): Promise<Array<string>>
76
+ listViews(namespacePath?: Array<string> | undefined | null, pageToken?: string | undefined | null, pageLimit?: number | undefined | null): NameListing
77
77
  /** Start dropping a materialized view and return its cleanup job. */
78
78
  dropMaterializedViewAsync(name: string, namespacePath?: Array<string> | undefined | null): Promise<Job>
79
79
  openTable(name: string, namespacePath?: Array<string> | undefined | null, storageOptions?: Record<string, string> | undefined | null, indexCacheSize?: number | undefined | null): Promise<Table>
@@ -93,7 +93,7 @@ export declare class Connection {
93
93
  */
94
94
  openJob(jobId: string): Promise<Job>
95
95
  /** List server-side jobs across the database's tables. */
96
- listJobs(): Promise<Array<JobInfo>>
96
+ listJobs(pageToken?: string | undefined | null, pageLimit?: number | undefined | null): JobListing
97
97
  /**
98
98
  * Request cancellation of a server-side job by id. Returns true if the
99
99
  * server accepted the cancellation, false if no such job exists.
@@ -203,6 +203,12 @@ export declare class Job {
203
203
  events(limit?: number | undefined | null, filter?: string | undefined | null): Promise<Buffer>
204
204
  }
205
205
 
206
+ export declare class JobListing {
207
+ numPageResults(): number
208
+ pageToken(): string | null
209
+ next(): Promise<JobInfo | null>
210
+ }
211
+
206
212
  export declare class JsFullTextQuery {
207
213
  static matchQuery(query: string, column: string, boost: number, fuzziness: number | undefined | null, maxExpansions: number, operator: string, prefixLength: number): JsFullTextQuery
208
214
  static phraseQuery(query: string, column: string, slop: number): JsFullTextQuery
@@ -222,6 +228,12 @@ export declare class JsHeaderProvider {
222
228
  constructor(getHeadersCallback: () => Promise<Record<string, string>>)
223
229
  }
224
230
 
231
+ export declare class NameListing {
232
+ numPageResults(): number
233
+ pageToken(): string | null
234
+ next(): Promise<string | null>
235
+ }
236
+
225
237
  /**
226
238
  * A Rust-side view of a JS-constructed `Scannable`.
227
239
  *
@@ -1345,6 +1357,17 @@ export interface TableStatistics {
1345
1357
  totalBytes: number
1346
1358
  /** The number of rows in the table */
1347
1359
  numRows: number
1360
+ /**
1361
+ * The number of rows marked as deleted across all fragments of the table
1362
+ *
1363
+ * These rows are not included in `numRows`, but still occupy space on disk
1364
+ * until the table is compacted, so a large value here indicates that the
1365
+ * table should be optimized. Fragments in which every row was deleted are
1366
+ * dropped outright, so their rows are not counted here.
1367
+ *
1368
+ * Absent (`undefined`) when the backend does not report deletion counts.
1369
+ */
1370
+ numDeletedRows?: number
1348
1371
  /** The number of indices in the table */
1349
1372
  numIndices: number
1350
1373
  /** Statistics on table fragments */
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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
79
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
98
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
123
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
142
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
162
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
181
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
204
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
222
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
241
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
265
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
284
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
309
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
328
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
349
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
368
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
389
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
408
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
429
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
448
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
469
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
488
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
508
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
527
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
551
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
570
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 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-beta.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-beta.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
589
+ if (bindingPackageVersion !== '0.41.0-beta.3' && 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-beta.3 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`);
591
591
  }
592
592
  return binding;
593
593
  }
@@ -669,8 +669,10 @@ module.exports.Connection = nativeBinding.Connection;
669
669
  module.exports.DatabaseNames = nativeBinding.DatabaseNames;
670
670
  module.exports.Index = nativeBinding.Index;
671
671
  module.exports.Job = nativeBinding.Job;
672
+ module.exports.JobListing = nativeBinding.JobListing;
672
673
  module.exports.JsFullTextQuery = nativeBinding.JsFullTextQuery;
673
674
  module.exports.JsHeaderProvider = nativeBinding.JsHeaderProvider;
675
+ module.exports.NameListing = nativeBinding.NameListing;
674
676
  module.exports.NapiScannable = nativeBinding.NapiScannable;
675
677
  module.exports.NativeMergeInsertBuilder = nativeBinding.NativeMergeInsertBuilder;
676
678
  module.exports.OAuthSession = nativeBinding.OAuthSession;
package/dist/query.d.ts CHANGED
@@ -296,17 +296,16 @@ export declare class VectorQuery extends StandardQueryBase<NativeVectorQuery> {
296
296
  * partitions should be searched.
297
297
  *
298
298
  * Increasing this value will increase the recall of your query but will
299
- * also increase the latency of your query. The default value is 20. This
300
- * default is good for many cases but the best value to use will depend on
301
- * your data and the recall that you need to achieve.
299
+ * also increase the latency of your query. If this method is not called,
300
+ * Lance's adaptive probe defaults are used.
302
301
  *
303
302
  * For best results we recommend tuning this parameter with a benchmark against
304
303
  * your actual data to find the smallest possible value that will still give
305
304
  * you the desired recall.
306
305
  *
307
- * For more fine grained control over behavior when you have a very narrow filter
308
- * you can use `minimumNprobes` and `maximumNprobes`. This method sets both
309
- * the minimum and maximum to the same value.
306
+ * The value is retained as `nprobes` through client and server request
307
+ * construction. Lance sets both probe bounds to this value. Explicit minimum
308
+ * or maximum settings can override their respective bounds.
310
309
  */
311
310
  nprobes(nprobes: number): VectorQuery;
312
311
  /**
package/dist/query.js CHANGED
@@ -423,17 +423,16 @@ class VectorQuery extends StandardQueryBase {
423
423
  * partitions should be searched.
424
424
  *
425
425
  * Increasing this value will increase the recall of your query but will
426
- * also increase the latency of your query. The default value is 20. This
427
- * default is good for many cases but the best value to use will depend on
428
- * your data and the recall that you need to achieve.
426
+ * also increase the latency of your query. If this method is not called,
427
+ * Lance's adaptive probe defaults are used.
429
428
  *
430
429
  * For best results we recommend tuning this parameter with a benchmark against
431
430
  * your actual data to find the smallest possible value that will still give
432
431
  * you the desired recall.
433
432
  *
434
- * For more fine grained control over behavior when you have a very narrow filter
435
- * you can use `minimumNprobes` and `maximumNprobes`. This method sets both
436
- * the minimum and maximum to the same value.
433
+ * The value is retained as `nprobes` through client and server request
434
+ * construction. Lance sets both probe bounds to this value. Explicit minimum
435
+ * or maximum settings can override their respective bounds.
437
436
  */
438
437
  nprobes(nprobes) {
439
438
  this.doVectorCall((inner) => inner.nprobes(nprobes));
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "ann"
12
12
  ],
13
13
  "private": false,
14
- "version": "0.41.0-beta.0",
14
+ "version": "0.41.0-beta.3",
15
15
  "main": "dist/index.js",
16
16
  "exports": {
17
17
  ".": "./dist/index.js",
@@ -110,13 +110,13 @@
110
110
  "optionalDependencies": {
111
111
  "@huggingface/transformers": "3.0.2",
112
112
  "openai": "4.29.2",
113
- "@lancedb/lancedb-darwin-arm64": "0.41.0-beta.0",
114
- "@lancedb/lancedb-linux-x64-gnu": "0.41.0-beta.0",
115
- "@lancedb/lancedb-linux-arm64-gnu": "0.41.0-beta.0",
116
- "@lancedb/lancedb-linux-x64-musl": "0.41.0-beta.0",
117
- "@lancedb/lancedb-linux-arm64-musl": "0.41.0-beta.0",
118
- "@lancedb/lancedb-win32-x64-msvc": "0.41.0-beta.0",
119
- "@lancedb/lancedb-win32-arm64-msvc": "0.41.0-beta.0"
113
+ "@lancedb/lancedb-darwin-arm64": "0.41.0-beta.3",
114
+ "@lancedb/lancedb-linux-x64-gnu": "0.41.0-beta.3",
115
+ "@lancedb/lancedb-linux-arm64-gnu": "0.41.0-beta.3",
116
+ "@lancedb/lancedb-linux-x64-musl": "0.41.0-beta.3",
117
+ "@lancedb/lancedb-linux-arm64-musl": "0.41.0-beta.3",
118
+ "@lancedb/lancedb-win32-x64-msvc": "0.41.0-beta.3",
119
+ "@lancedb/lancedb-win32-arm64-msvc": "0.41.0-beta.3"
120
120
  },
121
121
  "peerDependencies": {
122
122
  "@types/node": ">=22",