Skip to content

Commit 9afe264

Browse files
authored
Merge pull request #16779 from getsentry/prepare-release/9.34.0
meta(changelog): Update changelog for 9.34.0
2 parents b26bcf1 + 740b49f commit 9afe264

File tree

88 files changed

+5099
-122
lines changed

Some content is hidden

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

88 files changed

+5099
-122
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ jobs:
709709
strategy:
710710
fail-fast: false
711711
matrix:
712-
node: ['18.20.5', 20, 22, 24]
712+
node: [18, 20, 22, 24]
713713
typescript:
714714
- false
715715
include:

.size-limit.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,21 @@ module.exports = [
3838
path: 'packages/browser/build/npm/esm/index.js',
3939
import: createImport('init', 'browserTracingIntegration'),
4040
gzip: true,
41-
limit: '39 KB',
41+
limit: '40 KB',
4242
},
4343
{
4444
name: '@sentry/browser (incl. Tracing, Replay)',
4545
path: 'packages/browser/build/npm/esm/index.js',
4646
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
4747
gzip: true,
48-
limit: '77 KB',
48+
limit: '80 KB',
4949
},
5050
{
5151
name: '@sentry/browser (incl. Tracing, Replay) - with treeshaking flags',
5252
path: 'packages/browser/build/npm/esm/index.js',
5353
import: createImport('init', 'browserTracingIntegration', 'replayIntegration'),
5454
gzip: true,
55-
limit: '70.1 KB',
55+
limit: '75 KB',
5656
modifyWebpackConfig: function (config) {
5757
const webpack = require('webpack');
5858

@@ -156,7 +156,7 @@ module.exports = [
156156
name: 'CDN Bundle (incl. Tracing)',
157157
path: createCDNPath('bundle.tracing.min.js'),
158158
gzip: true,
159-
limit: '39 KB',
159+
limit: '41 KB',
160160
},
161161
{
162162
name: 'CDN Bundle (incl. Tracing, Replay)',

CHANGELOG.md

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

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

7+
## 9.34.0
8+
9+
### Important Changes
10+
11+
- **feat(nuxt): Add Cloudflare Nitro plugin ([#15597](https://github.com/getsentry/sentry-javascript/pull/15597))**
12+
13+
A Nitro plugin for `@sentry/nuxt` which initializes Sentry when deployed to Cloudflare (`cloudflare-pages` preset).
14+
15+
1. Remove the previous server config file: `sentry.server.config.ts`
16+
2. Add a plugin in `server/plugins` (e.g. `server/plugins/sentry-cloudflare-setup.ts`)
17+
3. Add this code in your plugin file
18+
19+
```javascript
20+
// server/plugins/sentry-cloudflare-setup.ts (filename does not matter)
21+
import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins';
22+
23+
export default defineNitroPlugin(
24+
sentryCloudflareNitroPlugin({
25+
dsn: 'https://dsn',
26+
tracesSampleRate: 1.0,
27+
}),
28+
);
29+
```
30+
31+
or with access to `nitroApp`:
32+
33+
```javascript
34+
// server/plugins/sentry-cloudflare-setup.ts (filename does not matter)
35+
import { sentryCloudflareNitroPlugin } from '@sentry/nuxt/module/plugins';
36+
37+
export default defineNitroPlugin(sentryCloudflareNitroPlugin((nitroApp: NitroApp) => {
38+
// You can access nitroApp here if needed
39+
return ({
40+
dsn: 'https://dsn',
41+
tracesSampleRate: 1.0,
42+
})
43+
}))
44+
```
45+
46+
### Other Changes
47+
48+
- feat(browser): Record standalone LCP spans ([#16591](https://github.com/getsentry/sentry-javascript/pull/16591))
49+
- fix(nuxt): Only add OTel alias in dev mode ([#16756](https://github.com/getsentry/sentry-javascript/pull/16756))
50+
751
## 9.33.0
852

953
### Important Changes
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import * as Sentry from '@sentry/browser';
2+
3+
window.Sentry = Sentry;
4+
5+
Sentry.init({
6+
dsn: 'https://public@dsn.ingest.sentry.io/1337',
7+
integrations: [
8+
Sentry.browserTracingIntegration({
9+
idleTimeout: 9000,
10+
_experiments: {
11+
enableStandaloneLcpSpans: true,
12+
},
13+
}),
14+
],
15+
tracesSampleRate: 1,
16+
debug: true,
17+
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
</head>
6+
<body>
7+
<div id="content"></div>
8+
<img src="https://sentry-test-site.example/my/image.png" />
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)