Skip to content

Releases: openfga/js-sdk

v0.9.0

04 Jun 12:05
v0.9.0
3f65221
Compare
Choose a tag to compare

v0.9.0 (2025-06-04)

  • feat: support client assertion for client credentials authentication (#228)

v0.8.1

24 Apr 10:43
v0.8.1
f3217b8
Compare
Choose a tag to compare

v0.8.1 (2025-04-24)

  • fix: change check for Node.js environment to fix issue where process.title cannot be read (#222)

v0.8.0

14 Jan 20:46
v0.8.0
571b53f
Compare
Choose a tag to compare

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.

v0.7.0

27 Sep 23:15
v0.7.0
10534cc
Compare
Choose a tag to compare

0.7.0 (2024-08-30)

  • feat!: enhancements to OpenTelemetry support (#149)

Checkout the telemetry docs for more on how to enable and configure OpenTelemetry metrics.

BREAKING CHANGE:
This version changes the way in which telemetry is configured and reported. See #149 for additional information.

0.6.3

28 Aug 22:07
v0.6.3
0d6bfb8
Compare
Choose a tag to compare

0.6.3 (2024-08-28)

  • fix: set the consistency parameter correctly in OpenFgaClient (#143)

v0.6.2

31 Jul 17:03
v0.6.2
2d47da1
Compare
Choose a tag to compare

0.6.2 (2024-07-31)

  • feat: add support for specifying consistency when evaluating or reading (#129)
    Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag enable-consistency-params enabled.
    See the OpenFGA v1.5.7 release notes for details.

v0.6.1

11 Jul 14:56
v0.6.1
d544153
Compare
Choose a tag to compare

0.6.1 (2024-07-11)

  • fix(metrics): add missing request model id attribute (#122)

Important

In this release we have changed our TypeScript compile target to ES2020 to align with our stated supported environments

v0.6.0

28 Jun 15:39
v0.6.0
011b066
Compare
Choose a tag to compare

0.6.0 (2024-06-28)

  • feat: add opentelemetry metrics reporting (#117)

v0.5.0

17 Jun 11:12
v0.5.0
ee24c7d
Compare
Choose a tag to compare

0.5.0 (2024-06-14)

  • chore!: remove excluded users from ListUsers response

⚠️ BREAKING CHANGE ⚠️

This version removes the excluded_users property from the ListUsersResponse and ClientListUsersResponse interfaces, for more details see the associated API change.

v0.4.0

30 Apr 19:54
v0.4.0
9b4fe29
Compare
Choose a tag to compare

0.4.0 (2024-04-30)

  • feat: support the ListUsers endpoint (#97)

  • feat!: support overriding storeId per request (#97)
    OpenFgaClient now supports specifying the storeId in the options to override it per request

    [BREAKING CHANGE] the underlying OpenFgaApi now expects storeId as the first param on relevant methods,
    if you are still using this class, make sure you update your references when needed.