Skip to content

Commit 6478b93

Browse files
AbhiPrasadc298lee
authored andcommitted
Merge pull request #10063 from getsentry/prepare-release/7.92.0
meta(changelog): Update changelog for 7.92.0
2 parents 2597e37 + 8b9edf3 commit 6478b93

File tree

1,339 files changed

+5087
-2744
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,339 files changed

+5087
-2744
lines changed

.eslintrc.js

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,11 @@ module.exports = {
2323
'types/**',
2424
],
2525
overrides: [
26-
{
27-
files: ['*'],
28-
rules: {
29-
// Disabled because it's included with Biome's linter
30-
'no-control-regex': 'off',
31-
},
32-
},
3326
{
3427
files: ['*.ts', '*.tsx', '*.d.ts'],
3528
parserOptions: {
3629
project: ['tsconfig.json'],
3730
},
38-
rules: {
39-
// Disabled because it's included with Biome's linter
40-
'@typescript-eslint/no-unused-vars': 'off',
41-
'@typescript-eslint/no-loss-of-precision': 'off',
42-
},
4331
},
4432
{
4533
files: ['test/**/*.ts', 'test/**/*.tsx'],
@@ -62,7 +50,7 @@ module.exports = {
6250
},
6351
},
6452
{
65-
files: ['scenarios/**', 'packages/rollup-utils/**'],
53+
files: ['scenarios/**', 'dev-packages/rollup-utils/**'],
6654
parserOptions: {
6755
sourceType: 'module',
6856
},

.github/workflows/build.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ env:
2727
CACHED_DEPENDENCY_PATHS: |
2828
${{ github.workspace }}/node_modules
2929
${{ github.workspace }}/packages/*/node_modules
30+
${{ github.workspace }}/dev-packages/*/node_modules
3031
~/.cache/ms-playwright/
3132
~/.cache/mongodb-binaries/
3233
@@ -102,7 +103,7 @@ jobs:
102103
browser_integration:
103104
- *shared
104105
- *browser
105-
- 'packages/browser-integration-tests/**'
106+
- 'dev-packages/browser-integration-tests/**'
106107
ember:
107108
- *shared
108109
- *browser
@@ -122,7 +123,7 @@ jobs:
122123
node:
123124
- *shared
124125
- 'packages/node/**'
125-
- 'packages/node-integration-tests/**'
126+
- 'dev-packages/node-integration-tests/**'
126127
deno:
127128
- *shared
128129
- *browser
@@ -362,7 +363,7 @@ jobs:
362363
- name: Pack
363364
run: yarn build:tarball
364365
- name: Archive artifacts
365-
uses: actions/upload-artifact@v3.1.3
366+
uses: actions/upload-artifact@v4.0.0
366367
with:
367368
name: ${{ github.sha }}
368369
path: |
@@ -601,7 +602,7 @@ jobs:
601602
env:
602603
PW_BUNDLE: ${{ matrix.bundle }}
603604
run: |
604-
cd packages/browser-integration-tests
605+
cd dev-packages/browser-integration-tests
605606
yarn test:ci
606607
607608
job_browser_loader_tests:
@@ -658,7 +659,7 @@ jobs:
658659
env:
659660
PW_BUNDLE: ${{ matrix.bundle }}
660661
run: |
661-
cd packages/browser-integration-tests
662+
cd dev-packages/browser-integration-tests
662663
yarn test:loader
663664
664665
job_browser_integration_tests:
@@ -762,7 +763,7 @@ jobs:
762763
env:
763764
NODE_VERSION: ${{ matrix.node }}
764765
run: |
765-
cd packages/node-integration-tests
766+
cd dev-packages/node-integration-tests
766767
yarn test
767768
768769
job_remix_integration_tests:
@@ -906,7 +907,7 @@ jobs:
906907
- name: Set up Node
907908
uses: actions/setup-node@v4
908909
with:
909-
node-version-file: 'packages/e2e-tests/package.json'
910+
node-version-file: 'dev-packages/e2e-tests/package.json'
910911
- name: Restore caches
911912
uses: ./.github/actions/restore-cache
912913
env:
@@ -921,25 +922,25 @@ jobs:
921922
- name: Get node version
922923
id: versions
923924
run: |
924-
echo "echo node=$(jq -r '.volta.node' packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT
925+
echo "echo node=$(jq -r '.volta.node' dev-packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT
925926
926927
- name: Validate Verdaccio
927928
run: yarn test:validate
928-
working-directory: packages/e2e-tests
929+
working-directory: dev-packages/e2e-tests
929930

930931
- name: Prepare Verdaccio
931932
run: yarn test:prepare
932-
working-directory: packages/e2e-tests
933+
working-directory: dev-packages/e2e-tests
933934
env:
934935
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}
935936

936937
- name: Build E2E app
937-
working-directory: packages/e2e-tests/test-applications/${{ matrix.test-application }}
938+
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
938939
timeout-minutes: 5
939940
run: yarn ${{ matrix.build-command || 'test:build' }}
940941

941942
- name: Run E2E test
942-
working-directory: packages/e2e-tests/test-applications/${{ matrix.test-application }}
943+
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
943944
timeout-minutes: 5
944945
run: yarn test:assert
945946

@@ -996,19 +997,19 @@ jobs:
996997

997998
- name: Collect
998999
run: yarn ci:collect
999-
working-directory: packages/overhead-metrics
1000+
working-directory: dev-packages/overhead-metrics
10001001

10011002
- name: Process
10021003
id: process
10031004
run: yarn ci:process
1004-
working-directory: packages/overhead-metrics
1005+
working-directory: dev-packages/overhead-metrics
10051006
# Don't run on forks - the PR comment cannot be added.
10061007
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
10071008
env:
10081009
GITHUB_TOKEN: ${{ github.token }}
10091010

10101011
- name: Upload results
1011-
uses: actions/upload-artifact@v3.1.3
1012+
uses: actions/upload-artifact@v4.0.0
10121013
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
10131014
with:
10141015
name: ${{ steps.process.outputs.artifactName }}

.github/workflows/canary.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,21 @@ jobs:
115115
116116
- name: Validate Verdaccio
117117
run: yarn test:validate
118-
working-directory: packages/e2e-tests
118+
working-directory: dev-packages/e2e-tests
119119

120120
- name: Prepare Verdaccio
121121
run: yarn test:prepare
122-
working-directory: packages/e2e-tests
122+
working-directory: dev-packages/e2e-tests
123123
env:
124124
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}
125125

