Skip to content

Commit

Permalink
release: v0.6.2 (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Jul 31, 2024
2 parents ded34ef + cdce869 commit 2d47da1
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 10 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## v0.6.2

### [0.6.2](https://github.com/openfga/js-sdk/compare/v0.6.1...v0.6.2) (2024-07-31)
- feat: add support for specifying consistency when evaluating or reading (#129)
Note: To use this feature, you need to be running OpenFGA v1.5.7+ with the experimental flag
`enable-consistency-params` enabled. See the [v1.5.7 release notes](https://github.com/openfga/openfga/releases/tag/v1.5.7) for details.

## v0.6.1

### [0.6.1](https://github.com/openfga/js-sdk/compare/v0.6.0...v0.6.1) (2024-07-11)
Expand Down
2 changes: 1 addition & 1 deletion common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
import { setNotEnumerableProperty } from "./utils";
import { buildAttributes } from "./telemetry";

const meter = metrics.getMeter("@openfga/sdk", "0.6.1");
const meter = metrics.getMeter("@openfga/sdk", "0.6.2");
const durationHist = meter.createHistogram("fga-client.request.duration", {
description: "The duration of requests",
unit: "milliseconds",
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.6.1";
const DEFAULT_USER_AGENT = "openfga-sdk js/0.6.2";

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

/**
* provide the full api URL (e.g. `https://api.fga.example`)
Expand Down
2 changes: 1 addition & 1 deletion credentials/credentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class Credentials {
}
break;
case CredentialsMethod.ClientCredentials: {
const meter = metrics.getMeter("@openfga/sdk", "0.6.1");
const meter = metrics.getMeter("@openfga/sdk", "0.6.2");
this.tokenCounter = meter.createCounter("fga-client.credentials.request");
break;
}
Expand Down
2 changes: 1 addition & 1 deletion example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Steps
2. In the Example `package.json` change the `@openfga/sdk` dependency from a semver range like below
```json
"dependencies": {
"@openfga/sdk": "^0.6.1"
"@openfga/sdk": "^0.6.2"
}
```
to a `file:` reference like below
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.6.1"
"@openfga/sdk": "^0.6.2"
},
"engines": {
"node": ">=16.13.0"
Expand Down
2 changes: 1 addition & 1 deletion example/opentelemetry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "node --import ./instrumentation.mjs opentelemetry.mjs"
},
"dependencies": {
"@openfga/sdk": "^0.6.1",
"@openfga/sdk": "^0.6.2",
"@opentelemetry/exporter-metrics-otlp-proto": "^0.52.1",
"@opentelemetry/exporter-prometheus": "^0.52.1",
"@opentelemetry/sdk-metrics": "^1.25.1",
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.6.1",
"version": "0.6.2",
"description": "JavaScript and Node.js SDK for OpenFGA",
"author": "OpenFGA",
"keywords": [
Expand Down

0 comments on commit 2d47da1

Please sign in to comment.