Skip to content

v3.0.0

Compare
Choose a tag to compare
@NSeydoux NSeydoux released this 22 Dec 13:28
b0e096b

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