1.3.0
Version 1.3.0 marks a stability milestone with various improvements and refinements, making this the recommended version for new projects.
Global
Serviceabstract class now auto-binds methods withthis, preventing"this" is undefinedpotential warning on initial page load.- Added HTML template sanitization with trustLevel that can be passed to component's
super().- trusted : no template sanitization (returns original)
- normal (default) : remove scripts and inline event handlers
- strict : remove iframe, object, embed, href (javascript), data: protocol, scripts and inline event handlers
I18n
- Removed
data-i18n-paramspipe : Default values (fallback) must now be inlined text content in component's HTML template.
CLI :
- Deployment helpers is now optional (default : disabled). Flags :
--deploy-helper--no-deploy-helper - Fixed CLI prompts (no longer overrides answers)
Builder / Deployment Helper
- Now adds stylesheet & script tags in
index.htmlon build time (add-tags.js) - (Production) Added file hashing (js & css) (
hash-files.js) - (Production) Added Gzip and Brotli compression (
compress-files.js). Configurable inbuilder.config.js- Note : default nginx alpine image does NOT support Brotli compression. If you want to use it :
- uncomment brotli-related sections (
BROTLI OPTIONAL) inbuilder.config.jsandtools/builder/core/compress-files.js - enable brotli in nginx.conf
- You'll also need to use an existing Brotli-enabled nginx image or build your own from source.
- Enabled gzip globally in
nginx.confand removedgzip.conf(compress during build).
- uncomment brotli-related sections (
- Note : default nginx alpine image does NOT support Brotli compression. If you want to use it :
StylinNutin
- Added utility classes
u-text-center,u-text-right,u-text-left,u-font-primary - box-shadow variables now use
$primary-color
TestinNutin
- Now applies
setupJsdom()beforeAll (was beforeEach) andteardownJsdom()afterAll (was afterEach) intest-queue.js(improved efficiency / speed)