Releases: socketsupply/tonic
Releases · socketsupply/tonic
v15.1.2
v15.1.1
The package size is optimized
Full Changelog: v15.1.0...v15.1.1
v15.1.0
What's Changed
Full Changelog: v15.0.0...v15.1.0
v13.3.5
v12.0.3
9.0.0
DESCRIPTION
This is a major release with breaking changes. Please read the following notes.
NEW FEATURES
- Tonic is now backed by Web Components given that all major browsers finally support them.
- A minified version will now be included in the package for each release.
- Allows
NodeList
andHTMLCollection
andNamedNodeMap
(attributes) as values inthis.html
. - Adds property-spread to render function.
render () {
this.html`<div ...${o}></div>`
}
BREAKING CHANGES
- Component tag names must be compliant with web-component spec. Basically this just means they require at least one dash, so
x-foo
,foo-bar
,quxx-z
, are valid. But notfoobear
, for example. this.children
property exists still, but you should usechildElements
for only element nodes (a collection that does not contain non-element nodes) and you should usechildNodes
, a collection of all/any nodes (this includes whitespace/text-nodes, etc).
render () {
this.html`
<div>
${this.childNodes}
</div>
`
}