Socket
Socket
Sign inDemoInstall

snabbdom

Package Overview
Dependencies
Maintainers
4
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snabbdom - npm Package Versions

1
7

0.6.1

Diff

Changelog

Source

[v0.6.1] - 2017-01-05

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.

/* eslint-disable no-redeclare */
const h = require("snabbdom/h"); // The old way
const h = require("snabbdom/h").h; // The new way
const h = require("snabbdom/h").default; // Alternative new way
const { h } = require("snabbdom/h"); // Using destructuring
/* eslint-enable no-redeclare */
paldepind
published 0.6.0 •

Changelog

Source

[v0.6.0] - 2017-01-05

Deprecated. Use version 0.6.1 instead.

paldepind
published 0.5.4 •

paldepind
published 0.5.3 •

paldepind
published 0.5.2 •

paldepind
published 0.5.1 •

paldepind
published 0.5.0 •

Changelog

Source

v0.5.0 - 2016-05-16

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.

paldepind
published 0.4.2 •

paldepind
published 0.4.1 •

paldepind
published 0.4.0 •

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc