You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@sentry/svelte

Package Overview
Dependencies
Maintainers
10
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/svelte - npm Package Versions

1345
35

7.120.4

Diff
s
sentry-bot
published 7.120.4 •
s
sentry-bot
published 7.120.4-alpha.1 •
s
sentry-bot
published 7.120.4-alpha.0 •
s
sentry-bot
published 9.42.1 •

Changelog

Source

9.42.1

  • fix(v9/astro): Revert Astro v5 storing route data to globalThis (#17185)
  • fix(v9/cloudflare): Avoid turning DurableObject sync methods into async (#17187)
  • fix(v9/nextjs): Handle async params in url extraction (#17176)
  • fix(v9/sveltekit): Align error status filtering and mechanism in handleErrorWithSentry (#17174)
s
sentry-bot
published 9.42.0 •

Changelog

Source

9.42.0

  • feat(v9/aws): Detect SDK source for AWS Lambda layer (#17150)
  • fix(v9/core): Fix OpenAI SDK private field access by binding non-instrumented fns (#17167)
  • fix(v9/core): Update ai.response.object to gen_ai.response.object (#17155)
  • fix(v9/nextjs): Update stackframe calls for next v15.5 (#17161)
s
sentry-bot
published 10.0.0-alpha.2 •
s
sentry-bot
published 9.41.0 •

Changelog

Source

9.41.0

Important Changes

  • feat(v9/core): Deprecate experimental enableLogs and beforeSendLog option (#17092)

Sentry now has support for structured logging. Previously to enable structured logging, you had to use the _experiments.enableLogs and _experiments.beforeSendLog options. These options have been deprecated in favor of the top-level enableLogs and beforeSendLog options.

// before
Sentry.init({
  _experiments: {
    enableLogs: true,
    beforeSendLog: log => {
      return log;
    },
  },
});

// after
Sentry.init({
  enableLogs: true,
  beforeSendLog: log => {
    return log;
  },
});
  • feat(astro): Implement parameterized routes
    • feat(v9/astro): Parametrize dynamic server routes (#17141)
    • feat(v9/astro): Parametrize routes on client-side (#17143)

Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.

Other Changes

  • feat(v9/node): Add shouldHandleError option to fastifyIntegration (#17123)
  • fix(v9/cloudflare) Allow non UUID workflow instance IDs (#17135)
  • fix(v9/node): Ensure tool errors for vercelAiIntegration have correct trace (#17142)
  • fix(v9/remix): Ensure source maps upload fails silently if Sentry CLI fails (#17095)
  • fix(v9/svelte): Do not insert preprocess code in script module in Svelte 5 (#17124)

Work in this release was contributed by @richardjelinek-fastest. Thank you for your contribution!

s
sentry-bot
published 10.0.0-alpha.1 •
s
sentry-bot
published 10.0.0-alpha.0 •
s
sentry-bot
published 9.40.0 •

Changelog

Source

9.40.0

Important Changes

  • feat(browser): Add debugId sync APIs between web worker and main thread (#16981)

This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:

  • webWorkerIntegration({worker}) to be used in the main thread
  • registerWebWorker({self}) to be used in the web worker
// main.js
Sentry.init({...})

const worker = new MyWorker(...);

Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));

worker.addEventListener('message', e => {...});
// worker.js
Sentry.registerWebWorker({ self });

self.postMessage(...);
  • feat(core): Deprecate logger in favor of debug (#17040)

The internal SDK logger export from @sentry/core has been deprecated in favor of the debug export. debug only exposes log, warn, and error methods but is otherwise identical to logger. Note that this deprecation does not affect the logger export from other packages (like @sentry/browser or @sentry/node) which is used for Sentry Logging.

import { logger, debug } from '@sentry/core';

// before
logger.info('This is an info message');

// after
debug.log('This is an info message');
  • feat(node): Add OpenAI integration (#17022)

This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:

  • client.chat.completions.create() - For chat-based completions
  • client.responses.create() - For the responses API
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options

Sentry.init({
  dsn: '__DSN__',
  integrations: [
    Sentry.openAIIntegration({
      recordInputs: true, // Force recording prompts
      recordOutputs: true, // Force recording responses
    }),
  ],
});

Other Changes

  • feat(node-core): Expand @opentelemetry/instrumentation range to cover 0.203.0 (#17043)
  • fix(cloudflare): Ensure errors get captured from durable objects (#16838)
  • fix(sveltekit): Ensure server errors from streamed responses are sent (#17044)

Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.