Skip to content

Releases: rafaucau/ts-dom-utils

v2.2.0

22 Nov 20:39
Compare
Choose a tag to compare

Minor Changes

3f66d1e:

  • Simplified createElement to handle all object properties, including style.
  • Fixed issue with styles not applying correctly.
  • Updated style type in SpecialAttributes to Partial<CSSStyleDeclaration> for editor hints and flexibility.

v2.1.0

22 Sep 18:46
Compare
Choose a tag to compare

Fixes

  • Type Definitions: Corrected and improved type definitions for the createElement function. The function now uses TypeScript's built-in types for DOM elements, providing better type inference and editor support.

image
image

v2.0.0

02 Jul 21:31
Compare
Choose a tag to compare
  • Breaking Change: DOMisReady has 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

26 May 19:02
Compare
Choose a tag to compare
docs: Update info

v1.0.1

26 May 18:32
Compare
Choose a tag to compare

Exclusion of unnecessary files

v1.0.0 - Initial release

26 May 18:03
Compare
Choose a tag to compare
docs: Add divider