@getexception/react 0.1.27 → 0.1.29

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 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 identity. Tags and context use 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`.
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. An ID, login or `login:sublogin` explicitly supplied through `setUser({ id })` is accepted; `setUser(null)` clears it. The value is stored unchanged and visible to members with project access; a login is not anonymous. Composite IDs require the updated SDK and server and are not yet supported by published SDK `0.1.28`; see the [browser SDK limits](../browser/README.md#user-id-tags-and-manual-capture). 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
@@ -3,6 +3,7 @@ import {
3
3
  init,
4
4
  captureException,
5
5
  captureMessage,
6
+ setUser,
6
7
  setTag,
7
8
  setTags,
8
9
  setContext,
@@ -23,5 +24,6 @@ export {
23
24
  setContext,
24
25
  setTag,
25
26
  setTags,
27
+ setUser,
26
28
  withScope
27
29
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getexception/react",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
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.27",
25
+ "@getexception/browser": "0.1.29",
26
26
  "@getexception/sentry-react": "npm:@sentry/react@10.73.0"
27
27
  },
28
28
  "devDependencies": {