Releases: levelgraph/levelgraph-jsonld
v1.1.1
v1.1.0
v1.0.3
v1.0.2
We introduce breaking changes after the major semver update (is there a 3 second rule for packages that don't have a lot of inward dependencies on npm ? :) )
The breaking changes should however in general allow to keep data that would otherwise be deleted or overwritten. So unless your code relies heavily on aggressive deletes (such as recursive deletes of blank nodes), then you should be fine!
If you do rely on past behavior then using overwrite:true
and cut:true
will recover most of the functionality except a couple of backward compatibility breaking changes which are generally about leaving alone existing data (see put tests marked with break compatibility
for details).
Breaking Changes
'put'
and'del'
methods are more conservative by default.- Cannot pass an IRI string to
'del'
. (except with thecut
options)
Added
'cut'
method modelled loosely on LDPatch which deletes blank nodes.recurse
option tocut
( anddel
withcut: true
) which recursively deletes triples (including blank nodes) mentioned in the document or starting at the IRI.
Fixes
- del() cannot accept strings, but put() can #50
- del() empties entire storage #49
- Set preserve to true by default #51
- Graph "scrubbing" is too agressive #45
Known Bugs
- Setting "@context" as a string timeout (waiting for an upstream fix). #47
- Deleting blank nodes by ids is not yet possible. Design discussion at #42
Thanks a lot to @mcollina for the handover and @BigBlueHat for the bug reports and the work on the new LevelGraph Playground!
v1.0.1
v1.0.0
Deprecated
- Support for node 0.10 and 0.12
Added
- Support for node v6 and v7
preserve
option to avoid the destructive effect ofput
.- Support for adding multiple triples via an array of docs in
@graph
(there isn't - yet - support for named graphs). - When using
put
with a nested document, the callback will receive a version of the stored document with blank nodes added as@id
.
Changed
- Blank node are not considered as IRIs and therefore do not have the
base
option added.
Fixed
v0.5.0
v0.3.1
v0.3.0
v0.1.0 - Initial Release
- Basic Put, Get and Del for JSON-LD objects.