• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tbranyen / diffhtml / 569 / 2
99%
master: 99%

Build:
DEFAULT BRANCH: master
Ran 23 Feb 2017 05:21PM UTC
Files 28
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Feb 2017 05:19PM UTC coverage: 97.267% (+3.1%) from 94.208%
569.2

push

travis-ci

web-flow
Internals rewrite (#112)

* A new transaction flow concept using tasks

This creates a new way to render diffHTML by flowing tasks through a
transaction. Transactions are like deferreds, only abortable. Each task
gets called with a single argument which is a `transaction` instance.
Middleware are now part of this transaction flow.

Check out the lib/tasks folder to see each stage of diffHTML rendering.

diffHTML has been a radical collection of good ideas poorly implemented.
This commit attempts to reverse some of the bad code ideas, and make the
project generally more consistent. I'm starting with `createTree`,
before this was known as `createElement` and was a way of create
virtual trees. This new method has a better name and role, where-as it
is called on any tagged template child value automatically and will
simply be an identity function for any VTree passed to it. This ensures
that all trees are fully formed before a transaction ever starts.

I'm going to continue the refactor by gutting and redoing the tree
synchronization code. I'm going to focus on making patches that are
driven by the DOM method ultimately called. This will make applying the
patches incredibly easy and allow us to batch attributes from DOM
methods, which was not always the case before.

783 of 805 relevant lines covered (97.27%)

150.49 hits per line

Source Files on job 569.2
  • Tree
  • List 0
  • Changed 7
  • Source Changed 7
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 569
  • Travis Job 569.2
  • f1169b4e on github
  • Prev Job for on master (#496.1)
  • Next Job for on master (#570.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc