diff --git a/MIGRATION.md b/MIGRATION.md index ee7cb43c..e9198a50 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -1,10 +1,18 @@ This document details the changes between major versions of the Sentry Electron SDK. +- [Upgrading from 7.x to 8.x](#upgrading-from-7x-to-8x) - [Upgrading from 6.x to 7.x](#upgrading-from-6x-to-7x) - [Upgrading from 5.x to 6.x](#upgrading-from-5x-to-6x) - [Upgrading from 4.x to 5.x](#upgrading-from-4x-to-5x) +# Upgrading from 7.x to 8.x + +## Supported Electron Versions + +The Sentry Node SDK now requires Node >= 20.19.0 which means the Sentry Electron +SDK now supports Electron >= 35.0.0. + # Upgrading from 6.x to 7.x Most users won't notice many breaking API changes in v7 but it's worth checking diff --git a/README.md b/README.md index d52099e0..ceed89ff 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ Test](https://github.com/getsentry/sentry-electron/actions/workflows/build.yml/b [`@sentry/browser`](https://github.com/getsentry/sentry-javascript/tree/master/packages/browser)) - Captures **native crashes** (Minidump crash reports) from renderers and the main process - Collects **breadcrumbs and context** information along with events across renderers and the main process -- Supports `electron >= v23` +- Supports `electron >= v35` ## Usage diff --git a/scripts/update-electron-versions.mjs b/scripts/update-electron-versions.mjs index d08d2484..179e0799 100644 --- a/scripts/update-electron-versions.mjs +++ b/scripts/update-electron-versions.mjs @@ -9,7 +9,7 @@ const result = spawnSync('npm', ['view', 'electron', 'dist-tags', '--json'], { e const allTags = JSON.parse(result.stdout); const versions = []; -let startVersion = 23; +let startVersion = 35; while (true) { const versionTag = `${startVersion}-x-y`; diff --git a/src/main/sdk.ts b/src/main/sdk.ts index 45c56c42..32deacb7 100644 --- a/src/main/sdk.ts +++ b/src/main/sdk.ts @@ -159,8 +159,8 @@ export type ElectronMainOptions = Pick< export function init(userOptions: ElectronMainOptions): void { const [major = 0] = process.versions.electron.split('.').map(Number); - if (major < 23) { - throw new Error('Sentry Electron SDK requires Electron 23 or higher'); + if (major < 35) { + throw new Error('Sentry Electron SDK requires Electron 35 or higher'); } const inferIpAddress = userOptions.dataCollection?.userInfo ?? true; diff --git a/test/e2e/versions.json b/test/e2e/versions.json index 660781d2..1a63ecce 100644 --- a/test/e2e/versions.json +++ b/test/e2e/versions.json @@ -1 +1 @@ -["23.3.13","24.8.8","25.9.8","26.6.10","27.3.11","28.3.3","29.4.6","30.5.1","31.7.7","32.3.3","33.4.11","34.5.8","35.7.5","36.9.5","37.10.3","38.8.6","39.8.10","40.10.6","41.10.7","42.11.0","43.5.0","44.1.0"] +["35.7.5","36.9.5","37.10.3","38.8.6","39.8.10","40.10.6","41.10.7","42.11.0","43.5.0","44.1.0"]