From d32271a7f6372abce6497743626ffbc35bf38fb6 Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Tue, 14 Jan 2025 19:47:57 +0100 Subject: [PATCH 1/2] feat(deno): Don't publish to deno.land --- .craft.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.craft.yml b/.craft.yml index a34ab33b1089..dc10effa43a0 100644 --- a/.craft.yml +++ b/.craft.yml @@ -78,14 +78,6 @@ targets: - name: npm id: '@sentry/deno' includeNames: /^sentry-deno-\d.*\.tgz$/ - - name: commit-on-git-repository - # This will publish on the Deno registry - id: getsentry/deno - archive: /^sentry-deno-\d.*\.tgz$/ - repositoryUrl: https://github.com/getsentry/sentry-deno.git - stripComponents: 1 - branch: main - createTag: true ## 5. Node-based Packages - name: npm From a1135282e547e627bb272a290d785b43addcfcaa Mon Sep 17 00:00:00 2001 From: Tim Fish Date: Fri, 17 Jan 2025 13:26:59 +0000 Subject: [PATCH 2/2] Update migration and readme --- docs/migration/v8-to-v9.md | 16 +++++++++------- packages/deno/README.md | 4 ---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/docs/migration/v8-to-v9.md b/docs/migration/v8-to-v9.md index ba1208a4b6a4..d86f211f3cbc 100644 --- a/docs/migration/v8-to-v9.md +++ b/docs/migration/v8-to-v9.md @@ -260,15 +260,17 @@ Let us know if this is causing issues in your setup by opening an issue on GitHu ### `@sentry/deno` -- The import of Sentry from the deno registry has changed. Use the `import * as Sentry from 'https://deno.land/x/sentry/build/index.mjs'` import instead. +- `@sentry/deno` is no longer published on `deno.land` so you'll need to import + from npm: - ```js - // before - import * as Sentry from 'https://deno.land/x/sentry/index.mjs'; +```javascript +import * as Sentry from 'npm:@sentry/deno'; - // after - import * as Sentry from 'https://deno.land/x/sentry/build/index.mjs'; - ``` +Sentry.init({ + dsn: '__DSN__', + // ... +}); +``` ## 6. Type Changes diff --git a/packages/deno/README.md b/packages/deno/README.md index b1f0ac5ddb0d..baedb3337fb5 100644 --- a/packages/deno/README.md +++ b/packages/deno/README.md @@ -25,10 +25,6 @@ To use this SDK, call `Sentry.init(options)` as early as possible in the main en and hook into the environment. Note that you can turn off almost all side effects using the respective options. ```javascript -// Import from the Deno registry -import * as Sentry from 'https://deno.land/x/sentry/build/index.mjs'; - -// or import from npm registry import * as Sentry from 'npm:@sentry/deno'; Sentry.init({