From 8a52619bc05dd926108e006ebb77540928554933 Mon Sep 17 00:00:00 2001 From: Weston Pace Date: Fri, 23 Feb 2024 14:08:39 -0800 Subject: [PATCH] refactor: change arrow from a direct dependency to a peer dependency (#984) BREAKING CHANGE: users will now need to npm install `apache-arrow` and `@apache-arrow/ts` themselves. --- node/package.json | 6 ++++-- nodejs/package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/node/package.json b/node/package.json index 502f87b6..ec18d629 100644 --- a/node/package.json +++ b/node/package.json @@ -61,11 +61,13 @@ "uuid": "^9.0.0" }, "dependencies": { - "@apache-arrow/ts": "^14.0.2", "@neon-rs/load": "^0.0.74", - "apache-arrow": "^14.0.2", "axios": "^1.4.0" }, + "peerDependencies": { + "@apache-arrow/ts": "^14.0.2", + "apache-arrow": "^14.0.2" + }, "os": [ "darwin", "linux", diff --git a/nodejs/package.json b/nodejs/package.json index 67510d38..ba91b0b8 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -62,7 +62,7 @@ "lancedb-linux-arm64-gnu": "0.4.3", "lancedb-linux-x64-gnu": "0.4.3" }, - "dependencies": { + "peerDependencies": { "apache-arrow": "^15.0.0" } }