@lancedb/lancedb 0.14.0-beta.0 → 0.14.0

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/DEVELOPMENT.md ADDED
@@ -0,0 +1,42 @@
1
+ # Development
2
+
3
+ ```sh
4
+ npm run build
5
+ npm run test
6
+ ```
7
+
8
+ ## Running lint / format
9
+
10
+ LanceDb uses [biome](https://biomejs.dev/) for linting and formatting. if you are using VSCode you will need to install the official [Biome](https://marketplace.visualstudio.com/items?itemName=biomejs.biome) extension.
11
+ To manually lint your code you can run:
12
+
13
+ ```sh
14
+ npm run lint
15
+ ```
16
+
17
+ to automatically fix all fixable issues:
18
+
19
+ ```sh
20
+ npm run lint-fix
21
+ ```
22
+
23
+ If you do not have your workspace root set to the `nodejs` directory, unfortunately the extension will not work. You can still run the linting and formatting commands manually.
24
+
25
+ ## Generating docs
26
+
27
+ ```sh
28
+ npm run docs
29
+
30
+ cd ../docs
31
+ # Asssume the virtual environment was created
32
+ # python3 -m venv venv
33
+ # pip install -r requirements.txt
34
+ . ./venv/bin/activate
35
+ mkdocs build
36
+ ```
37
+
38
+ ## Developing examples
39
+
40
+ The `examples` directory contains examples that are shown in the docs. They
41
+ are their own typescript package with their own scripts.
42
+
package/dist/native.d.ts CHANGED
@@ -136,6 +136,18 @@ export interface ColumnAlteration {
136
136
  * This must be distinct from the names of all other columns in the table.
137
137
  */
138
138
  rename?: string
139
+ /**
140
+ * A new data type for the column. If not provided then the data type will not be changed.
141
+ * Changing data types is limited to casting to the same general type. For example, these
142
+ * changes are valid:
143
+ * * `int32` -> `int64` (integers)
144
+ * * `double` -> `float` (floats)
145
+ * * `string` -> `large_string` (strings)
146
+ * But these changes are not:
147
+ * * `int32` -> `double` (mix integers and floats)
148
+ * * `string` -> `int32` (mix strings and integers)
149
+ */
150
+ dataType?: string
139
151
  /** Set the new nullability. Note that a nullable column cannot be made non-nullable. */
140
152
  nullable?: boolean
141
153
  }
package/package.json CHANGED
@@ -10,7 +10,8 @@
10
10
  "vector database",
11
11
  "ann"
12
12
  ],
13
- "version": "0.14.0-beta.0",
13
+ "version": "0.14.0",
14
+ "private": false,
14
15
  "main": "dist/index.js",
15
16
  "exports": {
16
17
  ".": "./dist/index.js",
@@ -30,7 +31,8 @@
30
31
  "aarch64-unknown-linux-gnu",
31
32
  "x86_64-unknown-linux-musl",
32
33
  "aarch64-unknown-linux-musl",
33
- "x86_64-pc-windows-msvc"
34
+ "x86_64-pc-windows-msvc",
35
+ "aarch64-pc-windows-msvc"
34
36
  ]
35
37
  }
36
38
  },
@@ -96,13 +98,14 @@
96
98
  "reflect-metadata": "^0.2.2"
97
99
  },
98
100
  "optionalDependencies": {
99
- "@lancedb/lancedb-darwin-x64": "0.14.0-beta.0",
100
- "@lancedb/lancedb-darwin-arm64": "0.14.0-beta.0",
101
- "@lancedb/lancedb-linux-x64-gnu": "0.14.0-beta.0",
102
- "@lancedb/lancedb-linux-arm64-gnu": "0.14.0-beta.0",
103
- "@lancedb/lancedb-linux-x64-musl": "0.14.0-beta.0",
104
- "@lancedb/lancedb-linux-arm64-musl": "0.14.0-beta.0",
105
- "@lancedb/lancedb-win32-x64-msvc": "0.14.0-beta.0"
101
+ "@lancedb/lancedb-darwin-x64": "0.14.0",
102
+ "@lancedb/lancedb-darwin-arm64": "0.14.0",
103
+ "@lancedb/lancedb-linux-x64-gnu": "0.14.0",
104
+ "@lancedb/lancedb-linux-arm64-gnu": "0.14.0",
105
+ "@lancedb/lancedb-linux-x64-musl": "0.14.0",
106
+ "@lancedb/lancedb-linux-arm64-musl": "0.14.0",
107
+ "@lancedb/lancedb-win32-x64-msvc": "0.14.0",
108
+ "@lancedb/lancedb-win32-arm64-msvc": "0.14.0"
106
109
  },
107
110
  "peerDependencies": {
108
111
  "apache-arrow": ">=13.0.0 <=17.0.0"