From b257c2679bd4f7d8e8e779f4dc40f50fe145b111 Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Thu, 31 Oct 2024 14:06:11 +0100 Subject: [PATCH 1/3] review suggestion --- packages/nuxt/src/client/piniaIntegration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxt/src/client/piniaIntegration.ts b/packages/nuxt/src/client/piniaIntegration.ts index 2e308eff397f..28b797fb9fa6 100644 --- a/packages/nuxt/src/client/piniaIntegration.ts +++ b/packages/nuxt/src/client/piniaIntegration.ts @@ -20,7 +20,7 @@ const _piniaIntegration = (( consoleSandbox(() => { // eslint-disable-next-line no-console console.warn( - '[Sentry] You added the Pinia integration, but the passed parameter `pinia` has the wrong value. Make sure to enable Pinia by adding `"@pinia/nuxt"` to your Nuxt modules array and pass pinia to Sentry with `piniaIntegration(usePinia())`. Current value of `pinia`: ', + '[Sentry] The Pinia integration was added, but the passed parameter `pinia` has the wrong value. Make sure to enable Pinia by adding `"@pinia/nuxt"` to the Nuxt modules array and pass pinia to Sentry with `piniaIntegration(usePinia())`. Current value of `pinia`:', pinia, ); }); From 9406387024094c7978cd23f8915e047ffec0a2cc Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Thu, 31 Oct 2024 14:07:07 +0100 Subject: [PATCH 2/3] fix changelog entry --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d5555e02a968..0c405448f783 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott -- **feat(nuxt): Add Sentry Pinia plugin ([#14138](https://github.com/getsentry/sentry-javascript/pull/14138))** +- **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: From cf8f24b6913625da553d3b53d1c30104f0c1836b Mon Sep 17 00:00:00 2001 From: s1gr1d Date: Thu, 31 Oct 2024 14:07:46 +0100 Subject: [PATCH 3/3] fix typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c405448f783..31db2ef30b12 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,7 +21,7 @@ import { usePinia } from '#imports'; Sentry.init({ integrations: [ Sentry.piniaIntegration(usePinia(), { - /* optinal Pinia plugin options */ + /* optional Pinia plugin options */ }), ], });