@inrupt/solid-client-access-grants
Advanced tools
Changelog
3.0.0 - 2023-12-22
DatasetCore
type. Importantly, this dataset is not
preserved when converting a Verifiable Credential to a string and back doing
JSON.parse(JSON.stringify(verifiableCredential))
. We reccomend that developers set
returnLegacyJsonld
to false
in functions such as getAccessGrant
in order to avoid
returning deprecated object properties. Instead developers should make use of the exported
getter
functions to get these attributes.fetch
function is now used instead of
@inrupt/universal-fetch
. This means this library now only works with Node 18 and higher.denyAccessRequest
no longer supports the resourceOwner
argument, it must be removed.approveAccessRequest
no longer supports the resourceOwner
argument, it must be removed.getAccessGrantAll
no longer supports the resource
argument, which should be merged into
the params
argument along the other AccessParameter
.Changelog
2.6.2 - 2023-11-16
odrl
access grants has been removed. The ODRL data model was in as an experimental feature,
and wasn't deployed in any supported Access Grant issuers. Removing it will not break apps using the currently
supported gConsent-based Access Grants.Changelog
2.6.1 - 2023-09-25
denyAccessRequest
didn't normalize the returned denied Access Grant, resulting in it having a
JSON-LD frame different from the value returned by approveAccessRequest
. The value is now normalized,
and both functions return a similarly shaped object. This also fixes the return type of denyAccessRequest
,
which now returns the more strict AccessGrant
type rather than the VerifiableCredential
type.types
entry in the package.json exports so that bundlers such as esbuild can discover type definitions.Changelog
2.6.0 - 2023-09-18
getAccessGrantAll
has a new status
parameter which allows selection of granted
, denied
or all
access grants.
By default only granted
access grants are returned as this is the existing behavior. In the next major version of this
library the default will be to return all
access grants.