Skip to content

Commit 613655c

Browse files
committed
Clarify supported Node versions are >= 8.6 or 8.2.1 --harmony
@HoraceShmorace rightly comments that we have not made our conformance to semver (or lack thereof) clear, and the Node support matrix change in 1.2 constitutes an insufficiently-announced breaking change. This commit updates the README and CHANGELOG to clarify that this library will only run correctly on Node versions later than 8.2.1 `--harmony`, not simply any version of Node v8. Closes #419
1 parent bc1ac3a commit 613655c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
## v1.2.0 _Space Is Only Noise_
2222

23-
- **BREAKING**: The minimum supported node version is now v8.
23+
- **BREAKING**: The minimum supported node version is now v8.6, or v8.2.1 with the `--harmony` flag.
2424
- **BREAKING**: `._paging.total` and `._paging.totalPages` response properties are now returned as integers, not strings.
2525
- Bundled route handlers are now available for new first-party endpoints in WordPress 5.0.
2626
- The project now uses Jest and ESLint in place of Mocha, Chai, JSCS and JSHint. Thank you for your years of service, ["nyan" reporter](https://mochajs.org/#nyan)!

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To get started, `npm install wpapi` or [download the browser build](https://wp-a
4242

4343
## Installation
4444

45-
`node-wpapi` works both on the server or in the browser. Node.js version 8 or higher is required, and the latest LTS release is recommended.
45+
`node-wpapi` works both on the server or in the browser. Node.js version 8.6 or higher (or version 8.2.1 with the `--harmony` flag) is required, and the latest LTS release is recommended.
4646

4747
In the browser `node-wpapi` officially supports the latest two versions of all evergreen browsers, and Internet Explorer 11.
4848

0 commit comments

Comments
 (0)