Skip to content

Commit a113528

Browse files
committed
Update migration and readme
1 parent d32271a commit a113528

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

docs/migration/v8-to-v9.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -260,15 +260,17 @@ Let us know if this is causing issues in your setup by opening an issue on GitHu
260260

261261
### `@sentry/deno`
262262

263-
- 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.
263+
- `@sentry/deno` is no longer published on `deno.land` so you'll need to import
264+
from npm:
264265

265-
```js
266-
// before
267-
import * as Sentry from 'https://deno.land/x/sentry/index.mjs';
266+
```javascript
267+
import * as Sentry from 'npm:@sentry/deno';
268268

269-
// after
270-
import * as Sentry from 'https://deno.land/x/sentry/build/index.mjs';
271-
```
269+
Sentry.init({
270+
dsn: '__DSN__',
271+
// ...
272+
});
273+
```
272274

273275
## 6. Type Changes
274276

packages/deno/README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ To use this SDK, call `Sentry.init(options)` as early as possible in the main en
2525
and hook into the environment. Note that you can turn off almost all side effects using the respective options.
2626

2727
```javascript
28-
// Import from the Deno registry
29-
import * as Sentry from 'https://deno.land/x/sentry/build/index.mjs';
30-
31-
// or import from npm registry
3228
import * as Sentry from 'npm:@sentry/deno';
3329

3430
Sentry.init({

0 commit comments

Comments
 (0)