Skip to content

Commit 11dc69e

Browse files
committed
build(replay): Replay supports node 12+
1 parent 0c8532b commit 11dc69e

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

packages/replay/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Note: Session Replay is currently in beta.
66

77
For the sentry-replay integration to work, you must have the [Sentry browser SDK package](https://www.npmjs.com/package/@sentry/browser), or an equivalent framework SDK (e.g. [@sentry/react](https://www.npmjs.com/package/@sentry/react)) installed. The minimum version required for the SDK is `7.x`.
88

9+
10+
`@sentry/replay` requires Node 12+, and browsers newer than IE11.
11+
912
## Installation
1013

1114
with npm:
@@ -87,7 +90,7 @@ A session starts when the Session Replay SDK is first loaded and initialized. Th
8790

8891
### Replay Captures Only on Errors
8992

90-
Alternatively, rather than recording an entire session, you can capture a replay only when an error occurs. In this case, the integration will buffer up to one minute worth of events prior to the error being thrown. It will continue to record the session following the rules above regarding session life and activity. Read the [sampling](#Sampling) section for configuration options.
93+
Alternatively, rather than recording an entire session, you can capture a replay only when an error occurs. In this case, the integration will buffer up to one minute worth of events prior to the error being thrown. It will continue to record the session following the rules above regarding session life and activity. Read the [sampling](#Sampling) section for configuration options.
9194

9295
## Sampling
9396

packages/replay/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@
6060
"lodash.debounce": "^4.0.8",
6161
"rrweb": "^1.1.3"
6262
},
63+
"engines": {
64+
"node": ">=12"
65+
},
6366
"size-limit": [
6467
{
6568
"path": "build/npm/index.js",

scripts/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const NODE_8_SKIP_TESTS_PACKAGES = [
1717
'@sentry/angular',
1818
'@sentry/remix',
1919
'@sentry/svelte', // svelte testing library requires Node >= 10
20+
'@sentry/replay',
2021
];
2122

2223
// We have to downgrade some of our dependencies in order to run tests in Node 8 and 10.
@@ -28,7 +29,7 @@ const NODE_8_LEGACY_DEPENDENCIES = [
2829
2930
];
3031

31-
const NODE_10_SKIP_TESTS_PACKAGES = [...DEFAULT_SKIP_TESTS_PACKAGES, '@sentry/remix'];
32+
const NODE_10_SKIP_TESTS_PACKAGES = [...DEFAULT_SKIP_TESTS_PACKAGES, '@sentry/remix', '@sentry/replay'];
3233
const NODE_10_LEGACY_DEPENDENCIES = ['[email protected]'];
3334

3435
const NODE_12_SKIP_TESTS_PACKAGES = [...DEFAULT_SKIP_TESTS_PACKAGES, '@sentry/remix'];

0 commit comments

Comments
 (0)