Skip to content

v4.0.0 — Vue 3 rewrite

Choose a tag to compare

@scaccogatto scaccogatto released this 28 Jun 09:34
· 29 commits to master since this release

Vue 2 → Vue 3, rewritten in TypeScript.

Highlights

  • 🧩 Vue 3 plugin + composable — named, reactive matchMedia breakpoints; $currentViewport reactive in every component
  • 🐛 Fixed the reactivity bug — components now re-render on breakpoint change; replaced deprecated MediaQueryList.addListener
  • 17 tests, 100% coverage against a matchMedia mock 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.