@sentry/react
Advanced tools
Comparing version 5.18.0 to 5.18.1
@@ -7,4 +7,4 @@ import { Span } from '@sentry/types'; | ||
disabled?: boolean; | ||
hasRenderSpan?: boolean; | ||
hasUpdateSpan?: boolean; | ||
includeRender?: boolean; | ||
includeUpdates?: boolean; | ||
updateProps: { | ||
@@ -25,3 +25,3 @@ [key: string]: any; | ||
componentDidMount(): void; | ||
componentDidUpdate({ updateProps, hasUpdateSpan }: ProfilerProps): void; | ||
componentDidUpdate({ updateProps, includeUpdates }: ProfilerProps): void; | ||
componentWillUnmount(): void; | ||
@@ -28,0 +28,0 @@ render(): React.ReactNode; |
@@ -101,7 +101,7 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _this = this; | ||
var updateProps = _a.updateProps, _b = _a.hasUpdateSpan, hasUpdateSpan = _b === void 0 ? true : _b; | ||
var updateProps = _a.updateProps, _b = _a.includeUpdates, includeUpdates = _b === void 0 ? true : _b; | ||
// Only generate an update span if hasUpdateSpan is true, if there is a valid mountSpan, | ||
// and if the updateProps have changed. It is ok to not do a deep equality check here as it is expensive. | ||
// We are just trying to give baseline clues for further investigation. | ||
if (hasUpdateSpan && this.mountSpan && updateProps !== this.props.updateProps) { | ||
if (includeUpdates && this.mountSpan && updateProps !== this.props.updateProps) { | ||
// See what props haved changed between the previous props, and the current props. This is | ||
@@ -129,4 +129,4 @@ // set as data on the span. We just store the prop keys as the values could be potenially very large. | ||
Profiler.prototype.componentWillUnmount = function () { | ||
var _a = this.props, name = _a.name, _b = _a.hasRenderSpan, hasRenderSpan = _b === void 0 ? true : _b; | ||
if (this.mountSpan && hasRenderSpan) { | ||
var _a = this.props, name = _a.name, _b = _a.includeRender, includeRender = _b === void 0 ? true : _b; | ||
if (this.mountSpan && includeRender) { | ||
// If we were able to obtain the spanId of the mount activity, we should set the | ||
@@ -147,4 +147,4 @@ // next activity as a child to the component mount activity. | ||
disabled: false, | ||
hasRenderSpan: true, | ||
hasUpdateSpan: true, | ||
includeRender: true, | ||
includeUpdates: true, | ||
}; | ||
@@ -151,0 +151,0 @@ return Profiler; |
@@ -7,4 +7,4 @@ import { Span } from '@sentry/types'; | ||
disabled?: boolean; | ||
hasRenderSpan?: boolean; | ||
hasUpdateSpan?: boolean; | ||
includeRender?: boolean; | ||
includeUpdates?: boolean; | ||
updateProps: { | ||
@@ -25,3 +25,3 @@ [key: string]: any; | ||
componentDidMount(): void; | ||
componentDidUpdate({ updateProps, hasUpdateSpan }: ProfilerProps): void; | ||
componentDidUpdate({ updateProps, includeUpdates }: ProfilerProps): void; | ||
componentWillUnmount(): void; | ||
@@ -28,0 +28,0 @@ render(): React.ReactNode; |
@@ -99,7 +99,7 @@ import { __assign, __extends, __read } from "tslib"; | ||
var _this = this; | ||
var updateProps = _a.updateProps, _b = _a.hasUpdateSpan, hasUpdateSpan = _b === void 0 ? true : _b; | ||
var updateProps = _a.updateProps, _b = _a.includeUpdates, includeUpdates = _b === void 0 ? true : _b; | ||
// Only generate an update span if hasUpdateSpan is true, if there is a valid mountSpan, | ||
// and if the updateProps have changed. It is ok to not do a deep equality check here as it is expensive. | ||
// We are just trying to give baseline clues for further investigation. | ||
if (hasUpdateSpan && this.mountSpan && updateProps !== this.props.updateProps) { | ||
if (includeUpdates && this.mountSpan && updateProps !== this.props.updateProps) { | ||
// See what props haved changed between the previous props, and the current props. This is | ||
@@ -127,4 +127,4 @@ // set as data on the span. We just store the prop keys as the values could be potenially very large. | ||
Profiler.prototype.componentWillUnmount = function () { | ||
var _a = this.props, name = _a.name, _b = _a.hasRenderSpan, hasRenderSpan = _b === void 0 ? true : _b; | ||
if (this.mountSpan && hasRenderSpan) { | ||
var _a = this.props, name = _a.name, _b = _a.includeRender, includeRender = _b === void 0 ? true : _b; | ||
if (this.mountSpan && includeRender) { | ||
// If we were able to obtain the spanId of the mount activity, we should set the | ||
@@ -145,4 +145,4 @@ // next activity as a child to the component mount activity. | ||
disabled: false, | ||
hasRenderSpan: true, | ||
hasUpdateSpan: true, | ||
includeRender: true, | ||
includeUpdates: true, | ||
}; | ||
@@ -149,0 +149,0 @@ return Profiler; |
{ | ||
"name": "@sentry/react", | ||
"version": "5.18.0", | ||
"version": "5.18.1", | ||
"description": "Offical Sentry SDK for React.js", | ||
@@ -19,5 +19,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/browser": "5.18.0", | ||
"@sentry/types": "5.18.0", | ||
"@sentry/utils": "5.18.0", | ||
"@sentry/browser": "5.18.1", | ||
"@sentry/types": "5.18.1", | ||
"@sentry/utils": "5.18.1", | ||
"hoist-non-react-statics": "^3.3.2", | ||
@@ -27,4 +27,4 @@ "tslib": "^1.9.3" | ||
"peerDependencies": { | ||
"react": "^16.0.0", | ||
"react-dom": "^16.0.0" | ||
"react": "15.x || 16.x", | ||
"react-dom": "15.x || 16.x" | ||
}, | ||
@@ -31,0 +31,0 @@ "devDependencies": { |
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 not supported yet
Sorry, the diff of this file is not supported yet
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
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
90979
0
+ Added@sentry/browser@5.18.1(transitive)
+ Added@sentry/core@5.18.1(transitive)
+ Added@sentry/hub@5.18.1(transitive)
+ Added@sentry/minimal@5.18.1(transitive)
+ Added@sentry/types@5.18.1(transitive)
+ Added@sentry/utils@5.18.1(transitive)
- Removed@sentry/browser@5.18.0(transitive)
- Removed@sentry/core@5.18.0(transitive)
- Removed@sentry/hub@5.18.0(transitive)
- Removed@sentry/minimal@5.18.0(transitive)
- Removed@sentry/types@5.18.0(transitive)
- Removed@sentry/utils@5.18.0(transitive)
Updated@sentry/browser@5.18.1
Updated@sentry/types@5.18.1
Updated@sentry/utils@5.18.1