Skip to content

Commit

Permalink
Deprecate matchMediaQuery()
Browse files Browse the repository at this point in the history
  • Loading branch information
apfelbox committed May 7, 2024
1 parent 6ef23dc commit 4272c2a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2.2.2
=====

* (deprecation) Deprecate `matchMediaQuery()`, use `window.matchMedia()` directly.


2.2.1
=====

Expand Down
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
==========

* The `createEvent` helper was removed, use `new CustomEvent()` directly.
* Removed `matchMediaQuery()`, use `window.matchMedia()` directly.


1.x to 2.0
Expand Down
2 changes: 2 additions & 0 deletions src/media-query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ export interface MediaQueryMatcher

/**
* Creates a new media query matcher
*
* @deprecated just use `matchMedia` directly.
*/
export function matchMediaQuery (query: string): MediaQueryMatcher
{
Expand Down

0 comments on commit 4272c2a

Please sign in to comment.