Skip to content

Commit

Permalink
chore: add v3 announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
ijkml committed Sep 7, 2024
1 parent 2766a9f commit 4d1b8fd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Integrate [**Umami Analytics**](https://umami.is/) into your Nuxt websites/appli

> **Hey...**
>
> Still here? v3 is out, simpler and better. [Read the announcement.](https://umami.nuxt.dev/v2-upgrade-guide)
> Still here? v3 is out, simpler and better. [Read the announcement](https://umami.nuxt.dev/v2-upgrade-guide).
>
> [Switch to v3 branch.](https://github.com/ijkml/nuxt-umami/tree/module)
## 🚀 Try it online

Expand Down
6 changes: 6 additions & 0 deletions plugins/umami.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ export default defineNuxtPlugin({
// to wait for the update to finish, to capture title
// https://github.com/nuxt/nuxt/blob/3dbe7ce3482dac7c7ca06eb5a2eee23a7fcad2ac/packages/nuxt/src/head/runtime/plugins/unhead.ts#L35
},
'app:beforeMount': function () {
console.info(
`%cNEW VERSION AVAILABLE: Nuxt Umami v3! 🚀\nGet the latest features and improvements.\nCheck the announcement: https://umami.nuxt.dev/v2-upgrade-guide.`,
'color: #bada55; font-weight: 500;',
);
},
},
});

0 comments on commit 4d1b8fd

Please sign in to comment.