Releases: openfga/js-sdk
v0.8.0
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-sideBatchCheck
. Using this method requires an OpenFGA v1.8.0+ server.- The existing
BatchCheck
method has been renamed toclientBatchCheck
and it now bundles the results in a field calledresult
instead ofresponses
. - The existing
BatchCheckResponse
has been renamed toClientBatchCheckResponse
.
- The existing
- feat: add support for
startTime
parameter inReadChanges
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 theclientBatchCheck
method. The existingBatchCheckResponse
has been renamed toClientBatchCheckResponse
and it now bundles the results in a field calledresult
instead ofresponses
.
v0.7.0
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
v0.6.2
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 flagenable-consistency-params
enabled.
See the OpenFGA v1.5.7 release notes for details.
v0.6.1
v0.6.0
v0.5.0
0.5.0 (2024-06-14)
- chore!: remove excluded users from ListUsers response
This version removes the excluded_users
property from the ListUsersResponse
and ClientListUsersResponse
interfaces, for more details see the associated API change.
v0.4.0
0.4.0 (2024-04-30)
-
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 expectsstoreId
as the first param on relevant methods,
if you are still using this class, make sure you update your references when needed.
v0.3.5
v0.3.4
0.3.4 (2024-03-15)
- chore: bump deps. resolves CVE-2024-28849 in follow-redirects%0A