Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@effection/events

thefrontside22.8kMIT2.0.6TypeScript support: included

Helpers for listening to events with effection

readme

changelog

Changelog

[2.0.6]

Dependencies

  • Upgraded to @effection/core@2.2.3
  • Upgraded to @effection/stream@2.0.6

[2.0.5]

Dependencies

  • Updated to latest @effection/core

[2.0.4]

[2.0.3]

  • Allow pass object with Symbol.operation as an operation
    • Bumped due to a bump in @effection/core.
    • 3e7daa8 add changelog on 2022-01-26
    • c623a84 remove fetch and process packages from changes list on 2022-01-26

[2.0.2]

  • Extract AbortSignal from @effection/fetch to @effection/core as a resource
    • Bumped due to a bump in @effection/core.
    • 8ac2e85 Add covector change file on 2021-11-18
    • b6d0e15 Patch for fetch and not minor on 2021-11-19

[2.0.1]

[2.0.0]

  • Release Effection 2.0.0

[2.0.0-beta.21]

  • Yielding to something which is not an operation no longer throws an internal error, but properly rejects the task.
    • Bumped due to a bump in @effection/core.
    • a3ad19a Fix yielding non operation bug on 2021-10-07

[2.0.0-beta.20]

  • Fix a bug when using blockParent where the children are not getting halt on an explicit halt.
    • Bumped due to a bump in @effection/core.
    • 1cd9803 Fix halting children for blockParent tasks on 2021-09-30

[2.0.0-beta.19]

  • Add Stream toBuffer and Stream buffered so we have both options on either accessing the buffer directly or returning the stream.
    • Bumped due to a bump in @effection/stream.
    • fe60532 Add both toBuffer and buffered to Stream on 2021-09-30

[2.0.0-beta.18]

  • Stream buffer returns the actual buffer and gives direct access to it
    • Bumped due to a bump in @effection/stream.
    • 07c8f83 Stream buffer returns the actual buffer on 2021-09-30

[2.0.0-beta.17]

    • 0248d79 Add package readmes on 2021-09-28
  • Remove operation resolutions entirely, use Future instead
    • 5f67d61 Add changeset on 2021-09-29
  • Split off Stream from subscription package into its own @effection/stream package
    • 248de1d Split Stream into its own package on 2021-09-27

[2.0.0-beta.16]

  • Adjust the propagation of errors for resources to make it possible to catch errors from init
    • Bumped due to a bump in @effection/core.
    • 75a7248 Catch errors thrown during resource init on 2021-09-21
  • Enable support for resources in higher order operations all, race and withTimeout.
    • Bumped due to a bump in @effection/core.
    • bbe6cdc Enable resource support for higher order operations on 2021-09-09

[2.0.0-beta.15]

  • Add shortcuts to create resolved/rejected/halted futures via Future.resolve(123), etc...
    • Bumped due to a bump in @effection/core.
    • 9599dde Add shortcuts for resolves/rejected/halted future on 2021-09-08

[2.0.0-beta.14]

  • Add @effection/fetch as a dependency and reexport it
    • Bumped due to a bump in @effection/core.
    • 5ab5d06 Reexport @effection/fetch from effection package on 2021-08-26
  • Share internal run loop among task, task future and task controller. Prevents race conditions which cause internal errors.
    • Bumped due to a bump in @effection/core.
    • 222d511 Share event loop among controller, task and future on 2021-09-01
  • Introduce task scope as an alternative to resources for being able to access the outer scope of an operation
    • Bumped due to a bump in @effection/core.
    • 3ed11bd Make resource task accessible through init task on 2021-08-27
  • Add toString() method to task for nicely formatted rendering of task structure
    • Bumped due to a bump in @effection/core.
    • 9a63928 Add toString output for tasks on 2021-08-31

[2.0.0-beta.13]

  • Allow streams created through on and onEmit to be named
    • cc49d47 Name event streams on 2021-08-27

