@tramvai/react 2.89.2 → 2.91.1

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.
@@ -4,6 +4,10 @@ type ErrorBoundaryHandler = (error: Error, errorInfo: React.ErrorInfo) => void;
4
4
  export declare const ERROR_BOUNDARY_TOKEN: ErrorBoundaryHandler & {
5
5
  __type?: "multi token" | undefined;
6
6
  };
7
+ /**
8
+ * @deprecated
9
+ * Use a file-based root error boundary instead.
10
+ */
7
11
  export declare const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN: (React.ComponentClass<UniversalErrorBoundaryFallbackProps, any> & {
8
12
  __type?: "base token" | undefined;
9
13
  }) | (React.FunctionComponent<UniversalErrorBoundaryFallbackProps> & {
@@ -3,6 +3,10 @@ import { createToken } from '@tinkoff/dippy';
3
3
  const ERROR_BOUNDARY_TOKEN = createToken('reactErrorBoundaryHandlers', {
4
4
  multi: true,
5
5
  });
6
+ /**
7
+ * @deprecated
8
+ * Use a file-based root error boundary instead.
9
+ */
6
10
  const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN = createToken('rootErrorBoundaryComponent');
7
11
  /**
8
12
  * @deprecated
@@ -7,6 +7,10 @@ var dippy = require('@tinkoff/dippy');
7
7
  const ERROR_BOUNDARY_TOKEN = dippy.createToken('reactErrorBoundaryHandlers', {
8
8
  multi: true,
9
9
  });
10
+ /**
11
+ * @deprecated
12
+ * Use a file-based root error boundary instead.
13
+ */
10
14
  const ROOT_ERROR_BOUNDARY_COMPONENT_TOKEN = dippy.createToken('rootErrorBoundaryComponent');
11
15
  /**
12
16
  * @deprecated
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tramvai/react",
3
- "version": "2.89.2",
3
+ "version": "2.91.1",
4
4
  "description": "",
5
5
  "main": "lib/react.js",
6
6
  "typings": "lib/react.d.ts",
@@ -19,7 +19,7 @@
19
19
  "dependencies": {
20
20
  "@loadable/component": "^5.15.2",
21
21
  "@types/loadable__component": "^5.13.4",
22
- "@tramvai/types-actions-state-context": "2.89.2",
22
+ "@tramvai/types-actions-state-context": "2.91.1",
23
23
  "hoist-non-react-statics": "^3.3.0"
24
24
  },
25
25
  "peerDependencies": {