Skip to content

Commit

Permalink
Merge pull request #9471 from getsentry/prepare-release/7.78.0
Browse files Browse the repository at this point in the history
meta(changelog): Update changelog for 7.78.0
  • Loading branch information
mydea authored Nov 8, 2023
2 parents 1cfd97b + beeb4e7 commit 7796451
Show file tree
Hide file tree
Showing 130 changed files with 5,779 additions and 5,029 deletions.
41 changes: 21 additions & 20 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- *shared
- 'packages/browser/**'
- 'packages/replay/**'
- 'packages/feedback/**'
browser_integration:
- *shared
- *browser
Expand Down Expand Up @@ -168,7 +169,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
Expand Down Expand Up @@ -216,7 +217,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Check dependency cache
Expand Down Expand Up @@ -274,7 +275,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# The size limit action runs `yarn` and `yarn build` when this job is executed on
# use Node 14 for now.
Expand Down Expand Up @@ -306,7 +307,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -329,7 +330,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -351,7 +352,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -382,7 +383,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -409,7 +410,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Set up Bun
Expand Down Expand Up @@ -438,7 +439,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Set up Deno
Expand Down Expand Up @@ -472,7 +473,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -504,7 +505,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -569,7 +570,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -626,7 +627,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -679,7 +680,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand All @@ -705,7 +706,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -745,7 +746,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -781,7 +782,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Restore caches
Expand Down Expand Up @@ -810,7 +811,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down Expand Up @@ -900,7 +901,7 @@ jobs:
with:
version: 8.3.1
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'packages/e2e-tests/package.json'
- name: Restore caches
Expand Down Expand Up @@ -983,7 +984,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Restore caches
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Check canary cache
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
with:
version: 8.3.1
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'

Expand Down Expand Up @@ -152,7 +152,7 @@ jobs:
with:
ref: ${{ env.HEAD_COMMIT }}
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/flaky-test-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Check out current branch
uses: actions/checkout@v4
- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
cache: 'yarn'
Expand Down
8 changes: 7 additions & 1 deletion .size-limit.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ module.exports = [
config.plugins.push(
new webpack.DefinePlugin({
__SENTRY_DEBUG__: false,
__RRWEB_EXCLUDE_CANVAS__: true,
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
__RRWEB_EXCLUDE_IFRAME__: true,
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
Expand Down Expand Up @@ -122,4 +121,11 @@ module.exports = [
gzip: true,
limit: '57 KB',
},
{
name: '@sentry-internal/feedback - Webpack (gzipped)',
path: 'packages/feedback/build/npm/esm/index.js',
import: '{ Feedback }',
gzip: true,
limit: '35 KB',
},
];
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,38 @@

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

## 7.78.0

### Important Changes

- **Replay Bundle Size improvements**

We've dramatically decreased the bundle size of our Replay package, reducing the minified & gzipped bundle size by ~20 KB!
This was possible by extensive use of tree shaking and a host of small changes to reduce our footprint:

- feat(replay): Update rrweb to 2.2.0 (#9414)
- ref(replay): Use fflate instead of pako for compression (#9436)

By using [tree shaking](https://docs.sentry.io/platforms/javascript/configuration/tree-shaking/) it is possible to shave up to 10 additional KB off the bundle.

#### Other Changes

- feat(astro): Add Sentry middleware (#9445)
- feat(feedback): Add "outline focus" and "foreground hover" vars (#9462)
- feat(feedback): Add `openDialog` and `closeDialog` onto integration interface (#9464)
- feat(feedback): Implement new user feedback embeddable widget (#9217)
- feat(nextjs): Add automatic sourcemapping for edge part of the SDK (#9454)
- feat(nextjs): Add client routing instrumentation for app router (#9446)
- feat(node-experimental): Add hapi tracing support (#9449)
- feat(replay): Allow to configure `beforeErrorSampling` (#9470)
- feat(replay): Stop fixing truncated JSONs in SDK (#9437)
- fix(nextjs): Fix sourcemaps resolving for local dev when basePath is set (#9457)
- fix(nextjs): Only inject basepath in dev mode (#9465)
- fix(replay): Ensure we stop for rate limit headers (#9420)
- ref(feedback): Add treeshaking for logger statements (#9475)
- ref(replay): Use rrweb for slow click detection (#9408)
- build(polyfills): Remove output format specific logic (#9467)

## 7.77.0

- feat: Move LinkedErrors integration to @sentry/core (#9404)
Expand Down
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"build:transpile": {
"inputs": ["production", "^production"],
"dependsOn": ["^build:transpile:uncached", "^build:transpile", "build:transpile:uncached"],
"dependsOn": ["^build:transpile"],
"outputs": ["{projectRoot}/build/npm", "{projectRoot}/build/esm", "{projectRoot}/build/cjs"]
},
"build:types": {
Expand Down
1 change: 0 additions & 1 deletion packages/angular-ivy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"build:transpile": {
"dependsOn": [
"^build:transpile",
"^build:transpile:uncached",
"^build:types"
]
}
Expand Down
1 change: 0 additions & 1 deletion packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
"build:transpile": {
"dependsOn": [
"^build:transpile",
"^build:transpile:uncached",
"^build:types"
]
}
Expand Down
18 changes: 17 additions & 1 deletion packages/astro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Install the Sentry Astro SDK with the `astro` CLI:
npx astro add @sentry/astro
```

Complete the setup by adding your DSN and source maps upload configuration:
Add your DSN and source maps upload configuration:

```javascript
import { defineConfig } from "astro/config";
Expand All @@ -56,6 +56,22 @@ Follow [this guide](https://docs.sentry.io/product/accounts/auth-tokens/#organiz
SENTRY_AUTH_TOKEN="your-token"
```

Complete the setup by adding the Sentry middleware to your `src/middleware.js` file:

```javascript
// src/middleware.js
import { sequence } from "astro:middleware";
import * as Sentry from "@sentry/astro";

export const onRequest = sequence(
Sentry.sentryMiddleware(),
// Add your other handlers after sentryMiddleware
);
```

This middleware creates server-side spans to monitor performance on the server for page load and endpoint requests.


## Configuration

Check out our docs for configuring your SDK setup:
Expand Down
1 change: 1 addition & 0 deletions packages/astro/src/index.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,6 @@ export {
export * from '@sentry/node';

export { init } from './server/sdk';
export { handleRequest } from './server/middleware';

export default sentryAstro;
Loading

0 comments on commit 7796451

Please sign in to comment.