Skip to content

Commit 26bbce9

Browse files
committed
release: v0.8.0
1 parent cf5ed5d commit 26bbce9

File tree

6 files changed

+3584
-30
lines changed

6 files changed

+3584
-30
lines changed

CHANGELOG.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
# Changelog
22

33

4-
## [Unreleased](https://github.com/openfga/js-sdk/compare/v0.7.0...HEAD)
4+
## [Unreleased](https://github.com/openfga/js-sdk/compare/v0.8.0...HEAD)
55

6-
- fix: error correctly if apiUrl is not provided (#161)
7-
- feat: add support for `start_time` parameter in `ReadChanges` endpoint
8-
- BREAKING: As of this release, the min node version required by the SDK is now v16.15.0
9-
- feat!: add support for server-side `BatchCheck` method.
6+
## v0.8.0
107

11-
BREAKING CHNAGES:
8+
### [0.8.0](https://github.com/openfga/js-sdk/compare/v0.7.0...v0.8.0) (2025-01-14)
129

13-
- The minimum noce version required by this SDK is now v16.15.0
10+
- 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+](https://github.com/openfga/openfga/releases/tag/v1.8.0) server.
11+
- The existing `BatchCheck` method has been renamed to `clientBatchCheck` and it now bundles the results in a field called `result` instead of `responses`.
12+
- The existing `BatchCheckResponse` has been renamed to `ClientBatchCheckResponse`.
13+
- feat: add support for startTime` parameter in `ReadChanges` endpoint
14+
- feat: support contextual tuples and context in assertions
15+
- feat: support contextual tuples in Expand
16+
- fix: error correctly if apiUrl is not provided - thanks @Waheedsys (#161)
17+
- fix: use provided axios instance in credentials refresh - thanks @Siddhant-K-code (#193)
18+
- fix!: The minimum node version required by this SDK is now v16.15.0
19+
- chore(docs): various cleanup and improvements - thanks @tmsagarofficial (#164), @vil02 (https://github.com/openfga/sdk-generator/pull/424, https://github.com/openfga/sdk-generator/pull/422), @sccalabr (https://github.com/openfga/sdk-generator/pull/433)
20+
21+
BREAKING CHANGES:
22+
- The minimum node version required by this SDK is now v16.15.0
1423
- 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`.
1524

1625
## v0.7.0

configuration.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const DEFAULT_MAX_RETRY = 3;
2222
// default minimum wait period in retry - but will backoff exponentially
2323
const DEFAULT_MIN_WAIT_MS = 100;
2424

25-
const DEFAULT_USER_AGENT = "openfga-sdk js/0.7.0";
25+
const DEFAULT_USER_AGENT = "openfga-sdk js/0.8.0";
2626

2727
export interface RetryParams {
2828
maxRetry?: number;
@@ -75,7 +75,7 @@ export class Configuration {
7575
* @type {string}
7676
* @memberof Configuration
7777
*/
78-
private static sdkVersion = "0.7.0";
78+
private static sdkVersion = "0.8.0";
7979

8080
/**
8181
* provide the full api URL (e.g. `https://api.fga.example`)

example/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Steps
3131
2. In the Example `package.json` change the `@openfga/sdk` dependency from a semver range like below
3232
```json
3333
"dependencies": {
34-
"@openfga/sdk": "^0.7.0"
34+
"@openfga/sdk": "^0.8.0"
3535
}
3636
```
3737
to a `file:` reference like below

example/example1/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"start": "node example1.mjs"
1010
},
1111
"dependencies": {
12-
"@openfga/sdk": "^0.7.0"
12+
"@openfga/sdk": "^0.8.0"
1313
},
1414
"engines": {
1515
"node": ">=16.13.0"

0 commit comments

Comments
 (0)