Skip to content

Commit c111bf5

Browse files
committed
fix(packages/node): adjust x86_64 platform package names
1 parent 4ad6b28 commit c111bf5

File tree

6 files changed

+50
-50
lines changed

6 files changed

+50
-50
lines changed

packages/node/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ The package automatically downloads the correct native extension for your platfo
2929
| Platform | Architecture | Package |
3030
|----------|-------------|---------|
3131
| macOS | ARM64 (Apple Silicon) | `@sqliteai/sqlite-vector-darwin-arm64` |
32-
| macOS | x64 (Intel) | `@sqliteai/sqlite-vector-darwin-x64` |
32+
| macOS | x86_64 (Intel) | `@sqliteai/sqlite-vector-darwin-x86_64` |
3333
| Linux | ARM64 (glibc) | `@sqliteai/sqlite-vector-linux-arm64` |
3434
| Linux | ARM64 (musl/Alpine) | `@sqliteai/sqlite-vector-linux-arm64-musl` |
35-
| Linux | x64 (glibc) | `@sqliteai/sqlite-vector-linux-x64` |
36-
| Linux | x64 (musl/Alpine) | `@sqliteai/sqlite-vector-linux-x64-musl` |
37-
| Windows | x64 | `@sqliteai/sqlite-vector-win32-x64` |
35+
| Linux | x86_64 (glibc) | `@sqliteai/sqlite-vector-linux-x86_64` |
36+
| Linux | x86_64 (musl/Alpine) | `@sqliteai/sqlite-vector-linux-x86_64-musl` |
37+
| Windows | x86_64 | `@sqliteai/sqlite-vector-win32-x86_64` |
3838

3939
## Usage
4040

@@ -173,12 +173,12 @@ Returns the current platform identifier.
173173

174174
**Returns:** `Platform` - One of:
175175
- `'darwin-arm64'` - macOS ARM64
176-
- `'darwin-x64'` - macOS x64
176+
- `'darwin-x86_64'` - macOS x86_64
177177
- `'linux-arm64'` - Linux ARM64 (glibc)
178178
- `'linux-arm64-musl'` - Linux ARM64 (musl)
179-
- `'linux-x64'` - Linux x64 (glibc)
180-
- `'linux-x64-musl'` - Linux x64 (musl)
181-
- `'win32-x64'` - Windows x64
179+
- `'linux-x86_64'` - Linux x86_64 (glibc)
180+
- `'linux-x86_64-musl'` - Linux x86_64 (musl)
181+
- `'win32-x86_64'` - Windows x86_64
182182

183183
**Throws:** `Error` - If the platform is unsupported
184184

packages/node/generate-platform-packages.js

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* node generate-platform-packages.js <version> <artifacts-dir> <output-dir>
1111
*
1212
* Example:
13-
* node generate-platform-packages.js 0.9.40 ./artifacts ./platform-packages
13+
* node generate-platform-packages.js 0.9.41 ./artifacts ./platform-packages
1414
*/
1515

1616
const fs = require('fs');
@@ -27,12 +27,12 @@ const PLATFORMS = [
2727
artifactFolder: 'vector-macos-arm64',
2828
},
2929
{
30-
name: 'darwin-x64',
30+
name: 'darwin-x86_64',
3131
os: ['darwin'],
32-
cpu: ['x64'],
33-
description: 'SQLite Vector extension for macOS x64 (Intel)',
32+
cpu: ['x64', 'ia32'],
33+
description: 'SQLite Vector extension for macOS x86_64 (Intel)',
3434
binaryName: 'vector.dylib',
35-
artifactFolder: 'vector-macos-x64',
35+
artifactFolder: 'vector-macos-x86_64',
3636
},
3737
{
3838
name: 'linux-arm64',
@@ -51,28 +51,28 @@ const PLATFORMS = [
5151
artifactFolder: 'vector-linux-musl-arm64',
5252
},
5353
{
54-
name: 'linux-x64',
54+
name: 'linux-x86_64',
5555
os: ['linux'],
56-
cpu: ['x64'],
57-
description: 'SQLite Vector extension for Linux x64 (glibc)',
56+
cpu: ['x64', 'ia32'],
57+
description: 'SQLite Vector extension for Linux x86_64 (glibc)',
5858
binaryName: 'vector.so',
59-
artifactFolder: 'vector-linux-x64',
59+
artifactFolder: 'vector-linux-x86_64',
6060
},
6161
{
62-
name: 'linux-x64-musl',
62+
name: 'linux-x86_64-musl',
6363
os: ['linux'],
64-
cpu: ['x64'],
65-
description: 'SQLite Vector extension for Linux x64 (musl)',
64+
cpu: ['x64', 'ia32'],
65+
description: 'SQLite Vector extension for Linux x86_64 (musl)',
6666
binaryName: 'vector.so',
67-
artifactFolder: 'vector-linux-musl-x64',
67+
artifactFolder: 'vector-linux-musl-x86_64',
6868
},
6969
{
70-
name: 'win32-x64',
70+
name: 'win32-x86_64',
7171
os: ['win32'],
72-
cpu: ['x64'],
73-
description: 'SQLite Vector extension for Windows x64',
72+
cpu: ['x64', 'ia32'],
73+
description: 'SQLite Vector extension for Windows x86_64',
7474
binaryName: 'vector.dll',
75-
artifactFolder: 'vector-windows-x64',
75+
artifactFolder: 'vector-windows-x86_64',
7676
},
7777
];
7878

