@octanejs/react-error-boundary 0.1.32 → 0.1.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/react-error-boundary",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -38,16 +38,16 @@
38
38
  }
39
39
  },
40
40
  "peerDependencies": {
41
- "octane": "0.1.51"
41
+ "octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@tsrx/react": "^0.2.61",
44
+ "@tsrx/react": "^0.3.0",
45
45
  "esbuild": "^0.28.1",
46
- "react": "^19.2.7",
47
- "react-dom": "^19.2.7",
46
+ "react": "19.2.7",
47
+ "react-dom": "19.2.7",
48
48
  "react-error-boundary": "6.1.2",
49
49
  "vitest": "^4.1.10",
50
- "octane": "0.1.51"
50
+ "octane": "0.3.0"
51
51
  },
52
52
  "scripts": {
53
53
  "test": "vitest run --root ../.. --project react-error-boundary --project react-error-boundary-ssr"
@@ -32,9 +32,7 @@ export function ErrorBoundary(props: ErrorBoundaryProps) @{
32
32
  propsRef={propsRef}
33
33
  />}
34
34
  >
35
- <ErrorBoundaryContext.Provider
36
- value={idleContext}
37
- >{props.children}</ErrorBoundaryContext.Provider>
35
+ <ErrorBoundaryContext value={idleContext}>{props.children}</ErrorBoundaryContext>
38
36
  </NativeErrorBoundary>
39
37
  }
40
38
 
@@ -93,7 +91,7 @@ function CaughtError(props: {
93
91
  throw props.error;
94
92
  }
95
93
 
96
- <ErrorBoundaryContext.Provider value={context}>{fallback}</ErrorBoundaryContext.Provider>
94
+ <ErrorBoundaryContext value={context}>{fallback}</ErrorBoundaryContext>
97
95
  }
98
96
 
99
97
  function hasArrayChanged(a: unknown[] = [], b: unknown[] = []): boolean {
package/src/server.tsrx CHANGED
@@ -6,9 +6,9 @@ import type { ComponentType, ErrorBoundaryProps } from './types.ts';
6
6
  // This explicit server entry therefore renders children without installing
7
7
  // Octane's native server boundary.
8
8
  export function ErrorBoundary(props: ErrorBoundaryProps) @{
9
- <ErrorBoundaryContext.Provider
9
+ <ErrorBoundaryContext
10
10
  value={{ didCatch: false, error: null, resetErrorBoundary: () => {} }}
11
- >{props.children as OctaneNode}</ErrorBoundaryContext.Provider>
11
+ >{props.children as OctaneNode}</ErrorBoundaryContext>
12
12
  }
13
13
 
14
14
  export function withErrorBoundary<Props extends object>(