Skip to content

Releases: openfga/js-sdk

v0.2.4

09 Mar 18:23
v0.2.4
6168670
Compare
Choose a tag to compare

0.2.4 (2023-03-09)

  • fix(client): OpenFgaClient read was not passing in pagination options
  • feat(client): implement sleep in batch calls to lower the possibility of hitting rate limits

v0.2.3

07 Mar 22:27
v0.2.3
9382142
Compare
Choose a tag to compare

0.2.3 (2023-02-28)

  • feat(client): client wrapper with a slightly changed interface
  • feat(client): implement batchCheck to check multiple tuples in parallel
  • feat(client): add support for a non-transactional Write
  • chore(config): bump default max retries to 5
  • fix: retry on 5xx errors
  • chore!: request Node >= 14.7.0

Checkout the README for more on how to use the new OpenFgaClient.

v0.2.2

23 Jan 17:07
v0.2.2
835831f
Compare
Choose a tag to compare

0.2.2 (2023-01-23)

  • fix(credentials): resolve client credentials token not being cached (fixes openfga/sdk-generator#89)
  • chore(deps): upgrade dev dependencies

v0.2.1

17 Jan 23:02
v0.2.1
5955246
Compare
Choose a tag to compare

0.2.1 (2023-01-17)

  • chore(deps): upgrade dev dependencies, resolves npm audit issue

v0.2.0

15 Dec 01:36
v0.2.0
61a4b0e
Compare
Choose a tag to compare

0.2.0 (2022-12-14)

Updated to include support for OpenFGA 0.3.0

Changes:

  • [BREAKING] feat(list-objects)!: response has been changed to include the object type e.g. response that was {"object_ids":["roadmap"]}, will now be {"objects":["document:roadmap"]}

Fixes:

  • fix(models): update interfaces that had incorrectly optional fields to make them required

Chore:

  • chore(deps): update dev dependencies

v0.1.1

15 Nov 21:44
Compare
Choose a tag to compare

0.1.1 (2022-11-15)

Updated ListObjects API which supports wildcard restriction in directly assignable type.

v0.1.0

29 Sep 14:44
Compare
Choose a tag to compare

0.1.0 (2022-09-29)

  • BREAKING: exported type TypeDefinitions is now WriteAuthorizationModelRequest This is only a breaking change on the SDK, not the API. It was changed to conform to the proto changes in openfga/api. It makes the type name more consistent and less confusing (normally people would incorrectly assume TypeDefinitions = TypeDefinition[]).
  • chore(deps): upgrade dependencies

v0.0.2

16 Aug 18:01
v0.0.2
53c5348
Compare
Choose a tag to compare

0.0.2 (2022-08-15)

Support for ListObjects API

You call the API and receive the list of object ids from a particular type that the user has a certain relation with.

For example, to find the list of documents that Anne can read:

const response = await openFgaApi.listObjects({
 user: "anne",
 relation: "can_read",
 type: "document"
});

// response.object_ids = ["roadmap"]

v0.0.1

15 Jun 18:36
v0.0.1
5666cac
Compare
Choose a tag to compare

0.0.1 (2022-06-15)

Initial OpenFGA JS SDK release

  • Support for OpenFGA API
    • CRUD stores
    • Create, read & list authorization models
    • Writing and Reading Tuples
    • Checking authorization
    • Understanding how access is granted via Expand