github statelyai/xstate @xstate/inspect@0.6.0

2 years ago

Minor Changes

  • #2640 c73dfd655 Thanks @davidkpiano! - A serializer can now be specified as an option for inspect(...) in the .serialize property. It should be a replacer function:

    // ...
    
    inspect({
      // ...
      serialize: (key, value) => {
        if (value instanceof Map) {
          return 'map';
        }
    
        return value;
      }
    });
    
    // ...
    
    // Will be inspected as:
    // {
    //   type: 'EVENT_WITH_MAP',
    //   map: 'map'
    // }
    someService.send({
      type: 'EVENT_WITH_MAP',
      map: new Map()
    });
  • #2894 8435c5b84 Thanks @Andarist! - The package has been upgraded to be compatible with ws@8.x. The WS server created server-side has to be of a compatible version now.

Don't miss a new xstate release

NewReleases is sending notifications on new releases.