Commit graph

20 commits

Author SHA1 Message Date
Isiah Meadows
9f0dc2ab46
Runtime-deprecate ospec, change change-log to changelog, fix a few assorted bugs (#2578) 2020-09-29 13:27:07 -07:00
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
Isiah Meadows
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Pierre-Yves Gérardy
8217d68e18
Better tests for Promise.prototype.finally 2018-02-20 00:27:39 +01: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
17c7855d91 Add another simple finally test 2018-02-19 15:03:53 -05:00
spacejack
f99b804f5b Add Promise finally method to polyfill 2018-02-18 20:18:13 -05:00
Pat Cavit
d8d5ca3991 test: fix broken test after ospec update (#2031) 2017-11-29 17:06:10 +01:00
Stephan Hoyer
6fd8a52da0 Adapt test to new async callback behaviour 2017-08-31 19:31:08 +02:00
Gyandeep Singh
daf5a64697 Chore: Fix lint issues and add indent with tabs 2017-03-11 15:54:41 -06:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Leo Horie
9ad16858a5 #1520 ospec: report duplicate test names 2017-01-08 13:05:27 -05:00
Leo Horie
0b84a3f39f fix tests from #1470 2016-12-07 11:58:30 -05:00
Barney Carroll
d74fa75832 Test branched rejection handler resolution 2016-12-07 16:14:08 +00:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
c79b4545c2 fix empty array case for Promise.all 2016-06-01 16:22:03 -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