Releases: Byloth/vuert
v1.3.2
v1.3.1
Patch release
- Resolved a compatibility problem with the
AlertHandler
component's TypeScript types.
v1.3.0
Minor release
Improved AlertHandler
component
It now expose a couple of new values inside its v-slot
context:
customComponent
: it no longer resides inside thealert
value.
You can now passalert
to thecustomComponent
as aprop
without also passing its own reference again.queue
: it's a numeric value that describes how many alerts are registered to the sameAlertHandler
instance.
You can vary the display of components, for example by showing a counter like1 of 3
or creating a "stacking" effect; note that you won't be able to access other instances ofAlert
instances.
Throttling Alert
emission
You are now able to throttle the Alert
emission (perhaps due to some application problem), avoiding spamming the UI with the same Alert
hundreds of times.
This case will throw a new AlertThrottledException
.
v1.2.2-rc.4
Release candidate
- Added missing export for
AlertThrottledException
class.
v1.2.2-rc.3
Release Candidate
- Solved a problem while throttling an emitted alert.
v1.2.2-rc.2
Release Candidate
- Now it looks for the Alert ID before applying the throttling behaviour.
v1.2.2-rc.1
Release Candidate
- Implemented throttling behaviour.
v1.2.1
Patch release
Added the Vuert.js' module for Nuxt.js
To use it, simply install it as dependency in your Nuxt.js project...
npm install --save-dev @byloth/nuxt-vuert-module
... then add it in your nuxt.config.ts
file:
export default defineNuxtConfig({
/* [...] */
modules: [
/* [...] */
"@byloth/nuxt-vuert-module"
],
/* [...] */
})
You will be able to access the AlertHandler
component and the useVuert
composable without importing anything into your *.vue
file... Nuxt.js will imports that for you automatically.
Also, you will able to access the Vuert.js active instance by simply using the syntax:
const { $vuert } = useNuxtApp();
v1.2.0
Minor release
Now whenever you'll call the emit
method, it will return back the instance on the Context
attached to the emitted Alert
.
You can subscribe for onOpening
, onOpened
, onClosing
and onClose
events and programmatically call methods open
, reject
and resolve
on it.
You can also await
it just like a normal Promise
and it will return the alert result.