Commit graph

15 commits

Author SHA1 Message Date
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
spacejack
e05fb0b048 Sync with next 2018-02-19 17:48:36 -05:00
spacejack
d283b24337 Separate Promise implementation from polyfilling 2018-02-19 23:33:32 +01:00
spacejack
f99b804f5b Add Promise finally method to polyfill 2018-02-18 20:18:13 -05:00
valtron
608f9889a5 Fix #1489: PromisePolyfill always overwrites window.Promise 2016-12-21 23:34:44 -07:00
Leo Horie
439cf95673 expose promise polyfill in a way that won't need code migration later 2016-11-16 21:15:23 -05:00
Leo Horie
bc8cf4ed76 change m.request return value from stream to promise
remove m.prop
add m.Promise
update tests and examples
2016-11-13 22:44:22 -05:00
Leo Horie
8c5fd9ec25 lint 2016-09-23 22:49:20 -04:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
ddc430a6d3 fix most gcc warnings 2016-06-03 23:55:31 -04:00
Leo Horie
c79b4545c2 fix empty array case for Promise.all 2016-06-01 16:22:03 -04:00
Leo Horie
9a396c5173 use promise polyfill 2016-06-01 15:44:08 -04:00
Leo Horie
2e6e1c73d0 promises: A+ compliance, better async, unhandled rejection reporter 2016-06-01 01:24:14 -04:00
Leo Horie
3bb0a6287f promise bug fixes (work in progress) 2016-05-28 01:12:20 -04:00
Leo Horie
76d5d9ef2f promise polyfill 2016-05-26 15:23:06 -04:00