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

3148 Commits

Author SHA1 Message Date
Rich Harris
0d10d6cc2d
Merge pull request #1744 from sveltejs/gh-1704
warn on unused helpers
2018-09-15 18:05:00 -04:00
Rich Harris
945134bc81 warn on unused helpers - fixes #1704 2018-09-15 17:47:16 -04:00
Rich Harris
9031c16905
[WIP] Refactor, change where validation occurs (#1721)
Refactor, change where validation occurs
2018-09-15 17:37:20 -04:00
Rich Harris
b7e07c5389 Merge branch 'fix_bind_with_event_in_each' of https://github.com/stalkerg/svelte into stalkerg-fix_bind_with_event_in_each 2018-09-15 12:43:02 -04:00
Rich Harris
ed21a244a7
Merge pull request #1738 from stalkerg/cleanup-get-event-handler-in-bindings
Small cleanup event handler in bindings to avoid TS errors.
2018-09-15 12:27:37 -04:00
Yury Zhuravlev
cedb296680 Small cleanup event handler in bindings to avoid TS errors. 2018-09-13 13:46:45 +09:00
Yury Zhuravlev
d7bd924bbd Fix binding input with event in each and add test case. 2018-09-13 13:33:51 +09:00
Rich Harris
a4d412fb53 increase timeout so that tests pass on this horrendously expensive piece of shit laptop i am forced to use. PS fuck you, apple 2018-09-06 14:22:38 -04:00
Rich Harris
01b0a47cd5 -> v2.13.4 2018-09-06 14:16:45 -04:00
Rich Harris
509403f351
Merge pull request #1715 from sveltejs/dynamic-import
support dynamic import in expressions
2018-09-06 14:15:59 -04:00
Rich Harris
f54c1ec7b8 support dynamic import in expressions 2018-09-06 13:38:35 -04:00
Conduitry
24482cb940 -> v2.13.3 2018-09-05 21:09:29 -04:00
Jacob Wright
67d4d60c3a Fixes keyed each blocks for outro
Fixes #1706
2018-09-05 21:04:07 -04:00
Rich Harris
2e4b65af5a -> v2.13.2 2018-08-28 15:36:55 -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
Rich Harris
3c9d4b2862
Merge pull request #1703 from TehShrike/1699-input-changed
Only update inputs when the value changed
2018-08-28 15:07:03 -04:00
Jacob Wright
fb734a349e Use existing property quoting function 2018-08-28 09:47:17 -06:00
Josh Duff
211e0383cf Only update inputs when the value changed
Fixes #1699
2018-08-28 10:33:49 -05:00
Jacob Wright
22f4b3d4cb Remove camel-casing, but account for dashed parameters still. 2018-08-27 11:35:27 -06:00
Rich Harris
6327647949
Merge pull request #1691 from sveltejs/gh-1520-alt
Alternative approach to #1520
2018-08-26 19:59:52 -04:00
Jacob Wright
c1fc9c1ac9 Encapsulate class directives in the stylesheet. 2018-08-25 14:50:14 -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
a18cec0ec6 not sure where that extra blank line came from 2018-08-25 07:08:08 -04:00
Rich Harris
645f9e3894 oops, we need that argument 2018-08-25 07:06:46 -04:00
Rich Harris
c2f0ca3e2e alternative approach to #1520 2018-08-25 06:58:31 -04:00
Rich Harris
33ed2f504e Merge branch 'master' into gh-1520 2018-08-25 06:40:44 -04:00
Rich Harris
0f171a5f3e -> v2.13.1 2018-08-25 06:29:23 -04:00
Rich Harris
4d4c2c3655 coerce toggle argument 2018-08-25 06:27:38 -04:00
Rich Harris
c7609a2da3 -> v2.13.0 2018-08-24 21:42:29 -04:00
Rich Harris
f1324e649f
Merge pull request #1690 from sveltejs/remove-source-map
remove sourcemaps from package
2018-08-24 21:41:18 -04:00
Rich Harris
479cf47556
Merge pull request #1685 from sveltejs/gh-890
Adds the class directive
2018-08-24 21:39:25 -04:00
Rich Harris
f12141e18a
Update dom.js 2018-08-24 21:32:35 -04:00
Rich Harris
c4526c3302
Merge branch 'master' into gh-890 2018-08-24 21:29:08 -04:00
Rich Harris
d0d548f708 remove sourcemaps from package 2018-08-24 20:00:05 -04:00
Rich Harris
e26dcadecf -> v2.12.1 2018-08-24 19:52:47 -04:00
Rich Harris
ff6c4c7767
Merge pull request #1681 from sveltejs/gh-1666
correctly set select value on mount
2018-08-24 19:47:09 -04:00
Rich Harris
ed9a9a9530
Merge pull request #1682 from sveltejs/gh-1659
support debug tag in SSR mode
2018-08-24 19:41:44 -04:00
Rich Harris
09865ebbed
Merge pull request #1683 from sveltejs/gh-1658
don't warn on empty block for nbsp
2018-08-24 19:41:28 -04:00
Rich Harris
fe8e31a592
Merge pull request #1684 from kaisermann/spread-attr-style
Set style attribute correctly when spread attr present
2018-08-24 19:41:12 -04:00
Rich Harris
d6fe9b4b84
Merge pull request #1688 from sveltejs/outro-elseif-error
Fixes an error with outros and elseifs
2018-08-24 19:39:45 -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
Christian Kaisermann
54dc1e5849 Set style attribute correctly when spread attr present 2018-08-24 12:16:09 -03:00
Rich Harris
c52a6f011b dont warn on empty block for nbsp - fixes #1658 2018-08-24 08:22:41 -04:00
Rich Harris
4890d4dc02 increase timeout, reduce flakiness 2018-08-23 22:55:38 -04:00
Rich Harris
154ee73765 support debug tag in SSR mode - fixes #1659 2018-08-23 22:53:17 -04:00
Rich Harris
ec6360487e correctly set select value on mount - fixes #1666 2018-08-23 22:02:16 -04:00
Rich Harris
c2642bdf11
Merge pull request #1680 from sveltejs/gh-1675
run transitions in context of component
2018-08-23 21:46:50 -04:00