Commit graph

12 commits

Author SHA1 Message Date
7feb71666a
feat(Reactor.Dsl.Flunk): Add a special step type which always fails. (#125)
This is especially useful for switch branches which should never be reached.
2024-09-16 09:48:56 +12:00
e8ac9a1d90
feat(map): Add the ability to map over elements of a collection inside a reactor. (#123)
* feat(map): Add the ability to map over elements of a collection inside a reactor.

* improvement: throw a more helpful error when a step returns an invalid result.

* fix: automatically pass extra arguments from the map step to nested steps.

They can't be referred to directly because they may be added to the graph
at runtime, and may depend on steps which have been completed and their
results discarded because they have no dependents at that time.

* fix: spurious test failures seemingly caused by `Mimic`.
2024-07-18 21:56:46 +12:00
Zach Daniel
e3f65f6874 docs: link to hexdocs & fix links 2024-05-13 13:35:32 -04:00
37b9eda48e
feat: Add telemetry middleware. (#93)
* improvement: don't incur compile-time dependencies on middleware.

* feat: Add a middleware which emits telemetry events about Reactor.
2024-02-29 09:23:51 +13:00
01fddd19b0
improvement!: Remove hooks and replace with middleware behaviour. (#90)
* improvement!: Remove hooks and replace with middleware behaviour.

* improvement(Middleware): Add `get_process_context/0` and `set_process_context/1` middleware hooks.

* improvement: Add step event callback to middleware.
2024-02-26 16:20:54 +13:00
8d9ab76660 docs: Update Reactor DSL docs. 2023-12-15 10:39:56 +13:00
dependabot[bot]
cc4b49e96c
chore(deps): Bump spark from 1.1.48 to 1.1.50 (#71)
* chore(deps): Bump spark from 1.1.48 to 1.1.50

Bumps [spark](https://github.com/ash-project/spark) from 1.1.48 to 1.1.50.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v1.1.48...v1.1.50)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* doc: update DSL cheat sheets.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Harton <james@harton.nz>
2023-10-26 11:00:22 +13:00
dependabot[bot]
f6884fdd16
chore(deps): bump spark from 1.1.43 to 1.1.44 (#66)
* chore(deps): bump spark from 1.1.43 to 1.1.44

Bumps [spark](https://github.com/ash-project/spark) from 1.1.43 to 1.1.44.
- [Changelog](https://github.com/ash-project/spark/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ash-project/spark/compare/v1.1.43...v1.1.44)

---
updated-dependencies:
- dependency-name: spark
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* docs: Update DSL cheatsheet.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James Harton <james@harton.nz>
2023-10-12 09:48:47 +13:00
Zach Daniel
1f38148877 docs: update ex_doc/spark for better docs 2023-09-26 23:40:04 -04:00
Zach Daniel
b8fbc672e7
docs: update hexdocs with new spark dsl tools (#59) 2023-09-27 16:23:55 +13:00
James Harton
e8035f5646
docs: getting started guide. (#5) 2023-05-12 15:45:27 +12:00
43fd48d6bf
chore: ensure that the documentation directory is present. 2023-05-10 16:42:21 +12:00