Isiah Meadows
6c562d2b9b
Fix keys, normalize holes ( #2452 )
...
* Fix #2434
* Treat holes as unkeyed, normalize boolean/null/undefined
This brings a lot better consistency with that API, even though it's
slightly breaking. (I had to update a bunch of tests to correspond with
it.)
* Fill in PR number [skip ci]
2019-07-03 17:05:44 -04:00
Isiah Meadows
88b17c1c60
Avoid triggering Object.prototype.__proto__ with keys ( #2251 )
...
This way, the diff algorithm works with untrusted keys.
2018-10-15 15:09:55 -04:00
Pierre-Yves Gérardy
95ec3d28aa
test for the LIS-based diff
2018-05-29 23:50:29 +02:00
Pierre-Yves Gérardy
878e4958dc
tests for #2132
2018-04-23 13:52:03 +02:00
Pierre-Yves Gérardy
dd6ceca31d
tests for #2128
2018-04-23 13:52:03 +02: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
fc0240da0f
Tests for #1990 , #1991 and #2003
2017-12-04 14:38:39 +01:00
Pierre-Yves Gérardy
8950760e85
render: extract pool addtition logic, don't run onremove on nodes that move from pool to pool ( fix #1990 )
2017-12-04 14:38:39 +01: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
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
de07a54881
add support for route state #1480
2016-12-17 21:50:04 -05:00
Leo Horie
c95629c623
handles noop from undefined to null #1473
2016-12-16 15:21:57 -05:00
Leo Horie
3068f2494b
beef up tests
2016-12-02 21:24:12 -05:00
Leo Horie
2f7c4983f3
ensure null doesn't displace next siblings
2016-12-02 20:41:07 -05:00
Leo Horie
8eb61a12ab
fix diff bug when array is sparse, item type and position and array length change
2016-11-23 22:28:08 -05:00
Pierre-Yves Gerardy
b6bb63ff85
Skip diff for cached, non-keyed nodes fix #1206
2016-08-06 00:10:54 +02:00
Leo Horie
1155027c91
fix #1163
2016-07-21 00:52:32 -04:00
Leo Horie
276184484d
fix diff bugs when there are null components in list
2016-07-15 00:28:01 -04:00
Leo Horie
7227cc546f
fix recycling when tag is different in unkeyed node
2016-07-12 11:30:58 -04:00
Leo Horie
a6c56ff6b9
resolve hook in router
2016-07-11 09:50:00 -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
559369016d
initial commit (work in progress)
2016-04-20 20:02:37 -04:00