Skip to content

v0.6.3

Compare
Choose a tag to compare
@ghiscoding ghiscoding released this 10 Nov 06:27
· 554 commits to main since this release

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 valid CSSStyleDeclaration (i.e.: font-weight: 'bold' should be fontWeight: 'bold') so that we can then pass it to our native HTML Element. Because this is an extra step, we decided to deprecate styler in favor of cssStyler which only accept CSSStyleDeclaration.

Features

Performance Improvements

Bug Fixes