Releases: webtides/element-js
Releases · webtides/element-js
v1.1.6
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
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
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
What's Changed
- fix: unsafeHTML not rendering multiple nodes by @eddyloewen in #136
- 132 renderer handle early return from templates by @eddyloewen in #137
Full Changelog: v1.1.2...v1.1.3
v1.1.2
v1.1.1
[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
[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
[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 oldlit-html
renderer. The API and usage should be exactly the same. The only thing to do/change is the use of the oldlit-html
directives. For detailed instructions see the upgrade guide. (#67) - BREAKING
element-js
will now also trigger theafterUpdate
hook right after theconnected
hook. This is to reduce the cases where you had to do the same things inconnected
andafterUpdate
. You can now remove those duplicate calls from theconnected
hook. (#60) - BREAKING Changed
package.json
type tomodule
. 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
andcomposed
will now betrue
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 optionchildListUpdate
. Please use the "mutationObserverOptions" dictionary instead. See the docs for more info. (#99) - BREAKING Removed the
hooks
map in theBaseElement
. 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 theBaseElement
. 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
inStyledElement
. (#99) - BRAKING Removed the
i18n
helper function. See CHANGELOG how to implement it yourself or use a third party library.