0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 17:00:40 +01:00
Commit Graph

1070 Commits

Author SHA1 Message Date
Rich-Harris
a010778ac6 helpers should not be considered dependencies — fixes #492 2017-04-18 08:31:48 -04:00
Rich-Harris
d8cec7f414 style consistency 2017-04-18 08:19:04 -04:00
Rich-Harris
7f2dab6b4f -> v1.16.0 2017-04-17 19:32:27 -04:00
Rich Harris
ffe040a990 Merge pull request #491 from sveltejs/misc-fixes
Misc fixes
2017-04-17 19:24:42 -04:00
Rich-Harris
86413ef4fa optimise simple if-blocks 2017-04-17 18:50:18 -04:00
Rich-Harris
67fa013604 implement block.alias, so consecutive each-blocks dont get i, i_1, i_2... 2017-04-17 17:43:11 -04:00
Rich-Harris
9f2bd988a0 collapse text around comments 2017-04-17 17:40:02 -04:00
Rich-Harris
a59e017fad separate if statements in codebuilder 2017-04-17 16:56:53 -04:00
Rich-Harris
3629c9e9a1 exclude indexes from dependencies 2017-04-17 16:45:49 -04:00
Rich-Harris
0c013cfd9b use correct dependencies for each-block updates 2017-04-17 16:15:36 -04:00
Rich-Harris
9f2a20763a dont create yield block for childless component 2017-04-17 15:54:05 -04:00
Rich Harris
fc31d39a64 Merge pull request #490 from sveltejs/gh-472
Only update dynamic subtrees
2017-04-17 15:16:09 -04:00
Rich Harris
aeedb94d97 Merge pull request #489 from sveltejs/gh-381
Only update each blocks when their dependencies have changed
2017-04-17 15:15:42 -04:00
Rich-Harris
080afc99a8 simplify if-block switching code 2017-04-17 15:05:48 -04:00
Rich-Harris
b7a40879a7 remove some unused code 2017-04-17 14:55:42 -04:00
Rich-Harris
49bea1b489 dont recompute dependencies 2017-04-17 14:51:05 -04:00
Rich-Harris
f8f32a13ba contextualise is only called once per expression 2017-04-17 14:39:03 -04:00
Rich-Harris
c9a2bf98a5 rename some variables so that they make more sense 2017-04-17 14:26:09 -04:00
Rich-Harris
2e7a429684 get rid of tmp variable, we dont need it 2017-04-17 14:02:09 -04:00
Rich-Harris
950f2ce2fd dont update static subtrees, even with a noop 2017-04-17 13:06:51 -04:00
Rich-Harris
92b49eed4e more tidying up 2017-04-17 11:49:59 -04:00
Rich-Harris
c7f15738ee create all blocks in preprocess step 2017-04-17 11:15:42 -04:00
Rich-Harris
906b5319e6 create each-block else child blocks in preprocess step 2017-04-17 11:09:30 -04:00
Rich-Harris
3cfb823076 tidy up 2017-04-17 10:56:21 -04:00
Rich-Harris
7132551183 factor in attributes and bindings 2017-04-17 10:54:02 -04:00
Rich-Harris
b574c405eb conditionalise each-block updates 2017-04-17 10:43:44 -04:00
Rich-Harris
ab19649dfa preprocess template, so that we can discover dependencies ahead of time 2017-04-17 09:51:53 -04:00
Rich-Harris
d00348d3d6 reduce noise a bit 2017-04-17 08:46:10 -04:00
Rich-Harris
30d4c1c166 less indirection when mounting 2017-04-17 08:23:50 -04:00
Rich-Harris
1d5018bf1e tame each-block code a bit 2017-04-16 22:57:18 -04:00
Rich-Harris
3d259f46ee rename some things so they make more sense 2017-04-16 21:57:40 -04:00
Rich-Harris
db7fe861b2 failing test for #381 2017-04-16 21:57:00 -04:00
Rich Harris
a9f18b5e9f Merge pull request #488 from sveltejs/component-binding-blowback
prevent binding blowback on initial render
2017-04-16 20:54:29 -04:00
Rich-Harris
34622a8a5a tidy up 2017-04-16 20:44:00 -04:00
Rich-Harris
7a3611b5df wait this is actually way easier 2017-04-16 20:41:28 -04:00
Rich-Harris
227ce7928c alternative approach - dont init observer if data has not changed 2017-04-16 20:32:45 -04:00
Rich-Harris
4c3aa0a36f prevent component binding blowback on initial render 2017-04-16 19:59:27 -04:00
Rich-Harris
850c4745c8 -> v1.15.1 2017-04-16 14:32:17 -04:00
Rich Harris
4f20ac8710 Merge pull request #487 from sveltejs/gh-486
ensure binding event handlers precede normal ones
2017-04-16 14:30:12 -04:00
Rich-Harris
ef52a93699 ensure binding event handlers precede normal ones (fixes #486) 2017-04-16 14:21:36 -04:00
Rich Harris
cc21db37c3 Merge pull request #483 from sveltejs/gh-479
Clone data before `set`
2017-04-14 09:42:05 -04:00
Rich Harris
563d300aa2 Merge pull request #482 from sveltejs/gh-481
allow helpers to depend on one another
2017-04-14 09:41:53 -04:00
Rich-Harris
e56f09dfe5 clone before set — fixes #479 2017-04-13 22:27:45 -04:00
Rich-Harris
51ff9ecfa6 allow helpers to depend on one another (closes #481) 2017-04-13 22:18:01 -04:00
Rich-Harris
dba9401670 -> v1.15.0 2017-04-12 20:19:23 -04:00
Rich Harris
c0aa3ef7e1 Merge pull request #478 from sveltejs/gh-476
update select value bindings at the end of the cycle
2017-04-12 20:15:22 -04:00
Rich Harris
d4d7f6c53e Merge pull request #473 from sveltejs/gh-166
More helpful validation
2017-04-12 20:15:14 -04:00
Rich-Harris
02e55e8f7a update select value bindings at the end of the cycle (fixes #476) 2017-04-12 19:55:04 -04:00
Rich Harris
ef630b1483 Merge pull request #477 from sveltejs/gh-475
Make missing properties only a warning
2017-04-12 19:20:18 -04:00
Conduitry
c6304b19f7 only warn on missing properties in dev mode, do not warn on whitelisted globals 2017-04-12 18:56:41 -04:00