@sentry/profiling-node 8.54.0 → 9.0.0-alpha.1

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.
Files changed (47) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -3
  3. package/lib/cjs/index.js +45 -260
  4. package/lib/cjs/index.js.map +1 -1
  5. package/lib/esm/index.js +46 -255
  6. package/lib/esm/index.js.map +1 -1
  7. package/lib/esm/package.json +1 -1
  8. package/lib/types/integration.d.ts.map +1 -1
  9. package/lib/types/spanProfileUtils.d.ts.map +1 -1
  10. package/lib/types/utils.d.ts.map +1 -1
  11. package/package.json +13 -32
  12. package/binding.gyp +0 -20
  13. package/bindings/cpu_profiler.cc +0 -1226
  14. package/lib/sentry_cpu_profiler-darwin-arm64-108.node +0 -0
  15. package/lib/sentry_cpu_profiler-darwin-arm64-115.node +0 -0
  16. package/lib/sentry_cpu_profiler-darwin-arm64-127.node +0 -0
  17. package/lib/sentry_cpu_profiler-darwin-arm64-93.node +0 -0
  18. package/lib/sentry_cpu_profiler-darwin-x64-108.node +0 -0
  19. package/lib/sentry_cpu_profiler-darwin-x64-115.node +0 -0
  20. package/lib/sentry_cpu_profiler-darwin-x64-127.node +0 -0
  21. package/lib/sentry_cpu_profiler-darwin-x64-93.node +0 -0
  22. package/lib/sentry_cpu_profiler-linux-arm64-glibc-108.node +0 -0
  23. package/lib/sentry_cpu_profiler-linux-arm64-glibc-115.node +0 -0
  24. package/lib/sentry_cpu_profiler-linux-arm64-glibc-127.node +0 -0
  25. package/lib/sentry_cpu_profiler-linux-arm64-glibc-93.node +0 -0
  26. package/lib/sentry_cpu_profiler-linux-arm64-musl-108.node +0 -0
  27. package/lib/sentry_cpu_profiler-linux-arm64-musl-115.node +0 -0
  28. package/lib/sentry_cpu_profiler-linux-arm64-musl-127.node +0 -0
  29. package/lib/sentry_cpu_profiler-linux-arm64-musl-93.node +0 -0
  30. package/lib/sentry_cpu_profiler-linux-x64-glibc-108.node +0 -0
  31. package/lib/sentry_cpu_profiler-linux-x64-glibc-115.node +0 -0
  32. package/lib/sentry_cpu_profiler-linux-x64-glibc-127.node +0 -0
  33. package/lib/sentry_cpu_profiler-linux-x64-glibc-93.node +0 -0
  34. package/lib/sentry_cpu_profiler-linux-x64-musl-108.node +0 -0
  35. package/lib/sentry_cpu_profiler-linux-x64-musl-115.node +0 -0
  36. package/lib/sentry_cpu_profiler-linux-x64-musl-127.node +0 -0
  37. package/lib/sentry_cpu_profiler-linux-x64-musl-93.node +0 -0
  38. package/lib/sentry_cpu_profiler-win32-x64-108.node +0 -0
  39. package/lib/sentry_cpu_profiler-win32-x64-115.node +0 -0
  40. package/lib/sentry_cpu_profiler-win32-x64-127.node +0 -0
  41. package/lib/sentry_cpu_profiler-win32-x64-93.node +0 -0
  42. package/lib/types/cpu_profiler.d.ts +0 -16
  43. package/lib/types/cpu_profiler.d.ts.map +0 -1
  44. package/lib/types-ts3.8/cpu_profiler.d.ts +0 -16
  45. package/scripts/binaries.js +0 -27
  46. package/scripts/check-build.js +0 -56
  47. package/scripts/copy-target.js +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentry/profiling-node",
