Skip to content

v6.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 19 Feb 01:14
· 78 commits to main since this release
fc714f2

Major Changes

  • #111 a0ec633 Thanks @tivac! - Add .d.ts files to releases and restructure exports.

    Previously

    import ComponentTree from "xstate-component-tree";
    import componentHelper from "xstate-component-tree/component";
    

    Now

    import { ComponentTree, componentHelper } from "xstate-component-tree";
    

Minor Changes

  • #113 88d1dba Thanks @tivac! - Component helper preserves .meta fields

    Previous using the helper like this:

    helper(Component, {
      meta: {
        fooga: "wooga",
      },
    });

    would return an object with no meta.fooga property. Now those keys are properly preserved if they exist.

    meta.load will still be overwritten if it exists, because it is required for the helper to function. A warning if it exists may be introduced in a future release.