Skip to content

Feat/introduce web client - #307

Merged
tsmith023 merged 77 commits into
mainfrom
feat/introduce-web-client
Oct 6, 2026
Merged

tsmith023 merged 77 commits into
mainfrom
feat/introduce-web-client

Conversation

@tsmith023

@tsmith023 tsmith023 commented Jun 20, 2025 •

Copy link
Copy Markdown
Member

- Refactor into a monorepo composed for four packages:
  - @weaviate/core: shared functionality
  - @weaviate/node: Node-client that uses `grpc-js` and `fs`
  - @weaviate/web: Browser-client that uses `nice-grpc` and `FileReader`
  - @weaviate/test: Tests the public APIs of the core/node pkgs
- Replace `jest` with `vitest`
- Use `pnpm` for managing the monorepo
- Use dependency injection to pipe node/browser deps into the common functionality of the client
@tsmith023
tsmith023 requested a review from a team as a code owner June 20, 2025 13:48

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 0   low 0   info 0 View in Orca

@weaviate-git-bot

Copy link
Copy Markdown

Great to see you again! Thanks for the contribution.

beep boop - the Weaviate bot 👋🤖

PS:
Are you already a member of the Weaviate Slack channel?

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Vulnerabilities high 0   medium 1   low 0   info 0 View in Orca
☢️ The following Vulnerabilities (CVEs) have been detected
PACKAGE FILE CVE ID INSTALLED VERSION FIXED VERSION
high ws ./pnpm-lock.yaml CVE-2026-48779 8.18.2 5.2.5, 6.2.4, 7.5.11, 8.21.0 View in code

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Warning SAST high 1   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Failed Failed Vulnerabilities high 2   medium 0   low 0   info 0 View in Orca
🛡️ The following SAST misconfigurations have been detected
NAME FILE
high Regular Expression Injection Vulnerability in User Input ...ts/packages.test.mjs View in code
☢️ The following Vulnerabilities (CVEs) have been detected
PACKAGE FILE CVE ID INSTALLED VERSION FIXED VERSION
high ws ./pnpm-lock.yaml CVE-2026-48779 8.18.2 5.2.5, 6.2.4, 7.5.11, 8.21.0 View in code
high ws ./pnpm-lock.yaml CVE-2026-45736 8.18.2 8.20.1 View in code

Note: The scan should have failed if no policies were configured in warn-only mode.

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Failed Failed Vulnerabilities high 2   medium 0   low 0   info 0 View in Orca
☢️ The following Vulnerabilities (CVEs) have been detected
PACKAGE FILE CVE ID INSTALLED VERSION FIXED VERSION
high ws ./pnpm-lock.yaml CVE-2026-48779 8.18.2 5.2.5, 6.2.4, 7.5.11, 8.21.0 View in code
high ws ./pnpm-lock.yaml CVE-2026-45736 8.18.2 8.20.1 View in code

- re-export interfaces like Aggregate in node/web with their media types specified
- ensure weaviateV2 is only accessible from weaviate-client
- reintroduce client.batch and throw an error if accessed from @weaviate/web
- ensure connection.close() does something in @weaviate/node
- ensure connection.reconnect() uses new transports
- ensure channelOptions are correctly set for @weaviate/node
- add missing retryMiddleware to both pkgs
@tsmith023
tsmith023 requested a review from bevzzz September 23, 2026 15:35

@orca-security-eu orca-security-eu Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Orca Security Scan Summary

Status Check Issues by priority
Passed Passed Infrastructure as Code high 0   medium 0   low 0   info 0 View in Orca
Passed Passed SAST high 0   medium 0   low 0   info 0 View in Orca
Passed Passed Secrets high 0   medium 0   low 0   info 0 View in Orca
Failed Failed Vulnerabilities high 2   medium 1   low 0   info 0 View in Orca
☢️ The following Vulnerabilities (CVEs) have been detected
PACKAGE FILE CVE ID INSTALLED VERSION FIXED VERSION
high @grpc/grpc-js ./pnpm-lock.yaml CVE-2026-101916 1.14.4 1.13.6, 1.14.5 View in code
high ws ./pnpm-lock.yaml CVE-2026-48779 8.18.2 5.2.5, 6.2.4, 7.5.11, 8.21.0 View in code
high ws ./pnpm-lock.yaml CVE-2026-45736 8.18.2 8.20.1 View in code

Comment thread packages/core/src/connection/grpc.ts Resolved
Comment thread packages/core/src/connection/grpc.ts Resolved
Comment thread packages/core/src/connection/grpc.ts Resolved
Comment thread packages/core/src/connection/grpc.ts Resolved
Comment thread packages/core/src/data/batch.ts Resolved
Comment thread packages/core/src/grpc/aggregator.ts Resolved
Comment thread packages/core/src/index.ts Resolved
Comment thread packages/core/src/index.ts Resolved
Comment thread packages/node/src/transports.ts Resolved
Comment thread packages/node/src/transports.ts Resolved

@bevzzz bevzzz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pretty rad that this PR manages to shave ~6K while providing more functionality!

@tsmith023
tsmith023 merged commit 01a87f3 into main Oct 6, 2026
26 of 29 checks passed
@tsmith023
tsmith023 deleted the feat/introduce-web-client branch October 6, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

weaviate-client fails to bundle on Cloudflare Workers due to http2 dependency

5 participants