@kapeta/local-cluster-service 0.25.2 → 0.25.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [0.25.4](https://github.com/kapetacom/local-cluster-service/compare/v0.25.3...v0.25.4) (2023-11-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Get rid of native node module ([ce9a7f2](https://github.com/kapetacom/local-cluster-service/commit/ce9a7f2eba8f86ebbd76e6a5d0ad282858361753))
7
+
8
+ ## [0.25.3](https://github.com/kapetacom/local-cluster-service/compare/v0.25.2...v0.25.3) (2023-11-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * Avoid sentry request handler - causes node crash ([0f004dd](https://github.com/kapetacom/local-cluster-service/commit/0f004dd98d31e07476cf9db011b32a2184fe3f96))
14
+
1
15
  ## [0.25.2](https://github.com/kapetacom/local-cluster-service/compare/v0.25.1...v0.25.2) (2023-11-12)
2
16
 
3
17
 
package/dist/cjs/index.js CHANGED
@@ -58,7 +58,6 @@ const DefaultProviderInstaller_1 = require("./src/utils/DefaultProviderInstaller
58
58
  const authManager_1 = require("./src/authManager");
59
59
  const codeGeneratorManager_1 = require("./src/codeGeneratorManager");
60
60
  const Sentry = __importStar(require("@sentry/node"));
61
- const profiling_node_1 = require("@sentry/profiling-node");
62
61
  Sentry.init({
63
62
  dsn: 'https://0b7cc946d82c591473d6f95fff5e210b@o4505820837249024.ingest.sentry.io/4506212692000768',
64
63
  enabled: process.env.NODE_ENV !== 'development',
@@ -72,10 +71,8 @@ function createServer() {
72
71
  const app = (0, express_1.default)();
73
72
  Sentry.addIntegration(new Sentry.Integrations.Http({ tracing: true }));
74
73
  Sentry.addIntegration(new Sentry.Integrations.Express({ app }));
75
- // @ts-ignore for some reason this doesn't match the type in TS
76
- Sentry.addIntegration(new profiling_node_1.ProfilingIntegration());
77
- // The request handler must be the first middleware on the app
78
- app.use(Sentry.Handlers.requestHandler());
74
+ // This causes node < 20 to crash on request.
75
+ //app.use(Sentry.Handlers.requestHandler());
79
76
  // TracingHandler creates a trace for every incoming request
80
77
  app.use(Sentry.Handlers.tracingHandler());
81
78
  app.use('/traffic', routes_1.default);
package/dist/esm/index.js CHANGED
@@ -58,7 +58,6 @@ const DefaultProviderInstaller_1 = require("./src/utils/DefaultProviderInstaller
58
58
  const authManager_1 = require("./src/authManager");
59
59
  const codeGeneratorManager_1 = require("./src/codeGeneratorManager");
60
60
  const Sentry = __importStar(require("@sentry/node"));
61
- const profiling_node_1 = require("@sentry/profiling-node");
62
61
  Sentry.init({
63
62
  dsn: 'https://0b7cc946d82c591473d6f95fff5e210b@o4505820837249024.ingest.sentry.io/4506212692000768',
64
63
  enabled: process.env.NODE_ENV !== 'development',
@@ -72,10 +71,8 @@ function createServer() {
72
71
  const app = (0, express_1.default)();
73
72
  Sentry.addIntegration(new Sentry.Integrations.Http({ tracing: true }));
74
73
  Sentry.addIntegration(new Sentry.Integrations.Express({ app }));
75
- // @ts-ignore for some reason this doesn't match the type in TS
76
- Sentry.addIntegration(new profiling_node_1.ProfilingIntegration());
77
- // The request handler must be the first middleware on the app
78
- app.use(Sentry.Handlers.requestHandler());
74
+ // This causes node < 20 to crash on request.
75
+ //app.use(Sentry.Handlers.requestHandler());
79
76
  // TracingHandler creates a trace for every incoming request
80
77
  app.use(Sentry.Handlers.tracingHandler());
81
78
  app.use('/traffic', routes_1.default);
package/index.ts CHANGED
@@ -32,7 +32,6 @@ import { defaultProviderInstaller } from './src/utils/DefaultProviderInstaller';
32
32
  import { authManager } from './src/authManager';
33
33
  import { codeGeneratorManager } from './src/codeGeneratorManager';
34
34
  import * as Sentry from '@sentry/node';
35
- import { ProfilingIntegration } from '@sentry/profiling-node';
36
35
 
37
36
  Sentry.init({
38
37
  dsn: 'https://0b7cc946d82c591473d6f95fff5e210b@o4505820837249024.ingest.sentry.io/4506212692000768',
@@ -54,11 +53,9 @@ function createServer() {
54
53
 
55
54
  Sentry.addIntegration(new Sentry.Integrations.Http({ tracing: true }));
56
55
  Sentry.addIntegration(new Sentry.Integrations.Express({ app }));
57
- // @ts-ignore for some reason this doesn't match the type in TS
58
- Sentry.addIntegration(new ProfilingIntegration());
59
56
 
60
- // The request handler must be the first middleware on the app
61
- app.use(Sentry.Handlers.requestHandler());
57
+ // This causes node < 20 to crash on request.
58
+ //app.use(Sentry.Handlers.requestHandler());
62
59
 
63
60
  // TracingHandler creates a trace for every incoming request
64
61
  app.use(Sentry.Handlers.tracingHandler());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kapeta/local-cluster-service",
3
- "version": "0.25.2",
3
+ "version": "0.25.4",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {
@@ -57,7 +57,6 @@
57
57
  "@kapeta/sdk-config": "<2",
58
58
  "@kapeta/web-microfrontend": "<2",
59
59
  "@sentry/node": "^7.80.0",
60
- "@sentry/profiling-node": "^1.2.6",
61
60
  "@types/dockerode": "^3.3.19",
62
61
  "@types/stream-json": "^1.7.3",
63
62
  "async-lock": "^1.4.0",