Skip to content

Commit

Permalink
Bump Sentry JavasScript 7.119.0 / Wizard, Exposes Replay feature (#354)
Browse files Browse the repository at this point in the history
* bump js 7.114.0, bump wizard 3.32, expose replay, add replay on sample

* bump to js 7.118.0

* remove fixed dist on sample

* changelog

* add unreleased mark

* Update sample/package.json

* Update src/js/sentry-cordova.ts

* bump js

* update sample

* update changelog

* Update sample/www/js/index.js

* 7.119.1
  • Loading branch information
lucas-zimerman authored Oct 7, 2024
1 parent 6445e67 commit 4ba977a
Show file tree
Hide file tree
Showing 10 changed files with 1,439 additions and 1,126 deletions.
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,46 @@

## Unreleased

### Features

- Sentry Replay Support ([#354](https://github.com/getsentry/sentry-wizard/pull/354))

How to use:

Replay, profiling and performance monitoring are bundled into Sentry Cordova, all you need to do is to initialise the SDK, include the desired feature and use the sampling filters:

```javascript
/***
* @type {import("sentry-cordova")}
*/
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({
dsn: YOUR_DSN,
integrations: [
// Replay integration.
Sentry.replayIntegration({
maskAllText: false,
blockAllMedia: true,
}),
// Tracing integration.
Sentry.browserTracingIntegration(),
],
// Replay sampling filters.
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,

// Tracing sampling filter.
tracesSampleRate: 1,
});
```

### Dependencies

- Bump Sentry JavaScript SDK to `7.119.1` ([#354](https://github.com/getsentry/sentry-cordova/pull/354))
- [changelog](https://github.com/getsentry/sentry-javascript/releases/tag/7.119.1)
- [diff](https://github.com/getsentry/sentry-javascript/compare/7.34.0...7.119.1)
- Bump `sentry-wizard` to 3.32.0 ([#354](https://github.com/getsentry/sentry-wizard/pull/354))

- build(ios): Bump `sentry-cocoa` to 8.36.0 ([#352](https://github.com/getsentry/sentry-cordova/pull/352))
- [changelog](https://github.com/getsentry/sentry-cocoa/releases/tag/8.36.0)
- [diff](https://github.com/getsentry/sentry-cocoa/compare/8.21.0...8.36.0)
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,16 @@
],
"description": "Official Sentry SDK for Cordova",
"dependencies": {
"@sentry/browser": "7.34.0",
"@sentry/core": "7.34.0",
"@sentry/hub": "7.34.0",
"@sentry/types": "7.34.0",
"@sentry/utils": "7.34.0",
"@sentry/wizard": "^3.21.0"
"@sentry/browser": "7.119.1",
"@sentry/core": "7.119.1",
"@sentry/hub": "7.119.1",
"@sentry/types": "7.119.1",
"@sentry/utils": "7.119.1",
"@sentry/wizard": "^3.32.0"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "7.34.0",
"@sentry-internal/typescript": "7.34.0",
"@sentry-internal/eslint-config-sdk": "7.119.1",
"@sentry-internal/typescript": "7.119.1",
"@types/cordova": "0.0.34",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.5",
Expand Down
7 changes: 4 additions & 3 deletions sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@
}
},
"platforms": [
"android",
"browser"
"browser",
"ios",
"android"
],
"plugins_comment": {
"sentry-cordova": {}
Expand All @@ -48,4 +49,4 @@
"cordova": "^12.0.0",
"typescript": "^5.2.2"
}
}
}
19 changes: 19 additions & 0 deletions sample/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,29 @@ document.addEventListener('deviceready', onDeviceReady, false);

function onDeviceReady() {
// Cordova is now initialized. Have fun!
/***
* @type {import("sentry-cordova")}
*/
var Sentry = cordova.require("sentry-cordova.Sentry");
Sentry.init({
dsn: 'https://[email protected]/5627302',
debug: true,
integrations: [
// Replay integration.
Sentry.replayIntegration({
maskAllInputs: false,
blockAllMedia: true
}),
// Tracing integration.
Sentry.browserTracingIntegration(),
],

// Replay sampling filters.
replaysSessionSampleRate: 1,
replaysOnErrorSampleRate: 1,

// Tracing sampling filter.
tracesSampleRate: 1,
});

console.log('Running cordova-' + cordova.platformId + '@' + cordova.version);
Expand Down
Loading

0 comments on commit 4ba977a

Please sign in to comment.