three-mesh-bvh breaking changes
Updated December 4, 2026
On this page
Latest version 0.10.0, released November 24, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
three-mesh-bvh 0.10.0 breaking changes
- Removed
bvh_ray_functions
Use BVHComputeData instead of the WGSL functions. github.com - Removed
BVHOptions.maxLeafSize
Use targetLeafSize instead. npmjs.com - Removed
BVHOptions.maxLeafTris
Use targetLeafSize instead. npmjs.com - Removed
common_functions
Use BVHComputeData instead of the WGSL functions. github.com - Removed
distance_functions
Use BVHComputeData instead of the WGSL functions. github.com - Removed
maxLeafSize
Use targetLeafSize instead of maxLeafSize. github.com - Removed
maxLeafTris
Use targetLeafSize instead of maxLeafTris. github.com - Removed
MeshBVHHelper
Use BVHHelper instead of MeshBVHHelper. npmjs.com - Removed
MeshBVHOptions.maxLeafSize
MeshBVHOptions.maxLeafSize was removed in three-mesh-bvh 0.10.0 npmjs.com - Removed
MeshBVHOptions.maxLeafTris
MeshBVHOptions.maxLeafTris was removed in three-mesh-bvh 0.10.0 npmjs.com - Removed
ShapecastCallbacks.intersectsTriangle
ShapecastCallbacks.intersectsTriangle was removed in three-mesh-bvh 0.10.0 npmjs.com - Removed
webgpu:BVHComputeData.storage.attributes
Read vertex data through the fns helpers instead. npmjs.com - Removed
webgpu:BVHComputeData.storage.index
Read triangle indices with fns.getTriangleIndices instead. npmjs.com - Removed
webgpu:BVHComputeData.storage.transforms
Use storage.objects in place of storage.transforms. npmjs.com - Removed
webgpu:BVHComputeData.structs.transform
Use structs.objectRecord in place of structs.transform. npmjs.com - Removed
webgpu:BVHComputeData.updateAsync
Use update, which is now async, instead of updateAsync. npmjs.com - Renamed
BVHComputeData.transformStruct
Use objectRecordStruct in place of transformStruct. github.com - Renamed
BVHComputeData.writeTransformData
Use writeObjectRecord in place of writeTransformData. github.com - Renamed
MeshBVHOptions
Use BVHOptions instead of MeshBVHOptions. npmjs.com - Behavior changed
GenerateMeshBVHWorker
The geometry stays usable during the build because data is copied. Set the transferBuffers option to get the old transfer behavior. github.com - Behavior changed
MeshBVH.bvhcast
With indirect, the triangle indices are passed to intersectsTriangles, so they must no longer be passed to resolveTriangleIndex. github.com - Behavior changed
ParallelMeshBVHWorker
The geometry's position and index arrays are no longer replaced by a build. github.com - Behavior changed
PointsBVH.raycast
On three.js r188 and up the raycast threshold uses the object's world scale. github.com - Default changed
BVHComputeData
BVHs generated automatically now use the SAH split strategy, which changes their structure. github.com - Signature changed
BVHComputeData.fns.getTriangleIndices
It takes the geometry's index offset as a last argument. github.com - Signature changed
BVHComputeData.fns.getVertex
It takes the object's attributes offset as a last argument. github.com - Signature changed
BVHComputeData.fns.getVertexPosition
It takes the object's attributes offset as a last argument. github.com - Signature changed
BVHComputeData.fns.sampleTrianglePoint
It takes the object's attributes offset as a last argument. github.com - Signature changed
BVHHelper.bvh
Was bvh: GeometryBVH | null; now bvh: BVH | null. npmjs.com - Signature changed
BVHHelper.constructor
Was constructor(mesh?: Object3D | null, bvh?: GeometryBVH | null, depth?: number) constructor(meshOrBVH: Object3D | GeometryBVH, depth?: number); now constructor(mesh?: Object3D | null, bvh?: BVH | null, depth?: number)... npmjs.com - Signature changed
BVHOptions.strategy
Was strategy?: SplitStrategy; now strategy?: SplitStrategy | SplitStrategyCallback. npmjs.com - Signature changed
ExtendedTriangle.distanceToTriangle
Was distanceToTriangle(tri : Triangle) : number; now distanceToTriangle(tri : Triangle, target1? : Vector3 | null, target2? : Vector3 | null) : number. npmjs.com - Signature changed
ExtendedTriangle.intersectsTriangle
Was intersectsTriangle(other : Triangle, target? : Line3) : boolean; now intersectsTriangle(other : Triangle, target? : Line3 | null, suppressLog? : boolean) : boolean. npmjs.com - Signature changed
intersectRangeFn
Callbacks now receive both offsets after the count argument. github.com - Signature changed
LineSegmentsBVH.shapecast
Was shapecast(callbacks: ShapecastCallbacks & {intersectsLine?: (lineIndex: number, contained: boolean, depth: number) => boolean|void}): boolean; now shapecast(callbacks: ShapecastCallbacks & {intersectsLine?: (line: Line3, lineIndex... npmjs.com - Signature changed
ndcToCameraRay
It now takes cameraToWorld and inverseProjection instead of inverseModelViewProjection. github.com - Signature changed
ObjectBVH.constructor
Was constructor(root: Array<Object3D> | Object3D, options?: BVHOptions); now constructor(root: Array<Object3D> | Object3D, options?: ObjectBVHOptions). npmjs.com - Signature changed
OrientedBox.constructor
Was constructor(min : Vector3, max : Vector3); now constructor(min? : Vector3, max? : Vector3, matrix? : Matrix4). npmjs.com - Signature changed
OrientedBox.set
Was set(min : Vector3, max : Vector3, matrix : Matrix4) : OrientedBox; now set(min : Vector3, max : Vector3, matrix : Matrix4) : void. npmjs.com - Signature changed
PointsBVH.shapecast
Was shapecast(callbacks: ShapecastCallbacks & {intersectsPoint?: (pointIndex: number, contained: boolean, depth: number) => boolean|void}): boolean; now shapecast(callbacks: ShapecastCallbacks & {intersectsPoint?: (point: Vector3... npmjs.com - Signature changed
webgpu:BVHComputeData.constructor
Was constructor(bvh: ObjectBVH | object | object[], options?: {attributes?: Record<string, string>; autogenerateBvh?: boolean;}); now constructor(objects: ComputeDataObject | ComputeDataObject[], options?: {attributes?: Record<string... npmjs.com - Signature changed
webgpu:BVHComputeData.fns
Was fns: {raycastFirstHit: unknown; raycastAnyHit: unknown; sampleTrianglePoint: unknown; closestPointToPoint: unknown;}; now fns: {raycastFirstHit: unknown; raycastAnyHit: unknown; sampleTrianglePoint: unknown; getTriangleIndices... npmjs.com - Signature changed
webgpu:BVHComputeData.getShapecastFn
transformShapeFn must now return a bool saying whether to traverse the object. npmjs.com - Signature changed
webgpu:BVHComputeData.storage
Was storage: {index: unknown; attributes: unknown; nodes: unknown; transforms: unknown;}; now storage: {nodes: unknown; objects: unknown; geometry: unknown;}. npmjs.com - Signature changed
webgpu:BVHComputeData.structs
Was structs: {transform: unknown; attributes: unknown;}; now structs: {objectRecord: unknown; attributes: unknown;}. npmjs.com - Signature changed
webgpu:BVHComputeData.update
update returns a promise and awaits getBVH for every object, so callers must await it. npmjs.com - Signature changed
worker:GenerateMeshBVHWorker.generate
Was generate(geometry: BufferGeometry, options?: BVHOptions): Promise<MeshBVH>; now generate(geometry: BufferGeometry, options?: BVHOptions & {transferBuffers?: boolean}): Promise<MeshBVH>. npmjs.com - Signature changed
worker:ParallelMeshBVHWorker.generate
Was generate(geometry: BufferGeometry, options?: BVHOptions): Promise<MeshBVH>; now generate(geometry: BufferGeometry, options?: BVHOptions & {transferBuffers?: boolean}): Promise<MeshBVH>. npmjs.com
three-mesh-bvh 0.9.18 breaking changes
- Behavior changed
BVHComputeData.raycastFirstHit
Axis-parallel rays lying on a bounds face are now detected correctly by raycastFirstHit, which changes results for those rays. github.com - Signature changed
webgpu:BVHComputeData.fns
Was fns: {raycastFirstHit: unknown; sampleTrianglePoint: unknown; closestPointToPoint: unknown;}; now fns: {raycastFirstHit: unknown; raycastAnyHit: unknown; sampleTrianglePoint: unknown; closestPointToPoint: unknown;}. npmjs.com
three-mesh-bvh 0.9.17 breaking changes
- Behavior changed
MeshBVH
BVH construction uses a different internal node layout and less memory; SAH builds use 8 bins per axis, so built tree structure may differ from before. github.com
three-mesh-bvh 0.9.15 breaking changes
- Behavior changed
ndcToCameraRay
The ndcToCameraRay function now sets the ray max distance and returns a normalized direction. Code that depends on the previous ray output may need to be checked. github.com - Signature changed
ray
The ray struct now includes a maxDist field and supports limited ray traversal. Code that builds ray values by position or relies on its exact fields may need updating. github.com
three-mesh-bvh 0.9.12 breaking changes
- Behavior changed
BVHComputeData
BVHComputeData throws when a traversal could overrun the stack, where it previously could fail silently. Code that relied on the old behavior must handle this error. github.com
three-mesh-bvh 0.9.11 breaking changes
- Removed
webgpu:bvhIntersectFirstHit
bvhIntersectFirstHit was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:bvhNodeBoundsStruct
bvhNodeBoundsStruct was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:bvhNodeStruct
bvhNodeStruct was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:closestPointToPoint
closestPointToPoint was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:closestPointToPointResultStruct
closestPointToPointResultStruct was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:closestPointToTriangle
closestPointToTriangle was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:closestPointToTriangleResultStruct
closestPointToTriangleResultStruct was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:distanceSqToBounds
distanceSqToBounds was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:distanceSqToBVHNodeBoundsPoint
distanceSqToBVHNodeBoundsPoint was removed in three-mesh-bvh 0.9.11 npmjs.com - Removed
webgpu:distanceToTriangles
distanceToTriangles was removed in three-mesh-bvh 0.9.11 npmjs.com
And 7 more in this version. Sign up to see every change
Older versions
8 older versions, each with its first changes. Sign up to see every change
Show 8 older versions
three-mesh-bvh 0.9.10 breaking changes
- Signature changed
BVH.traverse
Was traverse(callback: (depth: number, isLeaf: boolean, boundingData: ArrayBuffer, offsetOrSplit: number, count: number) => void, rootIndex?: number): void; now traverse(callback: (depth: number, isLeaf: boolean, boundingData... npmjs.com - Signature changed
HitTriangleInfo.uv
Was uv: Vector2; now uv: Vector2 | null. npmjs.com
And 3 more in this version.
three-mesh-bvh 0.9.9 breaking changes
- Renamed
worker:ParallelBVHWorker
Use ParallelMeshBVHWorker instead. npmjs.com
three-mesh-bvh 0.9.7 breaking changes
- Renamed
BVHHelper.objectIndex
The BVHHelper option objectIndex was renamed to instanceId. Update code that sets objectIndex to use instanceId instead. github.com - Signature changed
MeshBVH.bvhcast
Was bvhcast(otherBVH: MeshBVH, matrixToLocal: Matrix4, callbacks: ({intersectsRanges: (offset1: number, count1: number, offset2: number, count2: number, depth1: number, index1: number, depth2: number, index2: number) => boolean} |... npmjs.com
three-mesh-bvh 0.9.6 breaking changes
- Signature changed
estimateMemoryInBytes
Was function estimateMemoryInBytes(bvh: MeshBVH): number; now function estimateMemoryInBytes(bvh: BVH): number. npmjs.com - Signature changed
getBVHExtremes
Was function getBVHExtremes(bvh :MeshBVH): Array<ExtremeInfo>; now function getBVHExtremes(bvh: BVH): Array<ExtremeInfo>. npmjs.com
And 3 more in this version.
three-mesh-bvh 0.9.5 breaking changes
- Removed
ExtremeInfo.tris
ExtremeInfo.tris was removed in three-mesh-bvh 0.9.5 npmjs.com - Signature changed
computeBatchedBoundsTree
Was function computeBatchedBoundsTree(index?: number, options?: MeshBVHOptions): MeshBVH | MeshBVH[]; now function computeBatchedBoundsTree(index?: number, options?: BVHOptions): GeometryBVH | GeometryBVH[]. npmjs.com
And 5 more in this version.
three-mesh-bvh 0.9.4 breaking changes
- Behavior changed
Child indices are now stored as node indices instead of uint32 offsets. Old serialized data still works through a fixup step but logs a warning. github.com - Signature changed
computeBatchedBoundsTree
Was function computeBatchedBoundsTree(index?: Number, options?: MeshBVHOptions): MeshBVH | MeshBVH[]; now function computeBatchedBoundsTree(index?: number, options?: MeshBVHOptions): MeshBVH | MeshBVH[]. npmjs.com
And 2 more in this version.
three-mesh-bvh 0.9.2 breaking changes
- Signature changed
MeshBVH.raycastFirst
Was raycastFirst(ray: Ray, materialOrSide?: Side | Array<Material> | Material, near?: number, far?: number): Intersection; now raycastFirst(ray: Ray, materialOrSide?: Side | Array<Material> | Material, near?: number, far?: number)... npmjs.com - Signature changed
MeshBVHHelper.constructor
Was constructor(mesh: Mesh, depth?: number); now constructor(mesh?: Mesh | null, bvh?: MeshBVH | null, depth?: Number) constructor(meshOrBVH: Mesh, depth?: number). npmjs.com
three-mesh-bvh 0.9.0 breaking changes
- Signature changed
bvhClosestPointToPoint
The bvhClosestPointToPoint function signature was changed to include a maxDistance argument. Callers must pass this argument to match the new signature. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.