Skip to content

Commit

Permalink
Merge pull request #10063 from getsentry/prepare-release/7.92.0
Browse files Browse the repository at this point in the history
meta(changelog): Update changelog for 7.92.0
  • Loading branch information
AbhiPrasad committed Jan 4, 2024
2 parents 2597e37 + c06c2d8 commit 7bca411
Show file tree
Hide file tree
Showing 1,324 changed files with 4,747 additions and 2,717 deletions.
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
Validating CODEOWNERS rules …
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

0 comments on commit 7bca411

Please sign in to comment.