3
- "version": "8.54.0",
3
+ "version": "9.0.0-alpha.1",
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",
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "typesVersions": {
26
- "<4.9": {
26
+ "<5.0": {
27
27
  "lib/types/index.d.ts": [
28
28
  "lib/types-ts3.8/index.d.ts"
29
29
  ]
@@ -33,60 +33,41 @@
33
33
  "sentry-prune-profiler-binaries": "scripts/prune-profiler-binaries.js"
34
34
  },
35
35
  "engines": {
36
- "node": ">=14.18"
36
+ "node": ">=18"
37
37
  },
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
41
  "files": [
42
42
  "/lib",
43
- "/bindings",
44
- "/binding.gyp",
45
43
  "package.json",
46
- "/scripts/binaries.js",
47
- "/scripts/check-build.js",
48
- "/scripts/copy-target.js",
49
44
  "/scripts/prune-profiler-binaries.js"
50
45
  ],
51
46
  "scripts": {
52
- "install": "node scripts/check-build.js",
53
47
  "clean": "rm -rf build && rm -rf lib",
54
- "lint": "yarn lint:eslint && yarn lint:clang",
55
- "lint:eslint": "eslint . --format stylish",
56
- "lint:clang": "node clang-format.js",
48
+ "lint": "eslint . --format stylish",
57
49
  "fix": "eslint . --format stylish --fix",
58
- "lint:fix": "yarn fix:eslint && yarn fix:clang",
59
- "lint:fix:clang": "node clang-format.js --fix",
60
- "build": "yarn build:lib && yarn build:bindings:configure && yarn build:bindings",
50
+ "build": "yarn build:lib",
61
51
  "build:lib": "yarn build:types && rollup -c rollup.npm.config.mjs",
62
- "build:transpile": "yarn build:bindings:configure && yarn build:bindings && yarn build:lib",
52
+ "build:transpile": "yarn build:lib",
63
53
  "build:types:downlevel": "yarn downlevel-dts lib/types lib/types-ts3.8 --to ts3.8",
64
54
  "build:types": "tsc -p tsconfig.types.json && yarn build:types:downlevel",
65
55
  "build:types:watch": "tsc -p tsconfig.types.json --watch",
66
- "build:bindings:configure": "node-gyp configure",
67
- "build:bindings:configure:arm64": "node-gyp configure --arch=arm64 --target_arch=arm64",
68
- "build:bindings": "node-gyp build && node scripts/copy-target.js",
69
- "build:bindings:arm64": "node-gyp build --arch=arm64 && node scripts/copy-target.js",
70
- "build:dev": "yarn clean && yarn build:bindings:configure && yarn build",
56
+ "build:dev": "yarn clean && yarn build",
71
57
  "build:transpile:watch": "rollup -c rollup.npm.config.mjs --watch",
72
58
  "build:watch": "run-p build:transpile:watch build:types:watch",
73
59
  "build:tarball": "npm pack",
74
- "test:watch": "cross-env SENTRY_PROFILER_BINARY_DIR=build jest --watch",
60
+ "test:watch": "jest --watch",
75
61
  "test:bundle": "node test-binaries.esbuild.js",
76
- "test": "cross-env SENTRY_PROFILER_BINARY_DIR=lib jest --config jest.config.js"
62
+ "test": "jest --config jest.config.js"
77
63
  },
78
64
  "dependencies": {
79
- "@sentry/core": "8.54.0",
80
- "@sentry/node": "8.54.0",
81
- "detect-libc": "^2.0.2",
82
- "node-abi": "^3.61.0"
65
+ "@sentry-internal/node-cpu-profiler": "^2.0.0",
66
+ "@sentry/core": "9.0.0-alpha.1",
67
+ "@sentry/node": "9.0.0-alpha.1"
83
68
  },
84
69
  "devDependencies": {
85
- "@types/node": "16.18.70",
86
- "@types/node-abi": "^3.0.3",
87
- "clang-format": "^1.8.0",
88
- "cross-env": "^7.0.3",
89
- "node-gyp": "^9.4.1"
70
+ "@types/node": "^18.19.1"
90
71
  },
91
72
  "volta": {
92
73
  "extends": "../../package.json"
package/binding.gyp DELETED
@@ -1,20 +0,0 @@
1
- {
2
- "targets": [
3
- {
4
- "target_name": "sentry_cpu_profiler",
5
- "sources": [ "bindings/cpu_profiler.cc" ],
6
- # Silence gcc8 deprecation warning https://github.com/nodejs/nan/issues/807#issuecomment-455750192
7
- "cflags": ["-Wno-cast-function-type"]
8
- },
9
- ],
10
- 'conditions': [
11
- [ 'OS=="win"', {
12
- 'defines': [
13
- # Stop <windows.h> from defining macros that conflict with
14
- # std::min() and std::max(). We don't use <windows.h> (much)
15
- # but we still inherit it from uv.h.
16
- 'NOMINMAX',
17
- ]
18
- }],
19
- ],
20
- }