Releases: fregante/select-dom
Releases · fregante/select-dom
v9.2.0
v9.1.0
v9.0.1
v9.0.0
Breaking changes
The API was updated to be similar to the console API, making is shorter (#22) 1ca2b13
// Before
import select from 'select-dom';
select()
select.all()
select.last()
select.exists()
// After
import {$, $$, lastElement, elementExists} from 'select-dom';
$()
$$()
lastElement()
elementExists()
New
It's the same as select
, but it will throw an error if the element isn't found. This also means that the return type in TypeScript is HTMLElement
instead of HTMLElement | undefined
Enhancements
v8.0.0
v7.1.0
Major changes for v7
- IE support dropped (if you need it, use
select-dom@v6
or polyfillNodeList[Symbol.iterator]
) select
andselect.last
now returnundefined
instead ofnull
if the element wasn't found
TypeScript changes
- Types are automatically detected by parsing the selector (with typed-query-selector, requires TypeScript 4.1+)
Bugfixes
- When passing an array as base element to
select.all
, now any results are deduplicated