Releases: metonym/svelte-dark-mode
Releases · metonym/svelte-dark-mode
v2.1.0
- update JSDoc/type description for
theme
prop
v2.0.0
- use
.svelte.d.ts
extension for TypeScript component definitions
v1.0.0
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
- use
SvelteComponentTyped
interface in TypeScript definitions
v0.2.0
Features
- Add TypeScript definitions
v0.1.1
Fixes
- Fix bug where initial theme switch is not persisted in
window.localStorage