NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm
[![NPM][npmBadge]][npmUrl] [![Minzip Package][bundlePhobiaBadge]][bundlePhobiaUrl] [![NPM Download][npmDtBadge]][npmDtUrl]
Latest stable
2.0.9
Last release 1 years ago
01 Oct 2025
Release timing varies
gaps range from 2 weeks to 5 months
Most releases are documented
notes for 32 of 41 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
41 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
fix: make nuxt related deps optional by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/150
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v2.0.8...v2.0.9
Your coding agent can read these notes before it upgrades. Set up the MCP server →
fix: fixed the type for nuxt 4 by @xiaoluoboding in https://github.com/xiaoluoboding/vue-sonner/pull/141
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v2.0.7...v2.0.8
fix: postcss-calc will change the style by @CandyACE in https://github.com/xiaoluoboding/vue-sonner/pull/125
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v2.0.2...v2.0.7
Add safe area inset to mobile top and bottom by @ygyg70 in https://github.com/xiaoluoboding/vue-sonner/pull/137
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v2.0.1...v2.0.2
Add css import on web page by @MaxTechnics in https://github.com/xiaoluoboding/vue-sonner/pull/120
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v2.0.0...v2.0.1
refactor!: sonner v2 changes by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/115
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.3.2...v2.0.0
v1.3.2 to v2.0.0When you upgrade to v2.0.0, you need to manually import vue-sonner/style.css. This gives developers greater flexibility, allowing you to even customize your own CSS.
Inline CSS is separated and must be imported manually.
<!-- App.vue -->
<template>
<Toaster />
<button @click="() => toast('My first toast')">Render a toast</button>
</template>
<script lang="ts" setup>
import 'vue-sonner/style.css' // add vue-sonner css.
import { Toaster, toast } from 'vue-sonner'
</script>
CSS is imported by default, but you can disable this behavior to prevent CSS from being imported.
Use vue-sonner/nuxt module
// nuxt.config.ts
export default defineNuxtConfig({
...
modules: ['vue-sonner/nuxt']
vueSonner: {
css: false // true by default to include css file
}
})
fix: improve CSS insertion logic to handle document loading state by @beijixiaohu in https://github.com/xiaoluoboding/vue-sonner/pull/107
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.3.2...v1.3.2
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.3.0...v1.3.2
Nothing published for this version
fix: add icon classes by @imjasonmiller in https://github.com/xiaoluoboding/vue-sonner/pull/101
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.2.5...v1.3.0
Nothing published for this version
`ts // nuxt.config.ts export default defineNuxtConfig({ ... modules: ['vue-sonner/nuxt'] }) `
Use vue-sonner/nuxt module
// nuxt.config.ts
export default defineNuxtConfig({
...
modules: ['vue-sonner/nuxt']
})
Use Toaster component and $toast function anywhere in the Vue SFC
<!-- app.vue -->
<template>
<div>
<Toaster position="top-right" />
<button @click="() => $toast('My first toast')">Render a toast</button>
</div>
</template>
<script setup lang="ts">
const { $toast } = useNuxtApp()
</script>
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.2.3...v1.2.4
Add playwright test from Sonner package and fix dismiss function by @CMarzin in https://github.com/xiaoluoboding/vue-sonner/pull/91
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.2.2...v1.2.3
pass class, toastOptions class/classes to toast li element
feat: sonner updates by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/83
sonner updates by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/83Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.1.5...v1.2.0
Nothing published for this version
fix(Toast): :bug: move the heights update to Toaster.vue by @davidramosweb in https://github.com/xiaoluoboding/vue-sonner/pull/76
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.1.3...v1.1.4
fix(README): Fix typo in markRaw import by @CernyMatej in https://github.com/xiaoluoboding/vue-sonner/pull/65
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.1.2...v1.1.3
fix: resolve #56 via checking for array type by @Saeid-Za in https://github.com/xiaoluoboding/vue-sonner/pull/57
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.1.1...v1.1.2
fix: toaster class by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/55
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.1.0...v1.1.1
@microsoft/api-extractor to merge all types files in one d.ts file (83f27fa)Nothing published for this version
fix: blurry text in chromium by @itsTPM in https://github.com/xiaoluoboding/vue-sonner/pull/48
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.0.3...v1.0.4
feat: inject css by @sadeghbarati in https://github.com/xiaoluoboding/vue-sonner/pull/40
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.0.2...v1.0.3
fix: fixed the promise bug by @xiaoluoboding in https://github.com/xiaoluoboding/vue-sonner/pull/35
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.0.1...v1.0.2
feat: make promise return promise by @xiaoluoboding in https://github.com/xiaoluoboding/vue-sonner/pull/33
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v1.0.0...v1.0.1
feat: add info & warning type for toast by @xiaoluoboding in https://github.com/xiaoluoboding/vue-sonner/pull/31
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.4.4...v1.0.0
feat: export toaster props by @xiaoluoboding in https://github.com/xiaoluoboding/vue-sonner/pull/29
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.4.3...v0.4.4
fix: remove default offset by @wobsoriano in https://github.com/xiaoluoboding/vue-sonner/pull/26
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.4.2...v0.4.3
fix: ignore type definitions by @cjboy76 in https://github.com/xiaoluoboding/vue-sonner/pull/24
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.4.0...v0.4.2
### Bug Fixes * ignore type definitions
docs: simplify props by @wobsoriano in https://github.com/xiaoluoboding/vue-sonner/pull/22
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.3.3...v0.4.0
fix: custom styling with toastOptions by @cjboy76 in https://github.com/xiaoluoboding/vue-sonner/pull/14
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.3.2...v0.3.3
feat(docs) use plugins provide insted of globalProperties by @cirolosapio in https://github.com/xiaoluoboding/vue-sonner/pull/8
Full Changelog: https://github.com/xiaoluoboding/vue-sonner/compare/v0.3.1...v0.3.2
### Bug Fixes * fixed issue #2 (c8adec1) ### Features * add copy icon (1cb61e8) * add header for SEO (9571b9d) * add seo meta (9317f63) * change brand
Nothing published for this version
### Features * add side effects
Nothing published for this version
### Features * change the highlight style (56c9a4b) * change the style import
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.