Skip to content

feat: added autoRefreshToken client settings#104

Merged
petruki merged 2 commits into
masterfrom
staging
May 23, 2026
Merged

feat: added autoRefreshToken client settings#104
petruki merged 2 commits into
masterfrom
staging

Conversation

@petruki
Copy link
Copy Markdown
Member

@petruki petruki commented May 23, 2026

This pull request introduces a new feature for automatic authentication token refresh in the Switcher Deno client, along with several supporting improvements and dependency updates. The most significant change is the addition of the autoRefreshToken option, which allows the client to automatically refresh its authentication token before it expires, improving reliability for long-running applications. The update also includes enhancements to documentation, test coverage for the new feature, and updates to dependencies and CI configurations.

New Feature: Automatic Authentication Token Refresh

  • Added a new autoRefreshToken option to the client configuration, enabling automatic background refresh of the authentication token before it expires. This includes logic to schedule token refresh, handle failures gracefully, and a mechanism to terminate the refresh process if needed. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]

Documentation Updates

  • Updated the README.md to document the new autoRefreshToken option, including usage examples and configuration table. Also refreshed project badges and branding images. (F3f0dec7L3R3, [1] [2]

Test Coverage

  • Added comprehensive tests for the autoRefreshToken feature, including scenarios for successful refresh, disabled refresh, and refresh failure. [1] [2]

Dependency and CI/CD Updates

  • Upgraded Deno version to 2.8.0 in the development container, GitHub Actions workflows, and test matrix. [1] [2] [3] [4]
  • Updated project version to 2.5.0 in deno.jsonc and sonar-project.properties. [1] [2]

Other Improvements

  • Fixed and clarified type usage for timers in several modules to use NodeJS.Timeout for consistency and correctness. [1] [2] [3]
  • Minor test cleanup and refactoring. [1] [2] [3]

IMPORTANT

Dropped support for Deno v1

@petruki petruki added this to the v2.5.0 milestone May 23, 2026
@petruki petruki self-assigned this May 23, 2026
@petruki petruki added the enhancement New feature or request label May 23, 2026
@sonarqubecloud
Copy link
Copy Markdown

@petruki petruki merged commit 88711dd into master May 23, 2026
5 checks passed
@petruki petruki deleted the staging branch May 23, 2026 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant