Skip to content

Releases: Ayc0/mock-match-media

v0.4.3

29 Jun 12:57
Compare
Choose a tag to compare

What's Changed

  • [types] fix path to types and add types in exports field in #38

Full Changelog: v0.4.2...v0.4.3

v0.4.2

02 Nov 01:05
Compare
Choose a tag to compare

Removed .vscode from what's published to npm

Full Changelog: v0.4.1...v0.4.2

v0.4.1

02 Nov 01:01
Compare
Choose a tag to compare

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

01 Nov 20:45
Compare
Choose a tag to compare

What's Changed

  • Align with browsers behaviors for listeners in #27
  • Remove node 17, and add support for node 18 & 19 in #28

Full Changelog: v0.3.0...v0.4.0

v0.3.0

23 Jan 15:52
Compare
Choose a tag to compare

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 with dispatchEvent 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

23 Jan 06:46
Compare
Choose a tag to compare
v0.3.0-beta.2 Pre-release
Pre-release

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 with dispatchEvent 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

20 Jan 17:12
Compare
Choose a tag to compare

Update readme

Full Changelog: v0.2.0...v0.2.1

v0.2.0

20 Jan 17:10
Compare
Choose a tag to compare

What's Changed

  • Change values for the eventPhase on defaultEvent in #6
  • In case of invalid query, fallback to 'not all' in #7
  • Include check on globalThis, global, and window 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

18 Jan 02:16
Compare
Choose a tag to compare

Full Changelog: v0.1.3...v0.1.4