Skip to content

Warn when weaviate and/or client are outdated #41

Open

Description

@dirkkul

Some users use very old versions of weaviate and client. We should warn them if it the minor version is 3 or more versions behind the last release.

Eg currently the last Weaviate version is 1.18.3, so we would warn users of 1.15 or below. We could do the same for the client versions.

Activity

  1. added
    good first issue
    help wanted
    on Apr 13, 2023
  2. Abhijithchintu commented on Jul 10, 2023

    @Abhijithchintu
    Contributor

    Hi @dirkkul . Is this issue still open. If it is open, can i work on this issue ?

  3. dirkkul commented on Jul 10, 2023

    @dirkkul
    CollaboratorAuthor

    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

  4. Abhijithchintu commented on Aug 5, 2023

    @Abhijithchintu
    Contributor

    Please review
    #81

  5. tsmith023 commented on Aug 8, 2023

    @tsmith023
    Member

    @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?

  6. Abhijithchintu commented on Aug 8, 2023

    @Abhijithchintu
    Contributor

    Yes , i will work on warning for an outdated client. I have few doubts in that.

    1. how to fetch typescript client version
    2. Should we show the warning for client version (if applicable ) at the same time as weaviate version warning.
  7. tsmith023 commented on Aug 10, 2023

    @tsmith023
    Member

    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.

  8. eskayML commented on Sep 8, 2026

    @eskayML

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions