Skip to content

Commit 3f65221

Browse files
authored
release: v0.9.0 (#230)
1 parent 7303103 commit 3f65221

File tree

8 files changed

+13
-12
lines changed

8 files changed

+13
-12
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Changelog
22

33

4-
## [Unreleased](https://github.com/openfga/js-sdk/compare/v0.8.1...HEAD)
4+
## [Unreleased](https://github.com/openfga/js-sdk/compare/v0.9.0...HEAD)
5+
6+
## v0.9.0
7+
8+
### [v0.9.0](https://github.com/openfga/js-sdk/compare/v0.8.1...v0.9.0) (2025-06-03)
9+
10+
- feat: support client assertion for client credentials authentication (#228)
511

612
## v0.8.1
713

configuration.ts

Lines changed: 2 additions & 2 deletions
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.8.1";
25+
const DEFAULT_USER_AGENT = "openfga-sdk js/0.9.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.8.1";
78+
private static sdkVersion = "0.9.0";
7979

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

credentials/credentials.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ export class Credentials {
9191
assertParamExists("Credentials", "config.clientId", authConfig.config?.clientId);
9292
assertParamExists("Credentials", "config.apiTokenIssuer", authConfig.config?.apiTokenIssuer);
9393
assertParamExists("Credentials", "config.apiAudience", authConfig.config?.apiAudience);
94-
9594
assertParamExists("Credentials", "config.clientSecret or config.clientAssertionSigningKey", (authConfig.config as ClientSecretConfig).clientSecret || (authConfig.config as PrivateKeyJWTConfig).clientAssertionSigningKey);
9695

9796
if (!isWellFormedUriString(`https://${authConfig.config?.apiTokenIssuer}`)) {

example/README.md

Lines changed: 1 addition & 1 deletion
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.8.1"
34+
"@openfga/sdk": "^0.9.0"
3535
}
3636
```
3737
to a `file:` reference like below

example/example1/package.json

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

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfga/sdk",
3-
"version": "0.8.1",
3+
"version": "0.9.0",
44
"description": "JavaScript and Node.js SDK for OpenFGA",
55
"author": "OpenFGA",
66
"keywords": [

tests/index.test.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ describe("OpenFGA SDK", function () {
262262
nock.cleanAll();
263263
});
264264

265-
266265
it("should issue a network call to get the token at the first request if client assertion is provided", async () => {
267266
const scope = nocks.tokenExchange(OPENFGA_API_TOKEN_ISSUER);
268267
nocks.readAuthorizationModels(baseConfig.storeId!);
@@ -286,14 +285,11 @@ describe("OpenFGA SDK", function () {
286285
nock.cleanAll();
287286
});
288287

289-
290-
291288
it("should allow passing in a configuration instance", async () => {
292289
const configuration = new Configuration(baseConfig);
293290
expect(() => new OpenFgaApi(configuration)).not.toThrowError();
294291
});
295292

296-
297293
it("should only accept valid telemetry attributes", async () => {
298294
expect(
299295
() =>

0 commit comments

Comments
 (0)