Arpad Borsos
91903cb927
add codegen support for raw mustache tags
2016-12-05 14:55:05 +01:00
Arpad Borsos
9187c2dd09
add parser support for raw mustache tags
2016-12-05 14:13:57 +01:00
Arpad Borsos
5d256eb600
add support for each-else in codegen
2016-12-05 09:58:39 +01:00
Arpad Borsos
fec55a1ccd
add each-else support to parser
2016-12-05 09:29:53 +01:00
Rich-Harris
d94209ba31
show code for all compiled components if config.show, not just main.html
2016-12-04 21:10:14 -05:00
Rich-Harris
306a931176
test update while yield fragment is torn down, and tweak code for consistency
2016-12-04 21:09:06 -05:00
Rich-Harris
172f0c9d6b
Merge branch 'yield-next' of https://github.com/FWeinb/svelte into FWeinb-yield-next
2016-12-04 20:35:10 -05:00
Fabrice Weinberg
6c473a3466
Initial implementation of {{yield}}-generator
2016-12-05 00:56:45 +01:00
Nico Rehwaldt
65cdead991
Verify computed property dependencies
...
Improves the validator to fail if someone forgets to declare
dependent properties for computed state:
```
export default {
computed: {
bar: () => { return new Date().getTime(); }
}
};
```
2016-12-04 21:22:48 +01:00
Fabrice Weinberg
4bcbdfb5ae
Parse {{yield}} as YieldTag
2016-12-04 17:13:54 +01:00
Rich-Harris
7654437d7b
resolve merge conflicts
2016-12-04 09:16:15 -05:00
Rich-Harris
76b9c37f13
Merge branch 'master' of https://github.com/sveltejs/svelte
2016-12-04 09:02:16 -05:00
mrkishi
bf12bb54a7
Fix typo in generator's contextualise; solves #46
2016-12-03 22:09:38 -02:00
Arpad Borsos
19c376f032
fix onrender hook for nested widgets
2016-12-03 13:15:16 +01:00
Arpad Borsos
a80dcda2e0
separate create from mount
2016-12-03 10:46:59 +01:00
Rich-Harris
90fac61d2a
use decodeCharacterReferences in text.js, not tag.js
2016-12-02 11:44:00 -05:00
Rich-Harris
84c9f647dd
Merge branch 'fix-entities' of https://github.com/FWeinb/svelte into FWeinb-fix-entities
2016-12-02 11:38:25 -05:00
Rich-Harris
57f94d4d0b
upgrade magic-string, fix sourcemaps
2016-12-02 11:26:16 -05:00
Rich Harris
695cfd01c9
more sourcemap stuff
2016-12-01 17:37:23 -05:00
Fabrice Weinberg
4b9832f03a
Convert entities of all text nodes
2016-12-01 21:30:50 +01:00
Rich-Harris
5e8a25fe65
add infrastructure for sourcemap tests
2016-12-01 11:50:10 -05:00
Rich Harris
f9b596c5e3
Merge pull request #82 from sveltejs/gh-75
...
prevent compiler from generating ES2015+ code
2016-12-01 08:57:32 -05:00
Rich-Harris
56b4fbcea2
prevent compiler from generating ES2015+ code
2016-12-01 08:54:56 -05:00
Arturo Guzman
a55b2374ae
return state when using get without key
...
References #73
2016-11-30 21:28:26 -05:00
Rich Harris
1de87945db
Merge pull request #71 from sveltejs/gh-63
...
handle empty attributes in elements and components
2016-11-30 17:38:01 -05:00
Rich Harris
9ba18c6d13
increase test coverage
2016-11-30 17:22:20 -05:00
Rich Harris
be8a564845
remove text nodes when removing iterations of each block ( #62 )
2016-11-30 17:11:15 -05:00
Rich Harris
7b15ff93ac
handle empty attributes in elements and components. fixes #63
2016-11-30 16:38:17 -05:00
Rich Harris
e4a9344bdb
Merge pull request #70 from sveltejs/gh-64
...
handle trailing comments in script tags
2016-11-30 16:20:17 -05:00
Rich Harris
68605071e7
Merge pull request #49 from Swatinem/elseif-whitespace
...
also trim whitespace from elseif/else blocks
2016-11-30 16:04:32 -05:00
Rich Harris
db65f01ee3
handle trailing comments in script tags – closes #64
2016-11-30 16:01:11 -05:00
Rich Harris
0cee0a7d7e
test that default data is overridden
2016-11-30 15:35:05 -05:00
Arpad Borsos
8518065c97
also trim whitespace from elseif/else blocks
2016-11-30 11:09:08 +01:00
Rich Harris
edb3946ba6
add failing but skipped test
2016-11-29 13:31:33 -05:00
Rich Harris
da980983c6
retain SVG namespace inside each blocks
2016-11-29 11:40:35 -05:00
Rich Harris
621fc92b1c
dont use property names with SVG elements
2016-11-29 11:33:03 -05:00
Arpad Borsos
b63a54b502
correctly insert non-element children before an anchor
2016-11-29 13:06:09 +01:00
Rich-Harris
ad4726ce76
argh i have no idea what im doing
2016-11-27 08:49:25 -05:00
Rich-Harris
5ba66c6511
whoops
2016-11-27 08:34:54 -05:00
Rich-Harris
d84adbf243
try to get coverage working again
2016-11-27 08:32:03 -05:00
Rich-Harris
fb5dd95bb0
IIFE and UMD builds ( #27 )
2016-11-26 18:49:26 -05:00
Rich-Harris
fa5bbbee9f
implement AMD and CommonJS outout formats ( #27 )
2016-11-26 15:13:03 -05:00
Rich-Harris
0f464d79b2
only fire onrender hooks once component is in the DOM – fixes #18
2016-11-26 12:29:39 -05:00
Rich-Harris
c199407db2
more validation
2016-11-26 11:34:16 -05:00
Rich-Harris
0698525f1b
basic validation
2016-11-26 10:52:25 -05:00
Rich-Harris
c1d230d625
only set ref to null when tearing down if it is still current – closes #24
2016-11-25 22:35:41 -05:00
Rich-Harris
507c9eb1a3
oops
2016-11-25 16:24:57 -05:00
Rich-Harris
ad1f15d01f
-> v0.2.0
2016-11-25 15:52:28 -05:00
Rich-Harris
8704d38503
use MagicString.Bundle for better sourcemap support
2016-11-24 11:18:52 -05:00
Rich-Harris
04388f7a0e
initialise fragments with data, rather than waiting for first update
2016-11-23 23:51:28 -05:00
Rich-Harris
7736866397
better solution for preventing blowback with inter-component bindings, also fixes #19
2016-11-23 15:57:51 -05:00
Rich-Harris
20bf76b578
component is context for custom event handlers
2016-11-23 13:20:02 -05:00
Rich-Harris
c523fc74aa
only update components if their dependencies have changed
2016-11-23 12:32:30 -05:00
Rich-Harris
978a2bcae7
some more tests
2016-11-23 10:47:49 -05:00
Rich-Harris
2ed34f4fe2
remove top-level text nodes on teardown
2016-11-23 10:47:36 -05:00
Rich-Harris
817d371826
fix readUntil infinite loop bug
2016-11-23 08:56:58 -05:00
Rich-Harris
f3d635fe60
basic <select> binding
2016-11-22 21:07:31 -05:00
Rich-Harris
48ce1c9054
fix component boolean attributes
2016-11-22 17:45:51 -05:00
Rich-Harris
8e96699044
prevent infinite set loops
2016-11-22 17:34:06 -05:00
Rich-Harris
bbdb87adac
test deeply nested bindings
2016-11-22 17:16:28 -05:00
Rich-Harris
54b713ce5a
prevent infinite observe loops
2016-11-22 16:52:16 -05:00
Rich-Harris
2741eee8bf
bind:foo shorthand – closes #20
2016-11-22 16:52:04 -05:00
Rich-Harris
cf1a80a28f
component two-way bindings
2016-11-22 16:14:58 -05:00
Rich-Harris
b1b47696b1
implement elseif
2016-11-22 13:58:37 -05:00
Rich-Harris
8a2813fb4b
add assert.htmlEqual helper
2016-11-22 13:20:42 -05:00
Rich-Harris
1b8c2ff4f3
pass assert into tests
2016-11-22 12:37:14 -05:00
Rich-Harris
c79b38ff6a
implement else blocks
2016-11-22 12:31:04 -05:00
Rich-Harris
77b600d726
add {{else}} tests
2016-11-22 11:56:09 -05:00
Rich-Harris
61c9105c2a
enable console.group
2016-11-22 11:55:34 -05:00
Rich-Harris
632a980948
wrap script block in IIFE to prevent pollution
2016-11-22 07:41:59 -05:00
Rich-Harris
370db7d269
scoped css
2016-11-21 20:01:22 -05:00
Rich-Harris
24e768e4d2
component events
2016-11-21 17:33:29 -05:00
Rich-Harris
abd8b77106
test custom events
2016-11-21 16:41:47 -05:00
Rich-Harris
6eeff1960c
add on and fire methods
2016-11-21 16:36:55 -05:00
Rich-Harris
2686508af3
dynamic component data
2016-11-21 16:17:42 -05:00
Rich-Harris
d27e99d239
support static data and refs on components
2016-11-21 15:25:16 -05:00
Rich-Harris
7adfd51649
failing component test
2016-11-21 13:05:14 -05:00
Rich-Harris
0d4728faf2
fix entities in attributes
2016-11-21 11:26:54 -05:00
Rich-Harris
4ce0f2fd58
handle unquoted attribute values
2016-11-21 08:23:48 -05:00
Rich-Harris
1eb3b7373e
test inline expression parse errors
2016-11-21 07:54:27 -05:00
Rich-Harris
4e3e6a45b6
test leading whitespace in template
2016-11-21 07:47:17 -05:00
Rich-Harris
a82b2e9e05
add parser.error coverage
2016-11-21 07:22:07 -05:00
Rich-Harris
4a5d4f482b
constructors not factories – closes #2
2016-11-20 22:52:42 -05:00
Rich-Harris
1fcaf01566
fix tests
2016-11-20 22:44:43 -05:00
Rich-Harris
c205761fe1
rename .svelte to .html in test files - better idea i think
2016-11-20 22:42:20 -05:00
Rich-Harris
55f3ba1a30
support SVG
2016-11-20 16:25:23 -05:00
Rich-Harris
4206127f1f
mocha.opts needs to be in project root
2016-11-20 13:15:27 -05:00
Rich-Harris
ee1444d2f0
-> v0.0.2
2016-11-20 13:14:34 -05:00
Rich-Harris
b743e54c24
autofocus
2016-11-20 12:56:13 -05:00
Rich-Harris
c2daa66b3c
remove elements at end of teardown sequence
2016-11-20 12:40:37 -05:00
Rich-Harris
44a2fd31f6
refs
2016-11-20 12:09:42 -05:00
Rich-Harris
ce79d3eca5
targeted updates of deep contextual bindings
2016-11-20 11:52:04 -05:00
Rich-Harris
240b00dd68
custom events
2016-11-20 10:42:06 -05:00
Rich-Harris
48fb01cf7e
deep/contextual binding
2016-11-20 09:58:08 -05:00
Rich-Harris
2aeaaa24b6
more binding stuff
2016-11-20 07:26:04 -05:00
Rich-Harris
263a08f155
first stab at deep two-way binding
2016-11-19 22:56:37 -05:00
Rich-Harris
fa60968ae1
basic two-way binding
2016-11-19 22:25:02 -05:00
Rich-Harris
3560bbe85e
fix insertion bug
2016-11-19 21:32:10 -05:00
Rich-Harris
5d9ebb9a39
simplify lifecycle
2016-11-19 19:33:16 -05:00
Rich-Harris
b8ddb16d5f
lifecycle methods
2016-11-19 19:25:57 -05:00
Rich-Harris
7569cf60c0
fix dynamic attributes
2016-11-19 19:06:17 -05:00
Rich-Harris
f136f951b3
helpers
2016-11-19 18:32:33 -05:00
Rich-Harris
c1204e57b0
expressions in if and each blocks
2016-11-19 17:52:23 -05:00
Rich-Harris
c02e849cb5
parse comments
2016-11-19 17:14:15 -05:00
Rich-Harris
7950d0a275
fix attributes with mustache tag as final chunk
2016-11-19 17:08:49 -05:00
Rich-Harris
43c257b62e
index in each blocks
2016-11-19 16:08:46 -05:00
Rich-Harris
8c8b6ccfa4
parse each block index
2016-11-19 15:56:58 -05:00
Rich-Harris
4a32e59f2e
allow multiple attributes
2016-11-19 15:22:26 -05:00
Rich-Harris
3ef3229075
complex dynamic attributes
2016-11-19 15:08:12 -05:00
Rich-Harris
cb9b00254b
more attribute parsing
2016-11-19 14:53:00 -05:00
Rich-Harris
e3e91d45ea
parse attributes
2016-11-19 13:10:20 -05:00
Rich-Harris
9fd6c3d408
inline expressions
2016-11-19 12:12:56 -05:00
Rich-Harris
9ff58cdb41
computed values
2016-11-19 11:52:08 -05:00
Rich-Harris
2f62a5aaca
more whitespace stuff
2016-11-19 10:59:11 -05:00
Rich-Harris
83f0f7d202
custom methods
2016-11-19 09:17:09 -05:00
Rich-Harris
6dbc777797
start using magic-string
2016-11-18 22:58:32 -05:00
Rich-Harris
b173384cfc
events half-way implemented
2016-11-18 20:49:46 -05:00
Rich-Harris
b59b33bf06
parse event handler directives
2016-11-18 20:02:28 -05:00
Rich-Harris
564ddba4bc
parse <script> tags
2016-11-18 18:40:22 -05:00
Rich Harris
a44398b0f1
snapshot
2016-11-18 16:55:06 -05:00
Rich Harris
8f892bf65b
nested each blocks
2016-11-18 15:28:40 -05:00
Rich-Harris
ba9238b864
some fictional {{#each}} code
2016-11-17 23:45:02 -05:00
Rich Harris
c4b1b548cc
parse each blocks correctly
2016-11-17 16:40:39 -05:00
Rich Harris
fe80374bd3
enable all tests
2016-11-17 16:15:34 -05:00
Rich Harris
4e7bd1dd2c
various
2016-11-17 16:15:08 -05:00
Rich Harris
e620fbbd69
parse if blocks
2016-11-17 13:40:00 -05:00
Rich-Harris
7f42cc98b3
more parsing
2016-11-17 00:20:38 -05:00
Rich Harris
f2f4a04ce1
rig tests up
2016-11-16 18:10:47 -05:00