From d0d57bd56c07be63e34036a3e4e7efbe3b45f2c9 Mon Sep 17 00:00:00 2001 From: shaibuuneks Date: Thu, 16 Oct 2025 21:59:00 +0000 Subject: [PATCH 1/2] fix(telemetry): support exactOptionalPropertyTypes compiler option --- .idx/dev.nix | 55 ++++++++++++++++++++++++++++++++++++++ telemetry/configuration.ts | 3 ++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .idx/dev.nix diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000..ab83c38 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,55 @@ +# To learn more about how to use Nix to configure your environment +# see: https://firebase.google.com/docs/studio/customize-workspace +{ pkgs, ... }: { + # Which nixpkgs channel to use. + channel = "stable-24.05"; # or "unstable" + + # Use https://search.nixos.org/packages to find packages + packages = [ + # pkgs.go + # pkgs.python311 + # pkgs.python311Packages.pip + # pkgs.nodejs_20 + # pkgs.nodePackages.nodemon + ]; + + # Sets environment variables in the workspace + env = {}; + idx = { + # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id" + extensions = [ + # "vscodevim.vim" + ]; + + # Enable previews + previews = { + enable = true; + previews = { + # web = { + # # Example: run "npm run dev" with PORT set to IDX's defined port for previews, + # # and show it in IDX's web preview panel + # command = ["npm" "run" "dev"]; + # manager = "web"; + # env = { + # # Environment variables to set for your server + # PORT = "$PORT"; + # }; + # }; + }; + }; + + # Workspace lifecycle hooks + workspace = { + # Runs when a workspace is first created + onCreate = { + # Example: install JS dependencies from NPM + # npm-install = "npm install"; + }; + # Runs when the workspace is (re)started + onStart = { + # Example: start a background task to watch and re-build backend code + # watch-backend = "npm run watch-backend"; + }; + }; + }; +} diff --git a/telemetry/configuration.ts b/telemetry/configuration.ts index 5de796b..6c1b4fe 100644 --- a/telemetry/configuration.ts +++ b/telemetry/configuration.ts @@ -32,9 +32,10 @@ export interface TelemetryMetricConfig { * @property {Record} metrics - A record mapping telemetry metrics to their configurations. */ export interface TelemetryConfig { - metrics?: Partial>; + metrics?: Partial> | undefined; } + /** * Manages the overall telemetry configuration, including default and valid attributes. * From 1693be9e7846b9c13443dfe5972829abd4ce8c7e Mon Sep 17 00:00:00 2001 From: shaibuuneks Date: Thu, 16 Oct 2025 22:31:14 +0000 Subject: [PATCH 2/2] CHANGELOG.md addition --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39ea3c0..a6552a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,15 @@ ## [Unreleased](https://github.com/openfga/js-sdk/compare/v0.9.0...HEAD) +### Bug Fixes + +- fix(telemetry): support TypeScript exactOptionalPropertyTypes compiler option + + ## v0.9.0 + + ### [v0.9.0](https://github.com/openfga/js-sdk/compare/v0.8.1...v0.9.0) (2025-06-04) - feat: support client assertion for client credentials authentication (#228)