Skip to content

Commit b114002

Browse files
authored
Merge branch 'master' into prepare-release/7.62.0
2 parents 51159b7 + b986eae commit b114002

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

CHANGELOG.md

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

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

7+
## 7.62.0
8+
9+
### Important Changes
10+
11+
- **feat(integrations): Add `ContextLines` integration for html-embedded JS stack frames (#8699)**
12+
13+
This release adds the `ContextLines` integration as an optional integration for the Browser SDKs to `@sentry/integrations`.
14+
15+
This integration adds source code from inline JavaScript of the current page's HTML (e.g. JS in `<script>` tags) to stack traces of captured errors.
16+
It _can't_ collect source code from assets referenced by your HTML (e.g. `<script src="..." />`).
17+
18+
The `ContextLines` integration is useful when you have inline JS code in HTML pages that can't be accessed by Sentry's backend, for example, due to a login-protected page.
19+
20+
```js
21+
import { ContextLines } from "@sentry/integrations";
22+
23+
Sentry.init({
24+
// ...
25+
integrations: [
26+
new ContextLines({
27+
// The number of lines to collect before and after each stack frame's line number
28+
// Defaults to 7
29+
frameContextLines: 7,
30+
}),
31+
],
32+
});
33+
```
34+
35+
### Other Changes
36+
37+
- fix(nextjs): Make all wrappers isomorphic and available in all runtimes (#8743)
38+
- fix(replay): Cancel debounce when replay is too short/long (#8742)
39+
- fix(utils): `dirname` and `basename` should handle Windows paths (#8737)
40+
- ref: Hoist `flush`, `close`, and `lastEventId` into `@sentry/core` (#8731)
41+
- ref(node): Don't call `JSON.stringify` on prisma client when logging (#8745)
42+
743
## 7.61.1
844

945
- feat(nextjs): Add `AsyncLocalStorage` async context strategy to edge SDK (#8720)

0 commit comments

Comments
 (0)