Latest release

v0.6.3

@staltz staltz released this Jan 16, 2017

Bugfixes

  • Fix the export of the Module interface for TypeScript projects depending on snabbdom.

Downloads

v0.6.2

@staltz staltz released this Jan 16, 2017 · 2 commits to master since this release

Bugfixes

  • Fix the export of the Hooks interface for TypeScript projects depending on snabbdom.

Downloads

v0.6.1

@staltz staltz released this Jan 5, 2017 · 10 commits to master since this release

The biggest change in this release is that the Snabbdom source code has been ported to TypeScript. The work has been primarily done by @staltz. This brings much improved support for using Snabbdom in TypeScript projects.

Note: This release contains breaking changes. See below.

New features

  • Complete TypeScript support. Thanks to @staltz.
  • Support for CSS variables. #195. Thanks to @jlesquembre.
  • Allow h(sel, data, node) and h(sel, node) shortcut notations in the h function. #196. That is, instead of h('div', [child]) one can now do h('div', child). Thanks to @AlexGalays.

Bugfixes

  • Fix custom element creation when tag name begins with 'svg'. #213. Thanks to @tdumitrescu.
  • Fix bug related to updating one child with same key but different selector. #188. Thanks to @zhulongzheng.
  • Strings can be used as children inside SVG elements. #208. Thanks to @jbucaran and @jbucaran.
  • Use parentNode fixing bug in IE 11. #210. Thanks to @aronallen.

Breaking changes

The TypeScript rewrite uses the import and export features introduced in ECMAScript 2015. Unfortunately the ES imports have no analogy to the CommonJS pattern of setting module.exports. This means that the Snabbdom modules that previously used this feature now have to be imported in a slightly different way.

var h = require("snabbdom/h"); // The old way
var h = require("snabbdom/h").h; // The new way
var h = require("snabbdom/h").default; // Alternative new way
var {h} = require("snabbdom/h"); // Using destructuring

Downloads

v0.6.0 (deprecated)

@paldepind paldepind released this Jan 5, 2017 · 12 commits to master since this release

Deprecated. Use version 0.6.1 instead.

Downloads

v0.5.0

@paldepind paldepind released this May 16, 2016 · 108 commits to master since this release

Breaking change

This release contains a new thunk implementation that solves many issues with the old thunk implementation. The thunk API has changed slightly. Please see the thunks section in the readme.

Downloads