
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@sentry/sveltekit
Advanced tools
The minimum supported version of SvelteKit is 2.0.0
. The SDK works best with Vite 4.2 and newer. Older Vite versions
might not generate source maps correctly.
Check our docs for SvelteKit adapter compatibility.
This package is a wrapper around @sentry/node
for the server and @sentry/svelte
for the client side, with added
functionality related to SvelteKit.
To get started installing the SDK, use the Sentry Next.js Wizard by running the following command in your terminal or read the Getting Started Docs:
npx @sentry/wizard@latest -i sveltekit
The wizard will guide you throuhg logging in to Sentry and setting up the SDK. After the wizard setup is completed, the SDK will automatically capture unhandled errors, and optionally, traces and replays.
10.4.0
sendDefaultPii
is true
This release includes a fix for a behaviour change
that was originally introduced with v9 of the SDK: User IP Addresses should only be added to Sentry events automatically,
if sendDefaultPii
was set to true
.
However, the change in v9 required further internal adjustment, which should have been included in v10 of the SDK.
Unfortunately, the change did not make it into the initial v10 version but is now applied with 10.4.0
.
There is no API breakage involved and hence it is safe to update.
However, after updating the SDK, events (errors, traces, replays, etc.) sent from the browser, will only include
user IP addresses, if you set sendDefaultPii: true
in your Sentry.init
options.
We apologize for any inconvenience caused!
ignoreStaticAssets
(#17370)This release adds a new option to httpIntegration
to ignore requests for static assets (e.g. favicon.xml
or robots.txt
). The option defaults to true
, meaning that going forward, such requests will not be traced by default. You can still enable tracing for these requests by setting the option to false
:
Sentry.init({
integrations: [
Sentry.httpIntegration({
// defaults to true, set to false to enable traces for static assets
ignoreStaticAssets: false,
}),
],
});
FAQs
Official Sentry SDK for SvelteKit
The npm package @sentry/sveltekit receives a total of 45,458 weekly downloads. As such, @sentry/sveltekit popularity was classified as popular.
We found that @sentry/sveltekit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.