Skip to content

Commit 719d579

Browse files
committed
feat: use semantic versioning instead
1 parent 470ddb8 commit 719d579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libs/client-api/src/http.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ use url::Url;
4646
use gotrue_entity::dto::SignUpResponse::{Authenticated, NotAuthenticated};
4747
use gotrue_entity::dto::{GotrueTokenResponse, UpdateGotrueUserParams, User};
4848

49-
pub const CLIENT_API_VERSION: Option<&'static str> = std::option_env!("GITHUB_SHA");
49+
pub const CLIENT_API_VERSION: &str = "0.0.3";
5050
pub const X_COMPRESSION_TYPE: &str = "X-Compression-Type";
5151
pub const X_COMPRESSION_BUFFER_SIZE: &str = "X-Compression-Buffer-Size";
5252
pub const X_COMPRESSION_TYPE_BROTLI: &str = "brotli";
@@ -1178,7 +1178,7 @@ impl Client {
11781178
let request_builder = self
11791179
.cloud_client
11801180
.request(method, url)
1181-
.header("client-version", CLIENT_API_VERSION.unwrap_or("unknown"))
1181+
.header("client-version", CLIENT_API_VERSION)
11821182
.header("client-timestamp", ts_now.to_string())
11831183
.bearer_auth(access_token);
11841184
Ok(request_builder)

0 commit comments

Comments
 (0)