Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.2.2
=====

* (deprecation) Deprecate `matchMediaQuery()`, use `window.matchMedia()` directly.
* (deprecation) Deprecate `addConsecutiveClasses()`, use Framer Motion or a different animation library instead.


2.2.1
=====

Expand Down
2 changes: 2 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
==========

* The `createEvent` helper was removed, use `new CustomEvent()` directly.
* Removed `matchMediaQuery()`, use `window.matchMedia()` directly.
* Removed `addConsecutiveClasses()`, use Framer Motion or a different animation library instead.


1.x to 2.0
Expand Down
2 changes: 2 additions & 0 deletions src/animation.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/**
* Adds two classes in consecutive animation frames.
*
* @deprecated use Framer Motion or a different animation library instead
*/
export function addConsecutiveClasses (
element: HTMLElement,
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
8 changes: 7 additions & 1 deletion src/popup-interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import {off, on} from './dom/events';
import {isChildOf} from './dom/traverse';

export interface DismissibleContainerDirector {
/**
* Close function
*/
(): void;
destroy(): void;
}
Expand All @@ -12,7 +15,10 @@ export interface DismissibleContainerDirector {
*
* Returns a callback to remove the listener.
*/
export function registerBodyClickHandler (allowedClickTargets: HTMLElement[], onInvalidTargetClick: () => void) : () => void
export function registerBodyClickHandler (
allowedClickTargets: HTMLElement[],
onInvalidTargetClick: () => void,
) : () => void
{
let handler = (event: Event) => {
for (let i = 0; i < allowedClickTargets.length; i++)
Expand Down