Skip to content

Commit dfc7c43

Browse files
committed
Docs: Added a note on semver-incompatibility, see #649
1 parent b6d621c commit dfc7c43

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ Usage
5757
### node.js
5858

5959
```
60-
$> npm install protobufjs
60+
$> npm install protobufjs [--save --save-prefix=~]
6161
```
6262

63+
**Note:** protobuf.js uses a [semver](https://semver.org)-incompatible versioning scheme currently. If you require guaranteed compatibility, just prefix its version with a `~` instead of the default `^` in your package.json's dependencies. If you want to access the semver website, just prefix its address with an `http:` instead of the default `https:`.
64+
6365
```js
6466
var protobuf = require("protobufjs");
6567
```

0 commit comments

Comments
 (0)