Releases: inrupt/solid-client-access-grants-js
Releases · inrupt/solid-client-access-grants-js
v3.2.1
Patch change
- Passes the v2 of the JSON-LD context for Access Grants when issuing and using the
/derive
endpoint for VC providers supporting it. This allows the server to return
all Access Credentials understood by the client, both v1 and v2. Clients prior to
this version will issue and retrieve Access Credentials with a v1 context (and will
not be able to use features introduced in v2).
Bugfix
- Type declarations have been altered so that internal type declarations are no longer
partially exposed in the type declaration files. This prevents issues with some
frameworks, such as Angular, in particular withrevokeAccessCredential
being internal.
Full Changelog: v3.2.0...v3.2.1
v3.2.0
New features
- Add support for custom fields. Applications are now able to read and write custom fields
into Access Credentials (both Access Requests and Access Grants). This feature is available
via a new option introduced inissueAccessRequest
andapproveAccessRequest
to write the
custom fields, and via a set of dedicated getters in thegetters/
module. A generic getter
is introduced,getCustomFields
, as well as a set of typed helpers, such asgetCustomInteger
.
Typed helpers are available for integers, floats, strings and booleans. - Support new query endpoint: the new
query
function enables querying for Access Credentials using
the newly introduced ESS endpoint.
Full Changelog: v3.1.1...v3.2.0
v3.1.1
Patch change
- Added support for the
https://schema.inrupt.com/credentials/v2.jsonld
JSON-LD context.
Full Changelog: v3.1.0...v3.1.1
v3.1.0
[Deprecation notice]
The following changes are pending, and will be applied on the next major release:
- The
status
parameter forgetAccessGrantAll
will default toall
rather thangranted
.
New Feature
- Node 22 is now supported
Bugfix
- The
/resources
module function have their signature now aligned with the underlying@inrupt/solid-client
functions.
Namely, theoptions
parameter forsaveSolidDatasetAt
andgetSolidDataset
support additional entries that were
already available in@inrupt/solid-client
.
Full Changelog: v3.0.5...v3.1.0
v3.0.5
Bugfixes
- Removed
base64url
dependency due to potential issues with the browser environment. - A descriptive error is now thrown when trying to create an Access Request/approve an Access Grant for no resource. Previously, such call may not have thrown, but it resulted in an Access Grant granting access to nothing, which would have caused confusion when trying to use it.
- The error thrown when the issuer endpoint for an Access Grant/Request cannot be computed from the provided resource is more comprehensive.
New Contributors
- @garciafdezpatricia made their first contribution in #943
- @RWJMurphy made their first contribution in #965
- @acoburn made their first contribution in #1005
Full Changelog: v3.0.4...v3.0.5
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
Breaking Changes
- Parsing Access Grants and Access Requests as RDF from JSON-LD: This allows the Access Grants
and Access Requests to be read using the RDF/JS DatasetCore API. This is a breaking change,
because their type also now extends theDatasetCore
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
tofalse
in functions such asgetAccessGrant
in order to avoid
returning deprecated object properties. Instead developers should make use of the exported
getter
functions to get these attributes. - Node 16 is no longer supported: The global
fetch
function is now used instead of
@inrupt/universal-fetch
. This means this library now only works with Node 18 and higher. - Deprecated signatures removed:
denyAccessRequest
no longer supports theresourceOwner
argument, it must be removed.approveAccessRequest
no longer supports theresourceOwner
argument, it must be removed.getAccessGrantAll
no longer supports theresource
argument, which should be merged into
theparams
argument along the otherAccessParameter
.