Skip to content

Commit 7796451

Browse files
authored
Merge pull request #9471 from getsentry/prepare-release/7.78.0
meta(changelog): Update changelog for 7.78.0
2 parents 1cfd97b + beeb4e7 commit 7796451

File tree

130 files changed

+5779
-5029
lines changed

Some content is hidden

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

130 files changed

+5779
-5029
lines changed

.github/workflows/build.yml

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
- *shared
9999
- 'packages/browser/**'
100100
- 'packages/replay/**'
101+
- 'packages/feedback/**'
101102
browser_integration:
102103
- *shared
103104
- *browser
@@ -168,7 +169,7 @@ jobs:
168169
with:
169170
ref: ${{ env.HEAD_COMMIT }}
170171
- name: Set up Node
171-
uses: actions/setup-node@v3
172+
uses: actions/setup-node@v4
172173
with:
173174
node-version-file: 'package.json'
174175
# we use a hash of yarn.lock as our cache key, because if it hasn't changed, our dependencies haven't changed,
@@ -216,7 +217,7 @@ jobs:
216217
with:
217218
ref: ${{ env.HEAD_COMMIT }}
218219
- name: Set up Node
219-
uses: actions/setup-node@v3
220+
uses: actions/setup-node@v4
220221
with:
221222
node-version-file: 'package.json'
222223
- name: Check dependency cache
@@ -274,7 +275,7 @@ jobs:
274275
with:
275276
ref: ${{ env.HEAD_COMMIT }}
276277
- name: Set up Node
277-
uses: actions/setup-node@v3
278+
uses: actions/setup-node@v4
278279
with:
279280
# The size limit action runs `yarn` and `yarn build` when this job is executed on
280281
# use Node 14 for now.
@@ -306,7 +307,7 @@ jobs:
306307
with:
307308
ref: ${{ env.HEAD_COMMIT }}
308309
- name: Set up Node
309-
uses: actions/setup-node@v3
310+
uses: actions/setup-node@v4
310311
with:
311312
node-version-file: 'package.json'
312313
- name: Restore caches
@@ -329,7 +330,7 @@ jobs:
329330
with:
330331
ref: ${{ env.HEAD_COMMIT }}
331332
- name: Set up Node
332-
uses: actions/setup-node@v3
333+
uses: actions/setup-node@v4
333334
with:
334335
node-version-file: 'package.json'
335336
- name: Restore caches
@@ -351,7 +352,7 @@ jobs:
351352
with:
352353
ref: ${{ env.HEAD_COMMIT }}
353354
- name: Set up Node
354-
uses: actions/setup-node@v3
355+
uses: actions/setup-node@v4
355356
with:
356357
node-version-file: 'package.json'
357358
- name: Restore caches
@@ -382,7 +383,7 @@ jobs:
382383
with:
383384
ref: ${{ env.HEAD_COMMIT }}
384385
- name: Set up Node
385-
uses: actions/setup-node@v3
386+
uses: actions/setup-node@v4
386387
with:
387388
node-version-file: 'package.json'
388389
- name: Restore caches
@@ -409,7 +410,7 @@ jobs:
409410
with:
410411
ref: ${{ env.HEAD_COMMIT }}
411412
- name: Set up Node
412-
uses: actions/setup-node@v3
413+
uses: actions/setup-node@v4
413414
with:
414415
node-version-file: 'package.json'
415416
- name: Set up Bun
@@ -438,7 +439,7 @@ jobs:
438439
with:
439440
ref: ${{ env.HEAD_COMMIT }}
440441
- name: Set up Node
441-
uses: actions/setup-node@v3
442+
uses: actions/setup-node@v4
442443
with:
443444
node-version-file: 'package.json'
444445
- name: Set up Deno
@@ -472,7 +473,7 @@ jobs:
472473
with:
473474
ref: ${{ env.HEAD_COMMIT }}
474475
- name: Set up Node
475-
uses: actions/setup-node@v3
476+
uses: actions/setup-node@v4
476477
with:
477478
node-version: ${{ matrix.node }}
478479
- name: Restore caches
@@ -504,7 +505,7 @@ jobs:
504505
with:
505506
ref: ${{ env.HEAD_COMMIT }}
506507
- name: Set up Node
507-
uses: actions/setup-node@v3
508+
uses: actions/setup-node@v4
508509
with:
509510
node-version: ${{ matrix.node }}
510511
- name: Restore caches
@@ -569,7 +570,7 @@ jobs:
569570
with:
570571
ref: ${{ env.HEAD_COMMIT }}
571572
- name: Set up Node
572-
uses: actions/setup-node@v3
573+
uses: actions/setup-node@v4
573574
with:
574575
node-version-file: 'package.json'
575576
- name: Restore caches
@@ -626,7 +627,7 @@ jobs:
626627
with:
627628
ref: ${{ env.HEAD_COMMIT }}
628629
- name: Set up Node
629-
uses: actions/setup-node@v3
630+
uses: actions/setup-node@v4
630631
with:
631632
node-version-file: 'package.json'
632633
- name: Restore caches
@@ -679,7 +680,7 @@ jobs:
679680
with:
680681
ref: ${{ env.HEAD_COMMIT }}
681682
- name: Set up Node
682-
uses: actions/setup-node@v3
683+
uses: actions/setup-node@v4
683684
with:
684685
node-version-file: 'package.json'
685686
- name: Restore caches
@@ -705,7 +706,7 @@ jobs:
705706
with:
706707
ref: ${{ env.HEAD_COMMIT }}
707708
- name: Set up Node
708-
uses: actions/setup-node@v3
709+
uses: actions/setup-node@v4
709710
with:
710711
node-version-file: 'package.json'
711712
- name: Restore caches
@@ -745,7 +746,7 @@ jobs:
745746
with:
746747
ref: ${{ env.HEAD_COMMIT }}
747748
- name: Set up Node
748-
uses: actions/setup-node@v3
749+
uses: actions/setup-node@v4
749750
with:
750751
node-version: ${{ matrix.node }}
751752
- name: Restore caches
@@ -781,7 +782,7 @@ jobs:
781782
with:
782783
ref: ${{ env.HEAD_COMMIT }}
783784
- name: Set up Node
784-
uses: actions/setup-node@v3
785+
uses: actions/setup-node@v4
785786
with:
786787
node-version: ${{ matrix.node }}
787788
- name: Restore caches
@@ -810,7 +811,7 @@ jobs:
810811
with:
811812
ref: ${{ env.HEAD_COMMIT }}
812813
- name: Set up Node
813-
uses: actions/setup-node@v3
814+
uses: actions/setup-node@v4
814815
with:
815816
node-version-file: 'package.json'
816817
- name: Restore caches
@@ -900,7 +901,7 @@ jobs:
900901
with:
901902
version: 8.3.1
902903
- name: Set up Node
903-
uses: actions/setup-node@v3
904+
uses: actions/setup-node@v4
904905
with:
905906
node-version-file: 'packages/e2e-tests/package.json'
906907
- name: Restore caches
@@ -983,7 +984,7 @@ jobs:
983984
with:
984985
ref: ${{ env.HEAD_COMMIT }}
985986
- name: Set up Node
986-
uses: actions/setup-node@v3
987+
uses: actions/setup-node@v4
987988
with:
988989
node-version-file: 'package.json'
989990
- name: Restore caches

