Skip to content
Merged
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
6 changes: 6 additions & 0 deletions config/clients/js/CHANGELOG.md.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

## [Unreleased](https://github.com/openfga/js-sdk/compare/v{{packageVersion}}...HEAD)

## v0.8.1

### [v0.8.1](https://github.com/openfga/js-sdk/compare/v0.8.0...v0.8.1) (2025-04-24)

- fix: change check for Node.js environment to fix issue where `process.title` cannot be read (#222)

## v0.8.0

### [0.8.0](https://github.com/openfga/js-sdk/compare/v0.7.0...v0.8.0) (2025-01-14)
Expand Down
2 changes: 1 addition & 1 deletion config/clients/js/config.overrides.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"sdkId": "js",
"gitRepoId": "js-sdk",
"packageName": "@openfga/sdk",
"packageVersion": "0.8.0",
"packageVersion": "0.8.1",
"packageDescription": "JavaScript and Node.js SDK for OpenFGA",
"packageDetailedDescription": "This is an autogenerated JavaScript SDK for OpenFGA. It provides a wrapper around the [OpenFGA API definition](https://openfga.dev/api), and includes TS typings.",
"npmRegistry": "https://registry.npmjs.org/",
Expand Down
2 changes: 1 addition & 1 deletion config/clients/js/template/configuration.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class Configuration {
const baseOptions = params.baseOptions || {};
baseOptions.headers = baseOptions.headers || {};

if (typeof process === "object" && process.title === "node" && !baseOptions.headers["User-Agent"]) {
if (typeof process === "object" && process.versions?.node && !baseOptions.headers["User-Agent"]) {
baseOptions.headers["User-Agent"] = DEFAULT_USER_AGENT;
}

Expand Down
Loading