![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@descript/sentry-electron
Advanced tools
NOTE: This package is still in beta. It is part of an early access preview
for the
next generation of
Sentry JavaScript SDKs. While we try to keep breaking changes to a minimum,
interfaces might change between minor releases before the first stable 1.x
release.
@sentry/node
)@sentry/browser
)To use this SDK, call init(options)
as early as possible in the entry modules
in the main process as well as all renderer processes or further sub processees
you spawn. This will initialize the SDK and hook into the environment. Note that
you can turn off almost all side effects using the respective options.
import { init } from '@sentry/electron';
init({
dsn: '__DSN__',
// ...
});
To set context information or send manual events, use the exported functions of
@sentry/electron
. Note that these functions will not perform any action before
you have called init()
:
import * as Sentry from '@sentry/electron';
// Set user information, as well as tags and further extras
Sentry.configureScope(scope => {
scope.setExtra('battery', 0.7);
scope.setTag('user_mode', 'admin');
scope.setUser({ id: '4711' });
// scope.clear();
});
// Add a breadcrumb for future events
Sentry.addBreadcrumb({
message: 'My Breadcrumb',
// ...
});
// Capture exceptions, messages or manual events
Sentry.captureMessage('Hello, world!');
Sentry.captureException(new Error('Good bye'));
Sentry.captureEvent({
message: 'Manual',
stacktrace: [
// ...
],
});
v0.15.0
@sentry/*
~4.5.0
FAQs
Offical Sentry SDK for Electron
The npm package @descript/sentry-electron receives a total of 2 weekly downloads. As such, @descript/sentry-electron popularity was classified as not popular.
We found that @descript/sentry-electron demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.