From 57c6201496273b73890559fc6a1fc4400166f330 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Tue, 30 Apr 2024 23:54:48 +0530 Subject: [PATCH 1/2] preps for release --- CHANGELOG.md | 5 +++++ supertokens/constants.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1d503c4..6b954343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.18.0] - 2024-04-30 + +### Changes - `session.CreateNewSession` now defaults to the value of the `st-auth-mode` header (if available) if the configured `config.GetTokenTransferMethod` returns `any`. - Enable smooth switching between `useDynamicAccessTokenSigningKey` settings by allowing refresh calls to change the signing key type of a session. + +### Breaking changes - Make session required during signout. ## [0.17.5] - 2024-03-14 diff --git a/supertokens/constants.go b/supertokens/constants.go index 200d0d49..e3db5743 100644 --- a/supertokens/constants.go +++ b/supertokens/constants.go @@ -21,7 +21,7 @@ const ( ) // VERSION current version of the lib -const VERSION = "0.17.5" +const VERSION = "0.18.0" var ( cdiSupported = []string{"3.0"} From e640844a54d03e125c1b08690d549bcbffe56975 Mon Sep 17 00:00:00 2001 From: rishabhpoddar Date: Wed, 1 May 2024 00:39:32 +0530 Subject: [PATCH 2/2] fixes a test --- recipe/thirdpartypasswordless/signoutFeature_test.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/recipe/thirdpartypasswordless/signoutFeature_test.go b/recipe/thirdpartypasswordless/signoutFeature_test.go index 6b4ff826..da141742 100644 --- a/recipe/thirdpartypasswordless/signoutFeature_test.go +++ b/recipe/thirdpartypasswordless/signoutFeature_test.go @@ -280,12 +280,7 @@ func TestCallingAPIWithoutSessionShouldReturnOk(t *testing.T) { if err != nil { t.Error(err.Error()) } - assert.Equal(t, http.StatusOK, resp.StatusCode) - assert.Equal(t, 0, len(resp.Cookies())) - assert.Equal(t, "", resp.Header.Get("set-cookie")) - - response := *unittesting.HttpResponseToConsumableInformation(resp.Body) - assert.Equal(t, "OK", response["status"]) + assert.Equal(t, 401, resp.StatusCode) } func TestThatSignoutAPIreturnsTryRefreshTokenRefreshSessionAndSignoutShouldReturnOk(t *testing.T) {