Skip to content

v2.1.0

Compare
Choose a tag to compare
@NSeydoux NSeydoux released this 27 Aug 10:07
a9a43f0

New Features

  • Node 22 is now supported
  • FetchError now implements WithProblemDetails: it has a .problemDetails getter providing
    additional information about the HTTP error response, either provided by the server if it
    supports RFC9457, or falling back to defaults.

Patch changes

  • Fixed #2339: Unnamed policies are now returned by getResourcePolicyAll if an optional argument
    { acceptBlankNodes: true } is specified. This additional argument makes this a non-breaking change,
    as the current type signature isn't changed.

  • getThing now supports Blank Node identifiers in addition to IRIs and skolems to refer to a subject.

  • getThingAll(dataset, { allowacceptBlankNodes: true }) now returns all Blank Nodes
    subjects in the Dataset, in particular including those part of a single chain of
    predicates. For instance, given the following dataset:

    @prefix ex: <https://example.org/> .
    @prefix foaf: <http://xmlns.com/foaf/0.1/> .
    
    ex:camille
      foaf:knows [
        foaf:name "Dominique"@en ;
      ] .
    ;
    

    getThingAll(dataset, { allowacceptBlankNodes: true }) would have previously returned
    a single element for the Named Node (ex:camille), it will now also include a second
    element for the Blank Node. Blank Node identifiers are by definition unstable and shouldn't
    be relied upon beyond local resolution.

New Contributors

Full Changelog: v2.0.1...v2.1.0