Skip to content

Releases: Byloth/vuert

v1.3.2

17 Apr 07:45
32853b0
Compare
Choose a tag to compare

Patch release

  • Fixed the type of the AlertHandler's Context's resolve method.
    Now you can call resolve without explicitly passing a parameter.

v1.3.1

28 Mar 16:04
ac4781b
Compare
Choose a tag to compare

Patch release

  • Resolved a compatibility problem with the AlertHandler component's TypeScript types.

v1.3.0

24 Feb 18:44
b8cc623
Compare
Choose a tag to compare

Minor release

Improved AlertHandler component

It now expose a couple of new values inside its v-slot context:

  • customComponent: it no longer resides inside the alert value.
    You can now pass alert to the customComponent as a prop without also passing its own reference again.
  • queue: it's a numeric value that describes how many alerts are registered to the same AlertHandler instance.
    You can vary the display of components, for example by showing a counter like 1 of 3 or creating a "stacking" effect; note that you won't be able to access other instances of Alert 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

09 Feb 17:15
e951f73
Compare
Choose a tag to compare
v1.2.2-rc.4 Pre-release
Pre-release

Release candidate

  • Added missing export for AlertThrottledException class.

v1.2.2-rc.3

09 Feb 13:17
20b1482
Compare
Choose a tag to compare
v1.2.2-rc.3 Pre-release
Pre-release

Release Candidate

  • Solved a problem while throttling an emitted alert.

v1.2.2-rc.2

08 Feb 18:17
7946297
Compare
Choose a tag to compare
v1.2.2-rc.2 Pre-release
Pre-release

Release Candidate

  • Now it looks for the Alert ID before applying the throttling behaviour.

v1.2.2-rc.1

08 Feb 16:44
dd5776f
Compare
Choose a tag to compare
v1.2.2-rc.1 Pre-release
Pre-release

Release Candidate

  • Implemented throttling behaviour.

v1.2.1

05 Feb 08:55
f33a99c
Compare
Choose a tag to compare

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

08 Jan 10:36
2cee5ec
Compare
Choose a tag to compare

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.

v1.1.0

16 Jul 10:11
16356f7
Compare
Choose a tag to compare

Minor release

  • Solved missing definition for AlertHandler component.