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

Package detail

@effection/subscription

thefrontside23.1kMIT2.0.6TypeScript support: included

Effection Subscriptions

readme

changelog

@effection/subscription

[2.0.6]

Dependencies

  • Upgraded to @effection/core@2.2.3

[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.19]

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

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

  • The buffer method on Stream returns a resource and can receive an optional limit using a ring buffer for efficient bounded caching
    • 4e9cb50 Improve process streams on 2021-09-22
    • 0248d79 Add package readmes on 2021-09-28
  • Remove operation resolutions entirely, use Future instead
    • 5f67d61 Add changeset on 2021-09-29
  • Remove the stringBuffer method on Stream
    • 4e9cb50 Improve process streams on 2021-09-22
  • Add grep method to streams to scan items for given substring or regexp
    • 2b3de48 Add grep method to Stream on 2021-09-22
  • 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]

  • Collapse subscription methods in the inspector by default.
    • 0d7ec90 Collapse subscriptions methods in the inspector 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

  • 3e77f29: - label events for visual inspection
    • label stream and queue operations
  • 9700b45: stream operations like forEach and expect no longer create intermediate delegation tasks
  • Updated dependencies [5d95e6d]
  • Updated dependencies [9700b45]

2.0.0-beta.2

Patch Changes

  • Updated dependencies [19414f0]
  • Updated dependencies [26a86cb]
  • Updated dependencies [9c76cc5]
  • Updated dependencies [f7e3344]
  • Updated dependencies [ac7c1ce]

2.0.0-beta.1

Patch Changes

2.0.0-preview.14

Patch Changes

  • Updated dependencies [9998088]
  • Updated dependencies [2bce454]
  • Updated dependencies [1981b35]
  • Updated dependencies [88dc59a]

2.0.0-preview.13

Patch Changes

  • Updated dependencies [88eca21]
  • Updated dependencies [ae8d090]
  • Updated dependencies [8bb4514]
  • Updated dependencies [44c354d]

2.0.0-preview.12

Patch Changes

  • Updated dependencies [625b521]
  • Updated dependencies [a06c679]
  • Updated dependencies [4d04159]
  • Updated dependencies [625b521]

2.0.0-preview.11

Minor Changes

  • 92f921e: Turn streams into resources which return a subscription

2.0.0-preview.10

Patch Changes

  • Updated dependencies [110a2cd]
  • Updated dependencies [e2545b2]
  • Updated dependencies [2b92370]
  • Updated dependencies [00562fd]
  • Updated dependencies [110a2cd]
  • Updated dependencies [110a2cd]
  • Updated dependencies [02446ad]
  • Updated dependencies [da86a9c]

2.0.0-preview.9

Patch Changes

  • a13987f: make operation resolution an interface. Make operation iterators an operation.
  • Updated dependencies [a13987f]

2.0.0-preview.8

Patch Changes

2.0.0-preview.7

Minor Changes

  • 3db7270: Make Queue a first class citizen

2.0.0-preview.6

Minor Changes

  • 0dca571: Filter with a type predicate can narrow type of stream

Patch Changes

  • 1222756: Use strict dependency requirements for internal dependencies while in prerelease mode
  • Updated dependencies [1222756]

2.0.0-preview.5

Minor Changes

  • 0b24415: Add WritableStream interface and implement it for channels
  • 22e5230: Add join method on stream to return stream result
  • 3983202: Add stringBuffer method to stream which buffers stream to a string
  • 2c2749d: Add a buffer method on Stream to buffer stream contents for later replay

Patch Changes

2.0.0-preview.4

Minor Changes

  • ab41f6a: Rename Subscribable to Stream

Patch Changes

2.0.0-preview.3

Minor Changes

  • 3ca4cd4: Add createSubscribable and Subscribable interface

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.12.0

Minor Changes

  • d3d3b64: Type of TReturn defaults to undefined.

Patch Changes

0.11.1

Patch Changes

  • 649ec8d: Deprecated functions only emit a single warning, and print out the line from which they were invoked

0.11.0

Minor Changes

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

0.10.0

Minor Changes

  • 5d118ee: Chain via subscribe instead of Subscribable.from which is now deprecated.

0.9.0

Minor Changes

  • 786b20e: make the type of SymbolSubscribable global, not just the value

0.8.1

Patch Changes

  • a7f9396: Retain resources created through subscribe properly

0.8.0

Minor Changes

  • 8303e92: Add a free subscribe function, allow chaining of map, filter etc on subscriptions and deprecate chaining on subscribables.

0.7.3

Patch Changes

  • 7671de1: Fixed bug where subscription was cached when createSubscription is returned without using yield.

0.7.2

Patch Changes

  • db11b3f: convert effection dependency into normal, non-peer dependency
  • Updated dependencies [0e8951f]

0.7.1

Patch Changes

  • 68c4dab: include typescript sources with package in order for sourcemaps to work.
  • Updated dependencies [68c4dab]

0.7.0

Minor Changes

  • ad0d7e2: add higher order functions like map, filter, and forEach for working with subscriptions
  • 3336949: Add the match method to Subscribable to filter a subscription by pattern

0.6.3

Patch Changes

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

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

  • Updated dependencies [60ed704]