murmurhash-native
Advanced tools
Comparing version 3.2.5 to 3.3.0
@@ -0,1 +1,7 @@ | ||
v3.3.0 | ||
* TypeScript declarations, documentation and tests | ||
* bump bluebird to 3.5.3, commander to 2.19.0 and tap to 12.1.0 | ||
* added development dependencies: typescript, @types, typedoc and typedoc plugins | ||
v3.2.5 | ||
@@ -2,0 +8,0 @@ |
@@ -16,3 +16,3 @@ { | ||
], | ||
"version": "3.2.5", | ||
"version": "3.3.0", | ||
"license": "MIT", | ||
@@ -28,6 +28,9 @@ "author": "Rafał Michalski <royal@yeondir.com>", | ||
"install": "node-pre-gyp install --fallback-to-build", | ||
"test": "tap -C -Rclassic ./test/test*.js", | ||
"test": "tap -C -Rclassic ./test/test*.js ./test/types/test*.js", | ||
"test-ts": "tap -C -Rclassic ./test/types/test*.js", | ||
"test-gc": "tap -Rspec ./test/persistent/test.gc.*.js -gc", | ||
"bench": "sh bench/bench.all.sh", | ||
"rebuild": "node-pre-gyp rebuild" | ||
"rebuild": "node-pre-gyp rebuild", | ||
"tsc": "tsc -p test/types", | ||
"typedoc": "typedoc --tsconfig test/types/tsconfig.json index.d.ts promisify.d.ts incremental.d.ts stream.d.ts" | ||
}, | ||
@@ -41,2 +44,4 @@ "binary": { | ||
"main": "index.js", | ||
"types": "index.d.ts", | ||
"typeScriptVersion": "2.0", | ||
"engines": { | ||
@@ -50,8 +55,14 @@ "node": ">=4" | ||
"devDependencies": { | ||
"bluebird": "^3.5.1", | ||
"commander": "^2.17.0", | ||
"@types/bluebird": "^3.5.24", | ||
"@types/node": "^10.12.8", | ||
"bluebird": "^3.5.3", | ||
"commander": "^2.19.0", | ||
"murmurhash3js": "^3.0.1", | ||
"node-pre-gyp-github": "1.3.1", | ||
"tap": "^12.0.1" | ||
"tap": "^12.1.0", | ||
"typedoc": "^0.13.0", | ||
"typedoc-plugin-external-module-name": "^1.1.3", | ||
"typedoc-plugin-sourcefile-url": "^1.0.3", | ||
"typescript": "^3.1.6" | ||
} | ||
} |
@@ -21,2 +21,3 @@ MurmurHash bindings for node | ||
* prebuilt binaries for most standard system configurations | ||
* TypeScript declarations ([docs][typescript-docs]) | ||
@@ -49,2 +50,7 @@ Install: | ||
TypeScript | ||
---------- | ||
`murmurhash-native` is [ready][typescript-docs] for the TypeScript without any external declarations. However this module is node-specific package, if you're going to use it in TypeScript, do not forget to include `@types/node` and enable `es2015` language features in your `tsconfig.json`. | ||
Make a hash: | ||
@@ -98,10 +104,12 @@ ------------ | ||
murmurHash(data, output[, offset[, length]][, callback]) | ||
murmurHash(data{String}, encoding|output_type[, callback]) | ||
murmurHash(data, output_type[, seed][, callback]) | ||
murmurHash(data, seed[, output[, offset[, length]]][, callback]) | ||
murmurHash(data, seed[, output_type][, callback]) | ||
murmurHash(data{string}, encoding|output_type[, seed][, callback]) | ||
murmurHash(data{Buffer}, output_type[, seed][, callback]) | ||
murmurHash(data, seed[, callback]) | ||
murmurHash(data, seed, output[, offset[, length]][, callback]) | ||
murmurHash(data, seed, output_type[, callback]) | ||
murmurHash(data, encoding, output_type[, callback]) | ||
murmurHash(data{String}, encoding, output[, offset[, length]][, callback]) | ||
murmurHash(data{String}, encoding, seed[, output[, offset[, length]]][, callback]) | ||
murmurHash(data{String}, encoding, seed[, output_type][, callback]) | ||
murmurHash(data{string}, encoding, output[, offset[, length]][, callback]) | ||
murmurHash(data{string}, encoding, seed[, callback]) | ||
murmurHash(data{string}, encoding, seed, output[, offset[, length]][, callback]) | ||
murmurHash(data{string}, encoding, seed, output_type[, callback]) | ||
``` | ||
@@ -315,2 +323,3 @@ | ||
[releases]: https://github.com/royaltm/node-murmurhash-native/releases | ||
[node-gyp-install]: https://github.com/nodejs/node-gyp#installation | ||
[node-gyp-install]: https://github.com/nodejs/node-gyp#installation | ||
[typescript-docs]: http://royaltm.github.io/node-murmurhash-native/globals.html |
@@ -66,3 +66,3 @@ "use strict"; | ||
} else { | ||
throw new TypeError("Must give algorithm string or MurmurHash instance"); | ||
throw new TypeError("Must give algorithm string, a serialized state or a MurmurHash instance"); | ||
} | ||
@@ -69,0 +69,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
165583
34
758
321
11
3