Socket
Socket
Sign inDemoInstall

snabbdom

Package Overview
Dependencies
Maintainers
3
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.7.1

Diff

paldepind
published 0.7.0 •

Changelog

Source

[v0.7.0] - 2017-07-27

Breaking change

The way Snabbdom handles boolean attributes in the attributes module has been changed. Snabbdom no longer maintains a list of known boolean attributes. Not relying on such a list means that custom boolean attributes are supported, that performance is slightly better, and that the list doesn't have to be kept up to date.

Whether or not to set a boolean attribute is now determined by looking at the value specified for the attribute. If the value is a boolean (i.e. strictly equal to true or false) it will be handled as a boolean attribute. If you're currently setting boolean attributes with booleans then this change does not affect you.

h("div", {
  attrs: {
    foo: true, // will be set a boolean attribute since `true` is a boolean
    bar: "baz" // will set a normal attribute
  }
});

The example above will result in the HTML: <div foo bar="baz" />. Even if bar is actually a boolean attribute. So for instance h("input", { attrs: { required: 12 } }) will no longer set a boolean attribute correctly.

Previously h("input", { attrs: { required: 0 } }) would result in the HTML <input> since required was a know boolean attribute and 0 is falsey. Per the new behavior the HTML will be <input required="0">. To accomidate for the change always give boolean values for boolean attributes.

Bugfixes

  • toVNode now handles DocumentFragment which makes it possible to patch into a fragment. #320. Thanks to @staltz.
  • Custom boolean attributes are handled correctly. #314. Thanks to @caridy.
  • Type improvement. VNode key property can be undefined #290. Thanks to @yarom82.
  • Data attributes are checked for existence before deleting. Old behavior caused error in Safari. #313. Thanks to @FeliciousX.

Performance improvements

  • New handling of boolean attributes. #314. Thanks to @caridy.
staltz
published 0.6.9 •

Changelog

Source

[v0.6.9] - 2017-05-19

Bug fixes

  • Fix style delayed and remove to be optional in TypeScript, https://github.com/snabbdom/snabbdom/issues/295
staltz
published 0.6.8 •

Changelog

Source

[v0.6.8] - 2017-05-16

Bug fixes

  • Fix error when class is set by vdom selector in SVG, https://github.com/snabbdom/snabbdom/issues/217. Thanks to @caesarsol
  • Fix hyperscript to support undefined or null children in TypeScript, https://github.com/snabbdom/snabbdom/issues/226. Thanks to @ornicar
  • Fix thunk function so it is not called redundantly, https://github.com/snabbdom/snabbdom/pull/273. Thanks to @caesarsol
  • Improve TypeScript types of VNode props, https://github.com/snabbdom/snabbdom/issues/264 and https://github.com/snabbdom/snabbdom/issues/264. Thanks to @mightyiam
  • Fix toVNode() for comment nodes, lacking some fields, https://github.com/snabbdom/snabbdom/pull/266. Thanks to @staltz

Performance improvements

  • Improvement for attribute patching, https://github.com/snabbdom/snabbdom/issues/257. Thanks to @diervo
paldepind
published 0.6.7 •

paldepind
published 0.6.6 •

Changelog

Source

[v0.6.6] - 2017-03-07

Bug fixes

  • The attributes module sets boolean attributes correctly according to the specificaiton. https://github.com/snabbdom/snabbdom/issues/254. Thanks to @PerWiklander for reporting the bug.
cycle
published 0.6.5 •

Changelog

Source

[v0.6.5] - 2017-02-25

This is a patch version with a few bug fixes.

Bug fixes

  • Fix toVNode() to handle text nodes correctly, https://github.com/snabbdom/snabbdom/issues/252. Thanks to @Steelfish
  • Fix dataset module to support old browsers, such as IE10. Thanks @staltz
  • Fix "create element" workflow to align with "update element" workflow, https://github.com/snabbdom/snabbdom/pull/234. Thanks @caridy
cycle
published 0.6.4 •

Changelog

Source

[v0.6.4] - 2017-02-09

This version adds some features such as support for comment nodes and better server-side/client-side rendering collaboration, besides some bug fixes.

New features

cycle
published 0.6.3 •

Changelog

Source

[v0.6.3] - 2017-01-16

Bugfixes

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

Changelog

Source

[v0.6.2] - 2017-01-16

Bugfixes

  • Fix the export of the Hooks interface for TypeScript projects depending on snabbdom.
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