Files
lancedb/docs/web-tests/blob-v2
Will JonesandClaude Opus 5.5 3e712f5105 fix: bump blob v2 docs test to lancedb 0.42.0-beta.20 (#5102)
## Summary

The blob v2 TypeScript docs test pinned `@lancedb/lancedb`
`0.41.0-beta.8`, which pulls `@huggingface/transformers` 3.0.2 and
`sharp` 0.33.5. Aikido flags that `sharp` with 2 critical and 1 high
advisory. Bumping to `0.42.0-beta.20` brings transformers 4.3.2 and
`sharp` 0.35.5, matching what the `nodejs` package already ships. The
stable `0.41.0` still uses transformers 3.0.2, so it doesn't fix this.

## Evidence

`npm install --package-lock-only` reports `found 0 vulnerabilities`, and
`npm test` passes 4/4 locally against `0.42.0-beta.20`.

## Merge Risk

**Door:** two-way; only a docs test lockfile changes.
**Blast Radius:** none (docs test only, not run in PR CI).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 11:25:46 -08:00
..

Blob v2 documentation tests

docs/web-tests/ts pins @lancedb/lancedb 0.31.0 and docs/web-tests/rs pins lancedb 0.31.0. Those releases do not include blob(). Run the Blob v2 examples here.

Python

lancedb==0.41.0b10 from the LanceDB package index, without pylance. PyPI lancedb 0.40.0 does not provide lancedb.blob().

python3.13 -m venv .venv
.venv/bin/pip install -r docs/web-tests/blob-v2/py/requirements.txt
.venv/bin/python -m pytest docs/web-tests/blob-v2/py/test_multimodal.py

test_blob_pylance.py checks custom thresholds and to_pandas() in lazy and bytes mode. Those calls import pylance. Use a second virtualenv. test_multimodal.py fails if lance can be imported. Snippets from this file are written to docs/web/snippets/blob_pylance.mdx.

This install is for the optional tests only. The public guide does not tell users to bypass the dependency resolver. PyPI pylance 13.0.0 requires lance-namespace<0.12, and lancedb==0.41.0b10 requires lance-namespace>=0.13, so lancedb[pylance] does not resolve. The three tests passed with pylance installed after the base requirements, without its own dependency pin.

python3.13 -m venv .venv-pylance
.venv-pylance/bin/pip install -r docs/web-tests/blob-v2/py/requirements.txt
.venv-pylance/bin/pip install --no-deps pylance==13.0.0
.venv-pylance/bin/python -m pytest docs/web-tests/blob-v2/py/test_blob_pylance.py

TypeScript

@lancedb/lancedb@0.41.0-beta.8. Node.js 22.6 or newer. npm test passes --experimental-strip-types, which Node added in 22.6.0.

cd docs/web-tests/blob-v2/ts
npm ci
npm test

Rust

crates.io lancedb 0.40.0 does not include blob(). This example builds the workspace crate, lancedb 0.41.0-beta.10. Pass --features remote so this checkout compiles. The example uses a local database. The Rust workflow runs this example. It is not a default feature, so a workspace build without remote does not turn that feature on for the rest of the workspace.

cargo run -p lancedb-blob-v2-docs --features remote --example multimodal

CI

Python and TypeScript above install preview packages. Pre-release builds are not guaranteed to stay available for more than 6 months, so those runs are not required PR checks. Run them when the guide's pins change. The Rust example is the in-repo check.

Regenerate snippets from the repository root:

python3 docs/web-tests/mdx_snippets_gen.py \
  -s docs/web-tests/py -s docs/web-tests/ts -s docs/web-tests/rs \
  -s docs/web-tests/blob-v2/py -s docs/web-tests/blob-v2/ts -s docs/web-tests/blob-v2/rs \
  -o docs/web/snippets