Commit 82c9586
authored
fix(node): Update version range for
Adding Node 21 to the accepted version range for `module.register` as it
is already supported (https://nodejs.org/docs/v21.0.0/api/module.html).
This also causes the customization hook not to call register (maybe a
reason why some packages in issue
#14202 are not
instrumented):
https://github.com/getsentry/sentry-javascript/blob/59094afb6ab53ac33b87b83f70eea9d13e4c2291/packages/node/src/sdk/initOtel.ts#L45-L65
---
Additionally, the above mentioned issue
#14202 shows the
following warning although it's using v21:
```
[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or upgrade your Node.js version.
```module.register (#16125)1 parent eaaef93 commit 82c9586
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments