Skip to content

Commit 1219408

Browse files
authored
Merge pull request #156 from nrabinowitz/bump-4.0.0
Prepare for release 4.0.0
2 parents f75ead2 + cfeb7ee commit 1219408

File tree

7 files changed

+29
-14
lines changed

7 files changed

+29
-14
lines changed

CHANGELOG.md

+18-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ All notable changes to this project will be documented in this file. This librar
44

55
## [Unreleased]
66

7+
## [4.0.0] - 2022-08-23
8+
### Breaking Changes
9+
- Updated the core library to `v4.0.0`. This update renames the majority of the H3 functions. You can see a [list of changed function names](https://h3geo.org/docs/library/migration-3.x/functions) in the core library documentation. For the most part, upgrading to v4 for Javascript consumers should be a straightforward search & replace between the old names and the new. (#151, #144, #141, #139)
10+
- Added more cases in which JS errors may be thrown. In H3 v3, many functions would fail silently with invalid input, returning `null` or similar signal values. In H3 v4, we will throw descriptive errors for most instances of bad input. (#139)
11+
12+
### Changed
13+
- Add Typescript typechecking, generate types with tsc (#153)
14+
15+
### Fixed
16+
- Fail package publish if there are library changes (#148)
17+
18+
### Added
19+
- Added legacy API wrapper with Typescript types (#146)
20+
721
## [4.0.0-rc4] - 2022-08-22
822
### Breaking changes
923
- Updated the core library to `v4.0.0-rc5`. (#151)
@@ -19,13 +33,14 @@ All notable changes to this project will be documented in this file. This librar
1933
- Added legacy API wrapper with Typescript types (#146)
2034

2135
## [4.0.0-rc1] - 2022-07-28
22-
### Added
23-
- Added vertex mode functions (#138)
2436
### Breaking Changes
2537
- Updated the core library to `v4.0.0-rc4`. (#141)
26-
- Updated the core library to `v4.0.0-rc2`. This update renames the majority of the H3 functions. You can see a [list of changed function names](https://h3geo.org/docs/next/library/migration-3.x/functions) in the core library documentation. For the most part, upgrading to v4 for Javascript consumers should be a straightforward search & replace between the old names and the new. (#139)
38+
- Updated the core library to `v4.0.0-rc2`. This update renames the majority of the H3 functions. You can see a [list of changed function names](https://h3geo.org/docs/library/migration-3.x/functions) in the core library documentation. For the most part, upgrading to v4 for Javascript consumers should be a straightforward search & replace between the old names and the new. (#139)
2739
- Added more cases in which JS errors may be thrown. In H3 v3, many functions would fail silently with invalid input, returning `null` or similar signal values. In H3 v4, we will throw descriptive errors for most instances of bad input. (#139)
2840

41+
### Added
42+
- Added vertex mode functions (#138)
43+
2944
## [3.7.2] - 2021-04-29
3045
### Fixed
3146
- Accept integer input to `h3GetResolution` (#113)

H3_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.0.0-rc5
1+
4.0.0

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Coverage Status](https://coveralls.io/repos/github/uber/h3-js/badge.svg?branch=master)](https://coveralls.io/github/uber/h3-js?branch=master)
99
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
1010
[![npm version](https://badge.fury.io/js/h3-js.svg)](https://badge.fury.io/js/h3-js)
11-
[![H3 Version](https://img.shields.io/static/v1?label=h3%20api&message=v4.0.0-rc4&color=blue)](https://github.com/uber/h3/releases/tag/v4.0.0-rc4)
11+
[![H3 Version](https://img.shields.io/static/v1?label=h3%20api&message=v4.0.0&color=blue)](https://github.com/uber/h3/releases/tag/v4.0.0)
1212

1313
The `h3-js` library provides a pure-JavaScript version of the [H3 Core Library](https://github.com/uber/h3), a hexagon-based geographic grid system. It can be used either in Node >= 6 or in the browser. The core library is transpiled from C using [emscripten](http://kripken.github.io/emscripten-site), offering full parity with the C API and highly efficient operations.
1414

@@ -23,10 +23,10 @@ For more information on H3 and for the full API documentation, please see the [H
2323

2424
## Usage
2525

26-
> :construction: **Note:** The following usage docs apply to **H3 v4**, which is currently still in the Release Candidate stage.
26+
> :tada: **Note:** The following usage docs apply to **H3 v4**, which was released on August 23, 2022.
2727
>
2828
> - For v3 docs, [see the latest v3.x.x release](https://github.com/uber/h3-js/blob/v3.7.2/README.md).
29-
> - For breaking changes in v4, [see the CHANGELOG](./CHANGELOG.md). In particular, most [function names have changed](https://h3geo.org/docs/next/library/migration-3.x/functions).
29+
> - For breaking changes in v4, [see the CHANGELOG](./CHANGELOG.md). In particular, most [function names have changed](https://h3geo.org/docs/library/migration-3.x/functions).
3030
3131
The library uses ES6 modules. Bundles for Node and the browser are built to the `dist` folder.
3232

@@ -1092,7 +1092,7 @@ Coordinates as an `{i, j}` pair
10921092

10931093
### h3.H3Error
10941094
Custom JS Error instance with an attached error code. Error codes come from the
1095-
core H3 library and can be found [in the H3 docs](https://h3geo.org/docs/next/library/errors#table-of-error-codes).
1095+
core H3 library and can be found [in the H3 docs](https://h3geo.org/docs/library/errors#table-of-error-codes).
10961096

10971097
**Properties**
10981098

doc-files/README.tmpl.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Coverage Status](https://coveralls.io/repos/github/uber/h3-js/badge.svg?branch=master)](https://coveralls.io/github/uber/h3-js?branch=master)
99
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE)
1010
[![npm version](https://badge.fury.io/js/h3-js.svg)](https://badge.fury.io/js/h3-js)
11-
[![H3 Version](https://img.shields.io/static/v1?label=h3%20api&message=v4.0.0-rc4&color=blue)](https://github.com/uber/h3/releases/tag/v4.0.0-rc4)
11+
[![H3 Version](https://img.shields.io/static/v1?label=h3%20api&message=v4.0.0&color=blue)](https://github.com/uber/h3/releases/tag/v4.0.0)
1212

1313
The `h3-js` library provides a pure-JavaScript version of the [H3 Core Library](https://github.com/uber/h3), a hexagon-based geographic grid system. It can be used either in Node >= 6 or in the browser. The core library is transpiled from C using [emscripten](http://kripken.github.io/emscripten-site), offering full parity with the C API and highly efficient operations.
1414

@@ -23,10 +23,10 @@ For more information on H3 and for the full API documentation, please see the [H
2323

2424
## Usage
2525

26-
> :construction: **Note:** The following usage docs apply to **H3 v4**, which is currently still in the Release Candidate stage.
26+
> :tada: **Note:** The following usage docs apply to **H3 v4**, which was released on August 23, 2022.
2727
>
2828
> - For v3 docs, [see the latest v3.x.x release](https://github.com/uber/h3-js/blob/v3.7.2/README.md).
29-
> - For breaking changes in v4, [see the CHANGELOG](./CHANGELOG.md). In particular, most [function names have changed](https://h3geo.org/docs/next/library/migration-3.x/functions).
29+
> - For breaking changes in v4, [see the CHANGELOG](./CHANGELOG.md). In particular, most [function names have changed](https://h3geo.org/docs/library/migration-3.x/functions).
3030
3131
The library uses ES6 modules. Bundles for Node and the browser are built to the `dist` folder.
3232

lib/errors.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const E_OPTION_INVALID = 15;
3434

3535
/**
3636
* Error messages corresponding to the core library error codes. See
37-
* https://h3geo.org/docs/next/library/errors#table-of-error-codes
37+
* https://h3geo.org/docs/library/errors#table-of-error-codes
3838
* @private
3939
*/
4040
const H3_ERROR_MSGS = {

lib/h3core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ const SZ_COORDIJ = H3.sizeOfCoordIJ();
8989

9090
/**
9191
* Custom JS Error instance with an attached error code. Error codes come from the
92-
* core H3 library and can be found [in the H3 docs](https://h3geo.org/docs/next/library/errors#table-of-error-codes).
92+
* core H3 library and can be found [in the H3 docs](https://h3geo.org/docs/library/errors#table-of-error-codes).
9393
* @static
9494
* @typedef H3Error
9595
* @property {string} message

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "h3-js",
3-
"version": "4.0.0-rc4",
3+
"version": "4.0.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)