VNDB fork of mithril.js
Find a file
2016-07-28 23:39:44 -04:00
api Remove questionable test 2016-07-24 11:55:16 +02:00
bundler fix node module resolution in bundler 2016-07-28 23:22:37 -04:00
docs document setup via npm 2016-07-28 22:41:26 -04:00
examples update README 2016-07-28 23:39:44 -04:00
module Quiet some ESLint errors (#1060) 2016-05-19 22:18:31 -07:00
ospec resolve hook in router 2016-07-11 09:50:00 -04:00
promise Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
querystring Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
render Merge pull request #1174 from pygy/move-up-vnodes-assignment 2016-07-26 10:32:34 -04:00
request simplify handling of FormData 2016-07-28 22:34:16 -04:00
router resolve hook in router 2016-07-11 09:50:00 -04:00
test-utils make setPath always async 2016-07-01 13:03:07 -04:00
util report uncaught errors 2016-07-15 22:56:29 -04:00
.editorconfig Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
.eslintignore Add ESLint and a generated config/ignore file 2016-05-19 12:37:33 -07:00
.eslintrc.js Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
.gitignore Quiet some ESLint errors (#1060) 2016-05-19 22:18:31 -07:00
.travis.yml Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
browser.js improve bundler 2016-07-28 22:35:22 -04:00
CONTRIBUTING.md Add editorconfig, resolve differences 2016-06-18 03:22:12 -04:00
index.js improve bundler 2016-07-28 22:35:22 -04:00
mithril.js improve bundler 2016-07-28 22:35:22 -04:00
mithril.min.js improve bundler 2016-07-28 22:35:22 -04:00
package.json improve bundler 2016-07-28 22:35:22 -04:00
README.md update README 2016-07-28 23:39:44 -04:00

Mithril.js - A framework for building brilliant applications

Documentation | Migration Guide

Note: This branch is a sneak peek for the upcoming version 1.0. It's a rewrite from the ground up and it's not backwards compatible with Mithril 0.2.x. You can find preliminary documentation here and migration guide here

This rewrite aims to fix longstanding API design issues, significantly improve performance, and clean up the codebase.

Early Preview

You can install this via NPM using this command:

npm install lhorie/mithril.js#rewrite

Examples run out of the box. Just open the HTML files.

Status

The code is fairly stable and I'm using it in production, but there may be bugs still lurking.

Some examples of usage can be found in the examples folder. ThreadItJS has the largest API surface coverage.

Partial documentation can be found in the /docs directory

Performance

Mithril's virtual DOM engine is around 500 lines of well organized code and it implements a modern search space reduction diff algorithm and a DOM recycling mechanism, which translate to top-of-class performance. See the dbmon implementation (for comparison, here are dbmon implementations for React v15.0.2, and Angular v2.0.0-beta.17. All implementations are naive (i.e. apples-to-apples, no optimizations)

Robustness

There are over 3000 assertions in the test suite, and tests cover even difficult-to-test things like location.href, element.innerHTML and XMLHttpRequest usage.

Modularity

Despite the huge improvements in performance and modularity, the new codebase is smaller than v0.2.x, currently clocking at 7.2kb min+gzip

In addition, Mithril is now completely modular: you can import only the modules that you need and easily integrate 3rd party modules if you wish to use a different library for routing, ajax, and even rendering