diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3f07002e0c5b..c17b81246e79 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -914,6 +914,7 @@ jobs: 'react-router-6', 'solid', 'solidstart', + 'solidstart-spa', 'svelte-5', 'sveltekit', 'sveltekit-2', diff --git a/.size-limit.js b/.size-limit.js index 75545fd89194..8b506b8f683b 100644 --- a/.size-limit.js +++ b/.size-limit.js @@ -40,7 +40,7 @@ module.exports = [ path: 'packages/browser/build/npm/esm/index.js', import: createImport('init', 'browserTracingIntegration'), gzip: true, - limit: '36 KB', + limit: '36.5 KB', }, { name: '@sentry/browser (incl. Tracing, Replay)', @@ -88,20 +88,6 @@ module.exports = [ gzip: true, limit: '95 KB', }, - { - name: '@sentry/browser (incl. Tracing, Replay, Feedback, metrics)', - path: 'packages/browser/build/npm/esm/index.js', - import: createImport('init', 'browserTracingIntegration', 'replayIntegration', 'feedbackIntegration', 'metrics'), - gzip: true, - limit: '100 KB', - }, - { - name: '@sentry/browser (incl. metrics)', - path: 'packages/browser/build/npm/esm/index.js', - import: createImport('init', 'metrics'), - gzip: true, - limit: '30 KB', - }, { name: '@sentry/browser (incl. Feedback)', path: 'packages/browser/build/npm/esm/index.js', @@ -138,7 +124,7 @@ module.exports = [ import: createImport('init', 'ErrorBoundary', 'reactRouterV6BrowserTracingIntegration'), ignore: ['react/jsx-runtime'], gzip: true, - limit: '39.05 KB', + limit: '39.5 KB', }, // Vue SDK (ESM) { @@ -224,7 +210,7 @@ module.exports = [ import: createImport('init'), ignore: ['next/router', 'next/constants'], gzip: true, - limit: '39.1 KB', + limit: '40 KB', }, // SvelteKit SDK (ESM) { diff --git a/.vscode/settings.json b/.vscode/settings.json index 4926554ffe4b..0f2399922cfc 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,10 +1,5 @@ { - "editor.formatOnType": true, - "editor.formatOnPaste": false, - "editor.formatOnSave": true, - "editor.rulers": [120], "editor.tabSize": 2, - "files.autoSave": "onWindowChange", "files.trimTrailingWhitespace": true, "files.insertFinalNewline": true, "search.exclude": { @@ -15,11 +10,6 @@ "**/yarn-error.log": true }, "typescript.tsdk": "./node_modules/typescript/lib", - "[json]": { - "editor.formatOnType": false, - "editor.formatOnPaste": false, - "editor.formatOnSave": false - }, "[markdown]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, @@ -35,12 +25,8 @@ } ], "deno.enablePaths": ["packages/deno/test"], - "editor.codeActionsOnSave": { - "source.organizeImports.biome": "explicit" - }, "editor.defaultFormatter": "biomejs.biome", "[typescript]": { "editor.defaultFormatter": "biomejs.biome" - }, - "cSpell.words": ["arrayify", "OTEL"] + } } diff --git a/CHANGELOG.md b/CHANGELOG.md index b160a8e17293..452113160a0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,56 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +## 8.37.0 + +### Important CHanges + +- **feat(nuxt): Add `piniaIntegration` ([#14138](https://github.com/getsentry/sentry-javascript/pull/14138))** + +The Nuxt SDK now allows you to track Pinia state for captured errors. To enable the Pinia plugin, add the `piniaIntegration` to your client config: + +```ts +// sentry.client.config.ts +import { usePinia } from '#imports'; + +Sentry.init({ + integrations: [ + Sentry.piniaIntegration(usePinia(), { + /* optional Pinia plugin options */ + }), + ], +}); +``` + +- **feat: Deprecate metrics API ([#14157](https://github.com/getsentry/sentry-javascript/pull/14157))** + +The Sentry Metrics beta has ended in favour of revisiting metrics in another form at a later date. + +This new approach will include different APIs, making the current metrics API unnecessary. This release +deprecates the metrics API with the plan to remove in the next SDK major version. If you currently use the +metrics API in your code, you can safely continue to do so but sent data will no longer be processed by Sentry. + +[Learn more](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th) about the end of the Metrics beta. + +### Other Changes + +- feat(browser): Add `http.response_delivery_type` attribute to resource spans ([#14056](https://github.com/getsentry/sentry-javascript/pull/14056)) +- feat(browser): Add `skipBrowserExtensionCheck` escape hatch option ([#14147](https://github.com/getsentry/sentry-javascript/pull/14147)) +- feat(deps): Bump @opentelemetry/instrumentation from 0.53.0 to 0.54.0 ([#14174](https://github.com/getsentry/sentry-javascript/pull/14174)) +- feat(deps): Bump @opentelemetry/instrumentation-fastify from 0.40.0 to 0.41.0 ([#14175](https://github.com/getsentry/sentry-javascript/pull/14175)) +- feat(deps): Bump @opentelemetry/instrumentation-graphql from 0.43.0 to 0.44.0 ([#14173](https://github.com/getsentry/sentry-javascript/pull/14173)) +- feat(deps): Bump @opentelemetry/instrumentation-mongodb from 0.47.0 to 0.48.0 ([#14171](https://github.com/getsentry/sentry-javascript/pull/14171)) +- feat(deps): Bump @opentelemetry/propagator-aws-xray from 1.25.1 to 1.26.0 ([#14172](https://github.com/getsentry/sentry-javascript/pull/14172)) +- feat(nuxt): Add `asyncFunctionReExports` to define re-exported server functions ([#14104](https://github.com/getsentry/sentry-javascript/pull/14104)) +- feat(nuxt): Add `piniaIntegration` ([#14138](https://github.com/getsentry/sentry-javascript/pull/14138)) +- fix(browser): Avoid recording long task spans starting before their parent span ([#14183](https://github.com/getsentry/sentry-javascript/pull/14183)) +- fix(core): Ensure errors thrown in async cron jobs bubble up ([#14182](https://github.com/getsentry/sentry-javascript/pull/14182)) +- fix(core): Silently fail `maybeInstrument` ([#14140](https://github.com/getsentry/sentry-javascript/pull/14140)) +- fix(nextjs): Resolve path for dynamic webpack import ([#13751](https://github.com/getsentry/sentry-javascript/pull/13751)) +- fix(node): Make sure `modulesIntegration` does not crash esm apps ([#14169](https://github.com/getsentry/sentry-javascript/pull/14169)) + +Work in this release was contributed by @rexxars. Thank you for your contribution! + ## 8.36.0 ### Important Changes diff --git a/dev-packages/browser-integration-tests/suites/feedback/attachTo/init.js b/dev-packages/browser-integration-tests/suites/feedback/attachTo/init.js index 5eb27143fdc7..740fb69558ed 100644 --- a/dev-packages/browser-integration-tests/suites/feedback/attachTo/init.js +++ b/dev-packages/browser-integration-tests/suites/feedback/attachTo/init.js @@ -14,4 +14,4 @@ Sentry.init({ integrations: [feedback], }); -feedback.attachTo('#custom-feedback-buttom'); +feedback.attachTo('#custom-feedback-button'); diff --git a/dev-packages/browser-integration-tests/suites/feedback/attachTo/template.html b/dev-packages/browser-integration-tests/suites/feedback/attachTo/template.html index ae36b0c69c7b..d0c83c526ca4 100644 --- a/dev-packages/browser-integration-tests/suites/feedback/attachTo/template.html +++ b/dev-packages/browser-integration-tests/suites/feedback/attachTo/template.html @@ -4,6 +4,6 @@
- +