.github/workflows/canary.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
with:
2828
ref: ${{ env.HEAD_COMMIT }}
2929
- name: Set up Node
30-
uses: actions/setup-node@v3
30+
uses: actions/setup-node@v4
3131
with:
3232
node-version-file: 'package.json'
3333
- name: Check canary cache
@@ -89,7 +89,7 @@ jobs:
8989
with:
9090
version: 8.3.1
9191
- name: Set up Node
92-
uses: actions/setup-node@v3
92+
uses: actions/setup-node@v4
9393
with:
9494
node-version-file: 'package.json'
9595

@@ -152,7 +152,7 @@ jobs:
152152
with:
153153
ref: ${{ env.HEAD_COMMIT }}
154154
- name: Set up Node
155-
uses: actions/setup-node@v3
155+
uses: actions/setup-node@v4
156156
with:
157157
node-version-file: 'package.json'
158158
- name: Install dependencies

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
- name: Check out current branch
3333
uses: actions/checkout@v4
3434
- name: Set up Node
35-
uses: actions/setup-node@v3
35+
uses: actions/setup-node@v4
3636
with:
3737
node-version-file: 'package.json'
3838
cache: 'yarn'

.size-limit.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ module.exports = [
1818
config.plugins.push(
1919
new webpack.DefinePlugin({
2020
__SENTRY_DEBUG__: false,
21-
__RRWEB_EXCLUDE_CANVAS__: true,
2221
__RRWEB_EXCLUDE_SHADOW_DOM__: true,
2322
__RRWEB_EXCLUDE_IFRAME__: true,
2423
__SENTRY_EXCLUDE_REPLAY_WORKER__: true,
@@ -122,4 +121,11 @@ module.exports = [
122121
gzip: true,
123122
limit: '57 KB',
124123
},
124+
{
125+
name: '@sentry-internal/feedback - Webpack (gzipped)',
126+
path: 'packages/feedback/build/npm/esm/index.js',
127+
import: '{ Feedback }',
128+
gzip: true,
129+
limit: '35 KB',
130+
},
125131
];

CHANGELOG.md

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

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

7+
## 7.78.0
8+
9+
### Important Changes
10+
11+
- **Replay Bundle Size improvements**
12+
13+
We've dramatically decreased the bundle size of our Replay package, reducing the minified & gzipped bundle size by ~20 KB!
14+
This was possible by extensive use of tree shaking and a host of small changes to reduce our footprint:
15+
16+
- feat(replay): Update rrweb to 2.2.0 (#9414)
17+
- ref(replay): Use fflate instead of pako for compression (#9436)
18+
19+
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.
20+
21+
#### Other Changes
22+
23+
- feat(astro): Add Sentry middleware (#9445)
24+
- feat(feedback): Add "outline focus" and "foreground hover" vars (#9462)
25+
- feat(feedback): Add `openDialog` and `closeDialog` onto integration interface (#9464)
26+
- feat(feedback): Implement new user feedback embeddable widget (#9217)
27+
- feat(nextjs): Add automatic sourcemapping for edge part of the SDK (#9454)
28+
- feat(nextjs): Add client routing instrumentation for app router (#9446)
29+
- feat(node-experimental): Add hapi tracing support (#9449)
30+
- feat(replay): Allow to configure `beforeErrorSampling` (#9470)
31+
- feat(replay): Stop fixing truncated JSONs in SDK (#9437)
32+
- fix(nextjs): Fix sourcemaps resolving for local dev when basePath is set (#9457)
33+
- fix(nextjs): Only inject basepath in dev mode (#9465)
34+
- fix(replay): Ensure we stop for rate limit headers (#9420)
35+
- ref(feedback): Add treeshaking for logger statements (#9475)
36+
- ref(replay): Use rrweb for slow click detection (#9408)
37+
- build(polyfills): Remove output format specific logic (#9467)
38+
739
## 7.77.0
840

941
- feat: Move LinkedErrors integration to @sentry/core (#9404)

nx.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"build:transpile": {
2828
"inputs": ["production", "^production"],
29-
"dependsOn": ["^build:transpile:uncached", "^build:transpile", "build:transpile:uncached"],
29+
"dependsOn": ["^build:transpile"],
3030
"outputs": ["{projectRoot}/build/npm", "{projectRoot}/build/esm", "{projectRoot}/build/cjs"]
3131
},
3232
"build:types": {

packages/angular-ivy/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
"build:transpile": {
6868
"dependsOn": [
6969
"^build:transpile",
70-
"^build:transpile:uncached",
7170
"^build:types"
7271
]
7372
}

packages/angular/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@
7171
"build:transpile": {
7272
"dependsOn": [
7373
"^build:transpile",
74-
"^build:transpile:uncached",
7574
"^build:types"
7675
]
7776
}

packages/astro/README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Install the Sentry Astro SDK with the `astro` CLI:
3131
npx astro add @sentry/astro
3232
```
3333

34-
Complete the setup by adding your DSN and source maps upload configuration:
34+
Add your DSN and source maps upload configuration:
3535

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

59+
Complete the setup by adding the Sentry middleware to your `src/middleware.js` file:
60+
61+
```javascript
62+
// src/middleware.js
63+
import { sequence } from "astro:middleware";
64+
import * as Sentry from "@sentry/astro";
65+
66+
export const onRequest = sequence(
67+
Sentry.sentryMiddleware(),
68+
// Add your other handlers after sentryMiddleware
69+
);
70+
```
71+
72+
This middleware creates server-side spans to monitor performance on the server for page load and endpoint requests.
73+
74+
5975
## Configuration
6076

6177
Check out our docs for configuring your SDK setup:

packages/astro/src/index.server.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,6 @@ export {
6262
export * from '@sentry/node';
6363

6464
export { init } from './server/sdk';
65+
export { handleRequest } from './server/middleware';
6566

6667
export default sentryAstro;

0 commit comments

Comments
 (0)