highlight.run
Advanced tools
Comparing version 8.12.1 to 8.12.2
# highlight.run | ||
## 8.12.2 | ||
### Patch Changes | ||
- 8899ee039: report additional metadata on error boundary exceptions | ||
## 8.12.1 | ||
@@ -4,0 +10,0 @@ |
@@ -12,3 +12,3 @@ import { eventWithTime, listenerHandler } from '@rrweb/types'; | ||
import { HighlightFetchWindow } from './listeners/network-listener/utils/fetch-listener'; | ||
import { ConsoleMessage } from './types/shared-types'; | ||
import { ConsoleMessage, ErrorMessageType } from './types/shared-types'; | ||
import { RequestResponsePair } from './listeners/network-listener/utils/models'; | ||
@@ -103,4 +103,10 @@ export declare const HighlightWarning: (context: string, msg: any) => void; | ||
identify(user_identifier: string, user_object?: {}, source?: Source): void; | ||
pushCustomError(message: string, payload?: string): Promise<void>; | ||
consumeCustomError(error: Error, message?: string, payload?: string): Promise<void>; | ||
pushCustomError(message: string, payload?: string): void; | ||
consumeCustomError(error: Error, message?: string, payload?: string): void; | ||
consumeError(error: Error, { message, payload, source, type, }: { | ||
message?: string; | ||
payload?: object; | ||
source?: string; | ||
type?: ErrorMessageType; | ||
}): void; | ||
addProperties(properties_obj?: {}, typeArg?: PropertyType): void; | ||
@@ -107,0 +113,0 @@ initialize(options?: StartOptions): Promise<undefined>; |
@@ -9,5 +9,6 @@ import StackTrace from 'stacktrace-js'; | ||
}; | ||
export type ErrorMessageType = 'console.error' | 'window.onerror' | 'window.onunhandledrejection' | 'custom' | 'React.ErrorBoundary'; | ||
export type ErrorMessage = { | ||
event: string; | ||
type: 'console.error' | 'window.onerror' | 'window.onunhandledrejection' | 'custom'; | ||
type: ErrorMessageType; | ||
url: string; | ||
@@ -14,0 +15,0 @@ source: string; |
import { ConsoleMethods, DebugOptions, IntegrationOptions, NetworkRecordingOptions, SessionShortcutOptions } from './client.js'; | ||
import { ErrorMessageType } from './shared-types'; | ||
export declare interface Metadata { | ||
@@ -250,2 +251,13 @@ [key: string]: string | boolean | number; | ||
}) => void; | ||
/** | ||
* Calling this method will report an error in Highlight | ||
* while allowing additional attributes to be sent over as metadata. | ||
* @see {consumeError} for more information. | ||
*/ | ||
consume: (error: Error, opts: { | ||
message?: string; | ||
payload?: object; | ||
source?: string; | ||
type?: ErrorMessageType; | ||
}) => void; | ||
getSessionURL: () => Promise<string>; | ||
@@ -252,0 +264,0 @@ getSessionDetails: () => Promise<SessionDetails>; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "8.12.1"; | ||
declare const _default: "8.12.2"; | ||
export default _default; |
@@ -1,2 +0,2 @@ | ||
import { H as i, a as r, M as t, b as a } from "./index-BUCVSdq-.js"; | ||
import { H as i, a as r, M as t, b as a } from "./index-CgJuuLmF.js"; | ||
export { | ||
@@ -3,0 +3,0 @@ i as H, |
{ | ||
"name": "highlight.run", | ||
"version": "8.12.1", | ||
"version": "8.12.2", | ||
"description": "Open source, fullstack monitoring. Capture frontend errors, record server side logs, and visualize what broke with session replay.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2630784
11877