Releases: rafaucau/ts-dom-utils
Releases · rafaucau/ts-dom-utils
v2.3.1
Patch Changes
- 575a6b9: Fix module and types resolution by adding the
"exports"field topackage.json. This ensures that correct types (.d.tsfor ESM and.d.ctsfor CJS) and module formats are loaded depending on the environment and import method (importvsrequire), fixing compatibility with modern Node.js and strict bundler configurations.
v2.3.0
Minor Changes
- 5880a7b: Add HTML, SVG, and MathML tag name overloads for
qsandqsa, enabling automatic type inference for tag selectors (e.g.qs('div')returnsHTMLDivElement | null) - a0f525e: Add typed
aria-*anddata-*custom attribute support inCreateElementOptions - c69b5e4: Added
onoption tocreateElementfor attaching event listeners. Supports a plain handler or an object withhandlerandoptions(e.g.once,passive).
v2.2.1
Patch Changes
- Fix typo in
aria-expandedattribute increateElementexample - Update publish workflow to use OpenID Connect
- Update dependencies
Full Changelog: v2.2.0...v2.2.1
v2.2.0
v2.1.0
v2.0.0
- Breaking Change:
DOMisReadyhas been updated to be a function that accepts a Document object as an argument. This is a breaking change from version 1.0.0 where DOMisReady was a promise object. This change allows users to check the readiness of any document, such as an iframe's content document. Please update your usage of DOMisReady accordingly.
Old Usage:
// using then
DOMisReady.then(() => {
// DOM manipulation code here
});
// using async/await
(async function() {
await DOMisReady;
// DOM manipulation code here
})();New Usage:
// using then
DOMisReady().then(() => {
// DOM manipulation code here
});
// using async/await
(async function() {
await DOMisReady();
// DOM manipulation code here
})();- Documentation has been updated
- Dependencies have been updated
Full Changelog: v1.1.0...v2.0.0
v1.1.0 - DOMisReady util
docs: Update info
v1.0.1
v1.0.0 - Initial release
docs: Add divider

