VNDB fork of mithril.js
Find a file
Isiah Meadows 1f4b2cf49a
Deservicify core (#2458)
* De-servicify router (mostly)

Still uses the redraw service, but it no longer has an intermediate
service of its own.

Also, did a *lot* of test deduplication in this. About 30-40% of the
router service tests were already tested on the main router API instance
itself.

Bundle size decreased from 9560 to 9548 bytes min+gzip.

* Merge `m.mount` + `m.redraw`, update router

Simplifies the router and redraw mechanism, and makes it much easier to
keep predictable.

Bundle size down to 9433 bytes min+gzip, docs updated accordingly.

* Make `mithril/render` just return the `m.render` function directly.

* Deservicify `m.render`, revise `m.route`

- You now have to use `mithril/render/render` directly if you want an
  implicit redraw function. (This will likely be going away in v3.)
- Revise `m.route` to only `key` components

* Add `redraw` to `m.render`, deservicify requests

* Test error logging

* Update docs + changelog [skip ci]
2019-07-07 18:28:43 -04:00
.github Create FUNDING.yml 2019-06-14 14:51:12 +02:00
api Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
bundler Deduplicate m.route and m.redraw logic (#2453) 2019-07-05 18:52:06 -04:00
docs Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
examples Fix mixed content error. (#2383) 2019-03-02 02:22:39 -05:00
module Officially drop IE9-10 support, pull out our hacks (#2296) 2018-11-27 18:04:15 -05:00
ospec Drop ESM support (#2366) 2019-05-29 09:24:10 -04:00
pathname Fix #2443 (#2451) 2019-07-03 14:41:48 -04:00
performance Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
promise Merge branch 'next' 2018-10-25 14:23:33 -04:00
querystring Clarify pathname docs, follow spec with fragments (#2448) 2019-07-03 06:22:25 -04:00
render Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
request Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
stream Add missing line 2019-05-30 21:06:52 -04:00
test-utils Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
tests Deduplicate m.route and m.redraw logic (#2453) 2019-07-05 18:52:06 -04:00
.deploy.enc Maybe *this* time, everything should magically work... 2019-05-29 11:44:57 -04:00
.editorconfig clean up repo 2017-01-30 11:18:47 -05:00
.eslintignore Drop ESM support (#2366) 2019-05-29 09:24:10 -04:00
.eslintrc.js Revert eslintrc change, return Promise instead of using async/await 2017-10-28 18:32:58 -04:00
.gitattributes Drop ESM support (#2366) 2019-05-29 09:24:10 -04:00
.gitignore Maybe *this* time, everything should magically work... 2019-05-29 11:44:57 -04:00
.npmignore Update package lockfile and danger/lint-staged 2017-08-25 02:59:38 -04:00
.travis.yml Drop ESM support (#2366) 2019-05-29 09:24:10 -04:00
browser.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
hyperscript.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
index.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
LICENSE docs: Adding license file. (#1583) 2017-02-01 09:25:00 -08:00
mithril.js v2.0.0-rc.7 2019-07-06 03:54:57 -04:00
mithril.min.js v2.0.0-rc.7 2019-07-06 03:54:57 -04:00
mount-redraw.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
mount.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
package-lock.json v2.0.0-rc.7 2019-07-06 03:54:57 -04:00
package.json v2.0.0-rc.7 2019-07-06 03:54:57 -04:00
README.md Bundled output for commit 794e8e963f [skip ci] 2019-05-29 13:43:31 +00:00
redraw.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
render.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
request.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
route.js Deservicify core (#2458) 2019-07-07 18:28:43 -04:00
stream.js "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00

mithril.js NPM Version NPM License NPM Downloads Donate at OpenCollective

Build Status Gitter

What is Mithril?

A modern client-side Javascript framework for building Single Page Applications. It's small (9.31 KB gzipped), fast and provides routing and XHR utilities out of the box.

Mithril is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.

Mithril supports IE11, Firefox ESR, and the last two versions of Firefox, Edge, Safari, and Chrome. No polyfills required. 👌

Installation

CDN

<script src="https://unpkg.com/mithril@next/mithril.js"></script>
<!-- or -->
<script src="https://cdn.jsdelivr.net/npm/mithril@next/mithril.js"></script>

npm

# For the most recent stable version
$ npm install mithril --save
# For the most recent unstable version
$ npm install mithril@next --save

The "Getting started" guide is a good place to start learning how to use mithril.

Documentation

Documentation lives on mithril.js.org.

You may be interested in the API Docs, a Simple Application, or perhaps some Examples.

Getting Help

Mithril has an active & welcoming community on Gitter, or feel free to ask questions on Stack Overflow using the mithril.js tag.

Contributing

There's a Contributing FAQ on the mithril site that hopefully helps, but if not definitely hop into the Gitter Room and ask away!


Thanks for reading!

🎁