Releases: openfga/js-sdk
Releases · openfga/js-sdk
Release list
v0.9.7-beta.1
Immutable
release. Only release title and notes can be modified.
⚠ BREAKING CHANGES
- The
$responseproperty type changes fromAxiosResponse<T>toFgaResponse<T>. The constructor now accepts an optionalHttpClientinstead ofAxiosInstance.baseOptions.httpAgent/httpsAgentare no longer applicable as fetch handles connection pooling natively.
Changed
What's Changed
- chore: update bootstrap sha by @SoulPancake in #419
- chore(ci): force tag creation in release config for draft releases by @SoulPancake in #422
- chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #424
- chore(deps): bump @opentelemetry/sdk-node from 0.217.0 to 0.218.0 in /example/opentelemetry by @dependabot[bot] in #427
- chore(deps): bump @opentelemetry/exporter-prometheus from 0.217.0 to 0.218.0 in /example/opentelemetry by @dependabot[bot] in #426
- chore(deps): bump the dependencies group with 4 updates by @dependabot[bot] in #423
- chore(deps): bump @opentelemetry/exporter-metrics-otlp-proto from 0.217.0 to 0.218.0 in /example/opentelemetry by @dependabot[bot] in #425
- chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #429
- chore(deps): bump github/codeql-action from 4.35.5 to 4.36.0 in the dependencies group by @dependabot[bot] in #430
- chore: skip github release and use gpg signed tag flow by @SoulPancake in #431
- chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #432
- chore(deps): bump codecov/codecov-action from 6.0.1 to 7.0.0 in the dependencies group by @dependabot[bot] in #434
- chore(deps): bump @opentelemetry/exporter-prometheus from 0.218.0 to 0.219.0 in /example/opentelemetry by @dependabot[bot] in #436
- chore(deps): bump @opentelemetry/exporter-metrics-otlp-proto from 0.218.0 to 0.219.0 in /example/opentelemetry by @dependabot[bot] in #435
- chore(deps): bump @opentelemetry/sdk-node from 0.218.0 to 0.219.0 in /example/opentelemetry by @dependabot[bot] in #437
- chore(deps): bump actions/checkout from 6.0.3 to 7.0.0 in the dependencies group by @dependabot[bot] in #438
- chore(deps): bump form-data from 4.0.5 to 4.0.6 by @dependabot[bot] in #439
- chore(ci): add pre-release lane on develop branch by @SoulPancake in #440
- feat!: replace axios with native fetch by @rhamzeh in #366
- release: v0.9.7-beta.1 by @openfga-releaser-bot[bot] in #443
Full Changelog: v0.9.6...v0.9.7-beta.1
v0.9.6
Immutable
release. Only release title and notes can be modified.
0.9.6 (2026-05-11)
Fixed
- correctly set default retry params (#394) (6b03882) , Thanks @kamilogorek
- prevent token refresh thundering herd (#333) (025346f)
- stop mutating token refresh errors into auth errors (#329) (d5cbccb)
What's Changed
- fix: Correctly set authorization model id when calling batch checks by @kamilogorek in #372
- chore(ci): release automation configs by @SoulPancake in #362
- chore: Add 'release' to task types for PR validation by @SoulPancake in #371
- chore(deps): bump axios from 1.14.0 to 1.15.0 by @dependabot[bot] in #373
- chore: add pull request title pattern for releases by @SoulPancake in #375
- chore: fix releaser config by @SoulPancake in #377
- release: v0.9.5 by @openfga-releaser-bot[bot] in #378
- chore(deps): bump ajv from 8.17.1 to 8.18.0 in /example/streamed-list-objects in the npm_and_yarn group across 1 directory by @dependabot[bot] in #337
- chore(deps): bump actions/upload-artifact from 7.0.0 to 7.0.1 in the dependencies group by @dependabot[bot] in #380
- chore(deps): bump the npm_and_yarn group across 1 directory with 2 updates by @dependabot[bot] in #379
- chore: use releaser app client ID by @SoulPancake in #382
- chore(deps): bump follow-redirects from 1.15.11 to 1.16.0 by @dependabot[bot] in #384
- feat: add APIExecutor dedicated examples by @SoulPancake in #385
- chore(deps): bump actions/setup-node from 6.3.0 to 6.4.0 in the dependencies group by @dependabot[bot] in #387
- chore(deps): bump follow-redirects from 1.15.11 to 1.16.0 in /example/streamed-list-objects in the npm_and_yarn group across 1 directory by @dependabot[bot] in #383
- docs: parse raw stream by @SoulPancake in #389
- fix: prevent token refresh thundering herd by @aaguiarz in #333
- chore: Ignore eslint 10.x dependabot by @curfew-marathon in #390
- chore(deps-dev): bump eslint from 9.39.2 to 9.39.4 by @dependabot[bot] in #391
- chore: add bootstrap-sha to release-please config by @SoulPancake in #393
- fix: correctly set default retry params by @kamilogorek in #394
- feat: draft releases, version verification, and reusable workflows by @SoulPancake in #396
- chore(deps): bump deps by @rhamzeh in #398
- chore(ci): fix typo specifying node version env by @rhamzeh in #399
- chore(ci): Harden GitHub Actions by @step-security-bot in #400
- chore: bump example deps & point to parent SDK rather than published by @rhamzeh in #403
- fix: stop mutating token refresh errors into auth errors by @aaguiarz in #329
- chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #407
- chore(eslint): bump eslint to v10 by @rhamzeh in #412
- chore(deps-dev): bump the dependencies group across 1 directory with 3 updates by @dependabot[bot] in #411
- chore(deps): bump github/codeql-action from 3.35.3 to 4.35.4 in the dependencies group by @dependabot[bot] in #414
- chore(deps-dev): bump @types/node from 25.6.1 to 25.6.2 in the dependencies group across 1 directory by @dependabot[bot] in #413
- release: v0.9.6 by @SoulPancake in #397
- release: v0.9.7 by @openfga-releaser-bot[bot] in #416
- chore: revert release & notes for v0.9.7 by @SoulPancake in #418
New Contributors
- @kamilogorek made their first contribution in #372
- @curfew-marathon made their first contribution in #390
- @step-security-bot made their first contribution in #400
Full Changelog: v0.9.4...v0.9.6
v0.9.5
Immutable
release. Only release title and notes can be modified.
0.9.5 (2026-04-10)
Fixed
- Correctly set authorization model id when calling batch checks (#372) (bbc8bde) - thanks @kamilogorek!
What's Changed
- fix: Correctly set authorization model id when calling batch checks by @kamilogorek in #372
- chore(ci): release automation configs by @SoulPancake in #362
- chore: Add 'release' to task types for PR validation by @SoulPancake in #371
- chore(deps): bump axios from 1.14.0 to 1.15.0 by @dependabot[bot] in #373
- chore: add pull request title pattern for releases by @SoulPancake in #375
- release: v0.9.5 by @openfga-releaser-bot[bot] in #374
New Contributors
- @kamilogorek made their first contribution in #372
- @openfga-releaser-bot[bot] made their first contribution in #374
Full Changelog: v0.9.4...v0.9.5
v0.9.4
v0.9.4 (2026-03-31)
What's Changed
- chore(deps): bump actions/upload-artifact from 6.0.0 to 7.0.0 in the dependencies group by @dependabot[bot] in #346
- chore(deps): bump the dependencies group across 1 directory with 3 updates by @dependabot[bot] in #348
- chore(deps): bump actions/setup-node from 6.2.0 to 6.3.0 in the dependencies group by @dependabot[bot] in #349
- chore(deps-dev): bump @types/node from 25.3.3 to 25.3.5 in the dependencies group by @dependabot[bot] in #350
- chore(deps-dev): bump flatted from 3.3.3 to 3.4.2 by @dependabot[bot] in #355
- chore(deps): bump codecov/codecov-action from 5.5.2 to 5.5.3 in the dependencies group by @dependabot[bot] in #357
- ci: pr conventional commits validator by @SoulPancake in #353
- chore(deps-dev): bump the dependencies group with 3 updates by @dependabot[bot] in #352
- chore(deps): bump picomatch by @dependabot[bot] in #358
- chore(deps-dev): bump handlebars from 4.7.8 to 4.7.9 by @dependabot[bot] in #359
- chore(deps): bump the dependencies group with 2 updates by @dependabot[bot] in #360
- fix(deps): pin axios to 1.14.0 and fix brace-expansion audit vulnerability by @Siddhant-K-code in #363
- chore(release): v0.9.4 by @SoulPancake in #365
Full Changelog: v0.9.3...v0.9.4
v0.9.3
v0.9.3 (2026-02-27)
- feat: add
executeApiRequestandexecuteStreamedApiRequestmethods toOpenFgaClientfor calling arbitrary API endpoints with full SDK support (authentication, retries, telemetry, error handling). See documentation for more. (#298, #345) - thanks @Abishek-Newar! - fix: use current SDK version in telemetry meter (#335)
- fix: disable httprequestduration metric by default to avoid high cardinality (#344)
- fix: apply expiry buffer before reusing cached tokens (#331)
- chore!: drop support for Node.js v16 & 18. We recommend updating to a node-runtime that is supported upstream - currently 20 (maintenance), 22 (maintenance), 24 (LTS) and 25 (current). The minimum supported version of Node.js is now v20. This is in line with our stated supported environments
What's Changed
- feat: support custom OIDC token endpoint URL by @mikesouza in #285
- chore(deps-dev): bump the dependencies group with 4 updates by @dependabot[bot] in #323
- fix: use current SDK version in telemetry meter by @aaguiarz in #335
- feat: Add APIExecutor for calling arbitrary API endpoints by @Abishek-Newar in #298
- chore: npm audit fix by @SoulPancake in #341
- fix: apply expiry buffer before reusing cached tokens by @aaguiarz in #331
- fix: make FgaApiAuthenticationError inherit from FgaApiError by @aaguiarz in #327
- fix: honor explicit msg in FgaError constructor by @aaguiarz in #325
- chore: improve api executor flow by @rhamzeh in #345
- chore(deps): upgrade dependencies by @rhamzeh in #248
- release: v0.9.3 by @SoulPancake in #342
New Contributors
- @mikesouza made their first contribution in #285
Full Changelog: v0.9.2...v0.9.3
v0.9.2
v0.9.2 (2026-02-10)
- feat: add support for streamedListObjects.
- chore: remove node url dependency blocking browser usage (#300)
- feat: Report a per-http call metric (#303) - thanks @Abishek-Newar!
What's Changed
- chore(deps): bump the dependencies group across 1 directory with 2 updates by @dependabot[bot] in #279
- chore(deps): bump the dependencies group across 1 directory with 4 updates by @dependabot[bot] in #281
- chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #284
- chore(deps-dev): bump js-yaml from 3.14.1 to 3.14.2 by @dependabot[bot] in #287
- chore(deps-dev): bump the dependencies group with 3 updates by @dependabot[bot] in #289
- chore(deps): bump the dependencies group across 1 directory with 4 updates by @dependabot[bot] in #295
- chore(deps-dev): bump the dependencies group across 1 directory with 4 updates by @dependabot[bot] in #294
- chore(deps-dev): bump the dependencies group with 3 updates by @dependabot[bot] in #296
- chore(deps-dev): bump the dependencies group across 1 directory with 3 updates by @dependabot[bot] in #299
- chore(deps): bump actions/setup-node from 6.1.0 to 6.2.0 in the dependencies group by @dependabot[bot] in #301
- chore(deps-dev): bump the dependencies group with 3 updates by @dependabot[bot] in #302
- chore(deps): bump actions/checkout from 6.0.1 to 6.0.2 in the dependencies group by @dependabot[bot] in #308
- chore(deps): bump the dependencies group with 4 updates by @dependabot[bot] in #309
- chore: remove dependency on node url by @rhamzeh in #300
- feat: add support for StreamedListObjects by @daniel-jonathan in #280
- feat: Report a per-http call metric by @Abishek-Newar in #303
- chore(deps): bump the dependencies group with 4 updates by @dependabot[bot] in #310
- chore(ci): do not publish pre-releases as latest by @rhamzeh in #314
- chore(deps): bump axios from 1.13.2 to 1.13.5 in /example/streamed-list-objects in the npm_and_yarn group across 1 directory by @dependabot[bot] in #316
- chore(ci): use npm trusted publishing by @rhamzeh in #315
- release: v0.9.2-beta.1 by @SoulPancake in #313
- chore(ci): test on node@22 and node@24 by @rhamzeh in #247
- release: v0.9.2-beta.3 by @SoulPancake in #318
- chore(ci): ensure latest npm is installed for verified publishing by @rhamzeh in #319
- chore: npm publish fix for github runner by @SoulPancake in #320
- release: v0.9.2 by @SoulPancake in #321
New Contributors
- @daniel-jonathan made their first contribution in #280
Full Changelog: v0.9.1...v0.9.2
v0.9.1
v0.9.1 (2025-11-05)
- feat: add support for handling Retry-After header (#267)
- feat: add support for conflict options for Write operations: (#276)
The client now supports settingconflictonClientWriteRequestOptsto control behavior when writing duplicate tuples or deleting non-existent tuples. This feature requires OpenFGA server v1.10.0 or later.
See Conflict Options for Write Operations for more.
What's Changed
- chore: update SECURITY-INSIGHTS by @aaguiarz in #239
- chore(ci): restrict semgrep workflow permissions to only read contents by @aaguiarz in #240
- chore(deps): upgrade dependencies by @rhamzeh in #241
- chore(deps): bump codecov/codecov-action from 5.4.2 to 5.4.3 in the dependencies group by @dependabot[bot] in #226
- chore(ci): remove semgrep workflow by @rhamzeh in #244
- chore(deps-dev): bump @types/node from 24.2.0 to 24.2.1 in the dependencies group across 1 directory by @dependabot[bot] in #246
- chore: create scorecard.yml by @aaguiarz in #245
- ci: update dependabot config by @evansims in #249
- chore(deps-dev): bump the dependencies group with 3 updates by @dependabot[bot] in #251
- chore(deps): bump the dependencies group with 3 updates by @dependabot[bot] in #250
- chore(deps): bump axios from 1.11.0 to 1.12.0 in the npm_and_yarn group across 1 directory by @dependabot[bot] in #257
- chore(deps): bump the dependencies group across 1 directory with 4 updates by @dependabot[bot] in #258
- chore(deps): bump the dependencies group across 1 directory with 2 updates by @dependabot[bot] in #255
- chore(docs): add scorecard, deepwiki and socket.dev badges by @aaguiarz in #260
- Update SECURITY-INSIGHTS by @aaguiarz in #259
- chore(deps-dev): bump the dependencies group with 4 updates by @dependabot[bot] in #261
- chore: Add docs and tests for sending custom headers by @jimmyjames in #262
- chore(deps): bump ossf/scorecard-action from 2.4.2 to 2.4.3 in the dependencies group by @dependabot[bot] in #264
- chore(deps-dev): bump the dependencies group with 4 updates by @dependabot[bot] in #263
- feat: List Stores Name Filter by @jimmyjames in #265
- chore(deps-dev): bump the dependencies group with 2 updates by @dependabot[bot] in #269
- feat: add support for handling
Retry-Afterheader by @SoulPancake in #267 - chore: Added a top-level Makefile in js-sdk to simplify running tests and li… by @Abishek-Newar in #277
- chore: reduce generated code by @rhamzeh in #266
- feat: add support for write conflict settings by @phamhieu in #276
- release: v0.9.1 by @rhamzeh in #283
New Contributors
- @aaguiarz made their first contribution in #239
- @SoulPancake made their first contribution in #267
- @Abishek-Newar made their first contribution in #277
- @phamhieu made their first contribution in #276
Full Changelog: v0.9.0...v0.9.1
v0.9.0
v0.8.1
v0.8.0
0.8.0 (2025-01-14)
- feat!: add support for server-side
BatchCheckmethod. This is a more efficient way to check on multiple tuples than calling the existing client-sideBatchCheck. Using this method requires an OpenFGA v1.8.0+ server.- The existing
BatchCheckmethod has been renamed toclientBatchCheckand it now bundles the results in a field calledresultinstead ofresponses. - The existing
BatchCheckResponsehas been renamed toClientBatchCheckResponse.
- The existing
- feat: add support for
startTimeparameter inReadChangesendpoint - feat: support contextual tuples and context in assertions
- feat: support contextual tuples in Expand
- fix: error correctly if apiUrl is not provided - thanks @Waheedsys (#161)
- fix: use provided axios instance in credentials refresh - thanks @Siddhant-K-code (#193)
- fix!: The minimum node version required by this SDK is now v16.15.0
- chore(docs): various cleanup and improvements - thanks @tmsagarofficial (#164), @vil02 (openfga/sdk-generator#424, openfga/sdk-generator#422), @sccalabr (openfga/sdk-generator#433)
BREAKING CHANGES:
- The minimum node version required by this SDK is now v16.15.0
- Usage of the existing
batchCheckmethod should now use theclientBatchCheckmethod. The existingBatchCheckResponsehas been renamed toClientBatchCheckResponseand it now bundles the results in a field calledresultinstead ofresponses.