diff --git a/CHANGELOG.md b/CHANGELOG.md index 09b7d821..d7f1eded 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [5.1.0] - 2024-04-22 + +- Adds `addTenantIdentifier` to the storage interface. + ## [5.0.1] - 2024-03-21 - Adds `appIdentifier` param to `getUserIdMappingForSuperTokensIds` diff --git a/build.gradle b/build.gradle index b2a2e5ab..98de685b 100644 --- a/build.gradle +++ b/build.gradle @@ -2,7 +2,7 @@ plugins { id 'java-library' } -version = "5.0.1" +version = "5.1.0" repositories { mavenCentral() diff --git a/src/main/java/io/supertokens/pluginInterface/Storage.java b/src/main/java/io/supertokens/pluginInterface/Storage.java index 51e28f57..68369617 100644 --- a/src/main/java/io/supertokens/pluginInterface/Storage.java +++ b/src/main/java/io/supertokens/pluginInterface/Storage.java @@ -25,6 +25,7 @@ import io.supertokens.pluginInterface.multitenancy.TenantIdentifier; import io.supertokens.pluginInterface.multitenancy.exceptions.TenantOrAppNotFoundException; +import java.util.List; import java.util.Set; public interface Storage { @@ -52,7 +53,7 @@ public interface Storage { void stopLogging(); // load tables and create connection pools - void initStorage(boolean shouldWait) throws DbInitException; + void initStorage(boolean shouldWait, List tenantIdentifiers) throws DbInitException; // used by the core to do transactions the right way. STORAGE_TYPE getType();