v0.6.3
0.6.3 (2023-11-13)
CSP Compliant
The focus of this release was around CSP (Content Security Policy) compliance, all dynamic html string were replaced by native HTML Element and a lot of code refactoring had to be done to make it all work. There are some exception though, if you still use html string as template, you will not be compliant unless you return TrustedHTML
, you can get more info on the main readme homepage.
⚠️ Deprecation
styler
is now deprecated and replaced by cssStyler
.
styler
was built around the fact that we use HTML string and we pass any style to the html string but now that we converted html string to native HTML Element, these style are not compatible and need extra work since we need to convert CSS style them to validCSSStyleDeclaration
(i.e.:font-weight: 'bold'
should befontWeight: 'bold'
) so that we can then pass it to our native HTML Element. Because this is an extra step, we decided to deprecatestyler
in favor ofcssStyler
which only acceptCSSStyleDeclaration
.
Features
- add
cssStyler
option to use typed CSSStyleDeclaration props (#148) (8ad2b28) - by @ghiscoding - add
showSearchClear
option to clear search input (#147) (32de6f2) - by @ghiscoding - replace all dynamic html strings by pure HTML elements (#144) (adcc33d) - by @ghiscoding
- VirtualScroll replace all html strings to pure HTML elements (#146) (8731387) - by @ghiscoding
Performance Improvements
- don't recreate items list twice while filtering (#154) (5e58ceb) - by @ghiscoding
- use array of html struct instead of plain HTML Element (#153) (6731228) - by @ghiscoding
Bug Fixes
- input checkbox value should always be included even when null (#158) (4d33cff) - by @ghiscoding
- [improve types & exports for all bundler](fix: improve build & types exports for all targets, Node, CJS/ESM) (#161) (b4ad0ac) - by @ghiscoding
@types/trusted-types
should be lib dependency (#162) (946de83) - by @ghiscoding