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

1644 Commits

Author SHA1 Message Date
Rich Harris
eccc8b264d
Implement local transitions — fixes #1480 2019-01-26 22:29:01 -05:00
Rich Harris
c2e6d1bf0d
Better composition — implements https://github.com/sveltejs/rfcs/pull/12 2019-01-26 18:53:47 -05:00
Rich Harris
37351196b0
Merge pull request #2007 from sveltejs/gh-2005-evschris
Defer hoisting until after the template is walked - #2005
2019-01-26 13:30:05 -05:00
Richard Harris
f1ca1cc098 housekeeping 2019-01-26 12:50:35 -05:00
Chris Reeves
c9301dc9f7 defer hoisting until after the template is walked - fixes #2005 2019-01-26 12:40:54 -05:00
Rich Harris
82f4ae6643
Merge pull request #2003 from sveltejs/gh-2002
Make sure a hoistable name is not also shadowed when rendering and expr - #2002
2019-01-26 09:35:16 -05:00
Chris Reeves
33a2b54881 update await-block to use on_outro and check_outros - fixes #1995 2019-01-26 00:04:37 -05:00
Chris Reeves
4f630058fe check module scope when determining if a name is contextual - fixes #2001 2019-01-25 18:56:57 -05:00
Chris Reeves
33131d0b70 make sure a hoistable name is not also a shadowed name rendering an expression - fixes #2002 2019-01-25 15:18:48 -05:00
Rich Harris
ff6e378fcb
Merge pull request #1993 from sveltejs/gh-1920
prevent writing to reactive values
2019-01-20 12:19:37 -05:00
Richard Harris
b8e0cccea8 prevent writing to reactive values - fixes #1920 2019-01-19 10:16:59 -05:00
Richard Harris
3c4d8b5c2c test that private state doesnt leak into parent 2019-01-19 09:25:53 -05:00
Richard Harris
ed9df1fff3 dont use identity function to reflect props 2019-01-19 09:19:07 -05:00
Rich Harris
5be480d7ac
Merge pull request #1991 from sveltejs/gh-1952-b
hoist vars and lets that don't change
2019-01-19 08:17:13 -05:00
Rich Harris
c134ca2ee4
Merge pull request #1988 from sveltejs/gh-1976
add nextTick lifecycle function - fixes #1976
2019-01-19 08:16:52 -05:00
Richard Harris
81d9647517 hoist vars and lets - closes #1952 2019-01-18 21:40:08 -05:00
Richard Harris
8c3f652a01 fix scroll bindings 2019-01-18 21:24:17 -05:00
Richard Harris
c266051811 rename afterFlush to nextTick, schedule update if necessary 2019-01-18 21:06:24 -05:00
Richard Harris
097507796d expose add_render_callback as afterFlush - fixes #1976 2019-01-17 09:15:06 -05:00
Rich Harris
dfb661ec0d
Merge pull request #1986 from sveltejs/gh-1985
Fix adjacent tracking across adjacent scopes - #1985
2019-01-15 20:41:16 -05:00
Chris Reeves
df7c449bd3 propagate mutation change tracking upward through deps so that adjacent scopes generate proper update code - fixes #1985 2019-01-15 18:08:53 -05:00
Richard Harris
3359b5fb3a set immutable option correctly - fixes #1968 2019-01-15 09:32:06 -05:00
Richard Harris
b18aac97f7 reenable all tests 2019-01-13 21:25:55 -05:00
Richard Harris
4936cd5ac4 support multiple preprocessors, handle dependencies - fixes #1973 2019-01-13 21:25:55 -05:00
Richard Harris
dcfe85ecdb improve preprocess tests 2019-01-13 21:25:55 -05:00
Chris Reeves
d3a7ccae4f reconcile test diff 2019-01-13 21:23:56 -05:00
Rich Harris
0f9ea4a4f4
Merge pull request #1974 from evs-chris/gh-1916-evschris
Attempt at #1916, including update handling
2019-01-13 16:50:49 -05:00
Rich Harris
f3701794be
Merge pull request #1978 from evs-chris/gh-1977-evschris
Render default slot content event handlers conditionally (with bonus) - #1977
2019-01-13 16:43:25 -05:00
Rich Harris
4c9a55cb66
Merge pull request #1980 from evs-chris/gh-1952-evschris
First pass at tracking mutation to avoid unnecessary update code - #1952
2019-01-13 16:38:33 -05:00
Richard Harris
d033c833ad test for #1852 2019-01-13 14:25:34 -05:00
Rich Harris
2d3dbdd6a9
Merge pull request #1967 from sveltejs/gh-1939
set parent correctly for children of await blocks
2019-01-13 14:19:55 -05:00
Rich Harris
0ea3840046
Overhaul transitions - fixes #1906 2019-01-13 14:19:01 -05:00
Chris Reeves
e85222ad84 first pass at tracking mutation to avoid unnecessary update code - #1952
also tracks mutation on child refs of const declarations - #1917
2019-01-13 04:01:25 -05:00
Chris Reeves
057298a79f fix newline-before-block diffs caused by code builder adjustments 2019-01-11 01:18:12 -05:00
Chris Reeves
6c89975396 gather event listeners for slot default elements and render in a condition - fixes #1977 2019-01-11 01:14:00 -05:00
Chris Reeves
3a7b9adc7f pull contextual deps through for member exprs in this bindings - fixes #1916 2019-01-09 12:22:22 -05:00
Conduitry
f8d69e296f replace <svelte:document> with <svelte:body> (#1846) 2019-01-05 14:16:43 -05:00
Richard Harris
fc5d929e76 set parent correctly for children of await blocks - should fix #1939 2019-01-04 22:57:40 -05:00
Richard Harris
c0a218b69e Merge branch 'master' into gh-1948 2019-01-04 22:02:29 -05:00
Richard Harris
2eb881dcb6 prevent invalid svelte: tags - fixes #1948 2019-01-04 22:02:12 -05:00
Rich Harris
76faa92464
Merge pull request #1961 from sveltejs/gh-1957
deconflict with implicit props
2019-01-04 21:59:01 -05:00
Rich Harris
4676946e83
Merge pull request #1962 from sveltejs/gh-1960
typo
2019-01-04 21:58:46 -05:00
Conduitry
58b3ea63cc fix malformed code in window binding event handlers (#1963) 2019-01-04 20:36:44 -05:00
Richard Harris
f0b6be1355 fix #1960 typo 2019-01-04 14:03:01 -05:00
Richard Harris
423e4e6cbc deconflict with implicit props - fixes #1957 2019-01-04 13:48:55 -05:00
Conduitry
8427bde679 preserve attributes during preprocess (#1873) 2019-01-03 13:20:56 -05:00
Richard Harris
329b013e40 render functions that close over contextual data - fixes #1938 2019-01-01 19:08:02 -05:00
Richard Harris
e15d13bf91 allow reactive store references anywhere in script - fixes #1889 2019-01-01 18:11:41 -05:00
Richard Harris
1d9ce0fff5 update tests 2019-01-01 15:06:42 -05:00
Richard Harris
e56c5653a7 start refactoring transitions 2019-01-01 12:28:08 -05:00