Releases: redbadger/crux
crux_core-v0.12.0
Note this is a breaking change!
The 3 bridge functions now return a Result instead of panicking. The error type is BridgeError
, which is a custom error type that can be used to handle errors that occur with serialization and deserialization of messages, as well as other errors that may occur during message processing.
All the examples have been updated to use the new error handling as well as the recent Command
API.
What's Changed
- Error handling in the Bridge by @charypar in #319
- Allow collect on an interator of Command by @charypar in #320
- remaining examples off AppTester by @StuartHarris in #316
- Update deps by @StuartHarris in #321
Full Changelog: crux_core-v0.11.3...crux_core-v0.12.0
crux_core-v0.11.3
What's Changed
- Avoid creating deep recursive calls with Command::and by @charypar in #315
- Command interface for crux_time by @charypar in #312
- Refresh readme a little bit by @charypar in #313
- Update examples by @StuartHarris in #314
- crux_platform command support
- crux_core command docs wip by @StuartHarris in #311
Full Changelog: crux_core-v0.11.2...crux_core-v0.11.3
crux_core-v0.11.2
What's Changed
Other changes
- update cat_facts and counter examples to use crux_http::command by @StuartHarris in #304
- update ServerSentEvents capability in examples to command by @StuartHarris in #305
- Update tests in the counter example to not use AppTester by @StuartHarris in #306
- Make the SSE capability in counter example universal (usable in sync and async context) by @charypar in #310
Full Changelog: crux_core-v0.11.1...crux_core-v0.11.2
crux_core-v0.11.1
What's Changed
- Update Examples by @StuartHarris in #300
http
compatibility by @m00nwtchr in #286- Command support in crux_kv and tweaks and fixes to the Command API to enable the capability migration by @charypar in #301
- Migrate cat_facts to new crux_kv. by @charypar in #302
New Contributors
- @m00nwtchr made their first contribution in #286
Full Changelog: crux_core-v0.11.0...crux_core-v0.11.1
crux_core-v0.11.0
This release is a breaking change
The App
trait has changed to support the new Command
API. This will break every app,
but migration is straight-forward. Please see the Migration Guide
What else has changed
- Fix clippy warnings by @charypar in #294
- Fix typo in crux/examples/bridge_echo/README.md by @yerke in #295
- http capability: add body_form to http request builder by @andrew-goldie in #296
- RFC: Command abstraction for effects by @charypar in #291
- Command support in Core by @charypar in #297
- Update docs to cover the basics of Command by @charypar in #298
- Update examples by @StuartHarris in #299
New Contributors
- @yerke made their first contribution in #295
- @andrew-goldie made their first contribution in #296
Full Changelog: crux_core-v0.10.1...crux_core-v0.11.0
crux_core-v0.10.1
What's Changed
- Drop model to avoid deadlock by @adwhit in #287
- feat(examples): add sparkline and stop/start for bridge_echo on iOS by @Binlogo in #289
- fix link to Dioxus by @auipga in #290
- Clarified experimental nature of crux in its own section, which state⦠by @mhedgpeth in #288
- Cancelling a timer also aborts the cancelled task by @adwhit in #292
- crux_time API improvement by @adwhit in #284
crux-time
release by @StuartHarris in #293
New Contributors
- @Binlogo made their first contribution in #289
- @auipga made their first contribution in #290
- @mhedgpeth made their first contribution in #288
Full Changelog: crux_core-v0.10.0...crux_core-v0.10.1
crux_core-v0.10.0
Summary
crux_core
Several additional methods to help with testing Crux apps:
- Adds a
Clone
bound on theOperation
trait so that we can examine the operation and still resolve
its owning request later on βΒ this is a breaking change. - Adds a
take_effects
method onUpdate
to allow you to take effects off the Update that match the predicate - Adds a
take_effects_partitioned_by
method onUpdate
to allow you to take effects off the Update
that match the predicate and also the remaining effects that don't match
crux_time
- adds a new
Clear
variant to to theTimeRequest
Operation
and augmentsNotifyAt
andNotifyAfter
with aTimerId
to facilitate cancelling requests. This is a breaking change.
What's Changed
- must_use on app.update() by @StuartHarris in #281
- feat(crux_time): cancellable timer by @PatrykBuniX in #279
Clone
bound onOperation
(breaking) and test helper methods by @StuartHarris in #280
New Contributors
- @PatrykBuniX made their first contribution in #279
Full Changelog: crux_core-v0.9.1...crux_core-v0.10.0
crux_core-v0.9.1
What's Changed
- Mark HTTP body with serde_bytes by @arendjr in #267
- Fix memory leak by @adwhit in #269
- Android examples by @StuartHarris in #271
- AppTester Send by @beltram in #272
- use serde_bytes in crux_kv by @StuartHarris in #273
- Update dependencies by @StuartHarris in #276
- Add helper methods to
Update
to remove test boilerplate by @adwhit in #275 - capability typegen feature must depend on core typegen by @StuartHarris in #277
- minor releases by @StuartHarris in #278
New Contributors
Full Changelog: crux_core-v0.9.0...crux_core-v0.9.1
crux_core-v0.9.0
The headline for this release is that Capabilities now have an opportunity to register their own types (specifically the types that serde-reflection
cannot see, which are typically nested enums).
The built-in Capabilities now do this under the typegen
feature, so you'll now need to add the Capability as a build dependency, with the typegen
feature enabled, in your shared_types
crate.
What's Changed
- Fix a typo in
overview.md
by @mre in #251 - update deps by @StuartHarris in #250
- Better HttpRequest and KeyValueOperation Debug format by @adwhit in #253
- Debug fmt handles unicode boundaries by @adwhit in #254
- Add documentation for effect(skip) to Compose by @charypar in #256
- Making #[effect(skip)] skip fields when serializing by @mmannes in #259
- Delegate type registration to capabilities by @StuartHarris in #258
- http encoding feature by @StuartHarris in #240
- crux_http and crux_kv now register their additional types by @StuartHarris in #260
- Fix a bug caused by drop order of the
Core
struct by @charypar in #263 - implement type registration in crux_time by @StuartHarris in #264
- Update examples by @StuartHarris in #266
- release 0.9.0-rc.1 by @StuartHarris in #265
New Contributors
Full Changelog: crux_core-v0.8.1...crux_core-v0.9.0
crux_core-v0.9.0-rc.1
What's Changed
- Fix a typo in
overview.md
by @mre in #251 - update deps by @StuartHarris in #250
- Better HttpRequest and KeyValueOperation Debug format by @adwhit in #253
- Debug fmt handles unicode boundaries by @adwhit in #254
- Add documentation for effect(skip) to Compose by @charypar in #256
- Making #[effect(skip)] skip fields when serializing by @mmannes in #259
- Delegate type registration to capabilities by @StuartHarris in #258
- http encoding feature by @StuartHarris in #240
- crux_http and crux_kv now register their additional types by @StuartHarris in #260
- Fix a bug caused by drop order of the
Core
struct by @charypar in #263 - implement type registration in crux_time by @StuartHarris in #264
New Contributors
Full Changelog: crux_core-v0.8.1...crux_core-v0.9.0-rc.1