Skip to content

meta(changelog): Update changelog for 7.92.0 #10063

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 52 commits into from
Jan 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
fd728be
Merge pull request #9971 from getsentry/master
github-actions[bot] Dec 22, 2023
cbdba10
feat(integrations): Capture error cause with `captureErrorCause` in `…
Dec 22, 2023
0425a71
fix(node): Make `NODE_VERSION` properties required (#9964)
timfish Dec 22, 2023
2c0b6d3
fix(core): Ensure `withScope` sets current scope correctly with async…
mydea Dec 22, 2023
eadfd61
ref(serverless): Use `startSpanManual()` instead of `startTransaction…
mydea Dec 22, 2023
152e901
ref(nextjs): Replace `startTrancsaction` in `withSentry` (#9941)
Dec 27, 2023
ea74266
ref: Remove `startTransaction` call from `withEdgeWrapping` (#9984)
Dec 28, 2023
1eb2b33
build(nx): Improve Nx setup (#9987)
Dec 28, 2023
d0fe7ed
fix: enables prettier for markdown and css (#9992)
anonrig Dec 28, 2023
66ea1e6
fix(astro): Handle non-utf8 encoded streams in middleware (#9989)
Dec 28, 2023
679e149
ref(remix): Isolate Express instrumentation from server auto-instrume…
onurtemizkan Dec 29, 2023
993044d
feat(astro): Add `enabled` option to Astro integration options (#10007)
Lms24 Jan 2, 2024
9866412
ci(deps): bump actions/upload-artifact from 3.1.3 to 4.0.0 (#10003)
dependabot[bot] Jan 2, 2024
ff95fd5
build: Switch from npmignore to files field (#9991)
Jan 2, 2024
1953f2e
feat(node): Local variables via async inspector in node 19+ (#9962)
timfish Jan 2, 2024
bf9f2e6
chore(eslint): Add eslint rule to flag `new RegExp()` usage (#10009)
Lms24 Jan 2, 2024
2824f08
build: Fix prettier lint command (#10013)
mydea Jan 2, 2024
e8e6ab8
fix(node): Correctly resolve module name (#10001)
timfish Jan 2, 2024
aeea449
meta: Remove example in browser package (#10014)
Jan 2, 2024
2272c28
feat(deps): bump @sentry/cli from 2.23.0 to 2.23.2 (#10015)
dependabot[bot] Jan 2, 2024
82d8fdb
perf: enable `noAccumulatingSpread` lint rule (#9996)
anonrig Jan 2, 2024
e1da7d3
perf(astro): reduce unnecessary path resolutions (#10021)
anonrig Jan 2, 2024
a8e2b61
Use astro logger instead of console (#9995)
anonrig Jan 2, 2024
d2e0465
fix(astro): prevent sentry from externalized (#9994)
anonrig Jan 2, 2024
1cd771a
fix(node): Handle inspector already open (#10025)
joshkel Jan 2, 2024
4bd1af1
build: enable biome performance rules (#10027)
anonrig Jan 3, 2024
84ca84f
feat(node-experimental): Allow to pass base span options to trace met…
mydea Jan 3, 2024
b7480d7
feat(core): Add `attributes` to `Span` (#10008)
mydea Jan 3, 2024
35205b4
chore: Create `dev-packages` folder (#9997)
Jan 3, 2024
f127479
ref(node): Refactor node integrations to functional syntax (#9959)
mydea Jan 3, 2024
16c4dbe
feat(core): Deprecate span `toContext()` and `updateWithContext()` (#…
mydea Jan 3, 2024
4c82160
chore(biome): Add `useRegexLiterals` rule (#10010)
Lms24 Jan 3, 2024
e5f3428
feat(core): Add `span.updateName()` and deprecate `span.setName()` (#…
mydea Jan 3, 2024
23ef22b
fix(utils): use correct typeof URL validation (#10028)
anonrig Jan 3, 2024
38eb964
feat(core): Deprecate `span.toTraceparent()` in favor of `spanToTrace…
mydea Jan 3, 2024
848e6ad
feat(core): Deprecate `span.getTraceContext()` (#10032)
mydea Jan 3, 2024
651ef4a
ref: Deprecate `deepReadDirSync` (#10016)
Jan 3, 2024
25356d2
fix(node): Anr should not block exit (#10035)
timfish Jan 3, 2024
011ba71
fix(node): ANR fixes and additions (#9998)
timfish Jan 3, 2024
5cbe28b
feat(node): Instrumentation for `cron` library (#9999)
timfish Jan 3, 2024
da7c959
feat(node): Instrumentation for `node-cron` library (#9904)
timfish Jan 3, 2024
3acb7e4
fix(astro): handle commonjs related issues (#10042)
anonrig Jan 4, 2024
a696aef
feat(core): Deprecate `trace` in favor of `startSpan` (#10012)
mydea Jan 4, 2024
c769958
build: Fix nx-config for lint (#10050)
Jan 4, 2024
b1458d6
meta: Disable biome quickfix in vscode config (#10051)
Jan 4, 2024
8fdf340
ref: Deprecate `lastEventId()` (#10043)
Jan 4, 2024
5462b04
build: Re-enable eslint `no-unused-vars`, `no-control-regex` and `no-…
Jan 4, 2024
59ffba3
feat(core): Add `setClient()` and `getClient()` to `Scope` (#10055)
Jan 4, 2024
09e4ecc
docs: Add docs for new performance APIs (#10017)
mydea Jan 4, 2024
99f39b5
test(remix): Override `web-streams-polyfill` version to fix integrati…
Lms24 Jan 4, 2024
33348ec
fix(node): Anr doesn't block exit (#10064)
timfish Jan 4, 2024
c06c2d8
meta(changelog): Update changelog for 7.92.0
AbhiPrasad Jan 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 1 addition & 13 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,11 @@ module.exports = {
'types/**',
],
overrides: [
{
files: ['*'],
rules: {
// Disabled because it's included with Biome's linter
'no-control-regex': 'off',
},
},
{
files: ['*.ts', '*.tsx', '*.d.ts'],
parserOptions: {
project: ['tsconfig.json'],
},
rules: {
// Disabled because it's included with Biome's linter
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-loss-of-precision': 'off',
},
},
{
files: ['test/**/*.ts', 'test/**/*.tsx'],
Expand All @@ -62,7 +50,7 @@ module.exports = {
},
},
{
files: ['scenarios/**', 'packages/rollup-utils/**'],
files: ['scenarios/**', 'dev-packages/rollup-utils/**'],
parserOptions: {
sourceType: 'module',
},
Expand Down
31 changes: 16 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ env:
CACHED_DEPENDENCY_PATHS: |
${{ github.workspace }}/node_modules
${{ github.workspace }}/packages/*/node_modules
${{ github.workspace }}/dev-packages/*/node_modules
~/.cache/ms-playwright/
~/.cache/mongodb-binaries/

Expand Down Expand Up @@ -102,7 +103,7 @@ jobs:
browser_integration:
- *shared
- *browser
- 'packages/browser-integration-tests/**'
- 'dev-packages/browser-integration-tests/**'
ember:
- *shared
- *browser
Expand All @@ -122,7 +123,7 @@ jobs:
node:
- *shared
- 'packages/node/**'
- 'packages/node-integration-tests/**'
- 'dev-packages/node-integration-tests/**'
deno:
- *shared
- *browser
Expand Down Expand Up @@ -362,7 +363,7 @@ jobs:
- name: Pack
run: yarn build:tarball
- name: Archive artifacts
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
with:
name: ${{ github.sha }}
path: |
Expand Down Expand Up @@ -601,7 +602,7 @@ jobs:
env:
PW_BUNDLE: ${{ matrix.bundle }}
run: |
cd packages/browser-integration-tests
cd dev-packages/browser-integration-tests
yarn test:ci

job_browser_loader_tests:
Expand Down Expand Up @@ -658,7 +659,7 @@ jobs:
env:
PW_BUNDLE: ${{ matrix.bundle }}
run: |
cd packages/browser-integration-tests
cd dev-packages/browser-integration-tests
yarn test:loader

job_browser_integration_tests:
Expand Down Expand Up @@ -762,7 +763,7 @@ jobs:
env:
NODE_VERSION: ${{ matrix.node }}
run: |
cd packages/node-integration-tests
cd dev-packages/node-integration-tests
yarn test

job_remix_integration_tests:
Expand Down Expand Up @@ -906,7 +907,7 @@ jobs:
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: 'packages/e2e-tests/package.json'
node-version-file: 'dev-packages/e2e-tests/package.json'
- name: Restore caches
uses: ./.github/actions/restore-cache
env:
Expand All @@ -921,25 +922,25 @@ jobs:
- name: Get node version
id: versions
run: |
echo "echo node=$(jq -r '.volta.node' packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT
echo "echo node=$(jq -r '.volta.node' dev-packages/e2e-tests/package.json)" >> $GITHUB_OUTPUT

- name: Validate Verdaccio
run: yarn test:validate
working-directory: packages/e2e-tests
working-directory: dev-packages/e2e-tests

- name: Prepare Verdaccio
run: yarn test:prepare
working-directory: packages/e2e-tests
working-directory: dev-packages/e2e-tests
env:
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}

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

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

Expand Down Expand Up @@ -996,19 +997,19 @@ jobs:

- name: Collect
run: yarn ci:collect
working-directory: packages/overhead-metrics
working-directory: dev-packages/overhead-metrics

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

- name: Upload results
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4.0.0
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
with:
name: ${{ steps.process.outputs.artifactName }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,21 +115,21 @@ jobs:

- name: Validate Verdaccio
run: yarn test:validate
working-directory: packages/e2e-tests
working-directory: dev-packages/e2e-tests

- name: Prepare Verdaccio
run: yarn test:prepare
working-directory: packages/e2e-tests
working-directory: dev-packages/e2e-tests
env:
E2E_TEST_PUBLISH_SCRIPT_NODE_VERSION: ${{ steps.versions.outputs.node }}

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

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

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
workflow_dispatch:
pull_request:
paths:
- 'packages/browser-integration-tests/suites/**'
- 'dev-packages/browser-integration-tests/suites/**'
branches-ignore:
- master

Expand Down Expand Up @@ -76,11 +76,11 @@ jobs:
with:
list-files: json
filters: |
browser_integration: packages/browser-integration-tests/suites/**
browser_integration: dev-packages/browser-integration-tests/suites/**

- name: Detect flaky tests
run: yarn test:detect-flaky
working-directory: packages/browser-integration-tests
working-directory: dev-packages/browser-integration-tests
env:
CHANGED_TEST_PATHS: ${{ steps.changed.outputs.browser_integration_files }}
TEST_RUN_COUNT: 'AUTO'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# dependencies
node_modules/
packages/*/package-lock.json
dev-packages/*/package-lock.json
package-lock.json

# build and test
Expand Down
9 changes: 0 additions & 9 deletions .npmignore

This file was deleted.

1 change: 1 addition & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"esbenp.prettier-vscode",
"biomejs.biome",
"dbaeumer.vscode-eslint",
"augustocdias.tasks-shell-input",
Expand Down
7 changes: 6 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
"editor.formatOnPaste": false,
"editor.formatOnSave": false
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": ".github/workflows/**.yml"
},
Expand All @@ -31,7 +37,6 @@
"deno.enablePaths": ["packages/deno/test"],
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit",
"quickfix.biome": "explicit"
},
"editor.defaultFormatter": "biomejs.biome"
}
87 changes: 87 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,93 @@

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

## 7.92.0

### Important Changes

#### Deprecations

- feat(core): Add `span.updateName()` and deprecate `span.setName()` (#10018)
- feat(core): Deprecate `span.getTraceContext()` (#10032)
- feat(core): Deprecate `span.toTraceparent()` in favor of `spanToTraceHeader()` util (#10031)
- feat(core): Deprecate `trace` in favor of `startSpan` (#10012)
- feat(core): Deprecate span `toContext()` and `updateWithContext()` (#10030)
- ref: Deprecate `deepReadDirSync` (#10016)
- ref: Deprecate `lastEventId()` (#10043)

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).

#### Cron Monitoring Support for `cron` and `node-cron` libraries

- feat(node): Instrumentation for `cron` library (#9999)
- feat(node): Instrumentation for `node-cron` library (#9904)

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/).

For [`cron`](https://www.npmjs.com/package/cron):

```js
import * as Sentry from '@sentry/node';
import { CronJob } from 'cron';

const CronJobWithCheckIn = Sentry.cron.instrumentCron(CronJob, 'my-cron-job');

// use the constructor
const job = new CronJobWithCheckIn('* * * * *', () => {
console.log('You will see this message every minute');
});

// or from
const job = CronJobWithCheckIn.from({
cronTime: '* * * * *',
onTick: () => {
console.log('You will see this message every minute');
},
});
```

For [`node-cron`](https://www.npmjs.com/package/node-cron):

```js
import * as Sentry from '@sentry/node';
import cron from 'node-cron';

const cronWithCheckIn = Sentry.cron.instrumentNodeCron(cron);

cronWithCheckIn.schedule(
'* * * * *',
() => {
console.log('running a task every minute');
},
{ name: 'my-cron-job' },
);
```

### Other Changes

- feat(astro): Add `enabled` option to Astro integration options (#10007)
- feat(core): Add `attributes` to `Span` (#10008)
- feat(core): Add `setClient()` and `getClient()` to `Scope` (#10055)
- feat(integrations): Capture error cause with `captureErrorCause` in `ExtraErrorData` integration (#9914)
- feat(node-experimental): Allow to pass base span options to trace methods (#10006)
- feat(node): Local variables via async inspector in node 19+ (#9962)
- fix(astro): handle commonjs related issues (#10042)
- fix(astro): Handle non-utf8 encoded streams in middleware (#9989)
- fix(astro): prevent sentry from externalized (#9994)
- fix(core): Ensure `withScope` sets current scope correctly with async callbacks (#9974)
- fix(node): ANR fixes and additions (#9998)
- fix(node): Anr should not block exit (#10035)
- fix(node): Correctly resolve module name (#10001)
- fix(node): Handle inspector already open (#10025)
- fix(node): Make `NODE_VERSION` properties required (#9964)
- fix(node): Anr doesn't block exit (#10064)
- fix(utils): use correct typeof URL validation (#10028)
- perf(astro): reduce unnecessary path resolutions (#10021)
- ref(astro): Use astro logger instead of console (#9995)
- ref(remix): Isolate Express instrumentation from server auto-instrumentation. (#9966)

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

## 7.91.0

### Important Changes
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
packages/replay @getsentry/replay-sdk
packages/replay-worker @getsentry/replay-sdk
packages/browser-integration-tests/suites/replay @getsentry/replay-sdk
dev-packages/browser-integration-tests/suites/replay @getsentry/replay-sdk
Loading