@kapeta/local-cluster-service 0.25.2 → 0.25.3

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,10 @@
1
+ ## [0.25.3](https://github.com/kapetacom/local-cluster-service/compare/v0.25.2...v0.25.3) (2023-11-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Avoid sentry request handler - causes node crash ([0f004dd](https://github.com/kapetacom/local-cluster-service/commit/0f004dd98d31e07476cf9db011b32a2184fe3f96))
7
+
1
8
  ## [0.25.2](https://github.com/kapetacom/local-cluster-service/compare/v0.25.1...v0.25.2) (2023-11-12)
2
9
 
3
10
 
package/dist/cjs/index.js CHANGED
@@ -74,8 +74,8 @@ function createServer() {
74
74
  Sentry.addIntegration(new Sentry.Integrations.Express({ app }));
75
75
  // @ts-ignore for some reason this doesn't match the type in TS
76
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());
77
+ // This causes node < 20 to crash on request.
78
+ //app.use(Sentry.Handlers.requestHandler());
79
79
  // TracingHandler creates a trace for every incoming request
80
80
  app.use(Sentry.Handlers.tracingHandler());
81
81
  app.use('/traffic', routes_1.default);
package/dist/esm/index.js CHANGED
@@ -74,8 +74,8 @@ function createServer() {
74
74
  Sentry.addIntegration(new Sentry.Integrations.Express({ app }));
75
75
  // @ts-ignore for some reason this doesn't match the type in TS
76
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());
77
+ // This causes node < 20 to crash on request.
78
+ //app.use(Sentry.Handlers.requestHandler());
79
79
  // TracingHandler creates a trace for every incoming request
80
80
  app.use(Sentry.Handlers.tracingHandler());
81
81
  app.use('/traffic', routes_1.default);
package/index.ts CHANGED
@@ -57,8 +57,8 @@ function createServer() {
57
57
  // @ts-ignore for some reason this doesn't match the type in TS
58
58
  Sentry.addIntegration(new ProfilingIntegration());
59
59
 
60
- // The request handler must be the first middleware on the app
61
- app.use(Sentry.Handlers.requestHandler());
60
+ // This causes node < 20 to crash on request.
61
+ //app.use(Sentry.Handlers.requestHandler());
62
62
 
63
63
  // TracingHandler creates a trace for every incoming request
64
64
  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.3",
4
4
  "description": "Manages configuration, ports and service discovery for locally running Kapeta systems",
5
5
  "type": "commonjs",
6
6
  "exports": {