Releases: mapbox/cheap-ruler
Releases · mapbox/cheap-ruler
v4.0.0
cheap-ruler
is now published as a ES module and no longer supports CommonJS environments.- Switched to first-class TypeScript types in the code (through JSDoc), so the types have changed compared to the previous ones which were maintained manually.
- Dropped support for IE11. You can still transpile the code on your end.
v3.0.1
v3.0.0
- Breaking: changed the API from
cheapRuler(...)
tonew CheapRuler(...)
(more idiomatic for ES). - Switched to ES and exposed as a ES module. CommonJS/browser builds remain ES5-compatible.
- Added
pointToSegmentDistance(p, a, b)
method. - Fixed all methods to work across the date line.
- Breaking: switched from FCC formulas (based on Clarke ellipsoid) to a more modern WGS84 Ellipsoid model of the Earth, so the values calculated may change slightly.