[2.0.0-beta.12]

  • Update core dependency
    • Bumped due to a bump in @effection/mocha.
    • d92eee5 Update core dependency on 2021-08-16

[2.0.0-beta.11]

  • Use Object.create to wrap error objects rather than copying properties
    • Bumped due to a bump in @effection/core.
    • a56ae2a Use Object.create to create error object with trace on 2021-08-16

[2.0.0-beta.10]

  • add Task#spawn operation to spawn new task with a specific scope
    • Bumped due to a bump in @effection/core.
    • a71d65b Add changefile on 2021-07-27

[2.0.0-beta.9]

  • Add sideEffects field to package.json
    • 383141d Add sideEffects field to package.json (#470) on 2021-08-05

[2.0.0-beta.8]

  • The dist 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.
    • 63fbcfb fix: @effection/core to ship dist/esm and dist/cjs on 2021-08-03
    • 7788e24 fix: @effection/core to ship dist-esm and dist-cjs on 2021-08-03
    • 6923a0f update change file with everything patched on 2021-08-03

[2.0.0-beta.7]

  • Add esm builds
    • Bumped due to a bump in @effection/core.
    • 6660a46 Add esm build (#462) on 2021-08-03

[2.0.0-beta.6]

  • remove accidentally compiled .js files from distributed sources
    • Bumped due to a bump in @effection/mocha.
    • f0f0023 add changefile on 2021-07-26

[2.0.0-beta.5]

  • Upgrade typescript to 4.3.5 and replace tsdx with tsc
    • 121bd40 Add change file for typescript bump on 2021-07-23

2.0.0-beta.4

Patch Changes

2.0.0-beta.3

Patch Changes

2.0.0-beta.2

Patch Changes

2.0.0-beta.1

Patch Changes

2.0.0-preview.13

Minor Changes

  • d7c0eb1: Do not require implementation of full EventEmitter interface

Patch Changes

2.0.0-preview.12

Patch Changes

2.0.0-preview.11

Patch Changes

2.0.0-preview.10

Patch Changes

2.0.0-preview.9

Minor Changes

  • 7216a21: Turn throwOnErrorEvent into an operation

Patch Changes

2.0.0-preview.8

Patch Changes

2.0.0-preview.7

Patch Changes

2.0.0-preview.6

Patch Changes

2.0.0-preview.5

Patch Changes

2.0.0-preview.4

Patch Changes

  • 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]

2.0.0-preview.3

Minor Changes

  • 3ca4cd4: Change on to return subscribable, rather than taking scope

Patch Changes

2.0.0-preview.2

Patch Changes

2.0.0-preview.1

Patch Changes

2.0.0-preview.0

Major Changes

  • Version 2

Patch Changes

1.0.0

Major Changes

  • b988025: Release effection 1.0.0

Patch Changes

0.7.9

Patch Changes

0.7.8

Patch Changes

  • 25b68eb: Subscriptions created via createSubscription are chainable on both sides of the yield
  • Updated dependencies [25b68eb]

0.7.7

Patch Changes

0.7.6

Patch Changes

0.7.5

Patch Changes

0.7.4

Patch Changes

  • db11b3f: convert effection dependency into normal, non-peer dependency
  • 3688203: Only require EventTarget-like objects for the on() method to implement the addEventListener and removeEventlistener functions, not dispatchEvent
  • Updated dependencies [db11b3f]
  • Updated dependencies [0e8951f]

0.7.3

Patch Changes

0.7.2

Patch Changes

0.7.1

Patch Changes

  • c624e41: as of 0.7.0 @effection/events depends on @effection/subscription for its implementation. This allows higher order functions over event streams via Subscribeable.

0.7.0

Minor Changes

  • 70ac8e3: create the @effection/subscription package with the createSubscription operation.

    Refactor on() operation from @effection/events to use createSubscription()

Patch Changes

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.

[Unreleased]

[0.6.1] - 2020-04-29

Changed

Added