Skip to content

Releases: lsphillips/wait-for-the-element

v4.0.2

26 May 15:20
Compare
Choose a tag to compare

The package repository has moved and it's now reflected in the package metadata; this version contains no functionality changes.

v4.0.1

27 Oct 22:38
Compare
Choose a tag to compare

Changed

  • Updated the ElementSearchOptions TypeScript definition, scope is now of type ParentNode.

v4.0.0

22 Jul 16:24
Compare
Choose a tag to compare

Changed

  • Changed waitForTheElement() to return null when a matching element is not found. It no longer throws an error.
  • Changed waitForTheElementToDisappear() to return a boolean, it will return true when no elements are matching or false if a match still exsits. It no longer throws an error.

v3.0.0

01 Jul 15:30
Compare
Choose a tag to compare

Added

  • Introduced waitForTheElementToDisappear() that will wait for all elements to stop matching a provided selector.
  • Introduced an ESM version of this module that will be used when being imported using import.

Changed

  • Change observations are optimized for selectors using attributes; this module will scan your CSS selectors for any attributes and only react to changes of those attributes.
  • Removed unnecessary files from the package making it more lightweight.
  • This module is now transpiled using Babel.
  • The UMD version of this module now exposes itself using the name wait-for-the-element instead of waitForTheElement.

Removed

  • Removed tryAndWaitForTheElement().

v2.2.0

04 Jun 21:44
Compare
Choose a tag to compare

Added

  • Introduced a browser entry point that is ES5 compatible and minified.

v2.1.0

05 Dec 22:02
Compare
Choose a tag to compare

Added

  • Introduced documentation to the Typescript type definitons.

Changed

  • The type definitions for waitForTheElement() and tryAndWaitForTheElement() now enforces that the return type must extend Element.

v2.0.0

25 Sep 20:55
Compare
Choose a tag to compare

Added

  • Introduced the tryAndWaitForTheElement() function that will return null instead of throwing an error when a matching element is not found in time.

Changed

  • The module no longer exports a function.

v1.0.0

25 Sep 00:57
Compare
Choose a tag to compare

The initial public release.