Skip to content

Latest commit

 

History

History
91 lines (54 loc) · 4.34 KB

CHANGELOG.md

File metadata and controls

91 lines (54 loc) · 4.34 KB

@statelyai/inspect

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

  • #32 6f7b65a Thanks @davidkpiano! - Added new options sanitizeContext and sanitizeEvent to the inspector configuration. These options allow users to sanitize sensitive data from the context and events before they are sent to the inspector, and also to remove non-serializable data.

    Example usage:

    const inspector = createInspector({
      sanitizeContext: (context) => {
        // Remove sensitive data from context
        const { password, ...safeContext } = context;
        return safeContext;
      },
      sanitizeEvent: (event) => {
        // Remove sensitive data from event
        if (event.type === "SUBMIT_FORM") {
          const { creditCardNumber, ...safeEvent } = event;
          return safeEvent;
        }
        return event;
      },
    });

0.3.1

Patch Changes

0.3.0

Minor Changes

  • #24 9cfc0b3 Thanks @davidkpiano! - The serialize option will now pre-serialize the event using superjson before the custom serialization.

0.2.5

Patch Changes

0.2.4

Patch Changes

0.2.3

Patch Changes

  • #12 c878733 Thanks @mellson! - Adds createSkyInspector, which allows you to inspect machines in Node or the browser. The inspection will send the events to a server backend through websockets and allows you to open and share a live inspection URL.

0.2.2

Patch Changes

0.2.1

Patch Changes

  • #8 ea5bab4 Thanks @davidkpiano! - Safely stringify snapshots from XState events to deal with circular references

  • #9 12fe68e Thanks @mellson! - Update to the latest version of XState and move it to peer dependencies.

0.2.0

Minor Changes

  • 3fe7315: Handle window being undefined when trying to create a browser inspector in isomorphic (server/browser) environments