@sweberdev/derivative-vue
@sweberdev/derivative-vue
Vue 3 bindings for Derivative: the <derivative-widget> as a component and a composable for your own UI.
pnpm add @sweberdev/derivative @sweberdev/derivative-vue
<script setup lang="ts">
import { WhatsNew } from "@sweberdev/derivative-vue";
</script>
<template>
<WhatsNew src="/changelog.json" lang="de" highlight search @read="(id) => console.log(id)" />
</template>
Props match the widget attributes in camelCase (storageKey), with types as an array and search and hints as booleans, highlight as true, "toast", "banner" or "modal", audience as an array, plus feed, messages and an icon slot. Events: open and read. In Nuxt, wrap it in <ClientOnly>.
useChangelog({ src }) returns refs status, feed, releases, unread, error and a markAllRead() function for building your own UI.
Docs: packages.sweber.dev/derivative/docs/guides/vue. MIT licensed.
Related Packages
Vite plugin to generate an app version file (version.json) and optional virtual...
Nuxt module for Forumulate: auto-registered comments, search, changelog and feed...
Vite plugin for web update notification — detect a new version on every page loa...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.0 | >=3.3 | MIT | |
| 1.0.0 | >=3.3 | MIT | |
| 0.9.0 | >=3.3 | MIT | |
| 0.8.0 | >=3.3 | MIT | |
| 0.7.0 | >=3.3 | MIT | |
| 0.6.0 | >=3.3 | MIT | |
| 0.5.0 | >=3.3 | MIT |
Pre-releases (1)
| Version | Released | Vue | License |
|---|---|---|---|
| 2.0.0-next.0 | >=3.3 | MIT |