You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Abhijithchintu, thanks for the contribution! #81 is now merged, which covers warning for outdated Weaviate. Warning for an outdated client is still open, would you like to open a PR for that also?
In the Python client, the version of the package is obtained here, this is then used here when instantiating a Connection object alongside the check for the Weaviate server version.
I would say we follow a similar logic for the TypeScript client so warn of outdated client in the same place as warning for outdated server. For retrieving the version, there are concerns in TypeScript around revealing the entire package.json file to the browser when this client is used in frontend apps. As such, the recommendation here should be followed.
This prebuild script will be used within other build, test, and package scripts to ensure the version is always up-to-date without compromising the security of the package.json file.
i'll take the client side of this. the server warning shipped in #81, this half never did.
checked current main. WEAVIATE_CLIENT_VERSION is written by scripts/gen-version.mjs into src/version.ts but it's only used for the X-Weaviate-Client header. nothing checks if the client itself is behind.
plan is to pull the latest version from npm once per process on connect and warn when we sit 3+ minor versions behind. silent on failure, offline or ci. node only though. runtime registry calls in a browser bundle are the reason this stalled, i don't want to add that without a proper discussion.
Activity
Abhijithchintu commentedon Jul 10, 2023
Hi @dirkkul . Is this issue still open. If it is open, can i work on this issue ?
dirkkul commentedon Jul 10, 2023
Hi, yes this is still open!
Here are the python PRs that implemeted that functionality:
weaviate/weaviate-python-client#343
weaviate/weaviate-python-client#299
Abhijithchintu commentedon Aug 5, 2023
Please review
#81
tsmith023 commentedon Aug 8, 2023
@Abhijithchintu, thanks for the contribution! #81 is now merged, which covers warning for outdated Weaviate. Warning for an outdated client is still open, would you like to open a PR for that also?
Abhijithchintu commentedon Aug 8, 2023
Yes , i will work on warning for an outdated client. I have few doubts in that.
tsmith023 commentedon Aug 10, 2023
In the Python client, the version of the package is obtained here, this is then used here when instantiating a
Connectionobject alongside the check for the Weaviate server version.I would say we follow a similar logic for the TypeScript client so warn of outdated client in the same place as warning for outdated server. For retrieving the version, there are concerns in TypeScript around revealing the entire
package.jsonfile to the browser when this client is used in frontend apps. As such, the recommendation here should be followed.This
prebuildscript will be used within other build, test, and package scripts to ensure the version is always up-to-date without compromising the security of thepackage.jsonfile.eskayML commentedon Sep 8, 2026
i'll take the client side of this. the server warning shipped in #81, this half never did.
checked current main. WEAVIATE_CLIENT_VERSION is written by scripts/gen-version.mjs into src/version.ts but it's only used for the X-Weaviate-Client header. nothing checks if the client itself is behind.
plan is to pull the latest version from npm once per process on connect and warn when we sit 3+ minor versions behind. silent on failure, offline or ci. node only though. runtime registry calls in a browser bundle are the reason this stalled, i don't want to add that without a proper discussion.
want me to open the pr scoped to node?