@flareapp/react 2.5.0 → 2.5.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.
package/README.md CHANGED
@@ -61,6 +61,16 @@ react: {
61
61
  Flare uses `react.minifiedError` and `react.version` on the backend to look up React's error-code map and surface the
62
62
  full, human-readable message. No error-code map is bundled into the client. Non-minified errors are reported unchanged.
63
63
 
64
+ ## Identifying users
65
+
66
+ ```tsx
67
+ import { flare } from '@flareapp/js';
68
+
69
+ flare.setUser({ id: 123, email: 'jane@example.com', fullName: 'Jane Doe' });
70
+ ```
71
+
72
+ See the [JavaScript identifying-users docs](https://flareapp.io/docs/javascript/data-collection/identifying-users) for the full field list. Pass `null` to clear.
73
+
64
74
  ## Documentation
65
75
 
66
76
  Full documentation on the error boundary, the React 19+ error handler, lifecycle callbacks, and more is available
@@ -32,7 +32,7 @@ let _flareapp_core = require("@flareapp/core");
32
32
  //#region src/constants.ts
33
33
  const CHROMIUM_STACK_REGEX = /^at\s+(\S+)(?:\s+\((.+):(\d+):(\d+)\))?$/;
34
34
  const FIREFOX_SAFARI_STACK_REGEX = /^(\S+?)@(.+):(\d+):(\d+)$/;
35
- const PACKAGE_VERSION = typeof process !== "undefined" && true ? "2.5.0" : "?";
35
+ const PACKAGE_VERSION = typeof process !== "undefined" && true ? "2.5.1" : "?";
36
36
 
37
37
  //#endregion
38
38
  //#region src/identify.ts
@@ -5,7 +5,7 @@ import { convertToError } from "@flareapp/core";
5
5
  //#region src/constants.ts
6
6
  const CHROMIUM_STACK_REGEX = /^at\s+(\S+)(?:\s+\((.+):(\d+):(\d+)\))?$/;
7
7
  const FIREFOX_SAFARI_STACK_REGEX = /^(\S+?)@(.+):(\d+):(\d+)$/;
8
- const PACKAGE_VERSION = typeof process !== "undefined" && true ? "2.5.0" : "?";
8
+ const PACKAGE_VERSION = typeof process !== "undefined" && true ? "2.5.1" : "?";
9
9
 
10
10
  //#endregion
11
11
  //#region src/identify.ts
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_flareReactErrorHandler = require('./flareReactErrorHandler-9xZVBY7Q.cjs');
2
+ const require_flareReactErrorHandler = require('./flareReactErrorHandler-BECMhASE.cjs');
3
3
  let _flareapp_js = require("@flareapp/js");
4
4
 
5
5
  //#region src/index.ts
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { i as registerReactSdkIdentity, n as FlareErrorBoundary, r as registerDefaultFlare, t as flareReactErrorHandler } from "./flareReactErrorHandler-DSLl6QFX.mjs";
1
+ import { i as registerReactSdkIdentity, n as FlareErrorBoundary, r as registerDefaultFlare, t as flareReactErrorHandler } from "./flareReactErrorHandler-FqJ6hQZc.mjs";
2
2
  import { flare } from "@flareapp/js";
3
3
 
4
4
  //#region src/index.ts
package/dist/inject.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_flareReactErrorHandler = require('./flareReactErrorHandler-9xZVBY7Q.cjs');
2
+ const require_flareReactErrorHandler = require('./flareReactErrorHandler-BECMhASE.cjs');
3
3
 
4
4
  exports.FlareErrorBoundary = require_flareReactErrorHandler.FlareErrorBoundary;
5
5
  exports.flareReactErrorHandler = require_flareReactErrorHandler.flareReactErrorHandler;
package/dist/inject.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { n as FlareErrorBoundary, t as flareReactErrorHandler } from "./flareReactErrorHandler-DSLl6QFX.mjs";
1
+ import { n as FlareErrorBoundary, t as flareReactErrorHandler } from "./flareReactErrorHandler-FqJ6hQZc.mjs";
2
2
 
3
3
  export { FlareErrorBoundary, flareReactErrorHandler };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flareapp/react",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "React client for flareapp.io",
5
5
  "homepage": "https://flareapp.io",
6
6
  "bugs": "https://github.com/spatie/flare-client-js/issues",
@@ -62,7 +62,7 @@
62
62
  "release": "release-it"
63
63
  },
64
64
  "dependencies": {
65
- "@flareapp/core": "2.5.0"
65
+ "@flareapp/core": "2.5.1"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@flareapp/electron": "file:../electron",
@@ -79,7 +79,7 @@
79
79
  "vitest": "^4.0.0"
80
80
  },
81
81
  "peerDependencies": {
82
- "@flareapp/js": "^2.5.0",
82
+ "@flareapp/js": "^2.5.1",
83
83
  "react": "^16.0.0||^17.0.0||^18.0.0||^19.0.0"
84
84
  },
85
85
  "publishConfig": {