Releases: Ayc0/mock-match-media
Releases · Ayc0/mock-match-media
v0.4.3
v0.4.2
Removed .vscode
from what's published to npm
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's Changed
This includes a breaking change, but it should have been included in the 0.4.0, so releasing this as a minor.
- Update readme in #31
- Only call
.onchange
for change events in #32 - [dispatchEvent] check argument in #33
- [test][onchange] add test case for once in #34
Full Changelog: v0.4.0...v0.4.1
v0.4.0
v0.3.0
What's Changed
- Remove useless check on
.has
before a.get
in #13 - [MediaState] fix
undefined
type in built file in #14 - Add test for
jest-setup
in #15 - test: add test case for multiple calls of listeners in #16
- patch: remove
tests/
and.github/
folders from npm in #17 - patch: add MIT license in #18
- minor: matches is now a getter in #19
- minor: set compilation target to node and drop UMD in #20
- minor: use
MediaQueryListEvent
instead of object + set it in global scope in #21 - minor: use
test.serial
+ mock in #22 - minor: Add
dispatchEvent
+ change all internals for better interop with different kind of listeners and withdispatchEvent
in #23 - minor: implement
onchange
in #24 - minor: implement
once: true
in #25
Full Changelog: v0.2.1...v0.3.0
v0.3.0-beta.2
What's Changed
- Remove useless check on
.has
before a.get
in #13 - [MediaState] fix
undefined
type in built file in #14 - Add test for
jest-setup
in #15 - test: add test case for multiple calls of listeners in #16
- patch: remove
tests/
and.github/
folders from npm in #17 - patch: add MIT license in #18
- minor: matches is now a getter in #19
- minor: set compilation target to node and drop UMD in #20
- minor: use
MediaQueryListEvent
instead of object + set it in global scope in #21 - minor: use
test.serial
+ mock in #22 - minor: Add
dispatchEvent
+ change all internals for better interop with different kind of listeners and withdispatchEvent
in #23 - minor: implement
onchange
in #24 - minor: implement
once: true
in #25
Full Changelog: v0.2.1...v0.3.0-beta.2
v0.2.1
Update readme
Full Changelog: v0.2.0...v0.2.1
v0.2.0
What's Changed
- Change values for the
eventPhase
ondefaultEvent
in #6 - In case of invalid query, fallback to
'not all'
in #7 - Include check on
globalThis
,global
, andwindow
for the polyfill. Also avoid setting global.window = global in #8 - Avoid mutating callbacks and storing on them the result of the previous match in #9
- ship cleanup functions in #10
- Tests & exports in #11
- add
jest-setup.cjs
in #12
Dev only:
- update microbundle in #5
Full Changelog: v0.1.4...v0.2.0
v0.1.4
Full Changelog: v0.1.3...v0.1.4