Skip to content

Commit

Permalink
Merge pull request #8066 from getsentry/master
Browse files Browse the repository at this point in the history
[Gitflow] Merge master into develop
  • Loading branch information
github-actions[bot] authored May 8, 2023
2 parents be129db + cea8b47 commit 18bab90
Show file tree
Hide file tree
Showing 35 changed files with 162 additions and 133 deletions.
53 changes: 41 additions & 12 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,25 @@

- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott

## 7.51.1

- feat(replay): Add event to capture options on checkouts (#8011)
- feat(replay): Improve click target detection (#8026)
- fix(node): Make sure we use same ID for checkIns (#8050)
- fix(replay: Keep session active on key press (#8037)
- fix(replay): Move error sampling to before send (#8057)
- fix(sveltekit): Wrap `load` when typed explicitly (#8049)

**Replay `rrweb` changes:**

`@sentry-internal/rrweb` was updated from 1.106.0 to 1.108.0:

- fix: Fix some input masking (esp for radio buttons) ([#85](https://github.com/getsentry/rrweb/pull/85))
- fix: Unescaped `:` in CSS rule from Safari ([#86](https://github.com/getsentry/rrweb/pull/86))
- feat: Define custom elements (web components) ([#87](https://github.com/getsentry/rrweb/pull/87))

Work in this release contributed by @sreetamdas. Thank you for your contribution!

## 7.51.0

### Important Changes
Expand All @@ -26,30 +45,40 @@ Note that `@sentry/angular` _does not_ support Angular 16.

- **feat(node): Add ability to send cron monitor check ins (#8039)**

**Note: This release contains a bug with generating cron monitors. We recommend you upgrade the JS SDK to 7.51.1 or above to use cron monitoring functionality**

This release adds [Sentry cron monitoring](https://docs.sentry.io/product/crons/) support to the Node SDK.

To monitor your cron jobs, send check-ins everytime you execute your cron jobs to Sentry. You can do this with the `captureCheckIn` method exported from the SDK. First you must send an `in_progress`, checkin, then you can send one with status `ok` or `error` based on what happened with your cron job.
Check-in monitoring allows you to track a job's progress by completing two check-ins: one at the start of your job and another at the end of your job. This two-step process allows Sentry to notify you if your job didn't start when expected (missed) or if it exceeded its maximum runtime (failed).

```ts
const Sentry = require('@sentry/node');

// ...

Sentry.captureCheckIn({
// make sure this is the same slug as what you set up your
// Sentry cron monitor with.
monitorSlug: 'dailyEmail',
// 🟡 Notify Sentry your job is running:
const checkInId = Sentry.captureCheckIn({
monitorSlug: '<monitor-slug>',
status: 'in_progress',
});

const startTime = timeInSeconds();

runTask();
// Execute your scheduled task here...

// 🟢 Notify Sentry your job has completed successfully:
Sentry.captureCheckIn({
monitorSlug: 'dailyEmail',
// make sure you pass in the checkInId generated by the first call to captureCheckIn
checkInId,
monitorSlug: '<monitor-slug>',
status: 'ok',
duration: timeInSeconds() - startTime,
});
```

If your job execution fails, you can notify Sentry about the failure:

```javascript
// 🔴 Notify Sentry your job has failed:
Sentry.captureCheckIn({
checkInId,
monitorSlug: '<monitor-slug>',
status: 'error',
});
```

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "7.51.0",
"version": "7.51.1",
"npmClient": "yarn",
"useWorkspaces": true
}
8 changes: 4 additions & 4 deletions packages/angular-ivy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/angular-ivy",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Angular with full Ivy Support",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular-ivy",
Expand All @@ -21,9 +21,9 @@
"rxjs": "^6.5.5 || ^7.x"
},
"dependencies": {
"@sentry/browser": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/browser": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"tslib": "^2.3.0"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/angular",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Angular",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/angular",
Expand All @@ -21,9 +21,9 @@
"rxjs": "^6.5.5 || ^7.x"
},
"dependencies": {
"@sentry/browser": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/browser": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"tslib": "^2.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/browser-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/browser-integration-tests",
"version": "7.51.0",
"version": "7.51.1",
"main": "index.js",
"license": "MIT",
"engines": {
Expand Down
14 changes: 7 additions & 7 deletions packages/browser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/browser",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for browsers",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/browser",
Expand All @@ -16,15 +16,15 @@
"access": "public"
},
"dependencies": {
"@sentry-internal/tracing": "7.51.0",
"@sentry/core": "7.51.0",
"@sentry/replay": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry-internal/tracing": "7.51.1",
"@sentry/core": "7.51.1",
"@sentry/replay": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry-internal/integration-shims": "7.51.0",
"@sentry-internal/integration-shims": "7.51.1",
"@types/md5": "2.1.33",
"btoa": "^1.2.1",
"chai": "^4.1.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/core",
"version": "7.51.0",
"version": "7.51.1",
"description": "Base implementation for all Sentry JavaScript SDKs",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/core",
Expand All @@ -16,8 +16,8 @@
"access": "public"
},
"dependencies": {
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"tslib": "^1.9.3"
},
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SDK_VERSION = '7.51.0';
export const SDK_VERSION = '7.51.1';
2 changes: 1 addition & 1 deletion packages/e2e-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/e2e-tests",
"version": "7.51.0",
"version": "7.51.1",
"license": "MIT",
"engines": {
"node": ">=10"
Expand Down
8 changes: 4 additions & 4 deletions packages/ember/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/ember",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Ember.js",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/ember",
Expand Down Expand Up @@ -29,9 +29,9 @@
},
"dependencies": {
"@embroider/macros": "^1.9.0",
"@sentry/browser": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/browser": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"ember-auto-import": "^1.12.1 || ^2.4.3",
"ember-cli-babel": "^7.26.11",
"ember-cli-htmlbars": "^6.1.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/eslint-config-sdk",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK eslint config",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/eslint-config-sdk",
Expand All @@ -19,8 +19,8 @@
"access": "public"
},
"dependencies": {
"@sentry-internal/eslint-plugin-sdk": "7.51.0",
"@sentry-internal/typescript": "7.51.0",
"@sentry-internal/eslint-plugin-sdk": "7.51.1",
"@sentry-internal/typescript": "7.51.1",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"eslint-config-prettier": "^6.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/eslint-plugin-sdk",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK eslint plugin",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/eslint-plugin-sdk",
Expand Down
10 changes: 5 additions & 5 deletions packages/gatsby/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/gatsby",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Gatsby.js",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/gatsby",
Expand All @@ -20,10 +20,10 @@
"access": "public"
},
"dependencies": {
"@sentry/core": "7.51.0",
"@sentry/react": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/core": "7.51.1",
"@sentry/react": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"@sentry/webpack-plugin": "1.19.0"
},
"peerDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/hub/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/hub",
"version": "7.51.0",
"version": "7.51.1",
"description": "Sentry hub which handles global state managment.",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/hub",
Expand All @@ -16,9 +16,9 @@
"access": "public"
},
"dependencies": {
"@sentry/core": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/core": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"tslib": "^1.9.3"
},
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/integration-shims/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/integration-shims",
"version": "7.51.0",
"version": "7.51.1",
"description": "Shims for integrations in Sentry SDK.",
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
Expand Down Expand Up @@ -34,7 +34,7 @@
"url": "https://github.com/getsentry/sentry-javascript/issues"
},
"dependencies": {
"@sentry/types": "7.51.0"
"@sentry/types": "7.51.1"
},
"engines": {
"node": ">=12"
Expand Down
8 changes: 4 additions & 4 deletions packages/integrations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/integrations",
"version": "7.51.0",
"version": "7.51.1",
"description": "Pluggable integrations that can be used to enhance JS SDKs",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/integrations",
Expand All @@ -16,13 +16,13 @@
"module": "build/npm/esm/index.js",
"types": "build/npm/types/index.d.ts",
"dependencies": {
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"localforage": "^1.8.1",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry/browser": "7.51.0",
"@sentry/browser": "7.51.1",
"chai": "^4.1.2"
},
"scripts": {
Expand Down
14 changes: 7 additions & 7 deletions packages/nextjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/nextjs",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Next.js",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/nextjs",
Expand All @@ -18,12 +18,12 @@
},
"dependencies": {
"@rollup/plugin-commonjs": "24.0.0",
"@sentry/core": "7.51.0",
"@sentry/integrations": "7.51.0",
"@sentry/node": "7.51.0",
"@sentry/react": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry/core": "7.51.1",
"@sentry/integrations": "7.51.1",
"@sentry/node": "7.51.1",
"@sentry/react": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"@sentry/webpack-plugin": "1.20.0",
"chalk": "3.0.0",
"rollup": "2.78.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-integration-tests/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry-internal/node-integration-tests",
"version": "7.51.0",
"version": "7.51.1",
"license": "MIT",
"engines": {
"node": ">=10"
Expand Down
10 changes: 5 additions & 5 deletions packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sentry/node",
"version": "7.51.0",
"version": "7.51.1",
"description": "Official Sentry SDK for Node.js",
"repository": "git://github.com/getsentry/sentry-javascript.git",
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/node",
Expand All @@ -16,10 +16,10 @@
"access": "public"
},
"dependencies": {
"@sentry-internal/tracing": "7.51.0",
"@sentry/core": "7.51.0",
"@sentry/types": "7.51.0",
"@sentry/utils": "7.51.0",
"@sentry-internal/tracing": "7.51.1",
"@sentry/core": "7.51.1",
"@sentry/types": "7.51.1",
"@sentry/utils": "7.51.1",
"cookie": "^0.4.1",
"https-proxy-agent": "^5.0.0",
"lru_map": "^0.3.3",
Expand Down
Loading

0 comments on commit 18bab90

Please sign in to comment.