snabbdom / snabbdom-to-html

Render Snabbdom Vnode’s to HTML strings
94 stars 21 forks source link

Next major release #16

Closed acstll closed 8 years ago

acstll commented 8 years ago

This should be it:

acstll commented 8 years ago

@TylorS what's up? πŸ˜„

TypeScript types are holding me back, I wanted first to learn TypeScript to rewrite the whole thing, but now I don't even have time to give it a try with the type definitions (tons of work). Do you have time to give it a go? Please let me know if I can make it easier for you.

The new module signature is (vnode: VNode, attributes: function) => undefined and I also added an index.js to the modules folder in which I export an object with all the built-in modules:

{
  class,
  props,
  attributes,
  style
}

Also, no transpiling or anything, just plain ES5 and CJS Γ  la snabbdom.

I'd like to cut a 3.0-beta release first, now that Cycle.js Diversity is out, I don't want to fuck up this one πŸ˜€

TylorS commented 8 years ago

FWIW the snabbdom typescript definitions are still not yet released to npm

acstll commented 8 years ago

Thanks for letting me know. I will try and find some time this weekend to get the beta out. I'll then test @cycle/dom with it…

Thanks again for your help!

TylorS commented 8 years ago

Thanks for your work too. The new stuff looks really nice, much cleaner!

acstll commented 8 years ago

Version 3 is out in beta, finally! πŸŽ‰

Do npm install snabbdom-to-html@beta to test it.