Skip to content

fix(deno): Preserve npm: specifier in ___SDK_PACKAGE___ for Deno#17673

Merged
sergical merged 1 commit intomasterfrom
sergical/fix/deno-sdk-package-placeholder
May 7, 2026
Merged

fix(deno): Preserve npm: specifier in ___SDK_PACKAGE___ for Deno#17673
sergical merged 1 commit intomasterfrom
sergical/fix/deno-sdk-package-placeholder

Conversation

@sergical
Copy link
Copy Markdown
Member

@sergical sergical commented May 7, 2026

DESCRIBE YOUR PR

Fixes the root cause of why Deno docs hardcode import * as Sentry from "npm:@sentry/deno" instead of using the ___SDK_PACKAGE___ placeholder like all other platforms.

The issue: getSdkPackageName() strips the npm: prefix from the registry canonical value for all platforms. This is correct for Node/Browser/etc (they import from @sentry/node), but Deno requires the npm: prefix in its import specifiers.

  • Preserve the npm: prefix in getSdkPackageName when the platform is Deno
  • Strip npm: in the PlatformSdkPackageName display component so prose still shows @sentry/deno
  • Replace all hardcoded npm:@sentry/deno imports with ___SDK_PACKAGE___ across 10 content files
  • Add Sentry import + DSN placeholder to the Supabase integration snippet
  • Fix typo in Supabase docs ("most use cases. and" → "most use cases and")

Supersedes #17562 with a systemic fix instead of a per-page workaround.

IS YOUR CHANGE URGENT?

  • None: Not urgent, can wait up to 1 week+

SLA

  • Teamwork makes the dream work, so please add a reviewer to your PRs.
  • Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it.
    Thanks in advance for your help!

PRE-MERGE CHECKLIST

Make sure you've checked the following before merging your changes:

  • Checked Vercel preview for correctness, including links
  • PR was reviewed and approved by any necessary SMEs (subject matter experts)
  • PR was reviewed and approved by a member of the Sentry docs team

Deno requires the npm: prefix in import specifiers (e.g.
import * as Sentry from "npm:@sentry/deno"), but getSdkPackageName
was stripping it from all platforms. Now the prefix is preserved
for Deno while all other platforms remain unaffected.

This replaces hardcoded "npm:@sentry/deno" imports across Deno
platform-includes and docs with the ___SDK_PACKAGE___ placeholder,
and adds the Sentry import to the Supabase integration snippet.

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 7, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
develop-docs Ready Ready Preview, Comment May 7, 2026 5:39pm
sentry-docs Ready Ready Preview, Comment May 7, 2026 5:39pm

Request Review

@sergical sergical merged commit 1db921c into master May 7, 2026
20 checks passed
@sergical sergical deleted the sergical/fix/deno-sdk-package-placeholder branch May 7, 2026 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants