VNDB fork of mithril.js
Find a file
Isiah Meadows d4551f49f5
Add streams to releases again, include minified bundle, drop in… (#2539)
* Minify stream, add stream stuff to releases again

* Kill off a lot of tech debt, drop internal utilities from npm

1. Kill `module/`, internalize `bundler/`, privatize `test-utils/`

We've been telling people to move elsewhere from these for a while, and
it's about time we just pull the plug here and finally remove them.

- We officially removed the bundler from the public API in v2.0, and
  that was the only one of these that was ever publicly documented.
  Usage should be low enough by now it shouldn't break anyone- I'm not
  seeing bundler bugs being reported anymore, either.
- The `module/` utility was so narrow and caveat-filled that I'm not
  sure anyone really used it (even us core Mithril devs never really
  used it), and we only had it documented in the repo folder it lived
  in. I think only one bug was ever filed, and it's because it somehow
  ended up completely non-functional without any of us realizing it.
- The test utilities were meant to be internal from day 1, but people
  started using it despite us core developers constantly telling people
  to look elsewhere and even the docs recommending specific alternatives
  without mention of our internal mocks. (Now if people would RTFM,
  that'd be nice...)

2. Add dedicated HTML test files to verify ospec and the promise
   polyfill, and ensure the promise tests are in pure ES5.

These are made specially for those and should be much easier to just run
now.

3. Fix the benchmark script to use the real DOM in browsers and to not
   require as many dependencies to create. Also, tweak them to be much
   more effective and precise on what's being tested.

Previously, it was rendering to the HTML file itself, while now it's
rendering to the `body`. This means in browsers, it's triggering layout
and everything, benchmarking how well Mithril optimizes for style and
layout recalcs, too. It also puts some pressure on the hyperscript
parser attribute application, so that can be noticed as well.

* Update dependencies
2019-10-03 04:58:14 -04:00
.github Update CoC 2019-09-28 13:38:36 -04:00
api Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
docs Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
examples Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
ospec Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
pathname Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
performance Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
promise Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
querystring Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
render Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
request Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
scripts Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
stream Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
test-utils Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
tests Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
util Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
.deploy.enc Maybe *this* time, everything should magically work... 2019-05-29 11:44:57 -04:00
.editorconfig Refactor scripts (#2465) 2019-07-27 15:12:49 -04:00
.eslintignore Refactor the scripts to work as advertised 2019-08-17 21:58:57 -04:00
.eslintrc.js Revert eslintrc change, return Promise instead of using async/await 2017-11-29 17:03:07 +01:00
.gitattributes Drop ESM support (#2366) 2019-05-29 09:24:10 -04:00
.gitignore Refactor the scripts to work as advertised 2019-08-17 21:58:57 -04:00
.npmignore Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
.travis.yml Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -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 Add m.censor, adjust m.route.Link to use it (#2538) 2019-09-30 18:44:39 -04:00
LICENSE docs: Adding license file. (#1583) 2017-02-01 09:25:00 -08:00
mithril.js v2.0.4 2019-08-18 14:21:31 -04:00
mithril.min.js v2.0.4 2019-08-18 14:21:31 -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 Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
package.json Add streams to releases again, include minified bundle, drop in… (#2539) 2019-10-03 04:58:14 -04:00
README.md v2.0.4 2019-08-18 14:21:31 -04: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.79 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

<!-- Development: whichever you prefer -->
<script src="https://unpkg.com/mithril/mithril.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mithril/mithril.js"></script>

<!-- Production: whichever you prefer -->
<script src="https://unpkg.com/mithril/mithril.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/mithril/mithril.min.js"></script>

npm

npm install mithril --save

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

TypeScript type definitions are available from DefinitelyTyped. They can be installed with:

$ npm install @types/mithril --save-dev

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!

🎁