v2.1.0
New Features
- Node 22 is now supported
FetchError
now implementsWithProblemDetails
: 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
- @acoburn made their first contribution in #2455
- @jholleran made their first contribution in #2468
Full Changelog: v2.0.1...v2.1.0