NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm · #2969 most downloaded on npm
The fastest and smallest JavaScript polygon triangulation library for your WebGL apps
Last release 6 days ago
28 Sep 2026
Ships fairly regularly
a new release about every 8 months
Rarely documented
notes for 10 of 46 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
46 releases · first in 2015
Fix a v3.2 regression where it retained more memory than necessary in some cases. #210 (h/t @lucashabersaat )
deviation sometimes working incorrectly for zero-area polygons. #208Fix a refine edge case where it could get into an infinite loop on near-cocircular points (thanks to @spokodev for catching this), and speed it up sli
Fix a refine edge case where it could get into an infinite loop on near-cocircular points (thanks to @spokodev for catching this), and speed it up slightly.
One column per quarter.
Improve refine performance. v3.2.1 correctness fix regressed it from +41% to +50%; now it's +38%.
Improve refine performance. v3.2.1 correctness fix regressed it from +41% to +50%; now it's +38%.
Fix refine sometimes leaving quads in non-Delaunay state.
Fix refine sometimes leaving quads in non-Delaunay state.
Add a new refine(triangles, vertices, dimensions) function that takes an arbitrary triangulation (including earcut output) and refines it into a const
refine(triangles, vertices, dimensions) function that takes an arbitrary triangulation (including earcut output) and refines it into a constrained Delaunay triangulation, radically improving triangulation quality at a small cost (+40% on top of earcut time on average). It's +0.5KB to the bundle but gets tree-shaken by modern bundlers if you don't use it.Improve performance by another 6%.
Improve performance by another 6%.
Significantly improve performance on large polygons with holes. On a representative fixture of 132 Mapbox vector tiles through z4-16 (119,680 polygons
Fix a rare edge case manifesting on polygons with a big number of points. #186
Fix a rare edge case manifesting on polygons with a big number of points. #186
Fix edge cases related to touching inner rings. #177
⚠️ Breaking: publish earcut as a ES module, dropping support for CommonJS (use v2.2.4 if you need compatibility).
earcut as a ES module, dropping support for CommonJS (use v2.2.4 if you need compatibility).earcut.default.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →