Skip to content

Commit

Permalink
Merge pull request #33 from statelyai/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
davidkpiano authored Jul 6, 2024
2 parents 1bc220d + 4587a6f commit b01408b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
24 changes: 0 additions & 24 deletions .changeset/neat-beans-wave.md

This file was deleted.

26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# @statelyai/inspect

## 0.5.0

### Minor Changes

- [#32](https://github.com/statelyai/inspect/pull/32) [`6f7b65a`](https://github.com/statelyai/inspect/commit/6f7b65aff86320575e626e769bb7baf4a20b7669) Thanks [@davidkpiano](https://github.com/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:

```typescript
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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"xstate": "^5.14.0"
},
"name": "@statelyai/inspect",
"version": "0.4.0",
"version": "0.5.0",
"description": "Inspection utilities for state, actors, workflows, and state machines.",
"main": "dist/index.js",
"repository": "https://github.com/statelyai/inspect.git",
Expand Down

0 comments on commit b01408b

Please sign in to comment.