Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
1fc0d78
Split grpc connection out into node and web impls
tsmith023 Jun 10, 2025
589a0ab
Merge branch 'feat/web-client' of https://github.com/weaviate/typescr…
tsmith023 Jun 17, 2025
f350e2d
Commit changes:
tsmith023 Jun 20, 2025
3cfe9cd
Correct typos in CI
tsmith023 Jun 20, 2025
f088194
Build core in checks step
tsmith023 Jun 20, 2025
487e301
Add `pnpm` to steps, improve `npm run ci` cmd
tsmith023 Jun 20, 2025
69075cb
Change order of pnpm and node installs in CI
tsmith023 Jun 20, 2025
920e09b
Remove ellipsis from intsall cmds
tsmith023 Jun 20, 2025
fa6fe74
Remove `install` script from `package.json` root
tsmith023 Jun 20, 2025
8950c1c
Fix `build:all` typo in CI
tsmith023 Jun 20, 2025
7109d89
Split `npm run ci` script into step-specific cmds
tsmith023 Jun 20, 2025
9ecdd69
Fix `ci:test` script
tsmith023 Jun 20, 2025
6362c4c
Add missing dev deps to @weaviate/test
tsmith023 Jun 20, 2025
b1bab4b
Add missing curveball deps to @weaviate/test
tsmith023 Jun 20, 2025
350a694
Remove `it.only` from config test
tsmith023 Jun 20, 2025
49a0ce1
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 Jun 20, 2025
641c620
Merge branch 'main' of https://github.com/weaviate/typescript-client …
tsmith023 Jun 23, 2026
4c3ac42
Fix issues during merge conflict resolution
tsmith023 Jun 23, 2026
b645a28
Fix packaging
tsmith023 Jun 24, 2026
e911864
Remove erroneous build:core cmd from ci:checks
tsmith023 Jun 24, 2026
68be4c5
Update nice-grpc deps
tsmith023 Jun 24, 2026
91799d4
Add back build:core to ci:checks script
tsmith023 Jun 24, 2026
e4c49a0
Revert changes to `npm run build` too
tsmith023 Jun 24, 2026
60b5557
Update pkgs, fix build errors in tests
tsmith023 Jun 24, 2026
da2934a
More testing fixes
tsmith023 Jun 24, 2026
e3c57f5
Fix more tests
tsmith023 Jun 24, 2026
1ff4dba
Change tests to delete collections specific to theirs rather than all…
tsmith023 Jun 24, 2026
603d773
Fix more tests
tsmith023 Jun 24, 2026
e59c05a
Fix more tests
tsmith023 Jun 24, 2026
12ec0af
Change connection helpers to allow grpc-web over the same host/port a…
tsmith023 Jun 24, 2026
b6993f4
Add simple test of grpc-web working with proposed server impl
tsmith023 Jun 26, 2026
cdb9928
Fix protocl prefix in grpcAddress for !isGrpcWeb
tsmith023 Jun 26, 2026
cada864
Only run web tests with >=1.39.0
tsmith023 Jun 26, 2026
39c322a
Fix mistaken imports in tests
tsmith023 Jun 26, 2026
adbcca5
Fix import in web tests
tsmith023 Jun 26, 2026
c9ae473
Fix asyncEnabled assertion in >=1.38.0
tsmith023 Jun 26, 2026
c01511b
chore(agent): remove node https module from web bundle
iangregson Jun 29, 2026
f033271
chore(): appease the linter
iangregson Jun 29, 2026
848dc23
chore(): fix version import
iangregson Jun 29, 2026
df2c91f
Remove outdated openId validation
tsmith023 Jun 30, 2026
f388619
Add back missing `offline_access` scope to `AuthUserPasswordCredentials`
tsmith023 Jun 30, 2026
bb42b5e
Merge pull request #451 from weaviate/feat/introduce-web-client--remo…
tsmith023 Jun 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 71 additions & 53 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
env:
WEAVIATE_133: 1.33.18
WEAVIATE_134: 1.34.20
WEAVIATE_135: 1.35.16
WEAVIATE_136: 1.36.10
WEAVIATE_137: 1.37.5
WEAVIATE_135: 1.35.23
WEAVIATE_136: 1.36.19
WEAVIATE_137: 1.37.10
WEAVIATE_138: 1.38.2
WEAVIATE_139: 1.39.0-dev-45692cd.amd64

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Expand All @@ -22,15 +24,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: "24.x"
node-version: 24
cache: 'pnpm'
- name: "Run checks"
run: |
npm ci
npm run ci:checks
npm run lint
npm run format:check
npm run docs
npm run build