@@ -165,7 +165,7 @@ function main() {
165165

166166
if (args.length < 3) {
167167
console.error('Usage: node generate-platform-packages.js <version> <artifacts-dir> <output-dir>');
168-
console.error('Example: node generate-platform-packages.js 0.9.40 ./artifacts ./platform-packages');
168+
console.error('Example: node generate-platform-packages.js 0.9.41 ./artifacts ./platform-packages');
169169
process.exit(1);
170170
}
171171

@@ -181,7 +181,7 @@ function main() {
181181
// Validate version format
182182
if (!/^\d+\.\d+\.\d+$/.test(version)) {
183183
console.error(`Error: Invalid version format: ${version}`);
184-
console.error('Version must be in semver format (e.g., 0.9.40)');
184+
console.error('Version must be in semver format (e.g., 0.9.41)');
185185
process.exit(1);
186186
}
187187

packages/node/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sqliteai/sqlite-vector",
3-
"version": "0.9.40",
3+
"version": "0.9.41",
44
"description": "SQLite vector search extension for Node.js - Cross-platform vector embeddings and similarity search",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",
@@ -55,13 +55,13 @@
5555
"node": ">=16.0.0"
5656
},
5757
"optionalDependencies": {
58-
"@sqliteai/sqlite-vector-darwin-arm64": "0.9.40",
59-
"@sqliteai/sqlite-vector-darwin-x64": "0.9.40",
60-
"@sqliteai/sqlite-vector-linux-arm64": "0.9.40",
61-
"@sqliteai/sqlite-vector-linux-arm64-musl": "0.9.40",
62-
"@sqliteai/sqlite-vector-linux-x64": "0.9.40",
63-
"@sqliteai/sqlite-vector-linux-x64-musl": "0.9.40",
64-
"@sqliteai/sqlite-vector-win32-x64": "0.9.40"
58+
"@sqliteai/sqlite-vector-darwin-arm64": "0.9.41",
59+
"@sqliteai/sqlite-vector-darwin-x86_64": "0.9.41",
60+
"@sqliteai/sqlite-vector-linux-arm64": "0.9.41",
61+
"@sqliteai/sqlite-vector-linux-arm64-musl": "0.9.41",
62+
"@sqliteai/sqlite-vector-linux-x86_64": "0.9.41",
63+
"@sqliteai/sqlite-vector-linux-x86_64-musl": "0.9.41",
64+
"@sqliteai/sqlite-vector-win32-x86_64": "0.9.41"
6565
},
6666
"devDependencies": {
6767
"@types/node": "^20.0.0",

packages/node/src/index.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ describe('Platform Detection', () => {
1515
const platform = getCurrentPlatform();
1616
const validPlatforms = [
1717
'darwin-arm64',
18-
'darwin-x64',
18+
'darwin-x86_64',
1919
'linux-arm64',
2020
'linux-arm64-musl',
21-
'linux-x64',
22-
'linux-x64-musl',
23-
'win32-x64',
21+
'linux-x86_64',
22+
'linux-x86_64-musl',
23+
'win32-x86_64',
2424
];
2525

2626
assert.ok(
@@ -39,7 +39,7 @@ describe('Platform Detection', () => {
3939

4040
assert.match(
4141
packageName,
42-
/^@sqliteai\/sqlite-vector-(darwin|linux|win32)-(arm64|x64)(-musl)?$/,
42+
/^@sqliteai\/sqlite-vector-(darwin|linux|win32)-(arm64|x86_64)(-musl)?$/,
4343
'Package name should match expected format'
4444
);
4545
});

packages/node/src/platform.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import { execSync } from 'node:child_process';
77
*/
88
export type Platform =
99
| 'darwin-arm64'
10-
| 'darwin-x64'
10+
| 'darwin-x86_64'
1111
| 'linux-arm64'
1212
| 'linux-arm64-musl'
13-
| 'linux-x64'
14-
| 'linux-x64-musl'
15-
| 'win32-x64';
13+
| 'linux-x86_64'
14+
| 'linux-x86_64-musl'
15+
| 'win32-x86_64';
1616

1717
/**
1818
* Binary extension for each platform
@@ -97,7 +97,7 @@ export function getCurrentPlatform(): Platform {
9797
// macOS
9898
if (platformName === 'darwin') {
9999
if (archName === 'arm64') return 'darwin-arm64';
100-
if (archName === 'x64') return 'darwin-x64';
100+
if (archName === 'x86_64') return 'darwin-x86_64';
101101
}
102102

103103
// Linux (with musl detection)
@@ -107,20 +107,20 @@ export function getCurrentPlatform(): Platform {
107107
if (archName === 'arm64') {
108108
return `linux-arm64${muslSuffix}` as Platform;
109109
}
110-
if (archName === 'x64') {
111-
return `linux-x64${muslSuffix}` as Platform;
110+
if (archName === 'x86_64') {
111+
return `linux-x86_64${muslSuffix}` as Platform;
112112
}
113113
}
114114

115115
// Windows
116116
if (platformName === 'win32') {
117-
if (archName === 'x64') return 'win32-x64';
117+
if (archName === 'x86_64') return 'win32-x86_64';
118118
}
119119

120120
// Unsupported platform
121121
throw new Error(
122122
`Unsupported platform: ${platformName}-${archName}. ` +
123-
`Supported platforms: darwin-arm64, darwin-x64, linux-arm64, linux-x64, win32-x64 ` +
123+
`Supported platforms: darwin-arm64, darwin-x86_64, linux-arm64, linux-x86_64, win32-x86_64 ` +
124124
`(with glibc or musl support for Linux)`
125125
);
126126
}

src/sqlite-vector.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
extern "C" {
2525
#endif
2626

27-
#define SQLITE_VECTOR_VERSION "0.9.40"
27+
#define SQLITE_VECTOR_VERSION "0.9.41"
2828

2929
SQLITE_VECTOR_API int sqlite3_vector_init (sqlite3 *db, char **pzErrMsg, const sqlite3_api_routines *pApi);
3030

0 commit comments

Comments
 (0)