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

1070 Commits

Author SHA1 Message Date
Rich-Harris
8148230e49 align SSR compiler with DOM compiler 2017-04-08 16:58:07 -04:00
Rich-Harris
f88788cc29 rename fragment to block everywhere 2017-04-08 16:55:30 -04:00
Rich-Harris
0050871197 more consistent naming 2017-04-08 16:49:33 -04:00
Rich-Harris
aa41135f21 remove redundant addSourcemapLocations calls 2017-04-08 16:33:52 -04:00
Rich-Harris
552820cd7f rename Fragment to Block 2017-04-08 16:28:20 -04:00
Rich-Harris
bd85ffbf28 move render logic into fragment 2017-04-08 16:22:20 -04:00
Rich-Harris
858c6b5e82 add gitkeep file so tests pass in CI 2017-04-08 16:12:54 -04:00
Rich-Harris
cca91f88bb remove getBuilders 2017-04-08 16:06:03 -04:00
Rich-Harris
cc2b6fd53b make fragment constructor more explicit 2017-04-08 16:03:51 -04:00
Rich-Harris
078f36be6a get rid of fragment.type 2017-04-08 15:55:04 -04:00
Rich-Harris
96eca1235b get rid of findBlock 2017-04-08 15:53:05 -04:00
Rich-Harris
c87967be69 rename state.target to more self-explanatory state.parentNode 2017-04-08 15:37:05 -04:00
Rich-Harris
4b3bdcf946 use isTopLevel instead of elementDepth 2017-04-08 15:33:50 -04:00
Rich-Harris
a9fb93eb32 remove redundant localElementDepth 2017-04-08 15:29:53 -04:00
Rich-Harris
421f3d698f separate current *fragment* from current *generator state* 2017-04-08 14:37:29 -04:00
Rich-Harris
abf774bc57 remove generator.push and generator.pop 2017-04-08 13:32:16 -04:00
Rich-Harris
d93a3698fb all tests passing once more. now the real work begins 2017-04-08 12:42:27 -04:00
Rich-Harris
cdb8b9d01d get yield blocks working 2017-04-08 11:59:30 -04:00
Rich Harris
c0442b5eb1 another horrible half-done commit 2017-04-07 16:23:28 -04:00
Rich Harris
d0752cd6b1 another half-done commit 2017-04-06 18:30:43 -04:00
Rich Harris
063e76f322 baby steps... 2017-04-06 16:45:18 -04:00
Rich Harris
3006a245af more consistent naming 2017-04-06 16:18:27 -04:00
Rich Harris
11033c2f20 minor test tweaks 2017-04-06 15:45:26 -04:00
Rich Harris
6802f43e48 Merge pull request #454 from taylorzane/gh-452-fix-empty-computed
Fixed empty component 'computed' from throwing error.
2017-04-05 08:16:31 -04:00
Taylor Zane Glaeser
3ed4dc68ee Fixes #452. Fixed an issue that caused setting computed to an empty object to prevent the component from compiling. 2017-04-04 22:41:49 -05:00
Rich-Harris
b8705a5b0c turn dom generator visitors into functions 2017-04-04 23:17:02 -04:00
Rich-Harris
e7d324f305 visitors can just be functions now 2017-04-04 23:10:52 -04:00
Rich-Harris
2d4f9eac00 make visitors responsible for visiting their own children 2017-04-04 22:55:30 -04:00
Rich Harris
00f1eaee12 remove this._callbacks 2017-04-04 18:15:07 -04:00
Rich Harris
77eee8602d remove some long-since obsolete generator code 2017-04-04 17:55:44 -04:00
Rich Harris
f43e71b959 remove #433 test for now 2017-04-04 17:55:31 -04:00
Rich Harris
803d1d2746 move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433 2017-04-04 12:05:54 -04:00
Rich Harris
7219202471 reverse pre and post to fix deferrerd observers (fixes #441) 2017-04-04 11:51:30 -04:00
Rich Harris
d105b6ba4c -> v1.13.6 2017-04-04 10:41:50 -04:00
Rich Harris
3af7a7c849 Merge pull request #447 from sveltejs/gh-440
Remove unnecessary template IIFEs
2017-04-04 10:38:34 -04:00
Rich Harris
3fcbf428bd while we're at it, remove unused stuff from generated SSR code 2017-04-04 10:21:19 -04:00
Rich Harris
d2db41f811 remove unnecessary template declarations - fixes #440 2017-04-04 10:00:58 -04:00
Rich Harris
4b5754b9a7 centralise logic for manipulating source javascript 2017-04-04 09:31:42 -04:00
Rich-Harris
caec96f9da make abstract removeNode function 2017-04-04 09:13:01 -04:00
Rich Harris
3881f5f84b Merge pull request #445 from sveltejs/gh-442-b
generate more idiomatic code when removing object properties
2017-04-04 07:47:32 -04:00
Rich Harris
d818e42e56 Merge pull request #446 from sveltejs/better-prototype-assignment
better prototype assignment
2017-04-04 07:47:23 -04:00
Rich-Harris
90b9dc84ad fix broken proto helper 2017-04-04 07:09:54 -04:00
Rich-Harris
92f19a0a74 better prototype assignment 2017-04-04 06:47:55 -04:00
Rich-Harris
91bf849cc7 generate more idiomatic code when removing object properties 2017-04-03 21:39:49 -04:00
Rich Harris
bb5d9cc08b Merge pull request #444 from sveltejs/gh-442
dont generate intermediate data objects for components unnecessarily
2017-04-03 21:05:42 -04:00
Rich Harris
b2ec4afdb8 Merge branch 'master' into gh-442 2017-04-03 20:24:37 -04:00
Rich Harris
9da4e80aa7 Merge pull request #443 from sveltejs/gh-431
use assign helper, to avoid compatibility headaches
2017-04-03 20:23:17 -04:00
Rich Harris
ced1de84b3 Merge pull request #422 from sveltejs/gh-419
use snake case in generated identifiers (#419)
2017-04-03 20:14:56 -04:00
Rich-Harris
5a4f1aeba5 fix remaining test failures 2017-04-03 20:03:27 -04:00
Rich-Harris
be33a29a56 mostly fix insane node 4 issue 2017-04-03 20:00:26 -04:00