tests-without-auth:
needs: checks
Expand All @@ -44,63 +51,70 @@ jobs:
{ node: "24.x", weaviate: $WEAVIATE_134 },
{ node: "24.x", weaviate: $WEAVIATE_135 },
{ node: "24.x", weaviate: $WEAVIATE_136 },
{ node: "22.x", weaviate: $WEAVIATE_137 },
{ node: "24.x", weaviate: $WEAVIATE_137 },
{ node: "22.x", weaviate: $WEAVIATE_138 },
{ node: "24.x", weaviate: $WEAVIATE_138 },
{ node: "24.x", weaviate: $WEAVIATE_139 },
]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: ${{ matrix.versions.node }}
- name: Login to Docker Hub
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: "Install dependencies"
run: |
npm ci
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
- name: "Run tests without authentication tests"
run: WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
- name: "Transpile the package"
run: npm run build
- name: "Stop Weaviate"
run: ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: ${{ matrix.versions.node }}
cache: 'pnpm'
- name: Login to Docker Hub
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
uses: docker/login-action@v3
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: "Install dependencies"
run: |
npm run ci:test
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
- name: "Run tests without authentication tests"
run: WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm run test
- name: "Stop Weaviate"
run: ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}

tests-with-auth:
needs: checks
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
versions: [{ node: "24.x", weaviate: $WEAVIATE_137 }]
versions: [{ node: "24.x", weaviate: $WEAVIATE_138 }]
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: ${{ matrix.versions.node }}
- name: Login to Docker Hub
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: "Install dependencies"
run: |
npm ci
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
- name: "Run tests with authentication tests"
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
run: WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm test
- name: "Stop Weaviate"
run: ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: ${{ matrix.versions.node }}
- name: Login to Docker Hub
if: ${{ !github.event.pull_request.head.repo.fork && github.triggering_actor != 'dependabot[bot]' }}
uses: docker/login-action@4907a6ddec9925e35a0a9e82d7399ccc52663121 # v4
with:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_PASSWORD}}
- name: "Install dependencies"
run: |
npm run ci:test
ci/run_dependencies.sh ${{ matrix.versions.weaviate }}
- name: "Run tests with authentication tests"
if: ${{ !github.event.pull_request.head.repo.fork }}
env:
OKTA_DUMMY_CI_PW: ${{ secrets.OKTA_DUMMY_CI_PW }}
WCS_DUMMY_CI_PW: ${{ secrets.WCS_DUMMY_CI_PW }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
OKTA_CLIENT_SECRET: ${{ secrets.OKTA_CLIENT_SECRET }}
run: WEAVIATE_VERSION=${{ matrix.versions.weaviate }} npm run test
- name: "Stop Weaviate"
run: ci/stop_dependencies.sh ${{ matrix.versions.weaviate }}

publish:
needs: [tests-with-auth, tests-without-auth]
Expand All @@ -113,11 +127,15 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
# Setup .npmrc file to publish to npm
- uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4
with:
version: 10
- uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3
with:
node-version: "24.x"
node-version: 24
cache: 'pnpm'
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run ci:publish
- run: npm run build
- run: npm publish
- run: npm run docs
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npm run lint:staged
6 changes: 3 additions & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
src/proto/**/*.ts
dist/**/*
docs/**/*.js
**/proto/**/*.ts
**/dist/**/*
**/docs/**/*.js
1 change: 1 addition & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ services:
DISABLE_TELEMETRY: "true"
DEFAULT_VECTOR_INDEX: "hfresh"
OBJECTS_TTL_DELETE_SCHEDULE: "@hourly"
GRPC_WEB_ENABLED: "true"
contextionary:
environment:
OCCURRENCE_WEIGHT_LINEAR_FACTOR: 0.75
Expand Down
Loading