Releases: transloadit/java-sdk
Releases · transloadit/java-sdk
v2.2.4
v2.2.3
v2.2.2
v2.2.1
v2.2.0
Highlights
- stop reconnecting to the SSE stream after an
assembly_finishedevent to prevent post-completion errors and timeouts - add focused unit coverage and a live integration test for the SSE stream via the Docker harness
- document the 2.2.0 release alongside the new version metadata
Checks
- ./scripts/test-in-docker.sh test --tests com.transloadit.sdk.EventsourceRunnableTest
- ./scripts/test-in-docker.sh test --tests com.transloadit.sdk.integration.AssemblySseIntegrationTest
- ./scripts/test-in-docker.sh check
Let remote servers sign payloads
v2.0.1
v2.0.0
2.0.0 / 2024-01-14
Major Release
- Exchange the Socket based assembly status fetching with a Server-Sent-Events (SSE) solution.
- Added new methods to the AssemblyListener interface to provide more information about the assembly status. e.g. encoding progress with AssemblyListener#onAssemblyProgress().
- Changed existing methods in the AssemblyListener interface to provide the bare JSON response from the api instead of pre-parsed data.
- Removed the deprecated AsyncAssemblies class and functionality.
Breaking Changes - Upgrade Guide
-
The AssemblyListener interface has been upgraded. As a result you will have to implement the following methods:
onFileUploadFinished(JSONObject uploadInformation);onAssemblyProgress(JSONObject progress)onAssemblyResultFinished(JSONArray result)
-
The AsyncAssembly class has been removed. If you were using it, you will have to switch to the regular Assembly class.
It has been extended with asynchronous upload capabilities in the past.
The Example underexamples/src/main/java/com/transloadit/examples/MultiStepProcessing.javashows how to use the new features.
v1.0.1
1.0.1 / 2024-11-28
- Added SDK support for generating signed Smart CDN URLs (see https://transloadit.com/docs/topics/signature-authentication/#smart-cdn).
This functionality ships as Transloadit#getSignedSmartCDNUrl() - Method. - Migrated test suite from JUnit4 to JUnit 5
- Upgrade okhttp to 4.12.0 as a security update
v1.0.0
1.0.0 / 2022-12-14
Major Release
Warning: This version includes breaking changes and some experimental features, please keep that in mind when using it.
If you encounter any problems because of the upgrade, please do not hesitate to contact [email protected]
or open a GitHub-Issue.
Breaking Changes - Upgrade Guide
- The
AssemblyListenerInterface has been upgraded. As a result, you will have to implement the following methods:onFileUploadPaused(String name)onFileUploadResumed(String name)onFileUploadProgress(long uploadedBytes, long totalBytes)
If you do not need their functionality, just leave them blank.
- Also take note of the deprecation of
AsyncAssemblies. The normalAssemblyclass, thanks to its extended
functionality, serves as a replacement. You can find more about it further down in the text.
Most Important Innovations:
- Introduction of multithreaded uploads. - Now you can upload multiple files in parallel:
- The uploads are pausable via
Assembly#pauseUploads(). - And resumable with
Assembly#resumeUploads(). - The default value of files being uploaded at the same time is 2. You can adjust this with
Assembly#setMaxParallelUploads(int maxUploads). - If you want to turn off this feature, use:
Assembly#setMaxParallelUploads(int maxUploads)with a value of 1.
- The uploads are pausable via
- The
AssemblyListenerhas now an extended feature set and provides also information to the new upload mode. AsyncAssembliesare deprecated now in favor of multithreaded uploads.- Because some users, especially on Android, are using
AsyncAssemblies
this release ships a fix for the corresponding Listeners to avoidNullPointerExceptions. - If you want to add a
Stepto anAssembly, providing the Robot's name is now optional. This helps if you want to do a Template Override.
The provided Examples were revised, and new examples have been added.