@effection/events
Effection is the structured concurrency toolkit for JavaScript. You can find detailed information about using it to handle events at https://frontside.com/effection/docs/guides/events
Helpers for listening to events with effection
Effection is the structured concurrency toolkit for JavaScript. You can find detailed information about using it to handle events at https://frontside.com/effection/docs/guides/events
@effection/core@2.2.3@effection/stream@2.0.6@effection/coreerror and name properties to underlying Error. fixes https://github.com/thefrontside/effection/issues/675)Symbol.operation as an operation
AbortSignal from @effection/fetch to @effection/core as a resource
toBuffer and Stream buffered so we have both options on either accessing the buffer directly or returning the stream.buffer returns the actual buffer and gives direct access to itbuffer returns the actual buffer on 2021-09-30Stream from subscription package into its own @effection/stream packageStream into its own package on 2021-09-27initall, race and withTimeout.toString() method to task for nicely formatted rendering of task structureon and onEmit to be namedTask#spawn operation to spawn new task with a specific scopedist directory didn't contain the esm and cjs directory. We copy the package.json for reference into the dist, and this broke the files resolution. Switch to using dist-cjs and dist-esm which allows us to avoid copying package.json.
7b6ba05: once() only yields the first argument passed to emit() which
accounts for 99.9% of the use cases. For the cases where all the
arguments are required, use onceEmit()
on() produces a stream of the first arguments passed to emit()
which accounts for 99.9% of the use cases. For the cases where all the
arguments are required, use onEmit().
Updated dependencies [7b6ba05]
Updated dependencies [ab41f6a]
Updated dependencies [ce76f15]
Updated dependencies [72f743c]
Updated dependencies [53661b7]
on to return subscribable, rather than taking scopecreateSubscription are chainable on both sides of the yieldeffection dependency into normal, non-peer dependencyon() method to
implement the addEventListener and removeEventlistener functions,
not dispatchEventSubscribeable.70ac8e3: create the @effection/subscription package with the
createSubscription operation.
Refactor on() operation from @effection/events to use
createSubscription()
60ed704: ## Fix sourcemaps and types entrypoint
We saw strange errors while installing Effection from BigTest. One of the problems was that sourcemaps were not working. This was happening because sourcemaps referenced ts file which were not being included in the package.
https://github.com/thefrontside/effection/pull/119
We made a decision to ship generators in our distribution bundles because IE11 compatibility is not important to us. It's surprisingly difficult to get this to work. We tried using microbundle but that turned out to be even more complicated because their modern and cjs formats have mutually conflicting configuration.
Updated dependencies [60ed704]
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
once is asynchronous, to avoid problems with
misbehaving event emitters.
https://github.com/thefrontside/effection.js/pull/107