Skip to content

Add worker and browser entry points to package.json#12

Merged
alexmercerpo merged 2 commits into
release/2.3.xfrom
fix-export
Jun 18, 2026
Merged

Add worker and browser entry points to package.json#12
alexmercerpo merged 2 commits into
release/2.3.xfrom
fix-export

Conversation

@alexmercerpo

@alexmercerpo alexmercerpo commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Chores
    • Enhanced module export configurations to enable package usage across worker and browser runtime environments.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 33f099a0-5c90-4ad1-8c16-11989a0244d3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Walkthrough

In libs/vectoriadb/package.json, the exports["."] map is extended with two new condition keys — worker and browser — both resolving to ./dist/src/worker.js. No other metadata or dependencies are modified.

Changes

Package Export Conditions

Layer / File(s) Summary
Add worker and browser export conditions
libs/vectoriadb/package.json
Adds worker: "./dist/src/worker.js" and browser: "./dist/src/worker.js" under exports["."], enabling runtime-aware module resolution for worker and browser environments.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐇 A hop, a skip, two lines appear,
worker and browser now crystal clear.
The exports map grows, the dist file hums,
Ready for wherever the runtime comes.
Thumper approves — this burrow's complete! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and specifically describes the main change: adding worker and browser entry points to the package.json exports configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-export

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@alexmercerpo alexmercerpo changed the base branch from main to release/2.3.x June 18, 2026 22:29

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@libs/vectoriadb/package.json`:
- Around line 36-37: The package.json exports configuration currently uses
"worker" and "browser" conditions that override the default root export (the "."
export) to resolve to worker.js, which has a reduced API surface. This breaks
consumers expecting the full API when importing "vectoriadb" in browser/worker
environments. Instead of using conditional overrides, create explicit additive
entry points by replacing the "worker" and "browser" condition keys with subpath
exports like "./worker" and "./browser" that point to the respective dist files,
while preserving the default root "." export for the full API surface.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1129faa7-8fe6-470e-b764-f684e19172dd

📥 Commits

Reviewing files that changed from the base of the PR and between 1d52f44 and af43190.

📒 Files selected for processing (1)
  • libs/vectoriadb/package.json

Comment thread libs/vectoriadb/package.json
@alexmercerpo alexmercerpo merged commit d04f9ef into release/2.3.x Jun 18, 2026
3 checks passed
@alexmercerpo alexmercerpo deleted the fix-export branch June 18, 2026 23:11
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.

3 participants