@khanacademy/perseus 11.2.1 → 11.3.0
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 +11 -0
- package/dist/error-boundary.d.ts +1 -0
- package/dist/es/index.js +8 -4
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/error-boundary.tsx +5 -1
- package/src/renderer.tsx +4 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 11.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 26fc0b41: Updated ErrorBoundary logging to include the componentStack as well as the widget type as metadata.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [a5a60852]
|
|
12
|
+
- @khanacademy/math-input@12.1.0
|
|
13
|
+
|
|
3
14
|
## 11.2.1
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/error-boundary.d.ts
CHANGED
package/dist/es/index.js
CHANGED
|
@@ -17729,9 +17729,9 @@ class ErrorBoundary extends React.Component {
|
|
|
17729
17729
|
});
|
|
17730
17730
|
Log.error("Perseus error boundary caught error", Errors.Internal, {
|
|
17731
17731
|
cause: error,
|
|
17732
|
-
loggedMetadata: {
|
|
17733
|
-
|
|
17734
|
-
}
|
|
17732
|
+
loggedMetadata: _extends({
|
|
17733
|
+
componentStack: info.componentStack
|
|
17734
|
+
}, this.props.metadata)
|
|
17735
17735
|
});
|
|
17736
17736
|
}
|
|
17737
17737
|
render() {
|
|
@@ -19321,7 +19321,11 @@ class Renderer extends React.Component {
|
|
|
19321
19321
|
// filtered out in this.render(), so we shouldn't have to
|
|
19322
19322
|
// worry about using this widget key and ref:
|
|
19323
19323
|
return /*#__PURE__*/React.createElement(ErrorBoundary, {
|
|
19324
|
-
key: "container:" + id
|
|
19324
|
+
key: "container:" + id,
|
|
19325
|
+
metadata: {
|
|
19326
|
+
widget_type: type,
|
|
19327
|
+
widget_id: id
|
|
19328
|
+
}
|
|
19325
19329
|
}, /*#__PURE__*/React.createElement(WidgetContainer, {
|
|
19326
19330
|
ref: "container:" + id,
|
|
19327
19331
|
type: type,
|