- Add optional
createMessageDigest
factory function for generating an aMessageDigest
interface. This allows different hash implementations or even different hash algorithms, including HMACs to be used with URDNA2015. Note that using a different hash algorithm from SHA-256 will change the output.
- Fix typo in unsupported algorithm error.
- Test that input is not changed.
- Optimize quad processing.
- Allow a maximum number of iterations of the N-Degree Hash Quads algorithm to
be set, preventing unusual datasets (and likely meaningless or malicious) from
consuming unnecessary CPU cycles. If the set maximum is exceeded then an
error will be thrown, terminating the canonize process. This option has only
been added to URDNA2015. A future major breaking release is expected to set
the maximum number of iterations to a safe value by default; this release is
backwards compatible and therefore sets no default. A recommended value is
1
, which will cause, at most, each blank node to have the N-degree algorithm executed on it just once.
- BREAKING: Only support Node.js >= 12. Remove related tests, dependencies,
and generated
node6
output. - BREAKING: Remove browser bundles. Simplifies package and reduces install size. If you have a use case that requires the bundles, please file an issue.
- Fix browser override file path style.
- Use
setimmediate
package forsetImmediate
polyfill. The previous custom polyfill was removed. This should allow current projects using this package to stay the same and allow an easy future transition to webpack v5.
- BREAKING: Removed public API for
canonizeSync
. It is still available for testing purposes but does not run in the browser. - BREAKING: Removed dependency on
forge
which means that this library will only run in browsers that have support for the WebCrypto API (or an external polyfill for it). - BREAKING: Do not expose
existing
onIdentifierIssuer
. The old IDs can be retrieved in order viagetOldIds
.
- General optimizations and modernization of the library.
- Add
getOldIds
function toIdentifierIssuer
.
- Use node-forge@0.10.0.
- Optimize away length check on paths.
- Update node-forge dependency.
- Update semver dependency.
- Update node-forge dependency.
- Fix triple comparator in n-quads parser.
- Add eslint support.
- Remove use of deprecated
util.isUndefined()
. Avoids unneededutil
polyfill in webpack build.
- WARNING: This release has a BREAKING change that could cause the canonical N-Quads output to differ from previous releases. Specifically, tabs in literals are no longer escaped. No backwards compatibility mode is provided at this time but if you believe it is needed, please file an issue.
- If you wish to use the native bindings, you must now install
rdf-canonize-native
yourself. It is no longer a dependency. See below.
- BREAKING: N-Quad canonical serialized output.
- Only escape 4 chars.
- Now compatible with https://www.w3.org/TR/n-triples/#canonical-ntriples
- Improve N-Quads parsing.
- Unescape literals.
- Handle unicode escapes.
- N-Quad serialization optimization.
- Varies based on input by roughly ~1-2x.
- BREAKING: Remove
rdf-canonize-native
as a dependency. The native bindings will still be used ifrdf-canonize-native
can be loaded. This means if you want the native bindings you must install them yourself. This change was done due to various problems caused by having any type of dependency involving the native code. With modern runtimes the JavaScript implementation is in many cases faster. The native bindings do have overhead but can be useful in cases where you need to offload canonizing into the background. It is recommended to perform benchmarks to determine which method works best in your case. - Update webpack and babel.
- BREAKING: Remove
usePureJavaScript
option and make the JavaScript implementation the default. Add explicituseNative
option to force the use of the native implementation fromrdf-canonize-native
. An error will be thrown if native bindings are not available.
- BREAKING: Move native support to optional
rdf-canonize-native
package. If native support is required in your environment then also add a dependency on therdf-canonize-native
package directly. This package only has an optional dependency on the native package to allow systems without native binding build tools to use the JavaScript implementation alone.
- Istanbul coverage support.
- Accept N-Quads upper case language tag.
- Improve acceptable N-Quads blank node labels.
- Update for Node.js 10 / OpenSSL 1.1 API.
- Update nan dependency for Node.js 10 support.
- Avoid variable length arrays. Not supported by some C++ compilers.
- Use const array initializer sizes.
- Comment out debug logging.
- Distribute
binding.gyp
.
- Benchmark tool using the same manifests as the test system.
- Support Node.js 6.
- Native Node.js addon support for URDNA2015. Improves performance.
usePureJavaScript
option to only use JavaScript.
- BREAKING: Remove Node.js 4.x testing and native support. Use a transpiler such as babel if you need further 4.x support.
- Expose
IdentifierIssuer
helper class.
- Fix build.
- Change internals to use ES6.
- Return Promise from API for async method.
- Move node-forge to dependencies.
- RDF Dataset Normalization async implementation from jsonld.js.
- webpack support.
- Split messageDigest into Node.js and browser files.
- Node.js file uses native crypto module.
- Browser file uses forge.
- See git history for all changes.