diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 14a1254..fc0c244 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -34,6 +34,7 @@ example/Makefile example/README.md example/example1/example1.mjs example/example1/package.json +example/opentelemetry/.env.example example/opentelemetry/.npmrc example/opentelemetry/README.md example/opentelemetry/instrumentation.mjs diff --git a/CHANGELOG.md b/CHANGELOG.md index 574b713..71458df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### [0.6.3](https://github.com/openfga/js-sdk/compare/v0.6.2...v0.6.3) (2024-08-28) + +- fix: set the consistency parameter correctly in OpenFgaClient (#143) + ## v0.6.2 ### [0.6.2](https://github.com/openfga/js-sdk/compare/v0.6.1...v0.6.2) (2024-07-31) diff --git a/common.ts b/common.ts index 264ab72..f3415e2 100644 --- a/common.ts +++ b/common.ts @@ -28,7 +28,7 @@ import { import { setNotEnumerableProperty } from "./utils"; import { buildAttributes } from "./telemetry"; -const meter = metrics.getMeter("@openfga/sdk", "0.6.2"); +const meter = metrics.getMeter("@openfga/sdk", "0.6.3"); const durationHist = meter.createHistogram("fga-client.request.duration", { description: "The duration of requests", unit: "milliseconds", diff --git a/configuration.ts b/configuration.ts index 54f78b2..1c844bc 100644 --- a/configuration.ts +++ b/configuration.ts @@ -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.2"; +const DEFAULT_USER_AGENT = "openfga-sdk js/0.6.3"; export interface RetryParams { maxRetry?: number; @@ -73,7 +73,7 @@ export class Configuration { * @type {string} * @memberof Configuration */ - private static sdkVersion = "0.6.2"; + private static sdkVersion = "0.6.3"; /** * provide the full api URL (e.g. `https://api.fga.example`) diff --git a/credentials/credentials.ts b/credentials/credentials.ts index 2510435..096e0f7 100644 --- a/credentials/credentials.ts +++ b/credentials/credentials.ts @@ -52,7 +52,7 @@ export class Credentials { } break; case CredentialsMethod.ClientCredentials: { - const meter = metrics.getMeter("@openfga/sdk", "0.6.2"); + const meter = metrics.getMeter("@openfga/sdk", "0.6.3"); this.tokenCounter = meter.createCounter("fga-client.credentials.request"); break; } diff --git a/example/README.md b/example/README.md index 97a5a44..33afebb 100644 --- a/example/README.md +++ b/example/README.md @@ -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.2" + "@openfga/sdk": "^0.6.3" } ``` to a `file:` reference like below diff --git a/example/example1/package.json b/example/example1/package.json index 15ce6b4..8c21cbc 100644 --- a/example/example1/package.json +++ b/example/example1/package.json @@ -9,7 +9,7 @@ "start": "node example1.mjs" }, "dependencies": { - "@openfga/sdk": "^0.6.2" + "@openfga/sdk": "^0.6.3" }, "engines": { "node": ">=16.13.0" diff --git a/example/opentelemetry/package.json b/example/opentelemetry/package.json index b9f88f1..c204552 100644 --- a/example/opentelemetry/package.json +++ b/example/opentelemetry/package.json @@ -9,7 +9,7 @@ "start": "node --import ./instrumentation.mjs opentelemetry.mjs" }, "dependencies": { - "@openfga/sdk": "^0.6.2", + "@openfga/sdk": "^0.6.3", "@opentelemetry/exporter-metrics-otlp-proto": "^0.52.1", "@opentelemetry/exporter-prometheus": "^0.52.1", "@opentelemetry/sdk-metrics": "^1.25.1", diff --git a/package-lock.json b/package-lock.json index d0eb67b..ba03a4e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@openfga/sdk", - "version": "0.6.2", + "version": "0.6.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@openfga/sdk", - "version": "0.6.2", + "version": "0.6.3", "license": "Apache-2.0", "dependencies": { "@opentelemetry/api": "^1.9.0", diff --git a/package.json b/package.json index 1d84e48..c78f898 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@openfga/sdk", - "version": "0.6.2", + "version": "0.6.3", "description": "JavaScript and Node.js SDK for OpenFGA", "author": "OpenFGA", "keywords": [