Skip to content

Commit 9382142

Browse files
committed
Merge pull request #8 from openfga/feat/add-openfga-client
2 parents d2f87f6 + 354c461 commit 9382142

25 files changed

+2770
-1990
lines changed

.fossa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ server: https://app.fossa.com
55
project:
66
id: github.com/openfga/js-sdk
77
name: github.com/openfga/js-sdk
8-
link: fga.dev
8+
link: openfga.dev
99
url: github.com/openfga/js-sdk

.openapi-generator/FILES

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ VERSION.txt
2020
api.ts
2121
apiModel.ts
2222
base.ts
23+
client.ts
2324
common.ts
2425
configuration.ts
2526
credentials.ts
@@ -28,8 +29,19 @@ git_push.sh
2829
index.ts
2930
package-lock.json
3031
package.json
32+
tests/client.test.ts
33+
tests/helpers/default-config.ts
34+
tests/helpers/index.ts
35+
tests/helpers/nocks.ts
3136
tests/index.test.ts
3237
tests/jest.config.js
3338
tests/tsconfig.spec.json
3439
tsconfig.json
40+
utils/assert-never.ts
41+
utils/chunk-array.ts
42+
utils/chunk-call.ts
43+
utils/generate-random-id.ts
44+
utils/index.ts
45+
utils/set-header-if-not-set.ts
46+
utils/set-not-enumerable-property.ts
3547
validation.ts

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## v0.2.3
4+
5+
### [0.2.3](https://github.com/openfga/js-sdk/compare/v0.2.2...v0.2.3) (2023-02-28)
6+
7+
- feat(client): client wrapper with a slightly changed interface
8+
- feat(client): implement `batchCheck` to check multiple tuples in parallel
9+
- feat(client): add support for a non-transactional `Write`
10+
- chore(config): bump default max retries to 5
11+
- fix: retry on 5xx errors
12+
- chore!: request Node >= 14.7.0
13+
14+
Checkout the [README](https://github.com/openfga/js-sdk/blob/main/README.md) for more on how to use the new OpenFgaClient.
15+
316
## v0.2.2
417

518
### [0.2.2](https://github.com/openfga/js-sdk/compare/v0.2.1...v0.2.2) (2023-01-23)

0 commit comments

Comments
 (0)