- Fixed for TypeScript 5.5.
- Fixed handling
unknown
incorrectly. (Fix #36)
- Fixed for TypeScript 5.4. (Fix #35)
- Added
.js
extension in import statements.
- Setup publishing on GitHub Actions. No code changes.
- Reverted to fallback to
Element
, notHTMLElement
.
- Fixed regression of specifying fallback type. (Fix #33)
- Fixed some cases of
:is()
and:where()
by rewriting the expanding logic. - Fixed template with dynamic interpolation.
- Added fallback support to strict parser.
- Fallback to
HTMLElement
forHTMLElement
,Document
andDocumentFragment
. (Close #29)
- Fixed passing
string
type as argument in strict parser. - Fixed some cases of
:is()
and:where()
.
- Export "strict" parser. (Close #25)
- Removed exported private type
ParseSelectorToTagNames
.
- Require TypeScript 4.7.
- Fixed invalid result after expanding
:is
or:where
function. (Fix #23)
- Fixed support of TypeScript 4.5.
- Support
.closest()
method onElement
. (Close #16)
- Fixed a regression bug which is introduced in v2.5.2.
- Fixed attribute syntax in
:is()
and:where()
. (Fix #15)
- Fixed regression bug: fallback type doesn't work. (Fix #14)
- Added support for
:is()
and:where()
pseudo-classes. (Fix #13)
- Fixed return type in shim can be cast.
- Fixed errors with disabled
skipLibCheck
. - Allowed to specify custom fallback type when failed to parse selector.
(only for
ParseSelector
type, not forquerySelector
function)
- Treat empty string as syntax error.
- Treat empty attribute
[]
as syntax error. - Added namespace prefix support.
- Added strict mode.
- Fixed precedences between combinators and groupings.
- Process quotes separately.
- Added simple selector syntax check.
- Refactor types.
- Fixed possible OOM.
- Fixed arbitrary content in attribute.
- Fixed multiline with starting tabs or spaces.
- Support tabs in selector string.
- Support pseudo-classes in selector.
- Fixed more kinds of whitespace characters in selector.
- Fixed combinator characters in attribute of selector.
- Added
types
field to package.json.
- Breaking change:
querySelector
andquerySelectorAll
from this package are removed. You just need to import this package then usedocument.querySelector
normally. Check out readme for detailed usage.
- Publish declaration map.
- Initial release.