Breaking changes:
- Add support for Vue.js characters in attribute names (
@.
). - Rename
HTMLBuildAttributes
class toComposer
. - Reorganize library:
- Un-nest contents of the
lib/
directory/export. - Group attribute (tuple) related modules under
attr/
fromlib/sort/sort-ordered-attributes.js
. - Group name related modules under
name/
fromlib/util/is-valid-attribute-name.js
. - Group value related modules under
value/
fromlib/escape/*.js
andlib/filter/*.js
. - Rename documentation file names to reflect relation to attribute, name, or value.
- Un-nest contents of the
- Ensure
README.md
andLICENSE
files are included in NPM distribution.
- Reorganize TypeScript building and NPM distribution.
- Revert NPM manifest to include
main
andtypes
matching package module type.
- Revert NPM exports back to
import
/require
instead ofrequire
/default
. - Add
sideEffects
hint to NPM manifest. - Remove source maps from distribution files since we do not include source.
Breaking changes:
- Replace underperformant throw/catch pattern with a classic fallback/middleware pattern.
- Replace
createFilterResolver()
withcreateFilterMiddleware()
. - Replace
createFilterArray()
withcreateFilterList()
. - Add
createFilterCallable()
for a more versatile name; this filter is not recursive unlike its predecessorfilterFunction()
. - Add
filterFallback()
to resolve the fallback argument with support for the middleware pattern. - Remove obsolete
createFilterChain()
. - Fix TS/JSDoc reference.
Note: With Node v16+, the V8 coverage is reporting false-negatives.
- Require at least Node v16
- Improve
AttrValueEscaper
type to include the attribute name. - Remove
null
fromAttrValue
type; redundant givenfalse
has the same behaviour and simplifies the typing. - Update TypeScript configuration and NPM exports:
- Emit dedicated TS declaration files and maps for CJS and ESM instead of a set of unified declaration files which risks being incompatible for either CJS or ESM.
- Add dedicated root package index to export all modules.
- Fix throwing new
TypeError
increateFilterArray()
factory function.
- Fix main entry points to target default instance.
- Initial public release.