These changes make it possible to write middleware that encrypts step and run output. To properly test these changes, this PR includes an encryption middleware implementation and exposes it via inngest.experimental.
Changes:
Move memoize step object onto the Context object. This isn't ideal long term, but was necessary to avoid breaking changes.
Add UninitializedMiddleware type to reduce code duplication.
Description
These changes make it possible to write middleware that encrypts step and run output. To properly test these changes, this PR includes an encryption middleware implementation and exposes it via
inngest.experimental
.Changes:
Context
object. This isn't ideal long term, but was necessary to avoid breaking changes.UninitializedMiddleware
type to reduce code duplication.