Skip to content

Commit 45f1991

Browse files
authored
Correctly specify minimum Node version (#2324)
1 parent aa283a3 commit 45f1991

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ attached to ``window`` through which you can access the SDK. See below for how t
1616
include libolm to enable end-to-end-encryption.
1717

1818
The browser bundle supports recent versions of browsers. Typically this is ES2015
19-
or `> 0.5%, last 2 versions, Firefox ESR, not dead` if using
19+
or `> 0.5%, last 2 versions, Firefox ESR, not dead` if using
2020
[browserlists](https://github.com/browserslist/browserslist).
2121

2222
Please check [the working browser example](examples/browser) for more information.
@@ -26,11 +26,11 @@ In Node.js
2626

2727
Ensure you have the latest LTS version of Node.js installed.
2828

29-
This SDK targets Node 10 for compatibility, which translates to ES6. If you're using
29+
This SDK targets Node 12 for compatibility, which translates to ES6. If you're using
3030
a bundler like webpack you'll likely have to transpile dependencies, including this
3131
SDK, to match your target browsers.
3232

33-
Using `yarn` instead of `npm` is recommended. Please see the Yarn [install guide](https://classic.yarnpkg.com/en/docs/install)
33+
Using `yarn` instead of `npm` is recommended. Please see the Yarn [install guide](https://classic.yarnpkg.com/en/docs/install)
3434
if you do not have it already.
3535

3636
``yarn add matrix-js-sdk``

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
"name": "matrix-js-sdk",
33
"version": "17.1.0",
44
"description": "Matrix Client-Server SDK for Javascript",
5+
"engines": {
6+
"node": ">=12.9.0"
7+
},
58
"scripts": {
69
"prepublishOnly": "yarn build",
710
"start": "echo THIS IS FOR LEGACY PURPOSES ONLY. && babel src -w -s -d lib --verbose --extensions \".ts,.js\"",

0 commit comments

Comments
 (0)