Skip to content

Releases: webtides/element-js

v1.1.6

23 Jan 10:13
Compare
Choose a tag to compare

What's Changed

  • test: adds (not) failing test for diffing arrays of template results by @eddyloewen in #145
  • fix: re-rendering between static strings and dynamic html by @eddyloewen in #141

Full Changelog: v1.1.5...v1.1.6

v1.1.5

14 Nov 09:42
Compare
Choose a tag to compare

What's Changed

  • fix: using special characters in attribute static strings by @eddyloewen in #139

Full Changelog: v1.1.4...v1.1.5

v1.1.4

12 Nov 08:30
Compare
Choose a tag to compare

What's Changed

  • feat: implements support for interpolations inside text only nodes li… by @eddyloewen in #138

Full Changelog: v1.1.3...v1.1.4

v1.1.3

11 Nov 11:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1.2...v1.1.3

v1.1.2

30 Oct 18:38
Compare
Choose a tag to compare

What's Changed

  • fix(rendering): fixing errors while rendering where template is undef… by @quarkus in #130

Full Changelog: v1.1.1...v1.1.2

v1.1.1

16 Sep 15:36
Compare
Choose a tag to compare

[1.1.1] - 2024-09-16

FIXED

  • Fixed base url and css rules order in adopted style sheets.
  • Fixed randomUUID not being available in unsecure hosts (like localhost) by adding a helper function

v1.1.0

24 Jun 10:54
Compare
Choose a tag to compare

[1.1.0] - 2024-06-24

Added

  • Added optionalAttribute directive to conditionally render attributes (plus value)

FIXED

  • Fixed spreadAttributes to not render "null|undefined|NaN" to the attributes value but removing the entire attribute
    when such values are passed.

v1.0.0

24 May 13:46
Compare
Choose a tag to compare

[1.0.0] - 2024-05-24

Added

  • Added our own versions of directives and template helpers (#67)
  • Added JSDocs for everything in the codebase. This will especially be helpful when using constructor options.
  • Added state serialization. This improves hydration from SSR a lot. (#106)
  • added declarative shadow dom rendering for template elements

Changed

  • BRAKING Uses a new custom renderer for the TemplateElement. It replaces the old lit-html renderer. The API and usage should be exactly the same. The only thing to do/change is the use of the old lit-html directives. For detailed instructions see the upgrade guide. (#67)
  • BREAKING element-js will now also trigger the afterUpdate hook right after the connected hook. This is to reduce the cases where you had to do the same things in connected and afterUpdate. You can now remove those duplicate calls from the connected hook. (#60)
  • BREAKING Changed package.json type to module. This should hopefully not break anything. element-js is either used directly from the browser or through a bundler. In both cases the added type: module should not matter. (#64)
  • BRAKING Changed the default options when using the dispatch helper function. bubbles, cancelable and composed will now be true by default.
  • BRAKING Changed adopting global styles to include ALL global styles. Previously only one inline <style> with the ID of '#globalStyles' would be adopted. For more information see the docs.

Removed

  • BREAKING Removed the lit-html dependency. element-js is now officially dependency free! (#67)
  • BREAKING Removed the deprecated BaseElement constructor option childListUpdate. Please use the "mutationObserverOptions" dictionary instead. See the docs for more info. (#99)
  • BREAKING Removed the hooks map in the BaseElement. Using the hooks() map for lifecycle hooks is deprecated! Please overwrite the existing lifecycle hook functions. See the docs for more info. (#99)
  • BREAKING Removed the computed map in the BaseElement. Using the computed() map for computed properties is deprecated! Please use regular JS getters and return the computed value. See the docs for more info. (#99)
  • BREAKING Removed all occurrences of ShadyCSS in StyledElement. (#99)
  • BRAKING Removed the i18n helper function. See CHANGELOG how to implement it yourself or use a third party library.

v0.7.3

07 Mar 17:02
Compare
Choose a tag to compare
chore: bump version for release

v0.7.1

03 Mar 16:15
Compare
Choose a tag to compare
chore: bump version for release