Skip to content

Releases: fregante/select-dom

v9.2.0

04 Nov 06:26
Compare
Choose a tag to compare

v9.1.1...v9.2.0

v9.1.0

27 Oct 12:04
Compare
Choose a tag to compare

v9.0.1...v9.1.0

v9.0.1

26 Oct 10:28
Compare
Choose a tag to compare
  • Accept read-only selector array types (#29) 0a0e39c

v9.0.0...v9.0.1

v9.0.0

20 Oct 17:44
Compare
Choose a tag to compare

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

  • Speed up select.all array conversion (#21) 824620e

v8.0.0...v9.0.0

v8.0.0

07 Jul 15:55
Compare
Choose a tag to compare

Breaking changes

  • Output ES2020 code, improve ESM support a475ba4

v7.1.1...v8.0.0

v7.1.0

04 Jan 00:00
Compare
Choose a tag to compare

Major changes for v7

  • IE support dropped (if you need it, use select-dom@v6 or polyfill NodeList[Symbol.iterator])
  • select and select.last now return undefined instead of null 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

v6.0.2...v7.1.0

v6.0.2

01 May 10:41
Compare
Choose a tag to compare

Patches

  • Exclude source map reference from npm package: a9dc91b

v6.0.1

07 Apr 01:17
Compare
Choose a tag to compare

Patches

  • Update dependencies and lint: 48514ac

v6.0.0

15 Dec 17:40
Compare
Choose a tag to compare

Major Changes

Patches

  • Add support for array of selectors in TypeScript types: #12

v5.1.0

25 May 07:08
Compare
Choose a tag to compare

Minor Changes

Patches

Credits

Thanks to @zsavajji for helping!