Skip to content

Commit 95b1a52

Browse files
committed
Use rdf-canonize@5.
- Update notes about removed `rdf-canonize-native` support.
1 parent f944de0 commit 95b1a52

File tree

3 files changed

+7
-17
lines changed

3 files changed

+7
-17
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- **BREAKING**: Upgrade dependencies.
88
- `@digitalbazaar/http-client@4`.
99
- `canonicalize@2`.
10-
- `rdf-canonize@4`: See the [rdf-canonize][] 4.0.0 changelog for
10+
- `rdf-canonize@5`: See the [rdf-canonize][] 4.x and 5.x changelog for
1111
**important** changes and upgrade notes. Of note:
1212
- The `URDNA2015` default algorithm has been changed to `RDFC-1.0` from
1313
[rdf-canon][].
@@ -16,6 +16,11 @@
1616
- A `signal` option is available to use an `AbortSignal` to limit resource
1717
usage.
1818
- The internal digest algorithm can be changed.
19+
- Support for [rdf-canonize-native][] was removed.
20+
- **BREAKING**: Only the JavaScript implementation of [rdf-canon][] from
21+
[rdf-canonize][] is supported. The API here can be updated to allow
22+
implementation switching if support for native or other [rdf-canon][]
23+
implementations is needed.
1924
- Update development dependencies.
2025
- Update karma testing.
2126
- Remove older fixes in favor of more default behavior.

README.md

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -175,20 +175,6 @@ import {promises} from 'jsonld';
175175
import {JsonLdProcessor} from 'jsonld';
176176
```
177177

178-
### Node.js native canonize bindings
179-
180-
For specialized use cases there is an optional [rdf-canonize-native][] package
181-
available which provides a native implementation for `canonize()`. It is used
182-
by installing the package and setting the `useNative` option of `canonize()` to
183-
`true`. Before using this mode it is **highly recommended** to run benchmarks
184-
since the JavaScript implementation is often faster and the bindings add
185-
toolchain complexity.
186-
187-
```
188-
npm install jsonld
189-
npm install rdf-canonize-native
190-
```
191-
192178
Examples
193179
--------
194180

@@ -519,7 +505,6 @@ Commercial support for this library is available upon request from
519505
[jsonld-cli]: https://github.com/digitalbazaar/jsonld-cli
520506
[jsonld-request]: https://github.com/digitalbazaar/jsonld-request
521507
[rdf]: https://rubygems.org/gems/rdf
522-
[rdf-canonize-native]: https://github.com/digitalbazaar/rdf-canonize-native
523508
[test runner]: https://github.com/digitalbazaar/jsonld.js/blob/master/tests/test-common.js
524509
[test suite]: https://github.com/json-ld/json-ld.org/tree/master/test-suite
525510
[webpack]: https://webpack.js.org/

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@digitalbazaar/http-client": "^4.2.0",
3333
"canonicalize": "^2.1.0",
3434
"lru-cache": "^6.0.0",
35-
"rdf-canonize": "^4.0.1"
35+
"rdf-canonize": "^5.0.0"
3636
},
3737
"devDependencies": {
3838
"@babel/core": "^7.28.5",

0 commit comments

Comments
 (0)