@inrupt/solid-client
Advanced tools
Changelog
2.1.0 - 2024-08-27
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.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.
Changelog
[2.0.1]
The following changes have been implemented but not released yet:
getSolidDataset
, getFile
, saveSolidDatasetAt
, overwriteFile
, createContainerAt
, deleteSolidDataset
, deleteFile
, deleteContainer
, saveSolidDatasetInContainer
, createContainerInContainer
, saveFileInContainer
, getResourceInfo
: Input URLs are now normalized by collapsing slash sequences (foo///bar
becomes foo/bar
), and resolving relative URL segments (foo/bar/..
becomes foo/
).Changelog
[2.0.0] - 2023-12-19
fetch
function instead of @inrupt/universal-fetch
. This means this library now only works
with Node 18 and higher.umd
output is now found at dist/index.umd.js
rather than umd/index.js
.Buffer
s as input to saveFileInContainer
and overwriteFile
. Use the file name of inputs to saveFileInContainer
as the Slug
name recommendation if no slug is explicitly provided.getJsonLdParser
return void
rather than a Promise so that it now aligns with
the Parser
type definition.Changelog
[1.30.1] - 2023-09-15
Changelog
[1.30.0] - 2023-07-30
validateContainedResourcesAll
: In addition to the change to getContainedResourcesAll
described in the Bugfix section, a new function is added to the API to help detecting
incorrect containment claims.getProfileAll
now also follows rdfs:seeAlso
when discovering extended profiles.getContainedResourcesAll
, resources that
are not direct child resources of the target container from a URL path semantics
perspective are no longer returned. This means https://pod.example.org/foo/bar/moo
cannot be considered a child resource of https://pod.example.org/foo/
, regardless
of the ldp:contains
statements in the container. Resources from a different
origin are also be excluded by this change.Changelog
[1.29.0] - 2023-05-18
File
type from @types/node
in overwriteFile
and saveFileInContainer
.Changelog
[1.28.1] - 2023-05-10
Buffer
type: As discussed in microsoft/TypeScript#53668 the
@types/node definition of a buffer is looser than the DOM one (the latter being TS' default), and hence we now
use that in order to be compatible with web buffer types and node
buffer types.