This is an automated email from the ASF dual-hosted git repository.
rusackas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 6453980d8d chore(deps): bump react-error-boundary from 6.0.0 to 6.1.0
in /superset-frontend (#37206)
6453980d8d is described below
commit 6453980d8d0d78ba4ed8988ddaa496a3f6e0eec9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Sun Jan 18 15:40:57 2026 -0800
chore(deps): bump react-error-boundary from 6.0.0 to 6.1.0 in
/superset-frontend (#37206)
Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: hainenber <[email protected]>
Co-authored-by: dependabot[bot]
<49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: hainenber <[email protected]>
---
superset-frontend/package-lock.json | 13 +++++--------
superset-frontend/packages/superset-ui-core/package.json | 2 +-
.../src/chart/components/FallbackComponent.tsx | 5 +++--
.../test/chart/components/FallbackComponent.test.tsx | 9 +++++----
4 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/superset-frontend/package-lock.json
b/superset-frontend/package-lock.json
index 4deaa61195..11654037bb 100644
--- a/superset-frontend/package-lock.json
+++ b/superset-frontend/package-lock.json
@@ -49988,15 +49988,12 @@
"license": "MIT"
},
"node_modules/react-error-boundary": {
- "version": "6.0.0",
- "resolved":
"https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.0.0.tgz",
- "integrity":
"sha512-gdlJjD7NWr0IfkPlaREN2d9uUZUlksrfOx7SX62VRerwXbMY6ftGCIZua1VG1aXFNOimhISsTq+Owp725b9SiA==",
+ "version": "6.1.0",
+ "resolved":
"https://registry.npmjs.org/react-error-boundary/-/react-error-boundary-6.1.0.tgz",
+ "integrity":
"sha512-02k9WQ/mUhdbXir0tC1NiMesGzRPaCsJEWU/4bcFrbY1YMZOtHShtZP6zw0SJrBWA/31H0KT9/FgdL8+sPKgHA==",
"license": "MIT",
- "dependencies": {
- "@babel/runtime": "^7.12.5"
- },
"peerDependencies": {
- "react": ">=16.13.1"
+ "react": "^18.0.0 || ^19.0.0"
}
},
"node_modules/react-google-recaptcha": {
@@ -63971,7 +63968,7 @@
"re-resizable": "^6.11.2",
"react-ace": "^14.0.1",
"react-draggable": "^4.5.0",
- "react-error-boundary": "^6.0.0",
+ "react-error-boundary": "^6.1.0",
"react-js-cron": "^5.2.0",
"react-markdown": "^8.0.7",
"react-resize-detector": "^7.1.2",
diff --git a/superset-frontend/packages/superset-ui-core/package.json
b/superset-frontend/packages/superset-ui-core/package.json
index e7f6a6be4d..9a43dfaffa 100644
--- a/superset-frontend/packages/superset-ui-core/package.json
+++ b/superset-frontend/packages/superset-ui-core/package.json
@@ -55,7 +55,7 @@
"react-resize-detector": "^7.1.2",
"react-syntax-highlighter": "^16.1.0",
"react-ultimate-pagination": "^1.3.2",
- "react-error-boundary": "^6.0.0",
+ "react-error-boundary": "^6.1.0",
"react-markdown": "^8.0.7",
"regenerator-runtime": "^0.14.1",
"rehype-raw": "^7.0.0",
diff --git
a/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx
b/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx
index 6955af4798..df88ff4b54 100644
---
a/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx
+++
b/superset-frontend/packages/superset-ui-core/src/chart/components/FallbackComponent.tsx
@@ -20,8 +20,9 @@
import { t } from '@apache-superset/core';
import { SupersetTheme } from '@apache-superset/core/ui';
import { FallbackPropsWithDimension } from './SuperChart';
+import { getErrorMessage } from 'react-error-boundary';
-export type Props = FallbackPropsWithDimension;
+export type Props = Partial<FallbackPropsWithDimension>;
export default function FallbackComponent({ error, height, width }: Props) {
return (
@@ -38,7 +39,7 @@ export default function FallbackComponent({ error, height,
width }: Props) {
<div>
<b>{t('Oops! An error occurred!')}</b>
</div>
- <code>{error ? error.toString() : 'Unknown Error'}</code>
+ <code>{error ? getErrorMessage(error) : 'Unknown Error'}</code>
</div>
</div>
);
diff --git
a/superset-frontend/packages/superset-ui-core/test/chart/components/FallbackComponent.test.tsx
b/superset-frontend/packages/superset-ui-core/test/chart/components/FallbackComponent.test.tsx
index e48a244a7a..20b6600592 100644
---
a/superset-frontend/packages/superset-ui-core/test/chart/components/FallbackComponent.test.tsx
+++
b/superset-frontend/packages/superset-ui-core/test/chart/components/FallbackComponent.test.tsx
@@ -19,18 +19,19 @@
import { render } from '@superset-ui/core/spec';
import '@testing-library/jest-dom';
-import { FallbackProps } from 'react-error-boundary';
-import FallbackComponent from
'../../../src/chart/components/FallbackComponent';
+import FallbackComponent, {
+ Props as FallbackComponentProps,
+} from '../../../src/chart/components/FallbackComponent';
-const setup = (props: Partial<FallbackProps> & FallbackProps['error']) =>
+const setup = (props: FallbackComponentProps) =>
render(<FallbackComponent {...props} />);
const ERROR = new Error('CaffeineOverLoadException');
test('renders error only', () => {
const { getByText } = setup({ error: ERROR });
- expect(getByText('Error: CaffeineOverLoadException')).toBeInTheDocument();
+ expect(getByText('CaffeineOverLoadException')).toBeInTheDocument();
});
test('renders when nothing is given', () => {