@mastra/observability 1.0.0-beta.8 → 1.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/dist/span_processors/sensitive-data-filter.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @mastra/observability
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Fix SensitiveDataFilter destroying Date objects ([#11437](https://github.com/mastra-ai/mastra/pull/11437))
|
|
8
|
+
|
|
9
|
+
The `deepFilter` method now correctly preserves `Date` objects instead of converting them to empty objects `{}`. This fixes issues with downstream exporters like `BraintrustExporter` that rely on `Date` methods like `getTime()`.
|
|
10
|
+
|
|
11
|
+
Previously, `Object.keys(new Date())` returned `[]`, causing Date objects to be incorrectly converted to `{}`. The fix adds an explicit check for `Date` instances before generic object processing.
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`5947fcd`](https://github.com/mastra-ai/mastra/commit/5947fcdd425531f29f9422026d466c2ee3113c93)]:
|
|
14
|
+
- @mastra/core@1.0.0-beta.18
|
|
15
|
+
|
|
3
16
|
## 1.0.0-beta.8
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -6453,6 +6453,9 @@ var SensitiveDataFilter = class {
|
|
|
6453
6453
|
return "[Circular Reference]";
|
|
6454
6454
|
}
|
|
6455
6455
|
seen.add(obj);
|
|
6456
|
+
if (obj instanceof Date) {
|
|
6457
|
+
return obj;
|
|
6458
|
+
}
|
|
6456
6459
|
if (Array.isArray(obj)) {
|
|
6457
6460
|
return obj.map((item) => this.deepFilter(item, seen));
|
|
6458
6461
|
}
|