Skip to content

async-fp@8.0.0

Choose a tag to compare

@unional unional released this 28 Sep 03:42
· 343 commits to main since this release

Major Changes

  • 189343b: Restore the extend() behavior in 2.0,
    that it returns a new instance instead of itself.

    The clone() function is also removed as it is not necessary anymore.

    The behavior introduced in 3.0 makes the async context mutable.
    Which clone() was added to mitigate that.

    However, such design is architecturally unsound.

    With this change, make sure you are updating or assigning the new instance after extend():

    // from
    const ctx = new AsyncContext()
    
    ctx.extend(...)
    
    // to
    const ctx = new AsyncContext()
    
    const extended = ctx.extend(...)

Patch Changes

  • Updated dependencies [189343b]
    • @unional/async-context@8.0.0