Skip to content

Commit

Permalink
Merge pull request #98 from nrabinowitz/release-3.7.0
Browse files Browse the repository at this point in the history
Prepare for release 3.7.0
  • Loading branch information
nrabinowitz committed Oct 15, 2020
2 parents 5025e29 + 4fbeb16 commit 8ec0fb3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
All notable changes to this project will be documented in this file. This library adheres to a versioning policy described in [the README](./README.md#versioning). The public API of this library consists of the functions exported in [h3core.js](./lib/h3core.js).

## [Unreleased]
- *None*

## [3.7.0] - 2020-10-15
### Added
- Added bindings for new area and distance functions (#93):
- `cellArea`
- `exactEdgeLength`
- `pointDist`
- All functions accepting H3 index input now also accept a `[lowerBits, upperBits]` tuple of 32-bit integers (#91)
### Fixed
- Fixed type definition for `UNITS` (#94)
### Changed
Expand Down
9 changes: 9 additions & 0 deletions benchmark/benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import * as h3core from '../lib/h3core';
// fixtures

const h3Index = '89283080ddbffff';
const h3IndexInt = [0x0ddbffff, 0x8928308];
const polygon = [
[37.85848750746621, -122.48880236632749],
[37.860723745370926, -122.47361033446712],
Expand All @@ -45,10 +46,18 @@ export default function makeBenchmarks() {
h3core.h3ToGeo(h3Index);
});

suite.add('h3ToGeo - integers', () => {
h3core.h3ToGeo(h3IndexInt);
});

suite.add('h3ToGeoBoundary', () => {
h3core.h3ToGeoBoundary(h3Index);
});

suite.add('h3ToGeoBoundary - integers', () => {
h3core.h3ToGeoBoundary(h3IndexInt);
});

suite.add('h3GetFaces', () => {
h3core.h3GetFaces(h3Index);
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "h3-js",
"version": "3.6.4",
"version": "3.7.0",
"description": "Pure-Javascript version of the H3 library, a hexagon-based geographic grid system",
"author": "Nick Rabinowitz <nickr@uber.com>",
"contributors": [
Expand Down

0 comments on commit 8ec0fb3

Please sign in to comment.