Releases: suborbital/reactr
Beta-9.1
Beta-9
This release contains a huge internal improvement to how WebAssembly modules communicate with Reactr. Your Runnables will need to be re-compiled with the 0.9.0 libraries for Rust and Swift.
This release also improves the safety of the Rust Runnable crate by changing the return value of some functions to Result
or Option
. Please update your code accordingly.
WebAssembly Runnables are now more performant when accessing or returning large amounts of data, and the new internal system will make it easier to develop new features in the future.
Of note, two pieces of functionality are still missing from the Swift library compared to Rust:
- Setting HTTP request and response headers
- Ability to return errors from the run method
These will be added soon.
Beta-8.2
Beta-8.1
Beta-8.1 brings the ability to set response headers from Wasm Runnables.
Using Rust, resp::set_header(key, val)
will indicate to the caller that the module wants to set a Response header and the headers will be included in the job response.
This functionality only works when a CoordinatedRequest is mounted on the instance (by passing its JSON as the job data)
Beta-8
Welcome to Beta-8 of Reactr!
This release is a breaking change for Rust Runnables
Rust Runnables can now return errors! The signature of run
has been changed to return Result<Vec<u8>, RunErr>
, which allows propogating an error code and message to the caller. Consumers of Reactr can use errors.As
to see if an error returned from a job is rt.RunErr
, indicating that it was an error returned from a Runnable. Other error types indicate a failure to actually execute the Runnable in some way.
The Swift Runnable API will be updated in a future version to support returning errors.
Beta-7.1
Beta-7
The scheduler now has Schedules! Beta-7 brings the ability to register a Schedule
object that will run jobs based on a schedule you define, such as "run after 1 minute" or "run every hour" or anything else you can think of!
The Schedule
interface is very easy to implement for custom Schedules, and the Every
and After
Schedules are provided in the rt
package.
Enjoy!
Beta-6.3
This release contains some minor but important tweaks to memory management in the Swift library. You should update your Runnable versions to 0.6.3 for Swift and Rust and re-build.
No breaking changes to the FFI, so 0.6.3 runnables are backwards compatible when built.