github openfga/js-sdk v0.8.0

17 hours ago

0.8.0 (2025-01-14)

  • feat!: add support for server-side BatchCheck method. This is a more efficient way to check on multiple tuples than calling the existing client-side BatchCheck. Using this method requires an OpenFGA v1.8.0+ server.
    • The existing BatchCheck method has been renamed to clientBatchCheck and it now bundles the results in a field called result instead of responses.
    • The existing BatchCheckResponse has been renamed to ClientBatchCheckResponse.
  • feat: add support for startTime parameter in ReadChanges endpoint
  • feat: support contextual tuples and context in assertions
  • feat: support contextual tuples in Expand
  • fix: error correctly if apiUrl is not provided - thanks @Waheedsys (#161)
  • fix: use provided axios instance in credentials refresh - thanks @Siddhant-K-code (#193)
  • fix!: The minimum node version required by this SDK is now v16.15.0
  • chore(docs): various cleanup and improvements - thanks @tmsagarofficial (#164), @vil02 (openfga/sdk-generator#424, openfga/sdk-generator#422), @sccalabr (openfga/sdk-generator#433)

BREAKING CHANGES:

  • The minimum node version required by this SDK is now v16.15.0
  • Usage of the existing batchCheck method should now use the clientBatchCheck method. The existing BatchCheckResponse has been renamed to ClientBatchCheckResponse and it now bundles the results in a field called result instead of responses.

Don't miss a new js-sdk release

NewReleases is sending notifications on new releases.