fix(deno): Preserve npm: specifier in ___SDK_PACKAGE___ for Deno#17673
Merged
fix(deno): Preserve npm: specifier in ___SDK_PACKAGE___ for Deno#17673
Conversation
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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
4 tasks
rahulchhabria
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 thenpm:prefix from the registry canonical value for all platforms. This is correct for Node/Browser/etc (they import from@sentry/node), but Deno requires thenpm:prefix in its import specifiers.npm:prefix ingetSdkPackageNamewhen the platform is Denonpm:in thePlatformSdkPackageNamedisplay component so prose still shows@sentry/denonpm:@sentry/denoimports with___SDK_PACKAGE___across 10 content filesSupersedes #17562 with a systemic fix instead of a per-page workaround.
IS YOUR CHANGE URGENT?
SLA
Thanks in advance for your help!
PRE-MERGE CHECKLIST
Make sure you've checked the following before merging your changes: