-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: change arrow from a direct dependency to a peer dependency #984
refactor: change arrow from a direct dependency to a peer dependency #984
Conversation
Unfortunately, arrow-js makes a lot of
This is because
It will sometimes work, because node's dependency management can sometimes coalesce two dependencies together, but most of the time it will fail. For example, if the user just installs Making this a peer dependency is a bit of a breaking change. By doing so we are saying that vectordb is going to use the users version of apache-arrow. This means there is a single apache-arrow package, which is a good thing, but that package has to satisfy everyone's versioning requirements, which can lead to conflicts. It means that the following will fail, but the error message is hopefully clear.
This is a complicated way of saying "your project is currently configured to use arrow 15. vectordb expects you to have arrow 14 somewhere. We can't fix this". The solution would be to downgrade the arrow to 14. Alternatively (or concurrently) we can work to fix the underlying problem in the upstream codebase. |
…ancedb#984) BREAKING CHANGE: users will now need to npm install `apache-arrow` and `@apache-arrow/ts` themselves.
…984) BREAKING CHANGE: users will now need to npm install `apache-arrow` and `@apache-arrow/ts` themselves.
BREAKING CHANGE: users will now need to npm install
apache-arrow
and@apache-arrow/ts
themselves.