From 806126b26384168aeb14e1c76ac441261415d575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Thu, 9 Feb 2023 14:08:22 +0400 Subject: [PATCH 1/5] chore: make unit tests cacheable, fix package graph --- nx.json | 14 +++++++++++++- package.json | 4 ++-- packages/integrations/package.json | 1 + packages/node/package.json | 1 + 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/nx.json b/nx.json index 1020417113c4..dafe8e5ab61d 100644 --- a/nx.json +++ b/nx.json @@ -7,7 +7,9 @@ "build:bundle", "build:transpile", "build:types", - "lint:eslint" + "lint:eslint", + "test", + "test:unit" ] } } @@ -68,6 +70,16 @@ "lint:eslint": { "inputs": ["default"], "outputs": [] + }, + "test": { + "dependsOn": ["build:types", "^build:types", "build:transpile", "^build:transpile"], + "inputs": ["default"], + "outputs": ["{projectRoot}/coverage"] + }, + "test:unit": { + "dependsOn": ["build:types", "^build:types", "build:transpile", "^build:transpile"], + "inputs": ["default"], + "outputs": ["{projectRoot}/coverage"] } } } diff --git a/package.json b/package.json index 41acc28a1c37..a51c5cf70787 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "lint": "lerna run lint", "lint:eslint": "lerna run lint:eslint", "postpublish": "lerna run --stream --concurrency 1 postpublish", - "test": "lerna run --ignore @sentry-internal/* test", - "test-ci-browser": "lerna run test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby}\" --ignore @sentry-internal/*", + "test": "lerna run test --ignore @sentry-internal/*", + "test-ci-browser": "yarn test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby}\"", "test-ci-node": "ts-node ./scripts/node-unit-tests.ts" }, "volta": { diff --git a/packages/integrations/package.json b/packages/integrations/package.json index 2507bee50f53..d0a2d2380000 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -22,6 +22,7 @@ "tslib": "^1.9.3" }, "devDependencies": { + "@sentry/browser": "7.36.0", "chai": "^4.1.2" }, "scripts": { diff --git a/packages/node/package.json b/packages/node/package.json index 73084862b8a0..409921d83f53 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -25,6 +25,7 @@ "tslib": "^1.9.3" }, "devDependencies": { + "@sentry/tracing": "7.36.0", "@types/cookie": "0.3.2", "@types/express": "^4.17.14", "@types/lru-cache": "^5.1.0", From 2f6a44739b50e2de21b35d67f4e5e90570d7b524 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Thu, 9 Feb 2023 14:12:18 +0400 Subject: [PATCH 2/5] chore: revert broken alias change --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index a51c5cf70787..41acc28a1c37 100644 --- a/package.json +++ b/package.json @@ -24,8 +24,8 @@ "lint": "lerna run lint", "lint:eslint": "lerna run lint:eslint", "postpublish": "lerna run --stream --concurrency 1 postpublish", - "test": "lerna run test --ignore @sentry-internal/*", - "test-ci-browser": "yarn test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby}\"", + "test": "lerna run --ignore @sentry-internal/* test", + "test-ci-browser": "lerna run test --ignore \"@sentry/{node,opentelemetry-node,serverless,nextjs,remix,gatsby}\" --ignore @sentry-internal/*", "test-ci-node": "ts-node ./scripts/node-unit-tests.ts" }, "volta": { From bbe3c30ffb782df4fcc0811171dbb6ea09328118 Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Fri, 17 Feb 2023 09:01:09 +0100 Subject: [PATCH 3/5] meta(changelog): Update CHANGELOG for 7.38.0 --- CHANGELOG.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 56c5223e65e9..f87c29af8eaa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,25 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +## 7.38.0 + +- feat: Put `abs_path` into stack frame object (#7167) +- feat(integrations): Deprecate `Offline` integration (#7063) +- feat(otel): Convert exception otel events to sentry errors (#7165) +- feat(replay): Change LCP calculation (#7187) +- feat(tracing): Support Apollo/GraphQL with NestJS (#7194) +- feat(tracing): Track `PerformanceResourceTiming.renderBlockingStatus` (#7127) +- feat(tracing|core): Remove transaction name change recording (#7197) +- fix(browser): Ensure dedupe integration ignores non-errors (#7172) +- fix(core): Skip empty integrations (#7204) +- fix(nextjs): Fix faulty import in Next.js .d.ts (#7175) +- fix(otel): Make otel.kind be a string (#7182) +- fix(react): Make fallback render types more accurate (#7198) +- fix(replay): Debounced flushes not respecting `maxWait` (#7207, #7208) +- ref(replay): Improve logging for stopped replay (#7174) + +Work in this release contributed by @lucas-zimermann. Thank you for your contribution! + ## 7.37.2 This release includes changes and fixes around text masking and blocking in Replay's `rrweb` dependency. See versions [1.102.0](https://github.com/getsentry/rrweb/releases/tag/1.102.0) and [1.103.0](https://github.com/getsentry/rrweb/releases/tag/1.103.0). From 19074180a72e5c00f95ee6a310749cc6aff79904 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CJamesHenry=E2=80=9D?= Date: Fri, 17 Feb 2023 17:24:58 +0400 Subject: [PATCH 4/5] chore: revert changelog --- CHANGELOG.md | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f87c29af8eaa..56c5223e65e9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,25 +4,6 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott -## 7.38.0 - -- feat: Put `abs_path` into stack frame object (#7167) -- feat(integrations): Deprecate `Offline` integration (#7063) -- feat(otel): Convert exception otel events to sentry errors (#7165) -- feat(replay): Change LCP calculation (#7187) -- feat(tracing): Support Apollo/GraphQL with NestJS (#7194) -- feat(tracing): Track `PerformanceResourceTiming.renderBlockingStatus` (#7127) -- feat(tracing|core): Remove transaction name change recording (#7197) -- fix(browser): Ensure dedupe integration ignores non-errors (#7172) -- fix(core): Skip empty integrations (#7204) -- fix(nextjs): Fix faulty import in Next.js .d.ts (#7175) -- fix(otel): Make otel.kind be a string (#7182) -- fix(react): Make fallback render types more accurate (#7198) -- fix(replay): Debounced flushes not respecting `maxWait` (#7207, #7208) -- ref(replay): Improve logging for stopped replay (#7174) - -Work in this release contributed by @lucas-zimermann. Thank you for your contribution! - ## 7.37.2 This release includes changes and fixes around text masking and blocking in Replay's `rrweb` dependency. See versions [1.102.0](https://github.com/getsentry/rrweb/releases/tag/1.102.0) and [1.103.0](https://github.com/getsentry/rrweb/releases/tag/1.103.0). From 7098879cad7912dc238448f1241aa914d84b584c Mon Sep 17 00:00:00 2001 From: Francesco Novy Date: Mon, 20 Feb 2023 09:53:16 +0100 Subject: [PATCH 5/5] Apply suggestions from code review --- packages/integrations/package.json | 2 +- packages/node/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/integrations/package.json b/packages/integrations/package.json index 0e5bbef0dc65..f215f7ee1166 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -22,7 +22,7 @@ "tslib": "^1.9.3" }, "devDependencies": { - "@sentry/browser": "7.36.0", + "@sentry/browser": "7.38.0", "chai": "^4.1.2" }, "scripts": { diff --git a/packages/node/package.json b/packages/node/package.json index 1106c4674b62..fdff49e96e93 100644 --- a/packages/node/package.json +++ b/packages/node/package.json @@ -25,7 +25,7 @@ "tslib": "^1.9.3" }, "devDependencies": { - "@sentry/tracing": "7.36.0", + "@sentry/tracing": "7.38.0", "@types/cookie": "0.3.2", "@types/express": "^4.17.14", "@types/lru-cache": "^5.1.0",