Releases: GDATASoftwareAG/vaas
Releases · GDATASoftwareAG/vaas
cs7.6.3
What's Changed
- dotnet: Update all major dependencies (major) by @ata-no-one in #683
- dotnet: Update all non-major dependencies by @ata-no-one in #697
- dotnet: Update all non-major dependencies by @ata-no-one in #713
- dotnet: Update all non-major dependencies by @ata-no-one in #718
Full Changelog: cs7.6.2...cs7.6.3
ts7.6.4
What's Changed
- typescript: Update all non-major dependencies by @ata-no-one in #716
Full Changelog: java9.0.1...ts7.6.4
java9.0.1
What's Changed
- java: Update all non-major dependencies by @ata-no-one in #714
Full Changelog: java9.0.0...java9.0.1
java9.0.0
What's Changed
This is a major release and may break your code. Please read the full changelog before upgrading.
- Change to HTTP API: This release changes the underlying protocol used by the SDK from Websockets to HTTP.
- No
connect()
needed: Since the SDK now uses HTTP, it is stateless and does not require a connection to be established. - Async API: The SDK now uses a fully async API. All methods now return non-blocking
CompletableFuture
's instead. - Sync API: A synchronous API is also available. This is a thin wrapper around the async API. The main difference is that the synchronous API blocks until the result is available and returns the result directly. Also exceptions are thrown directly instead of being wrapped in an
ExecutionException
with an inner exception you have to unwrap. - Method calls: Even though the SDK is now async over HTTP the method signatures are mostly the same. Please take a look at the Java SDK examples.
- Documentation: Please take a look at the method documentation in the
IVaas
interface here.
How to migrate
To scan a file, you previously had to proceed as follows:
var authenticator = new ClientCredentialsGrantAuthenticator(clientId, clientSecret, new URI(tokenUrl));
var config = new VaasConfig(new URI(vaasUrl));
var vaas = new Vaas(config, authenticator);
vaas.connect();
var verdict = vaas.forFile(Path.of(filePath));
vaas.disconnect();
System.out.printf("File %s was detected as %s", verdict.getSha256(), verdict.getVerdict()));
With the new SDK, you can now scan a file like this:
var authenticator = new ClientCredentialsGrantAuthenticator(env.clientId, env.clientSecret, new URI(env.tokenUrl));
var config = new VaasConfig(new URI(env.vaasUrl));
var vaas = new Vaas(config, authenticator);
var verdict = vaas.forFile(Path.of(filePath));
System.out.printf("File %s was sync detected as %s", verdict.getSha256(), verdict.getVerdict());
Or with the async API:
var authenticator = new ClientCredentialsGrantAuthenticator(env.clientId, env.clientSecret, new URI(env.tokenUrl));
var config = new VaasConfig(new URI(env.vaasUrl));
var vaas = new Vaas(config, authenticator);
// Take care that exceptions need to be unpacked from ExecutionException or CompletionException
vaas.forFileAsync(file).thenAccept(vaasResult -> {
System.out.printf("\nFile %s was async detected as %s", vaasResult.getSha256(), vaasResult.getVerdict());
}).get();
Full Changelog: java8.3.8...java9.0.0
ts7.6.3
What's Changed
- typescript: Update all non-major dependencies by @ata-no-one in #696
- typescript: Update dependency @types/node to v22.10.7 by @ata-no-one in #705
- typescript: Update all non-major dependencies by @ata-no-one in #709
Full Changelog: ts7.6.2...ts7.6.3
ts7.6.2
What's Changed
- typescript: Update all non-major dependencies by @ata-no-one in #688
Full Changelog: cs7.6.2...ts7.6.2
golang/vaas/v3.0.12
What's Changed
- build(deps): bump golang.org/x/crypto from 0.24.0 to 0.31.0 in /golang/vaas by @dependabot in #693
- build(deps): bump golang.org/x/net from 0.26.0 to 0.33.0 in /golang/vaas by @dependabot in #694
- golang: Update module github.com/go-playground/validator/v10 to v10.24.0 by @ata-no-one in #695
Full Changelog: ts7.6.2...golang/vaas/v3.0.12
ts7.6.1
What's Changed
- typescript: Update all non-major dependencies by @ata-no-one in #672
Full Changelog: ts7.6.0...ts7.6.1
cs7.6.2
What's Changed
- dotnet: Update all non-major dependencies by @ata-no-one in #673
Full Changelog: ts7.6.1...cs7.6.2
ts7.6.0
What's Changed
- typescript: Update all non-major dependencies by @ata-no-one in #668
Full Changelog: golang/vaas/v3.0.11...ts7.6.0