Rich Harris
837d248257
render server bindings
2018-10-27 16:37:50 -04:00
Rich Harris
8929aebbec
better error for missing store - fixes #1807
2018-10-27 14:32:26 -04:00
Rich Harris
d49f5f2136
Merge pull request #1797 from sveltejs/gh-1793
...
recognise dependencies in class directives
2018-10-24 11:50:32 -04:00
Rich Harris
e65b0bb2e3
Merge pull request #1798 from sveltejs/gh-1795
...
detach each block iterations with no update method
2018-10-24 11:50:20 -04:00
Rich Harris
f46366c4e7
remove leftover logging
2018-10-24 09:39:13 -04:00
Rich Harris
ece6aeb892
detach each block iterations with no update method - fixes #1795
2018-10-24 09:38:19 -04:00
Rich Harris
073c8762ef
extend dependency tracking to all directives
2018-10-24 08:30:50 -04:00
Rich Harris
3258779fa7
recognise dependencies in class directives - fixes #1793
2018-10-24 08:12:01 -04:00
Yury Zhuravlev
079bd4e58a
fix #1780 just start use parent instead parent.parent in IfBlock wrapper
2018-10-22 21:40:25 -04:00
Rich Harris
e5f5995458
Merge branch 'fix-lost-anchor-if-if-block-first' of https://github.com/stalkerg/svelte into stalkerg-fix-lost-anchor-if-if-block-first
2018-10-20 08:56:33 -04:00
Yury Zhuravlev
0d797ea8ae
Fix removing next link during strip whitespaces for first element.
2018-10-19 12:41:25 +09:00
Rich Harris
337b62be6f
fix blocks inside <svelte:head> - closes #1774
2018-10-17 16:51:17 -04:00
Rich Harris
4f88e43c37
handle elseif blocks with no else
2018-10-17 10:51:27 -04:00
Rich Harris
e0fe31327a
move render logic into separate phase ( #1678 )
2018-09-23 23:09:26 -04:00
Jacob Wright
51a3972ad5
Fixes shorthand class directives which do not have classes
...
Fixes #1739
2018-09-19 15:23:01 -06:00
Yury Zhuravlev
d7bd924bbd
Fix binding input with event in each and add test case.
2018-09-13 13:33:51 +09:00
Jacob Wright
67d4d60c3a
Fixes keyed each blocks for outro
...
Fixes #1706
2018-09-05 21:04:07 -04:00
Rich Harris
b4a3a60953
Merge pull request #1693 from sveltejs/gh-1617
...
Fix for each-blocks preventing outros from completing
2018-08-28 15:12:22 -04:00
Rich Harris
c7d372c8d5
Merge pull request #1695 from sveltejs/class-shortcut
...
Adds class directive shortcut and encapsulate styles
2018-08-28 15:10:22 -04:00
Jacob Wright
22f4b3d4cb
Remove camel-casing, but account for dashed parameters still.
2018-08-27 11:35:27 -06:00
Jacob Wright
4ec85bb8cc
Adds class directive shortcut
...
When no expression is used in a class directive the class name will be used to evaluate whether the class should be added/removed.
E.g. the following will add the class "active" when you call `component.set({ active });`.
```html
<div class:active></div>
```
2018-08-25 14:26:27 -06:00
Jacob Wright
4c2b9603a1
Fix for each-blocks preventing outros from completing
...
Unkeyed each blocks end up with trailing `null` values that prevent the whole from being outroed. This fixes it so the null values are removed before outroing the remaining blocks.
Fixes #1617
2018-08-25 13:39:48 -06:00
Rich Harris
33ed2f504e
Merge branch 'master' into gh-1520
2018-08-25 06:40:44 -04:00
Rich Harris
c4526c3302
Merge branch 'master' into gh-890
2018-08-24 21:29:08 -04:00
Jacob Wright
96c4455af9
Fixes an error with outros and elseifs
...
This is a fix for when an elseif doesn't have a final else, and the following error was thrown:
```
TypeError: Cannot read property 'o' of undefined
```
See https://svelte.technology/repl?version=2.12.0&gist=c33d308077447f8ba06b79d8ef5ab1e4
2018-08-24 14:01:51 -06:00
Jacob Wright
5ef44ae6c9
Adds the class directive
...
Allows `<div class:active="user.active">` to simplify templates littered with ternary statements.
Addresses #890
2018-08-24 10:09:46 -06:00
Rich Harris
af1902d510
run transitions in context of component - fixes #1675
2018-08-23 20:58:49 -04:00
Jacob Wright
ba5ede599a
Allows actions to use any expression type
...
Allow any expression to pass data to an action. Added a test for a ternary statement and a string template.
Fixes #1676
2018-08-23 17:23:55 -06:00
Jacob Wright
2c24c36120
Allows fragment updates to happen after state updates
...
Proposed fix for #1520 . Provides a starting point for discussion.
2018-08-23 11:56:11 -06:00
Rich Harris
620077227f
allow non-existent dynamic components to be destroyed ( #1660 )
2018-08-22 23:01:57 -04:00
Rich Harris
4ce2e1ddc5
Merge pull request #1652 from sveltejs/gh-1544-computed-whole-state
...
exclude current prop in computed properties using entire state #1544
2018-08-14 20:19:36 -04:00
Rich Harris
b62872d39c
Merge pull request #1530 from sveltejs/gh-1522
...
onstate before render
2018-08-14 20:17:33 -04:00
Conduitry
345cf64446
exclude current prop in computed properties using entire state #1544
2018-08-13 16:13:58 -04:00
Rich Harris
28e145e96d
preserve whitespace inside lists
2018-08-05 16:06:54 -04:00
Rich Harris
b3f009122b
tests were wrong way round
2018-08-05 15:38:09 -04:00
Rich Harris
e35f174207
Merge pull request #1628 from sveltejs/gh-1540
...
handle rest elements in computed properties
2018-08-04 19:40:27 -04:00
Rich Harris
09db82b7bd
failing test for #1621
2018-08-04 15:34:26 -04:00
Rich Harris
7d55a57a2c
handle rest elements in computed properties - fixes #1540
2018-08-04 10:27:24 -04:00
Rich Harris
9964a77565
stringify values before setting text data - fixes #1598
2018-08-04 09:31:24 -04:00
ekhaled
7042f5d2cb
failing test for #1598
2018-08-04 09:17:48 -04:00
ekhaled
bb5e6cc016
add failing test for #1589
2018-07-23 15:54:33 +01:00
Rich Harris
87e2241928
null out refs to dynamic components - fixes #1596
2018-07-17 14:11:07 -04:00
Rich Harris
c6f053ebbb
Merge branch 'master' of github.com:sveltejs/svelte
2018-07-14 22:21:50 -04:00
Conduitry
b4d7653b42
allow {:then}/{:catch} to have no bound identifier ( #1507 )
2018-07-09 20:10:28 -04:00
Conduitry
26dfb9afa7
in each-else, use mount/intro according to that branch's contents ( #1586 )
...
Fixes # 1559
2018-07-09 13:02:17 -04:00
Conduitry
e66d9ffae7
in .fire always set calling flag back to false ( #1587 )
...
* in .fire always set calling flag back to false (#1573 )
* update expected bundles
2018-07-09 13:00:58 -04:00
Yury Zhuravlev
0dcc0f2062
Merge branch 'master' into fix_outro_timeout
2018-07-09 11:28:40 +09:00
Conduitry
a2368cde46
unique name for select_block_type in IfBlock#buildCompoundWithOutros
...
Fixes #1580
2018-07-08 11:58:45 -04:00
Conduitry
909536dac9
fix determing whether an attribute should prevent innerHTML optimization
...
Fixes #1581
2018-07-08 11:58:33 -04:00
Yury Zhuravlev
7cab338e32
Fix race condition for if block
2018-07-06 19:02:12 +09:00