From b32578a2e6f25a08ee9285139be532b0587816ce Mon Sep 17 00:00:00 2001 From: Rishabh Poddar Date: Tue, 7 Jun 2022 01:06:19 +0530 Subject: [PATCH] refactor: renames interface function to make its purpose more clear (#39) --- CHANGELOG.md | 23 +++++++++++++++---- build.gradle | 2 +- .../session/SessionStorage.java | 2 +- 3 files changed, 21 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee87d586..57269a60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,18 @@ # Changelog + All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres +to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [2.15.0] - 2022-06-07 + +- Changes name of `getAllSessionHandlesForUser` to `getAllNonExpiredSessionHandlesForUser`. + ## [2.14.0] - 2022-05-05 + - User Roles interface ## [2.13.0] - 2022-03-04 @@ -19,7 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 # Added -- Allow starting transactions with lower isolation level (the default is SERIALIZABLE) through an optional flag in startTransaction +- Allow starting transactions with lower isolation level (the default is SERIALIZABLE) through an optional flag in + startTransaction - add workflow to verify if pr title follows conventional commits ## [2.11.0] - 2022-01-14 @@ -35,25 +42,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - User deletion methods ## [2.9.0] - 2021-08-08 + ### Added + - JWT recipe related changes - Multiple access token signing key related changes: https://github.com/supertokens/supertokens-core/issues/305 ## [2.8.0] - 2021-06-21 + ### Added + - Pagination and count functions for all recipes: https://github.com/supertokens/supertokens-core/issues/259 - GetUsersByEmail function for ThirdParty recipe: https://github.com/supertokens/supertokens-core/issues/277 - 2 email verification functions: `unverifyEmail` and `revokeAllTokens` for EmailVerification: https -://github.com/supertokens/supertokens-core/issues/270 + ://github.com/supertokens/supertokens-core/issues/270 - Add change email interface method within transaction: https://github.com/supertokens/supertokens-core/issues/275 ## [2.6.0] - 2021-02-16 + ### Changed + - Extracted email verification into its own recipe - ThirdParty interface ## [2.5.0] - 2021-01-14 + ### Added + - Added RowMapper interface for db queries - Email verification related changes - User pagination related queries \ No newline at end of file diff --git a/build.gradle b/build.gradle index 7d1883a0..e3b850d5 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "2.14.0" +version = "2.15.0" repositories { mavenCentral() diff --git a/src/main/java/io/supertokens/pluginInterface/session/SessionStorage.java b/src/main/java/io/supertokens/pluginInterface/session/SessionStorage.java index 474a5ee4..58bdfeae 100644 --- a/src/main/java/io/supertokens/pluginInterface/session/SessionStorage.java +++ b/src/main/java/io/supertokens/pluginInterface/session/SessionStorage.java @@ -33,7 +33,7 @@ void createNewSession(String sessionHandle, String userId, String refreshTokenHa int deleteSession(String[] sessionHandles) throws StorageQueryException; - String[] getAllSessionHandlesForUser(String userId) throws StorageQueryException; + String[] getAllNonExpiredSessionHandlesForUser(String userId) throws StorageQueryException; void deleteAllExpiredSessions() throws StorageQueryException;