Repository navigation
feat(js-api): add spanInBytesToSpanInCodeUnits in subpath exports - #9940
Conversation
🦋 Changeset detectedLatest commit: e01e9ef The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
No actionable comments were generated in the recent review. 🎉 ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughA new helper function, spanInBytesToSpanInCodeUnits, has been exported from 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
@dyc3 The import { spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/nodejs"; |
|
@regseb can you explain what's the problem? Why do we need the same function exported by the sub paths too? |
|
#6465 The main export imports the types for the three dependencies: In my project, I only have the dependencies I would like to: import { Biome, spanInBytesToSpanInCodeUnits } from "@biomejs/js-api/nodejs";To reproduce the problem:
|
There was a problem hiding this comment.
Can you please update the readme? I suppose it's something we should at least mention in the docs
|
I've added an example to the README. |
Summary
Export the new
spanInBytesToSpanInCodeUnitsfunction (issue #4035 / PR #8944 / release v6.0.0) to the subpath exports of the@biomejs/js-apipackage.The goal is to have the same exports in both the main and the subpaths.
Test Plan
n/a
Docs
n/a