Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 6.1 compatibility #43

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [1.27.1] - 2024-04-19

- Compatible with plugin interface version 6.1

## [1.27.0] - 2024-03-13

- Compatibility with plugin interface 6.0.0
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ plugins {
id 'java-library'
}

version = "1.27.0"
version = "1.27.1"

repositories {
mavenCentral()
Expand Down
2 changes: 1 addition & 1 deletion pluginInterfaceSupported.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"_comment": "contains a list of plugin interfaces branch names that this core supports",
"versions": [
"6.0"
"6.1"
]
}
5 changes: 3 additions & 2 deletions src/main/java/io/supertokens/storage/mongodb/Start.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import io.supertokens.storage.mongodb.queries.JWTSigningQueries;
import org.slf4j.LoggerFactory;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

Expand All @@ -60,7 +61,7 @@ public class Start implements SessionNoSQLStorage_1, JWTRecipeNoSQLStorage_1 {
@Override
public void deleteAllInformation() throws StorageQueryException {
try {
initStorage(false);
initStorage(false, new ArrayList<>());
enabled = true;
Queries.deleteAllCollections(this);
} catch (MongoException e) {
Expand Down Expand Up @@ -294,7 +295,7 @@ public void stopLogging() {
}

@Override
public void initStorage(boolean shouldWait) throws DbInitException {
public void initStorage(boolean shouldWait, List<TenantIdentifier> tenantIdentifiers) throws DbInitException {
ConnectionPool.initPool(this);
}

Expand Down
Loading