Skip to content

Commit 8ec0fb3

Browse files
authored
Merge pull request #98 from nrabinowitz/release-3.7.0
Prepare for release 3.7.0
2 parents 5025e29 + 4fbeb16 commit 8ec0fb3

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@
33
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).
44

55
## [Unreleased]
6+
- *None*
7+
8+
## [3.7.0] - 2020-10-15
69
### Added
710
- Added bindings for new area and distance functions (#93):
811
- `cellArea`
912
- `exactEdgeLength`
1013
- `pointDist`
14+
- All functions accepting H3 index input now also accept a `[lowerBits, upperBits]` tuple of 32-bit integers (#91)
1115
### Fixed
1216
- Fixed type definition for `UNITS` (#94)
1317
### Changed

benchmark/benchmarks.js

+9
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import * as h3core from '../lib/h3core';
2020
// fixtures
2121

2222
const h3Index = '89283080ddbffff';
23+
const h3IndexInt = [0x0ddbffff, 0x8928308];
2324
const polygon = [
2425
[37.85848750746621, -122.48880236632749],
2526
[37.860723745370926, -122.47361033446712],
@@ -45,10 +46,18 @@ export default function makeBenchmarks() {
4546
h3core.h3ToGeo(h3Index);
4647
});
4748

49+
suite.add('h3ToGeo - integers', () => {
50+
h3core.h3ToGeo(h3IndexInt);
51+
});
52+
4853
suite.add('h3ToGeoBoundary', () => {
4954
h3core.h3ToGeoBoundary(h3Index);
5055
});
5156

57+
suite.add('h3ToGeoBoundary - integers', () => {
58+
h3core.h3ToGeoBoundary(h3IndexInt);
59+
});
60+
5261
suite.add('h3GetFaces', () => {
5362
h3core.h3GetFaces(h3Index);
5463
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "h3-js",
3-
"version": "3.6.4",
3+
"version": "3.7.0",
44
"description": "Pure-Javascript version of the H3 library, a hexagon-based geographic grid system",
55
"author": "Nick Rabinowitz <[email protected]>",
66
"contributors": [

0 commit comments

Comments
 (0)