Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .idx/dev.nix
Original file line number Diff line number Diff line change
@@ -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";
};
};
};
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,15 @@
The client now supports setting `conflict` on `ClientWriteRequestOpts` to control behavior when writing duplicate tuples or deleting non-existent tuples. This feature requires OpenFGA server [v1.10.0](https://github.com/openfga/openfga/releases/tag/v1.10.0) or later.
See [Conflict Options for Write Operations](./README.md#conflict-options-for-write-operations) for more.

### Bug Fixes

- fix(telemetry): support TypeScript exactOptionalPropertyTypes compiler option

Comment on lines +23 to +26
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This changelog entry is currently placed under the v0.9.1 section (after the v0.9.1 bullets). If this telemetry fix is intended for a future release, it should go under the Unreleased section (or the correct version section), otherwise it will read as if it shipped in v0.9.1.

Copilot uses AI. Check for mistakes.

## v0.9.0



### [v0.9.0](https://github.com/openfga/js-sdk/compare/v0.8.1...v0.9.0) (2025-06-04)
Comment on lines +25 to 32
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are multiple extra blank lines introduced around this new changelog section (e.g., between the entry and the next version header). Please trim the redundant empty lines to keep the changelog formatting consistent and readable.

Copilot uses AI. Check for mistakes.

- feat: support client assertion for client credentials authentication (#228)
Expand Down
3 changes: 2 additions & 1 deletion telemetry/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ export interface TelemetryMetricConfig {
* @property {Record<TelemetryMetric, TelemetryMetricConfig>} metrics - A record mapping telemetry metrics to their configurations.
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The JSDoc for TelemetryConfig.metrics says it is a required Record<TelemetryMetric, TelemetryMetricConfig>, but the actual type is optional and Partial<...> (and now explicitly allows undefined). Please update the doc comment so it accurately reflects the public type contract.

Suggested change
* @property {Record<TelemetryMetric, TelemetryMetricConfig>} metrics - A record mapping telemetry metrics to their configurations.
* @property {Partial<Record<TelemetryMetric, TelemetryMetricConfig>> | undefined} metrics - An optional record mapping telemetry metrics to their configurations.

Copilot uses AI. Check for mistakes.
*/
export interface TelemetryConfig {
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>>;
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>> | undefined;
Copy link

Copilot AI Feb 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is marked as auto-generated ("DO NOT EDIT"). If telemetry/configuration.ts is regenerated as part of the build/release process, this manual type tweak is likely to be overwritten. Consider applying the change in the OpenAPI Generator input/templates (or whatever generation step produces this file) so the fix persists across regenerations.

Suggested change
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>> | undefined;
metrics?: Partial<Record<TelemetryMetric, TelemetryMetricConfig>>;

Copilot uses AI. Check for mistakes.
}


/**
* Manages the overall telemetry configuration, including default and valid attributes.
*
Expand Down
Loading