Skip to content

Releases: pearofducks/svelte-match-media

Fix TS types

31 Mar 14:03
Compare
Choose a tag to compare

Previously setup and createMedia were (mis)typed as returning another function. This has been corrected and the types file has been cleaned up to (hopefully) be a bit more understandable.

Add `createMedia` export

26 Sep 08:01
Compare
Choose a tag to compare

This release changes nothing about existing imports, and only adds one new import createMedia. This function will create an entirely new media object - which both aids uses who want to avoid the live-binding export, as well as if users want to separate their queries into different stores.

Add Typescript definition

01 Jul 07:05
Compare
Choose a tag to compare