Commit graph

22 commits

Author SHA1 Message Date
Pierre-Yves
8cb7988096 Add tests for the hooks for a delayed removal in a fragment, address other review concerns 2022-06-21 17:02:05 +02:00
Stephan Hoyer
e9a365c150 Kick promise polyfill 2022-05-30 08:38:13 +02:00
Barney Carroll
d021271be8 Non-mutating m.fragment/m.trust references 2022-02-12 12:19:35 +01:00
Barney Carroll
31d2ed4be8 Tests use hyperscript instead of manually constructing nodes 2022-02-12 12:19:35 +01:00
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
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
Isiah Meadows
19d2ba316c Remove support for vnode.state = ...
- Remove docs for it
- Remove tests for it
- Add runtime check for unexpected reassignment, since we can't freeze
  the property (we internally have to be able to modify it)
2017-10-02 19:57:48 -04:00
Pierre-Yves Gerardy
45afd4117a Fix render tests for Browsers 2017-04-04 12:10:08 +02:00
Isiah Meadows
1cc5fa5ba7 "use strict" and other linty fixes 2017-03-03 18:24:38 -05:00
Pierre-Yves Gerardy
fca89f987f Tests: enable the three kind of components in all related files but api/tests/test-route.js 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
24243dba94 Tests: wrap the rest of the components definitions 2017-02-19 02:14:15 +01:00
Pierre-Yves Gerardy
f96319e6f6 Tests: add dummy forEach blocks around sections with components 2017-02-19 02:14:15 +01:00
Barney Carroll
3fa771ac28 Test for onbeforeremove delayed resolution 2016-12-30 19:31:51 +00:00
Leo Horie
1222a9a3ab change onbeforeremove and make state inherit from prototype 2016-12-26 12:19:20 -05:00
Leo Horie
3682a78880 clean up duplicate test 2016-08-18 00:01:11 -04:00
Pierre-Yves Gerardy
0ddad54e88 Tests for remove phase Zalgo flakiness. 2016-08-17 01:51:53 +02:00
Leo Horie
f964252c2c test for #1216 2016-08-11 19:44:23 -04:00
Pierre-Yves Gerardy
bfc69267d5 Remove a few crumbs I left behind 2016-07-29 20:31:06 +02:00
Pierre-Yves Gerardy
0566b04a0f Add test for onbeforeremove context. 2016-07-29 15:23:28 +02:00
impinball
b4fb21475c Add editorconfig, resolve differences
This includes newlines, tabs, among other things.
2016-06-18 03:22:12 -04:00
Leo Horie
b4903538f3 prevent recycling for vnodes w/ integration methods 2016-05-19 01:20:21 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00