@getexception/react 0.1.26 → 0.1.28
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/README.md +3 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ createRoot(document.getElementById("root")!).render(
|
|
|
37
37
|
|
|
38
38
|
Put the DSN in your application's environment configuration. It is a public, write-only project key, not a dashboard password. If your application uses a Content Security Policy, allow the ingest origin in `connect-src`.
|
|
39
39
|
|
|
40
|
-
`ErrorBoundary` captures errors while rendering its children and shows your fallback. Unhandled browser errors and promise rejections are captured after `init`. For errors handled by your own code:
|
|
40
|
+
`ErrorBoundary` captures errors while rendering its children and shows your fallback. Unhandled browser errors and promise rejections are captured after `init` unless `autoCapture: false` is set. This setting does not disable an explicitly mounted `ErrorBoundary`. For errors handled by your own code:
|
|
41
41
|
|
|
42
42
|
```ts
|
|
43
43
|
try {
|
|
@@ -51,9 +51,9 @@ To check the connection, call `GetException.captureException(new Error("GetExcep
|
|
|
51
51
|
|
|
52
52
|
## Supported API
|
|
53
53
|
|
|
54
|
-
`init`, `captureException`, `captureMessage`, `setTag`, `setTags`, `setContext`, `addBreadcrumb`, `withScope`, `flush`, `close`, and `ErrorBoundary`. See the [browser SDK](https://www.npmjs.com/package/@getexception/browser) for configuration and the [compatibility guide](https://github.com/GetException/GetException/blob/stable/docs/sdk-compatibility.md) for exact limits.
|
|
54
|
+
`init`, `captureException`, `captureMessage`, `setUser`, `setTag`, `setTags`, `setContext`, `addBreadcrumb`, `withScope`, `flush`, `close`, and `ErrorBoundary`. See the [browser SDK](https://www.npmjs.com/package/@getexception/browser) for configuration and the [compatibility guide](https://github.com/GetException/GetException/blob/stable/docs/sdk-compatibility.md) for exact limits.
|
|
55
55
|
|
|
56
|
-
The SDK uses a restricted Sentry integration. It sends errors only: no replay, tracing, automatic console/DOM breadcrumbs, cookies, form values or user
|
|
56
|
+
The SDK uses a restricted Sentry integration. It sends errors only: no replay, tracing, automatic console/DOM breadcrumbs, cookies, form values or automatic user identification. Only a technical ID explicitly supplied through `setUser({ id })` is accepted; `setUser(null)` clears it. The Owner configures allowed tag names in Project settings; `setTag(name, undefined)` removes a shared tag. Context uses an allow-list. Browser family and major version are collected without sending the full User-Agent. API diagnostics support `captureException(error, { contexts: { api: { code, reason, status_code } } })` with a restricted allow-list; see the browser package README. Upload private source maps with `@getexception/cli` using the same `release`, `buildId` and `environment` as `init`.
|
|
57
57
|
|
|
58
58
|
React is a peer dependency and stays under the application's control. Importing the package does not start monitoring; call `init` explicitly. The package is ESM and includes TypeScript declarations.
|
|
59
59
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ApiContext, Breadcrumb, BrowserContext, BrowserOptions, CaptureContext, Scope, SeverityLevel, addBreadcrumb, captureException, captureMessage, close, flush, init, setContext, setTag, setTags, withScope } from '@getexception/browser';
|
|
1
|
+
export { ApiContext, Breadcrumb, BrowserContext, BrowserOptions, CaptureContext, Scope, SeverityLevel, TagValue, User, addBreadcrumb, captureException, captureMessage, close, flush, init, setContext, setTag, setTags, setUser, withScope } from '@getexception/browser';
|
|
2
2
|
export { ErrorBoundary } from '@getexception/sentry-react';
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getexception/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "GetException error monitoring and ErrorBoundary for React 18 and 19",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@getexception/browser": "0.1.
|
|
25
|
+
"@getexception/browser": "0.1.28",
|
|
26
26
|
"@getexception/sentry-react": "npm:@sentry/react@10.73.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|