You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+22-12Lines changed: 22 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,12 +22,19 @@ It is **strongly recommended** that you use LevelUP in preference to `rocksdb` u
22
22
<aname="platforms"></a>
23
23
## Supported Platforms
24
24
25
-
***Linux** (including ARM platforms such as Raspberry Pi *and Kindle!*)
26
-
***Mac OS**
27
-
***Solaris** (SmartOS & Nodejitsu)
28
-
***FreeBSD**
29
-
***Windows**
30
-
* See installation instructions for *node-gyp* dependencies [here](https://github.com/TooTallNate/node-gyp#installation), you'll need these (free) components from Microsoft to compile and run any native Node add-on in Windows.
25
+
We aim to support _at least_ Active LTS and Current Node.js releases, Electron 4.0.0, as well as any future Node.js and Electron releases thanks to [N-API](https://nodejs.org/api/n-api.html). Because N-API has an experimental status in node 6 and early 8.x releases, the minimum node version for `rocksdb` is `8.6.0`.
26
+
27
+
The `rocksdb` npm package ships with prebuilt binaries for popular 64-bit platforms ~~as well as ARM, Android and Alpine (musl)~~ and is known to work on:
28
+
29
+
-**Linux** (including ARM platforms such as Raspberry Pi and Kindle)
30
+
-**Mac OS**
31
+
-**Solaris** (SmartOS & Nodejitsu)
32
+
-**FreeBSD**
33
+
-**Windows**
34
+
35
+
When installing `rocksdb`, [`node-gyp-build`](https://github.com/prebuild/node-gyp-build) will check if a compatible binary exists and fallback to a compile step if it doesn't. In that case you'll need a [valid `node-gyp` installation](https://github.com/nodejs/node-gyp#installation).
36
+
37
+
If you don't want to use the prebuilt binary for the platform you are installing on, specify the `--build-from-source` flag when you install. If you are working on `rocksdb` itself and want to re-compile the C++ code it's enough to do `npm install`.
31
38
32
39
<aname="api"></a>
33
40
## API
@@ -51,13 +58,16 @@ There are multiple ways you can find help in using LevelDB in Node.js:
51
58
52
59
See the [Contribution Guide](https://github.com/Level/community/blob/master/CONTRIBUTING.md) for more details.
53
60
54
-
## Prebuilt Binaries
55
-
56
-
`rocksdb` uses `prebuild` and `prebuild-install` for handling prebuilt binaries. See [this list](https://github.com/Level/rocksdb/releases) of supported prebuilt platform binaries. When installing rocksdb `prebuild-install` will install prebuilt binaries from GitHub if they exist and fallback to a compile step if they don't.
57
-
58
-
If you are working on `rocksdb` and want to re-compile the C++ code it's enough to do `npm install`.
61
+
### Publishing
59
62
60
-
If you don't want to use the `prebuild` for the platform you are installing on, specify the `--build-from-source` flag when you install.
63
+
1. Increment the version: `npm version ..`
64
+
2. Push to GitHub: `git push --follow-tags`
65
+
3. Wait for Travis and AppVeyor builds to complete
66
+
4. Download prebuilds into `./prebuilds`: `npm run download-prebuilds`
67
+
5. Optionally verify loading a prebuild: `npm run test-prebuild`
68
+
6. Optionally verify which files npm will include: `canadian-pub`
0 commit comments