126126
- name: Build E2E app
127-
working-directory: packages/e2e-tests/test-applications/${{ matrix.test-application }}
127+
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
128128
timeout-minutes: 5
129129
run: yarn ${{ matrix.build-command }}
130130

131131
- name: Run E2E test
132-
working-directory: packages/e2e-tests/test-applications/${{ matrix.test-application }}
132+
working-directory: dev-packages/e2e-tests/test-applications/${{ matrix.test-application }}
133133
timeout-minutes: 5
134134
run: yarn test:assert
135135

.github/workflows/flaky-test-detector.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
workflow_dispatch:
44
pull_request:
55
paths:
6-
- 'packages/browser-integration-tests/suites/**'
6+
- 'dev-packages/browser-integration-tests/suites/**'
77
branches-ignore:
88
- master
99

@@ -76,11 +76,11 @@ jobs:
7676
with:
7777
list-files: json
7878
filters: |
79-
browser_integration: packages/browser-integration-tests/suites/**
79+
browser_integration: dev-packages/browser-integration-tests/suites/**
8080
8181
- name: Detect flaky tests
8282
run: yarn test:detect-flaky
83-
working-directory: packages/browser-integration-tests
83+
working-directory: dev-packages/browser-integration-tests
8484
env:
8585
CHANGED_TEST_PATHS: ${{ steps.changed.outputs.browser_integration_files }}
8686
TEST_RUN_COUNT: 'AUTO'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# dependencies
22
node_modules/
33
packages/*/package-lock.json
4+
dev-packages/*/package-lock.json
45
package-lock.json
56

67
# build and test

.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

.size-limit.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ module.exports = [
1414
gzip: true,
1515
limit: '75 KB',
1616
},
17+
{
18+
name: '@sentry/browser (incl. Tracing, Replay with Canvas) - Webpack (gzipped)',
19+
path: 'packages/browser/build/npm/esm/index.js',
20+
import: '{ init, Replay, BrowserTracing, ReplayCanvas }',
21+
gzip: true,
22+
limit: '90 KB',
23+
},
1724
{
1825
name: '@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)',
1926
path: 'packages/browser/build/npm/esm/index.js',

.vscode/extensions.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// See http://go.microsoft.com/fwlink/?LinkId=827846
33
// for the documentation about the extensions.json format
44
"recommendations": [
5+
"esbenp.prettier-vscode",
56
"biomejs.biome",
67
"dbaeumer.vscode-eslint",
78
"augustocdias.tasks-shell-input",

.vscode/settings.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@
2020
"editor.formatOnPaste": false,
2121
"editor.formatOnSave": false
2222
},
23+
"[markdown]": {
24+
"editor.defaultFormatter": "esbenp.prettier-vscode"
25+
},
26+
"[css]": {
27+
"editor.defaultFormatter": "esbenp.prettier-vscode"
28+
},
2329
"yaml.schemas": {
2430
"https://json.schemastore.org/github-workflow.json": ".github/workflows/**.yml"
2531
},
@@ -31,7 +37,6 @@
3137
"deno.enablePaths": ["packages/deno/test"],
3238
"editor.codeActionsOnSave": {
3339
"source.organizeImports.biome": "explicit",
34-
"quickfix.biome": "explicit"
3540
},
3641
"editor.defaultFormatter": "biomejs.biome"
3742
}

CHANGELOG.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,93 @@
44

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

7+
## 7.92.0
8+
9+
### Important Changes
10+
11+
#### Deprecations
12+
13+
- feat(core): Add `span.updateName()` and deprecate `span.setName()` (#10018)
14+
- feat(core): Deprecate `span.getTraceContext()` (#10032)
15+
- feat(core): Deprecate `span.toTraceparent()` in favor of `spanToTraceHeader()` util (#10031)
16+
- feat(core): Deprecate `trace` in favor of `startSpan` (#10012)
17+
- feat(core): Deprecate span `toContext()` and `updateWithContext()` (#10030)
18+
- ref: Deprecate `deepReadDirSync` (#10016)
19+
- ref: Deprecate `lastEventId()` (#10043)
20+
21+
Please take a look at the [Migration docs](./MIGRATION.md) for more details. These methods will be removed in the upcoming [v8 major release](https://github.com/getsentry/sentry-javascript/discussions/9802).
22+
23+
#### Cron Monitoring Support for `cron` and `node-cron` libraries
24+
25+
- feat(node): Instrumentation for `cron` library (#9999)
26+
- feat(node): Instrumentation for `node-cron` library (#9904)
27+
28+
This release adds instrumentation for the `cron` and `node-cron` libraries. This allows you to monitor your cron jobs with [Sentry cron monitors](https://docs.sentry.io/product/crons/).
29+
30+
For [`cron`](https://www.npmjs.com/package/cron):
31+
32+
```js
33+
import * as Sentry from '@sentry/node';
34+
import { CronJob } from 'cron';
35+
36+
const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');
37+
38+
// use the constructor
39+
const job = new CronJobWithCheckIn('* * * * *', () => {
40+
console.log('You will see this message every minute');
41+
});
42+
43+
// or from
44+
const job = CronJobWithCheckIn.from({
45+
cronTime: '* * * * *',
46+
onTick: () => {
47+
console.log('You will see this message every minute');
48+
},
49+
});
50+
```
51+
52+
For [`node-cron`](https://www.npmjs.com/package/node-cron):
53+
54+
```js
55+
import * as Sentry from '@sentry/node';
56+
import cron from 'node-cron';
57+
58+
const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);
59+
60+
cronWithCheckIn.schedule(
61+
'* * * * *',
62+
() => {
63+
console.log('running a task every minute');
64+
},
65+
{ name: 'my-cron-job' },
66+
);
67+
```
68+
69+
### Other Changes
70+
71+
- feat(astro): Add `enabled` option to Astro integration options (#10007)
72+
- feat(core): Add `attributes` to `Span` (#10008)
73+
- feat(core): Add `setClient()` and `getClient()` to `Scope` (#10055)
74+
- feat(integrations): Capture error cause with `captureErrorCause` in `ExtraErrorData` integration (#9914)
75+
- feat(node-experimental): Allow to pass base span options to trace methods (#10006)
76+
- feat(node): Local variables via async inspector in node 19+ (#9962)
77+
- fix(astro): handle commonjs related issues (#10042)
78+
- fix(astro): Handle non-utf8 encoded streams in middleware (#9989)
79+
- fix(astro): prevent sentry from externalized (#9994)
80+
- fix(core): Ensure `withScope` sets current scope correctly with async callbacks (#9974)
81+
- fix(node): ANR fixes and additions (#9998)
82+
- fix(node): Anr should not block exit (#10035)
83+
- fix(node): Correctly resolve module name (#10001)
84+
- fix(node): Handle inspector already open (#10025)
85+
- fix(node): Make `NODE_VERSION` properties required (#9964)
86+
- fix(node): Anr doesn't block exit (#10064)
87+
- fix(utils): use correct typeof URL validation (#10028)
88+
- perf(astro): reduce unnecessary path resolutions (#10021)
89+
- ref(astro): Use astro logger instead of console (#9995)
90+
- ref(remix): Isolate Express instrumentation from server auto-instrumentation. (#9966)
91+
92+
Work in this release contributed by @joshkel. Thank you for your contribution!
93+
794
## 7.91.0
895

996
### Important Changes

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
packages/replay @getsentry/replay-sdk
22
packages/replay-worker @getsentry/replay-sdk
3-
packages/browser-integration-tests/suites/replay @getsentry/replay-sdk
3+
dev-packages/browser-integration-tests/suites/replay @getsentry/replay-sdk

0 commit comments

Comments
 (0)