v4.0.0 — Vue 3 rewrite
Vue 2 → Vue 3, rewritten in TypeScript.
Highlights
- 🧩 Vue 3 plugin + composable — named, reactive
matchMediabreakpoints;$currentViewportreactive in every component - 🐛 Fixed the reactivity bug — components now re-render on breakpoint change; replaced deprecated
MediaQueryList.addListener - ✅ 17 tests, 100% coverage against a
matchMediamock that exercises real breakpoint switching - 📦 0 vulnerabilities; Vite library build (ESM + CJS + UMD + types)
Breaking (v3 → v4)
- Now Vue 3 only. Migration note in the README.
npm publish of vue-viewports@4.0.0 follows shortly.