Commit graph

19 commits

Author SHA1 Message Date
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
2635070734 Merge branch 'next' 2018-10-25 14:23:33 -04:00
Pierre-Yves Gérardy
203df39c30 Remove the DOM nodes recycling pool (fix #1653, fix #2023) 2018-04-16 09:45:45 +02:00
Pierre-Yves Gérardy
9f09ac069c Address #2021 review comments 2017-12-04 14:38:39 +01:00
Pierre-Yves Gérardy
fc0240da0f Tests for #1990, #1991 and #2003 2017-12-04 14:38:39 +01:00
Pierre-Yves Gérardy
acee3d5ecc Add tests for issue 1921 (onremove fires on childrent that don't end up in the instance) 2017-11-29 15:55:56 +01:00
Pierre-Yves Gérardy
da6122753c Add tests for issue 1921 (onremove fires on childrent that don't end up in the instance) 2017-07-31 11:39:36 +02: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
ac38335453 Tests: Wrap some component definitions in createComponent() calls
These are the ones that would have been tedious to automate.
jscodeshift will handle the remaining ones
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
Pierre-Yves Gerardy
d7f39a8254 Tests: group together tests with/without components 2017-02-19 02:14:15 +01: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
Pierre-Yves Gerardy
7b09f1975c Fix the onremove tests 2016-07-16 23:13:54 +02:00
Leo Horie
519b352c2c fix onremove across components 2016-07-15 22:22:34 -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
b4903538f3 prevent recycling for vnodes w/ integration methods 2016-05-19 01:20:21 -04:00
Leo Horie
5265697cb2 semi-working bundle 2016-05-14 01:01:35 -04:00
Leo Horie
559369016d initial commit (work in progress) 2016-04-20 20:02:37 -04:00