Skip to content

Releases: levelgraph/levelgraph-jsonld

v1.1.1

05 Jun 15:37
Compare
Choose a tag to compare
  • Fixed logo link in the README.

v1.1.0

05 Jun 15:37
Compare
Choose a tag to compare
  • bumped deps and node 8 #65 by @mcollina
  • moved to the new org

v1.0.3

07 Feb 13:01
Compare
Choose a tag to compare

Added

  • blank_ids option on 'put' will return '@id' of generated uuids for blank nodes.

Fixes

  • Fix problem where blank nodes weren't properly returned #56

v1.0.2

14 Jan 13:41
Compare
Choose a tag to compare

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 the cut options)

Added

  • 'cut' method modelled loosely on LDPatch which deletes blank nodes.
  • recurse option to cut ( and del with cut: 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

13 Jan 15:51
Compare
Choose a tag to compare

Fixed

  • Bug with array detection #44

v1.0.0

12 Jan 15:07
Compare
Choose a tag to compare

Deprecated

  • Support for node 0.10 and 0.12

Added

  • Support for node v6 and v7
  • preserve option to avoid the destructive effect of put.
  • 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

14 Apr 07:06
Compare
Choose a tag to compare
  • Update dependencies #32

v0.3.1

01 Mar 10:54
Compare
Choose a tag to compare
  • fixed support of multiple objects for same predicate #22.

v0.3.0

30 Dec 16:03
Compare
Choose a tag to compare
  • #5 preserve data types
  • #4 some IRIs not read correctly
  • #11 support language tags
  • update to LevelGraph 0.7.1
  • update other dependencies

v0.1.0 - Initial Release

16 Jul 00:49
Compare
Choose a tag to compare
  • Basic Put, Get and Del for JSON-LD objects.