Skip to content

Commit

Permalink
release: v0.3.2 (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Feb 13, 2024
2 parents e299e5e + 41dd80d commit 73d4e48
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 10 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## v0.3.2

### [0.3.1](https://github.com/openfga/js-sdk/compare/v0.3.1...v0.3.2) (2024-02-13)

- feat: add example project
- feat: add support for `apiUrl` configuration option and deprecate `apiScheme` and `apiHost`
- fix: use correct content type for token request
- fix: make body in `readChanges` optional

## v0.3.1

### [0.3.1](https://github.com/openfga/js-sdk/compare/v0.3.0...v0.3.1) (2024-01-26)
Expand Down
4 changes: 2 additions & 2 deletions configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const DEFAULT_MAX_RETRY = 15;
// default minimum wait period in retry - but will backoff exponentially
const DEFAULT_MIN_WAIT_MS = 100;

const DEFAULT_USER_AGENT = "openfga-sdk js/0.3.1";
const DEFAULT_USER_AGENT = "openfga-sdk js/0.3.2";

export interface RetryParams {
maxRetry?: number;
Expand Down Expand Up @@ -74,7 +74,7 @@ export class Configuration {
* @type {string}
* @memberof Configuration
*/
private static sdkVersion = "0.3.1";
private static sdkVersion = "0.3.2";

/**
* provide the full api URL (e.g. `https://api.fga.example`)
Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Steps
2. In the Example `package.json` change the `@openfga/sdk` dependency from a semver range like below
```json
"dependencies": {
"@openfga/sdk": "^0.3.1"
"@openfga/sdk": "^0.3.2"
}
```
to a `file:` reference like below
Expand Down
6 changes: 3 additions & 3 deletions example/example1/example1.mjs
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { Credentials, CredentialsMethod, FgaApiValidationError, OpenFgaClient, TypeName } from "@openfga/sdk";
import { CredentialsMethod, FgaApiValidationError, OpenFgaClient, TypeName } from "@openfga/sdk";

async function main () {
let credentials;
if (process.env.FGA_CLIENT_ID) {
credentials = new Credentials({
credentials = {
method: CredentialsMethod.ClientCredentials,
config: {
clientId: process.env.FGA_CLIENT_ID,
clientSecret: process.env.FGA_CLIENT_SECRET,
apiAudience: process.env.FGA_API_AUDIENCE,
apiTokenIssuer: process.env.FGA_API_TOKEN_ISSUER
}
});
};
}

const fgaClient = new OpenFgaClient({
Expand Down
2 changes: 1 addition & 1 deletion example/example1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node example1.mjs"
},
"dependencies": {
"@openfga/sdk": "^0.3.1"
"@openfga/sdk": "^0.3.2"
},
"engines": {
"node": ">=16.13.0"
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openfga/sdk",
"version": "0.3.1",
"version": "0.3.2",
"description": "JavaScript and Node.js SDK for OpenFGA",
"author": "OpenFGA",
"keywords": [
Expand Down

0 comments on commit 73d4e48

Please sign in to comment.