Releases
15 versions from Nov 15 to Nov 17, 2026. 4 MINOR releases and 10 PATCH releases came after the first release.
Each mark is one version, on a time axis in UTC. Select a mark to show its changes.
- MINOR: new features (before 1.0.0, also a change of the API)
- PATCH: fixes and small additions
- The first release
5 changes in 1 package. The changes with the most packages come first.
A property test of CI found this fault with a viewer at the south pole.
Before, the bound of a position very near a pole was able to be less than its angle.
Fix:
simplifyRegionsandregionSimplifiergive the same output as the search of each position, also near a pole.PATCH: a bug fix with no change of the public API.
The fix: the bound is the larger of the box bound and the probe value of the edge.
4 changes in 1 package. The changes with the most packages come first.
bboxCentergives the middle of a box: the middle of its latitudes, and the middle of its arc of longitudes.PATCH: a new export before 1.0.0.
The closed box has the result, also when the width of the box is one rounding step.
The middle is a place for a label of a region, or for the first view of a map.
6 changes in 1 package. The changes with the most packages come first.
bufferKmandbufferMetersare faster, with the same guarantee.A buffer uses approximately 9 cells for each tolerance of the length of its boundary.
PATCH: faster functions, with no change of the API.
The cells are larger.
The positions of a result can change.
The search of the nearest point of an edge stops when its result is within 1/16 of the tolerance.
9 changes in 1 package. The changes with the most packages come first.
densifygives a copy of a geometry with more positions on its edges.GeoErrorCodehas two new values.intermediatePointgives the point at a part of the way along the great circle between two points.MAX_DENSIFY_POSITIONSis the limit of the new positions of one call ofdensify(1,000,000).toUnitVectorgives a point as a vector with the length 1, on the axes of ECEF.Fix:
bboxOfGeoJsongives the ends of each edge with no rounding.Fix: two edges with a common position give two arcs that touch.
The new error code
vectorrefuses a vector with the length 0.These functions are for a drawing on a globe:
densifymakes the edges short, andtoUnitVectorputs each position on the sphere.
4 changes in 1 package. The changes with the most packages come first.
bufferKmandbufferMetersgive the buffer of a GeoJSON geometry.BufferOptionshas the optionstoleranceandmaxCells.PATCH: new exports before 1.0.0.
The error codes
tolerance,max-cells,too-many-cellsandradiusalso refuse incorrect options of a buffer.
2 changes in 1 package. The changes with the most packages come first.
distanceBetweenGeometriesKmanddistanceBetweenGeometriesMetersgive the great-circle distance between the nearest points of two GeoJSON geometries.This change adds two functions, and it does not change the existing API.
5 changes in 1 package. The changes with the most packages come first.
geodesicInversegives the length of the shortest geodesic between two points on an ellipsoid, and its bearings at the two points.WGS84is the ellipsoid of WGS84, and the default of the two functions.PATCH: new exports before 1.0.0.
The error code
radiusalso refuses an ellipsoid with an equatorial radius or a polar radius that is not more than 0.The functions use the method of Karney (2013).
3 changes in 1 package. The changes with the most packages come first.
pointLocator(polygon)examines a polygon one time, and gives a function that locates each point.The locator puts the edges of each part in bands of latitude.
This change adds an export, and it does not change the old API.
4 changes in 1 package. The changes with the most packages come first.
circleKmandcircleMetersgive a circle on the Earth as a GeoJSON Polygon or MultiPolygon, for a map.GeoErrorCodehas a new value.The new error code
verticesrefuses a number of vertices that is not an integer from 3 toMAX_CIRCLE_VERTICES.The option
verticessets the number of the vertices.
2 changes in 1 package. The changes with the most packages come first.
simplifyRegionsandregionSimplifiergive the same output as 0.3.1, approximately 17 times faster.This change is a speed fix, and it does not change the public API.
2 changes in 1 package. The changes with the most packages come first.
The point-in-polygon and overlap tests move a point across the antimeridian with no rounding.
This change is a fix, and it does not change the public API.
5 changes in 1 package. The changes with the most packages come first.
distanceToGeometryKmgives the same distance to an edge in each of its two directions.GeoErrorCodehas a new value.simplifyRegionsandregionSimplifiersimplify Polygons and MultiPolygons that share borders, for a map.The new error code
tolerancerefuses a tolerance less than 0.The type
Regionis aPolygonor aMultiPolygon.
2 changes in 1 package. The changes with the most packages come first.
distanceToGeometryKmanddistanceToGeometryMetersgive the great-circle distance from a point to the nearest point of a GeoJSON geometry.This change adds functions, and it changes no function.
2 changes in 1 package. The changes with the most packages come first.
The polygon tests refuse a position with a longitude out of -540 to 540, with the error
longitude-range.This change refuses an input that 0.1.0 accepted.
7 changes in 1 package. The changes with the most packages come first.
Bounding boxes that can cross the antimeridian:
bboxOfPoints,bboxOfGeoJson,bboxContainsandbboxIntersects.Geohashes: encode, decode, the neighbors of a cell and the cover of a box.
Point-in-polygon and overlap tests for Polygon and MultiPolygon, with holes, on the straight edges of RFC 7946.
Points on WGS84:
latLon,parseLatLon,normalizeLon,toPositionandfromPosition.The GeoJSON types of RFC 7946, and
parseGeoJsonandparseGeometry, which give a typedResult.The great-circle distance with the mean radius of the IUGG (6371.0088 km), the initial bearing and the destination.
The winding of rings and the right-hand rule:
ringWinding,followsRightHandRuleandrewind.
Source: the CHANGELOG.md files, the git tags, the GitHub releases and npm, read when the site was built.