Skip to content

Releases: inrupt/solid-client-access-grants-js

v3.0.0-alpha.0

08 Dec 21:54
179b57a
Compare
Choose a tag to compare
v3.0.0-alpha.0 Pre-release
Pre-release

New Features

  • Support for parsing Access Grants & Access Requests as JSON-LD. This allows them to be read using the RDF/JS DatasetCore API.

v2.6.2

16 Nov 17:39
f44a87e
Compare
Choose a tag to compare

Removed features (non-breaking)

  • Support for 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.

Bugfixes

  • Denied Access Grant expiration date: When denying an access grant based on an access request, the exipration
    date of the access request wasn't being picked up as the expiration date for the denied grant.

v2.6.1

25 Sep 10:45
aca3b26
Compare
Choose a tag to compare

Bugfixes

  • 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.
  • add types entry in the package.json exports so that bundlers such as esbuild can discover type definitions.

v2.6.0

18 Sep 08:37
a22ab74
Compare
Choose a tag to compare

New feature

  • Export 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.

v2.5.0

22 Aug 02:05
faaec3d
Compare
Choose a tag to compare

New feature

  • Export CredentialIsAccessGrantAny which checks if a VerifiableCredential is an AccessGrantAny.

v2.4.0

25 Jul 03:52
42337e2
Compare
Choose a tag to compare

New feature

  • deleteSolidDataset and deleteFile: Add functions to the resource module to delete resources, following the interface of @inrupt/solid-client.
  • getAccessRequest: a function exported by the ./manage module to get the Access Request from the Access Request URL.

v2.3.2

06 Jun 08:05
cbcaada
Compare
Choose a tag to compare

Deprecation notice

  • resource marked as deprecated for getAccessGrantAll. It can be optionally passed along with params.

v2.3.1

24 May 19:01
c9de1fd
Compare
Choose a tag to compare

Deprecation notice

  • Buffer API marked as deprecated for saveFileInContainer and overwriteFileInContainer.

Bugfixes

  • Denied Access Grants now preserve the purpose set in the original Access Request.

v2.2.0

16 Apr 12:10
cbb660c
Compare
Choose a tag to compare

New feature

  • Node 18 support

v2.1.2

06 Feb 16:21
57f0502
Compare
Choose a tag to compare

Bugfixes

  • The JSON-LD/JSON normalization is now applied not only when issuing an Access Request
    or an Access Grant, but also when dereferencing one.

  • JSON-LD/JSON alignment: We are processing Verifiable Credentials as plain JSON,
    while they actually are JSON-LD. This creates some discrepancies:

    • The Access Grants and Access Requests status is now accepted in its abbreviated
      form, and not only as a fully qualified IRI, as allowed by the JSON-LD context.
    • Arrays containing a single value are also accepted as a literal equal to said
      single value.

    This is a stopgap solution: a proper fix would be to do full JSON-LD parsing,
    but we aren't doing it for the moment because of issues between existing libraries
    and our build setup.