Skip to content

Releases: metonym/svelte-dark-mode

v2.1.0

23 Jan 18:39
Compare
Choose a tag to compare
  • update JSDoc/type description for theme prop

v2.0.0

23 Jan 18:39
Compare
Choose a tag to compare
  • use .svelte.d.ts extension for TypeScript component definitions

v1.0.0

07 Mar 19:59
Compare
Choose a tag to compare

Breaking Changes

  • theme type changed to "dark" | "light"

Features

  • validate the theme value at runtime (must be either "dark" or "light")
  • add event listener to automatically update the theme

v0.3.0

22 Dec 13:23
Compare
Choose a tag to compare
  • use SvelteComponentTyped interface in TypeScript definitions

v0.2.0

17 Nov 19:15
Compare
Choose a tag to compare

Features

  • Add TypeScript definitions

v0.1.1

17 Sep 15:52
Compare
Choose a tag to compare

Fixes

  • Fix bug where initial theme switch is not persisted in window.localStorage