fix(editor): downgrade rbush to v3 for CJS compatibility#7905
Merged
MitjaBezensek merged 1 commit intomainfrom Feb 13, 2026
Merged
fix(editor): downgrade rbush to v3 for CJS compatibility#7905MitjaBezensek merged 1 commit intomainfrom
MitjaBezensek merged 1 commit intomainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
5 Skipped Deployments
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
packages/editor/src/lib/editor/managers/SpatialIndexManager/RBushIndex.ts
Outdated
Show resolved
Hide resolved
28e2f36 to
f1dd587
Compare
huppy-bot bot
pushed a commit
that referenced
this pull request
Feb 13, 2026
Downgrade `rbush` from v4 (ESM-only) to v3 (CJS-compatible) to fix CJS environments (tsx, ts-node, Jest). v3→v4 only changed the module format with no API changes, so downgrading is safe. [Context](https://discord.com/channels/859816885297741824/1471626494022389810). ### Change type - [x] `bugfix` ### Test plan 1. All existing editor tests pass 2. Build output (CJS + ESM) works correctly 3. `node --import tsx -e "const { RBushIndex } = require('./packages/editor/src/lib/editor/managers/SpatialIndexManager/RBushIndex.ts'); new RBushIndex()"` now works ### Release notes - Fix tldraw failing to load in CJS environments (tsx, ts-node, Jest) due to ESM-only rbush dependency
huppy-bot bot
added a commit
that referenced
this pull request
Feb 13, 2026
This is an automated hotfix for dotcom deployment. Original PR: #7905 Original Author: @MitjaBezensek
2 tasks
github-merge-queue bot
pushed a commit
that referenced
this pull request
Feb 14, 2026
In order to keep the release notes current for the upcoming SDK release, this PR updates `apps/docs/content/releases/next.mdx` with documentation for recently merged changes. ### Changes - Add "What's new" section for the experimental `onDropOnCanvas` canvas drop handler (#7911) - Add API change entry for `TldrawOptions.experimental__onDropOnCanvas` - Update release intro paragraph to mention the new drop handler - Add bug fix entry for CJS compatibility regression from ESM-only rbush (#7905) - Add bug fix entry for zero pen pressure on tablets affecting draw shapes (#5693) ### Change type - [x] `docs` ### Test plan - [ ] Verify the release notes render correctly on the docs site ### Release notes - Update next release notes with experimental canvas drop handler, CJS fix, and tablet pressure fix
huppy-bot bot
pushed a commit
that referenced
this pull request
Feb 14, 2026
In order to keep the release notes current for the upcoming SDK release, this PR updates `apps/docs/content/releases/next.mdx` with documentation for recently merged changes. ### Changes - Add "What's new" section for the experimental `onDropOnCanvas` canvas drop handler (#7911) - Add API change entry for `TldrawOptions.experimental__onDropOnCanvas` - Update release intro paragraph to mention the new drop handler - Add bug fix entry for CJS compatibility regression from ESM-only rbush (#7905) - Add bug fix entry for zero pen pressure on tablets affecting draw shapes (#5693) ### Change type - [x] `docs` ### Test plan - [ ] Verify the release notes render correctly on the docs site ### Release notes - Update next release notes with experimental canvas drop handler, CJS fix, and tablet pressure fix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Downgrade
rbushfrom v4 (ESM-only) to v3 (CJS-compatible) to fix CJS environments (tsx, ts-node, Jest). v3→v4 only changed the module format with no API changes, so downgrading is safe.Context.
Change type
bugfixTest plan
node --import tsx -e "const { RBushIndex } = require('./packages/editor/src/lib/editor/managers/SpatialIndexManager/RBushIndex.ts'); new RBushIndex()"now worksRelease notes