From 0e7cbe8d978fe0119e70237f6e7784908193a6d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Ovejero?= Date: Wed, 20 Aug 2025 11:31:00 +0200 Subject: [PATCH 1/2] fix(core): Dynamically import `@sentry/node-native` (#18586) --- packages/core/src/errors/error-reporter.ts | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/core/src/errors/error-reporter.ts b/packages/core/src/errors/error-reporter.ts index 2779782639c8b..c0c400129dadf 100644 --- a/packages/core/src/errors/error-reporter.ts +++ b/packages/core/src/errors/error-reporter.ts @@ -4,7 +4,6 @@ import { Service } from '@n8n/di'; import type { ReportingOptions } from '@n8n/errors'; import type { ErrorEvent, EventHint } from '@sentry/core'; import type { NodeOptions } from '@sentry/node'; -import { eventLoopBlockIntegration } from '@sentry/node-native'; import { AxiosError } from 'axios'; import { ApplicationError, ExecutionCancelledError, BaseError } from 'n8n-workflow'; import { createHash } from 'node:crypto'; @@ -127,6 +126,8 @@ export class ErrorReporter { 'ContextLines', ]; + const eventLoopBlockIntegration = await this.getEventLoopBlockIntegration(); + init({ dsn, release, @@ -147,7 +148,7 @@ export class ErrorReporter { url: true, }, }), - eventLoopBlockIntegration(), + ...eventLoopBlockIntegration, ], }); @@ -252,4 +253,16 @@ export class ErrorReporter { if (extra) event.extra = { ...event.extra, ...extra }; if (tags) event.tags = { ...event.tags, ...tags }; } + + private async getEventLoopBlockIntegration() { + try { + const { eventLoopBlockIntegration } = await import('@sentry/node-native'); + return [eventLoopBlockIntegration()]; + } catch { + this.logger.debug( + "Sentry's event loop block integration is disabled, because the native binary for `@sentry/node-native` was not found", + ); + return []; + } + } } From 042d1076f18c7ea73864e5ed90d610becde3481f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 20 Aug 2025 14:05:12 +0200 Subject: [PATCH 2/2] :rocket: Release 1.107.4 (#18592) Co-authored-by: burivuhster <3273843+burivuhster@users.noreply.github.com> --- CHANGELOG.md | 9 +++++++++ package.json | 2 +- packages/@n8n/db/package.json | 2 +- packages/@n8n/task-runner/package.json | 2 +- packages/cli/package.json | 2 +- packages/core/package.json | 2 +- packages/node-dev/package.json | 2 +- 7 files changed, 15 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b3ead071a1a17..dcf83404b0a24 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,12 @@ +## [1.107.4](https://github.com/n8n-io/n8n/compare/n8n@1.107.3...n8n@1.107.4) (2025-08-20) + + +### Bug Fixes + +* **core:** Dynamically import `@sentry/node-native` ([#18586](https://github.com/n8n-io/n8n/issues/18586)) ([0e7cbe8](https://github.com/n8n-io/n8n/commit/0e7cbe8d978fe0119e70237f6e7784908193a6d3)) + + + ## [1.107.3](https://github.com/n8n-io/n8n/compare/n8n@1.107.2...n8n@1.107.3) (2025-08-18) diff --git a/package.json b/package.json index 94cfd545d0d43..41f6cde7f5382 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "n8n-monorepo", - "version": "1.107.3", + "version": "1.107.4", "private": true, "engines": { "node": ">=22.16", diff --git a/packages/@n8n/db/package.json b/packages/@n8n/db/package.json index d59b7b1e37f88..cb358db621e36 100644 --- a/packages/@n8n/db/package.json +++ b/packages/@n8n/db/package.json @@ -1,6 +1,6 @@ { "name": "@n8n/db", - "version": "0.18.1", + "version": "0.18.2", "scripts": { "clean": "rimraf dist .turbo", "dev": "pnpm watch", diff --git a/packages/@n8n/task-runner/package.json b/packages/@n8n/task-runner/package.json index 5f805ebeb2917..4b2bce5bf9f77 100644 --- a/packages/@n8n/task-runner/package.json +++ b/packages/@n8n/task-runner/package.json @@ -1,6 +1,6 @@ { "name": "@n8n/task-runner", - "version": "1.43.1", + "version": "1.43.2", "scripts": { "clean": "rimraf dist .turbo", "start": "node dist/start.js", diff --git a/packages/cli/package.json b/packages/cli/package.json index 6b70a970fce78..cdc5f088cdb49 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "n8n", - "version": "1.107.3", + "version": "1.107.4", "description": "n8n Workflow Automation Tool", "main": "dist/index", "types": "dist/index.d.ts", diff --git a/packages/core/package.json b/packages/core/package.json index d7677de32f57f..866668c05f1b4 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "n8n-core", - "version": "1.106.1", + "version": "1.106.2", "description": "Core functionality of n8n", "main": "dist/index", "types": "dist/index.d.ts", diff --git a/packages/node-dev/package.json b/packages/node-dev/package.json index 2ce3d32173088..8634ad4c57fd7 100644 --- a/packages/node-dev/package.json +++ b/packages/node-dev/package.json @@ -1,6 +1,6 @@ { "name": "n8n-node-dev", - "version": "1.105.1", + "version": "1.105.2", "description": "CLI to simplify n8n credentials/node development", "main": "dist/src/index", "types": "dist/src/index.d.ts",