NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
pub.dev · #2314 most downloaded on pub.dev
An http interceptor for token refresh. Fresh is built on top of package:dio and manages authentication tokens transparently.
Last release 7 months ago
26 Feb 2026
Ships fairly regularly
a new release about every 7 months
Nearly every release is documented
notes for 17 of 17 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
18 releases · first in 2020
One column per quarter.
BREAKING feat: adjust the default shouldRefreshBeforeRequest to automatically refresh if the token expires within 30s
shouldRefreshBeforeRequest to automatically refresh if the token expires within 30schore: bump package versions
chore: bump package versions (#137)
feat: ShouldRefreshBeforeRequest allows conditional token refresh based on request details (path, headers, etc.) and token expiration
ShouldRefreshBeforeRequest allows conditional token refresh based on request details (path, headers, etc.) and token expirationToken.expiresAt getterfeat: add isTokenRequired to prevent adding auth headers
isTokenRequired to prevent adding auth headers (#125)fix: hang on uncaught refresh token exception
feat: support subclasses of OAuth2Token in Fresh.oAuth2
FormData on retryOAuth2Token in Fresh.oAuth2mocktail ^1.0.0feat: add assert to prevent infinite refresh loop
assert to prevent infinite refresh looppackage:dio version constraintpubspec.yamlrefactor: use DioException instead of deprecated DioError
Interceptor with QueuedInterceptorDioException instead of deprecated DioErrorLICENSE and README">=2.15.0 <4.0.0"feat: upgrade dart to sdk: ">=2.15.0 <3.0.0"
dio ^0.5.0sdk: ">=2.15.0 <3.0.0"feat: add httpClient parameter to Fresh.oAuth2
mocktail: ^0.3.0very_good_analysis: ^2.4.0fix: remove httpClient lock and add token header to refresh
BREAKING: update to dio: ^4.0.0
dio: ^4.0.0BREAKING: update to dart 2.12 with null safety
fresh: ^0.4.0dio: ^4.0.0-beta7BREAKING: update to fresh: ^0.3.0
fresh: ^0.3.0DioError on RevokeTokenException (#26)fix: handle null response in onResponse (#24).
null response in onResponse (#24).fix: add generic parameter to TokenHeaderBuilder (#22).
<T> parameter to TokenHeaderBuilder (#22).- Update to fresh v0.2.1
fresh v0.2.1Initial Release of the library (copy of package:fresh v0.2.0)
Initial Release of the library (copy of package:fresh v0.2.0)
Fresh interceptor with built-in token refresh.Your coding agent can read these notes before it upgrades. Set up the MCP server →