Skip to content

Commit

Permalink
Merge pull request #9730 from getsentry/prepare-release/7.85.0
Browse files Browse the repository at this point in the history
meta(changelog): Update changelog for 7.85.0
  • Loading branch information
Lms24 committed Dec 4, 2023
2 parents 7c20640 + 1fd0b61 commit b627c15
Show file tree
Hide file tree
Showing 93 changed files with 971 additions and 311 deletions.
4 changes: 4 additions & 0 deletions .craft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ targets:
- name: npm
id: '@sentry/opentelemetry'
includeNames: /^sentry-opentelemetry-\d.*\.tgz$/
## 1.7 Feedback package (browser only)
- name: npm
id: '@sentry-internal/feedback'
includeNames: /^sentry-internal-feedback-\d.*\.tgz$/

## 2. Browser & Node SDKs
- name: npm
Expand Down
12 changes: 12 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@ 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 Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ local.log
._*
.Spotlight-V100
.Trashes
.nx

.rpt2_cache

Expand Down
30 changes: 25 additions & 5 deletions .size-limit.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
module.exports = [
// Main browser webpack builds
{
name: '@sentry/browser (incl. Tracing, Replay, Feedback) - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, Replay, BrowserTracing, Feedback }',
gzip: true,
limit: '90 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, Replay, BrowserTracing }',
gzip: true,
limit: '90 KB',
limit: '75 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - Webpack with treeshaking flags (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, Replay, BrowserTracing }',
gzip: true,
limit: '90 KB',
limit: '75 KB',
modifyWebpackConfig: function (config) {
const webpack = require('webpack');
config.plugins.push(
Expand All @@ -33,6 +40,13 @@ module.exports = [
gzip: true,
limit: '35 KB',
},
{
name: '@sentry/browser (incl. Feedback) - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
import: '{ init, Feedback }',
gzip: true,
limit: '50 KB',
},
{
name: '@sentry/browser - Webpack (gzipped)',
path: 'packages/browser/build/npm/esm/index.js',
Expand All @@ -42,11 +56,17 @@ module.exports = [
},

// Browser CDN bundles (ES6)
{
name: '@sentry/browser (incl. Tracing, Replay, Feedback) - ES6 CDN Bundle (gzipped)',
path: 'packages/browser/build/bundles/bundle.tracing.replay.feedback.min.js',
gzip: true,
limit: '75 KB',
},
{
name: '@sentry/browser (incl. Tracing, Replay) - ES6 CDN Bundle (gzipped)',
path: 'packages/browser/build/bundles/bundle.tracing.replay.min.js',
gzip: true,
limit: '90 KB',
limit: '75 KB',
},
{
name: '@sentry/browser (incl. Tracing) - ES6 CDN Bundle (gzipped)',
Expand Down Expand Up @@ -96,7 +116,7 @@ module.exports = [
path: 'packages/react/build/esm/index.js',
import: '{ init, BrowserTracing, Replay }',
gzip: true,
limit: '90 KB',
limit: '75 KB',
},
{
name: '@sentry/react - Webpack (gzipped)',
Expand Down Expand Up @@ -126,6 +146,6 @@ module.exports = [
path: 'packages/feedback/build/npm/esm/index.js',
import: '{ Feedback }',
gzip: true,
limit: '35 KB',
limit: '25 KB',
},
];
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@
"yaml.schemas": {
"https://json.schemastore.org/github-workflow.json": ".github/workflows/**.yml"
},
"eslint.packageManager": "yarn",
"eslint.workingDirectories": [
{
"mode": "auto"
}
],
"deno.enablePaths": ["packages/deno/test"]
"deno.enablePaths": ["packages/deno/test"],
"editor.codeActionsOnSave": {
"source.organizeImports.biome": true,
"quickfix.biome": true
},
"editor.defaultFormatter": "biomejs.biome"
}
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@

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

## 7.85.0

- feat(core): Add `addEventProcessor` method (#9554)
- feat(crons): Add interface for heartbeat checkin (#9706)
- feat(feedback): Include Feedback package in browser SDK (#9586)
- fix(astro): Isolate request instrumentation in middleware (#9709)
- fix(replay): Capture JSON XHR response bodies (#9623)
- ref(feedback): Change form `box-shadow` to use CSS var (#9630)

## 7.84.0

### Important Changes
Expand Down
8 changes: 8 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ npx @sentry/migr8@latest

This will let you select which updates to run, and automatically update your code. Make sure to still review all code changes!

## Deprecate `addGlobalEventProcessor` in favor of `addEventProcessor`

Instead of using `addGlobalEventProcessor`, you should use `addEventProcessor` which does not add the event processor globally, but to the current client.

For the vast majority of cases, the behavior of these should be the same. Only in the case where you have multiple clients will this differ - but you'll likely want to add event processors per-client then anyhow, not globally.

In v8, we will remove the global event processors overall, as that allows us to avoid keeping global state that is not necessary.

## Deprecate `extractTraceParentData` export from `@sentry/core` & downstream packages

Instead, import this directly from `@sentry/utils`.
Expand Down
18 changes: 17 additions & 1 deletion biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,20 @@
"enabled": true
},
"linter": {
"enabled": false
"enabled": true,
"rules": {
"recommended": false,
"correctness": {
"all": false,
"noUnusedVariables": "error",
"noPrecisionLoss": "error"
},
"suspicious": {
"all": false,
"noControlCharactersInRegex": "error"
}
},
"ignore": [".vscode/*", "**/*.json"]
},
"files": {
"ignoreUnknown": true
Expand Down Expand Up @@ -37,6 +50,9 @@
"arrowParentheses": "asNeeded",
"trailingComma": "all",
"lineEnding": "lf"
},
"parser": {
"unsafeParameterDecoratorsEnabled": true
}
},
"json": {
Expand Down
2 changes: 2 additions & 0 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { handleRequest } from './server/middleware';

// Hence, we export everything from the Node SDK explicitly:
export {
// eslint-disable-next-line deprecation/deprecation
addGlobalEventProcessor,
addEventProcessor,
addBreadcrumb,
captureException,
captureEvent,
Expand Down
Loading

0 comments on commit b627c15

Please sign in to comment.