@sentry/profiling-node 10.50.0-alpha.0 → 10.51.0
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 +12 -4
- package/build/esm/package.json +1 -1
- package/package.json +3 -3
- package/scripts/prune-profiler-binaries.js +4 -0
package/README.md
CHANGED
|
@@ -238,14 +238,22 @@ Once you run `node esbuild.serverless.js` esbuild wil bundle and output the file
|
|
|
238
238
|
the binaries will be copied. This is wasteful as you will likely only need one of these libraries to be available during
|
|
239
239
|
runtime.
|
|
240
240
|
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
241
|
+
> **Deprecation notice:** This script will be removed in the next major version. If you depend on it, please comment on
|
|
242
|
+
> [this issue](https://github.com/getsentry/sentry-javascript/issues/20567).
|
|
243
|
+
|
|
244
|
+
To prune the other libraries, profiling-node ships with a small utility script that helps you prune unused binaries:
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
npx --package=@sentry/profiling-node sentry-prune-profiler-binaries
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
Use `--help` to see a list of available options or `--dry-run` if you want it to log the binaries that would have been
|
|
251
|
+
deleted.
|
|
244
252
|
|
|
245
253
|
Example of only preserving a binary to run node16 on linux x64 musl.
|
|
246
254
|
|
|
247
255
|
```bash
|
|
248
|
-
sentry-prune-profiler-binaries --target_dir_path=./dist --target_platform=linux --target_node=16 --target_stdlib=musl --target_arch=x64
|
|
256
|
+
npx --package=@sentry/profiling-node sentry-prune-profiler-binaries --target_dir_path=./dist --target_platform=linux --target_node=16 --target_stdlib=musl --target_arch=x64
|
|
249
257
|
```
|
|
250
258
|
|
|
251
259
|
Which will output something like
|
package/build/esm/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"module","version":"10.
|
|
1
|
+
{"type":"module","version":"10.51.0","sideEffects":false}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sentry/profiling-node",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.51.0",
|
|
4
4
|
"description": "Official Sentry SDK for Node.js Profiling",
|
|
5
5
|
"repository": "git://github.com/getsentry/sentry-javascript.git",
|
|
6
6
|
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/profiling-node",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@sentry-internal/node-cpu-profiler": "^2.2.0",
|
|
65
|
-
"@sentry/core": "10.
|
|
66
|
-
"@sentry/node": "10.
|
|
65
|
+
"@sentry/core": "10.51.0",
|
|
66
|
+
"@sentry/node": "10.51.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"@types/node": "^18.19.1"
|
|
@@ -56,6 +56,10 @@ Arguments:\n
|
|
|
56
56
|
process.exit(0);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
console.warn(
|
|
60
|
+
'[Sentry] Warning: This script will be removed in the next major version. See: https://github.com/getsentry/sentry-javascript/issues/20567',
|
|
61
|
+
);
|
|
62
|
+
|
|
59
63
|
const ARGV_ERRORS = [];
|
|
60
64
|
|
|
61
65
|
const NODE_TO_ABI = {
|