async-fp

Asynchronous Functional Programming Utilities

Downloads
668
Stars
2
Committers
5

Bot releases are visible (Hide)

async-fp - @unional/[email protected] Latest Release

Published by unional over 1 year ago

Minor Changes

  • e2da176: Supports defining gizmo with sync create().
async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - @unional/[email protected]

Published by unional over 1 year ago

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Minor Changes

  • 93e47d8: Support cleanup() of gizmo.

Patch Changes

  • 4dd0a08: Update type-plus
async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Patch Changes

  • 4dd0a08: Update type-plus
async-fp - @unional/[email protected]

Published by unional over 1 year ago

Patch Changes

  • 6ecc0e7: Add type-plus as dependency.

    It was mistakenly added as devDependency.

async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Patch Changes

  • 6ecc0e7: Update iso-error and type-plus
async-fp - @unional/[email protected]

Published by unional over 1 year ago

Patch Changes

  • ae98148: Remove ctx from GizmoBase. The ctx is empty.
async-fp - @unional/[email protected]

Published by unional over 1 year ago

async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Major Changes

  • 58c52cc: Change incubate to take a base object instead of a gizmo.
    This change allows a gizmo to create other gizmos within the create() method.
  • 3ea4879: Remove ctx.with()
async-fp - @unional/[email protected]

Published by unional over 1 year ago

async-fp - [email protected]

Published by unional over 1 year ago

Patch Changes

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Minor Changes

  • 2e545ae: Add incubate.Infer<I>
async-fp - @unional/[email protected]

Published by unional over 1 year ago

async-fp - @unional/[email protected]

Published by unional over 1 year ago

Minor Changes

  • 8996c07: .create() now accepts a start function to perform initialization.

    incubate().with(...).with(...).create(gizmo => {
      // initialization
    })
    
  • 0c4e97a: Adds an .init() function to perform initialization before the gizmo is created.

    This optional function allows you to perform some initialization before the gizmo is created.

    This is useful if you are exposing the incubator directly to the outside world,
    which you can use this function to perform some initialization when the gizmo is created.
    The incubator caller can still pass in their own start function to the create() function, to perform additional initialization specific to the caller.

    When this function is called, the gizmo is considered to be final.
    The .with() function will be removed from the incubator.

    const incubator = incubate().with(...).init(g => { /* initialize */ })
    
    // incubator.with() is not available
    const gizmo = await incubator.create()
    
  • 80f5dc5: Add incubate().merge() function to merge gizmo instance into the incubator.

    This allows consumers to compose gizmos when they only have access to the resulting gizmo instances or just plain objects.

    import { define } from '@unional/gizmo'
    
    export async function activate({ mic }) {
    	const miku = await incubate().merge(mic).with(mikuGizmo).create()
    }
    

Patch Changes

  • 3b6c56b: Expose /testing for CJS usage
async-fp - @unional/[email protected]

Published by unional over 1 year ago