uber / h3-js

h3-js provides a JavaScript version of H3, a hexagon-based geospatial indexing system.
https://uber.github.io/h3
Apache License 2.0
867 stars 78 forks source link

Add legacy API wrapper with v3 names #146

Closed nrabinowitz closed 2 years ago

nrabinowitz commented 2 years ago

This adds a legacy API wrapper, available from h3-js/legacy, which exports the v4 functions using the v3 names. The intent is to help ease migration to the v4 library. In addition to allowing users to put off migrating their code, this provides a path, albeit awkward, to avoid bundling two versions of the library when dependencies have not upgraded to v4, by rewriting dependency import paths at build time to point to the legacy API.

coveralls commented 2 years ago

Pull Request Test Coverage Report for Build 2836540345


Totals Coverage Status
Change from base Build 2776368498: 0.0%
Covered Lines: 531
Relevant Lines: 531

💛 - Coveralls