Releases: lsphillips/wait-for-the-element
Releases · lsphillips/wait-for-the-element
v4.0.2
v4.0.1
Changed
- Updated the
ElementSearchOptions
TypeScript definition,scope
is now of typeParentNode
.
v4.0.0
Changed
- Changed
waitForTheElement()
to returnnull
when a matching element is not found. It no longer throws an error. - Changed
waitForTheElementToDisappear()
to return a boolean, it will returntrue
when no elements are matching orfalse
if a match still exsits. It no longer throws an error.
v3.0.0
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 ofwaitForTheElement
.
Removed
- Removed
tryAndWaitForTheElement()
.
v2.2.0
Added
- Introduced a browser entry point that is ES5 compatible and minified.
v2.1.0
Added
- Introduced documentation to the Typescript type definitons.
Changed
- The type definitions for
waitForTheElement()
andtryAndWaitForTheElement()
now enforces that the return type must extendElement
.
v2.0.0
Added
- Introduced the
tryAndWaitForTheElement()
function that will returnnull
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
The initial public release.