Commit Graph

363 Commits (585c238bad2b617f21c30f7a4238546488d1c62d)

Author SHA1 Message Date
Rich Harris d2103c8ad8 oops
9 years ago
Rich Harris 4ff3a8693b skip async-await tests below node 8
9 years ago
Johnny Hauser ef0ad5f5f5 oncreate async tests (function, arrow, arrow block)
9 years ago
Rich Harris 7685f70a95 add test for #891
9 years ago
Rich Harris 562315c123 possible fix for #893
9 years ago
Conduitry 6af2d95191 add failing test for each block updates
9 years ago
Jacob Mischka 0984e80fad Remove Object.entries from test
9 years ago
Jacob Mischka cc4c5d36fb Add missing runtime test, add contexts to SSR
9 years ago
Conduitry 00856b412b more testing
9 years ago
Conduitry 8ed5a71fef expand unit test
9 years ago
Rich Harris 5f76cad961 fix escaping of %-prefixed names
9 years ago
Rich Harris 29c954487b fix indentation, update snapshot tests
9 years ago
Rich Harris e90daceb45 take template object out of IIFE
9 years ago
Rich Harris 2a689ee40b Merge pull request #854 from sveltejs/gh-782
9 years ago
Rich Harris 8d7a8829dc allow console.* calls in event handlers. fixes #782
9 years ago
Rich Harris 71a315f818 use anchor.parentNode as target instead of slot document fragment - fixes #850
9 years ago
Rich Harris 33d374d5f1 failing test for #850
9 years ago
Rich Harris c7b8c98e5e Merge branch 'master' into gh-827
9 years ago
Rich Harris f8be8f5a13 dont use skipped text nodes as anchors - fixes #843
9 years ago
Rich Harris 879b6b3d0d use anchors for slotted content - fixes #822
9 years ago
Rich Harris 32a2ddc1af failing test for #827
9 years ago
Rich Harris 99f9e6a4c1 use component name in runtime dev warnings - fixes #781
9 years ago
Rich Harris 179f7b47e2 prevent mutation bug from incorrectly calling observer (fixes #804)
9 years ago
Rich Harris 8f31f96edc dont noop set/get until after component is destroyed (fixes #788)
9 years ago
Rich Harris 7b859cfaa8 stack up append targets so that slotted content in nested components works in SSR mode (fixes #801)
9 years ago
Rich Harris 0cfc67ca11 only use noscript if necessary
9 years ago
Rich Harris f63616903e failing tests for #637
9 years ago
Rich Harris db3c7abec4 Merge pull request #794 from sveltejs/gh-550
9 years ago
Rich Harris 47b10a184a remove test of instantiation without options, its nonsensical
9 years ago
Rich Harris 72fd1228c7 attach options to component (#550)
9 years ago
Rich Harris be6e778a53 support nested <slot> elements
9 years ago
Rich Harris fd8f6f5f09 dont actually render <slot> elements
9 years ago
Rich Harris c1eda75ba0 wrap fallback hydration code in conditional
9 years ago
Rich Harris ec30e3dfa8 fallback content
9 years ago
Rich Harris 906daf3514 populate component.slots
9 years ago
Rich Harris e49183e91b server-side named slots
9 years ago
Rich Harris 70cbb6a3c7 client-side named slots
9 years ago
Rich Harris 25f08b215f replace {{yield}} with <slot/>
9 years ago
Rich Harris 224a3c0e96 start work on <slot>
9 years ago
Rich Harris d02c468834 update component bindings together. WIP
9 years ago
Rich Harris 2f0abaa719 apply optimisation to raw tags
9 years ago
Rich Harris d07af2a0c5 fix select edge case
9 years ago
Rich Harris 8faa01ad5c only cache values when it makes sense
9 years ago
Rich Harris 6292204072 do dirty check in _set, so we can easily skip unnecessary computations later (#768)
9 years ago
Rich Harris 1038d3fccc Merge pull request #766 from sveltejs/gh-740
9 years ago
Rich Harris 4d9b57e911 bind to change events for range inputs, as well as input events (#740)
9 years ago
Rich Harris 06c9e37770 call create() on new iterations of static each blocks (#762)
9 years ago
Rich Harris 92766ee9e7 handle set after destroy, and move destroy into shared helpers
9 years ago
Conduitry 0e1b4c60ee add test
9 years ago
Rich Harris 5dc0482829 rename test
9 years ago
Rich Harris aed1706696 failing tests for #741
9 years ago
Rich Harris e67225bd7f Merge pull request #737 from sveltejs/update-deps
9 years ago
Rich Harris 508188d107 add dev mode warning for double destroy
9 years ago
Rich Harris d2a5f5df33 remove reify
9 years ago
Rich Harris 714a267837 dont throw error if component is destroyed twice (closes #643)
9 years ago
Rich Harris 55778c3b8e Merge pull request #732 from sveltejs/gh-638
9 years ago
Rich Harris d13b682f85 Merge pull request #728 from sveltejs/gh-721
9 years ago
Rich Harris 8720fa5fbc event propagation shorthand for components (#638)
9 years ago
Rich Harris e25a4d5882 event propagation shorthand for elements (#638)
9 years ago
Rich Harris 1feee787f5 use _set, not set, when updating child components - fixes #721
9 years ago
Rich Harris 3c04dd7ed1 clear refs in destroy, not unmount, so that refs are populated in ondestroy. fixes #706
9 years ago
Rich Harris d5ac8d1be2 unescape hash character (#722)
9 years ago
Yury Zhuravlev 8193ab534c Fix binding in each block
9 years ago
Rich Harris 1ff8feb341 Merge pull request #720 from sveltejs/gh-711
9 years ago
Rich Harris 6676fe31b4 Merge pull request #719 from sveltejs/gh-712
9 years ago
Rich Harris 66adfefd36 Merge pull request #718 from sveltejs/gh-713
9 years ago
Rich Harris 850d66411f ensure data is up to date when re-rendering yield blocks (fixes #711)
9 years ago
Rich Harris e1ee7574bd failing test for #711
9 years ago
Rich Harris b4f2111f70 second failing test for #712
9 years ago
Rich Harris 540f83529c dont strip whitespace at the end of an each block (#713)
9 years ago
Rich Harris f4089a8558 make test more stringent
9 years ago
Rich Harris 574f428fa8 tidy up test
9 years ago
Rich Harris 3032c82111 sketch of a solution to #708
9 years ago
Rich Harris 9803202e8a Merge pull request #704 from sveltejs/gh-700
9 years ago
Rich Harris f505a07384 fire intro.start and outro.start events (#702)
9 years ago
Rich Harris de3dfbd302 use anchor comments to preserve order in keyed each blocks with components (fixes #700)
9 years ago
Rich Harris 45a55a2325 alias #component in hoisted event handlers - fixes #699
9 years ago
Rich Harris befb5f1615 Merge pull request #690 from sveltejs/gh-685
9 years ago
Rich Harris 68af2fd26c add test
9 years ago
Rich Harris 1f34e4a469 call oncreate functions before bindings
9 years ago
Rich Harris a07cd328a0 fix context for bindings (#685)
9 years ago
Rich Harris 79ed77414c Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris aaa0c50651 handle @foo and #foo edge cases
9 years ago
Rich Harris 70cd2a205f Merge pull request #675 from sveltejs/gh-651
9 years ago
Rich Harris 8b2e65b3ce update tests
9 years ago
Rich Harris 137cefde72 move whitespace logic out of parse and into preprocess
9 years ago
Rich Harris a95bd7f416 add test for #651
9 years ago
Rich Harris e8f43c9e3e deconflict name with imports (#655)
9 years ago
Rich Harris 09213f5d12 dont recreate if_blocks incorrectly
9 years ago
Rich Harris b6be4cec07 reenable tests
9 years ago
Rich Harris 4b7f9ec722 pass params to get_block (#667)
9 years ago
Rich Harris 729f909b1b only run create() for new if blocks - fixes #665
9 years ago
Rich Harris f6a6c55007 fix each-else blocks that are empty on initial render (#662)
9 years ago
Rich Harris f10d2bb250 fix most non-hydration tests
9 years ago
Rich Harris b8141d0fc5 doh
9 years ago
Rich Harris 282a3553d2 add test for #643
9 years ago
Rich Harris 77cd688922 Merge pull request #642 from sveltejs/gh-639-b
9 years ago
Rich Harris 8a095f1d11 mark indirect dependencies of <select> bindings - #639
9 years ago
Rich Harris 6a13e538b3 skip failing SSR test for now
9 years ago
Rich Harris f2596decc6 sync state with view, if <select> binding does not have initial value (#639)
9 years ago
Rich Harris b844f7a58d Merge pull request #627 from sveltejs/gh-624
9 years ago
Conduitry c31bdc6863 correctly handle empty <style> tag (#634)
9 years ago
Rich Harris e926dc09f4 only enforce static type if input is bound (fixes #620)
9 years ago
Rich Harris e04ae39b51 allow components to have computed member expressions for bindings (fixes #624)
9 years ago
Rich Harris 81561703fa more improvements to ergonomics around test failures
9 years ago
Rich Harris 27a10994ad failing test for #625
9 years ago
Conduitry 330c22e146 also escape back-ticks and backslashes in text nodes in SSR code (#616)
9 years ago
Conduitry c97159ee2e sanitize event name in handler function name (#612)
9 years ago
Rich Harris 8458a3f9e2 merge master -> gh-592
9 years ago
Rich Harris 5a3aa566ce Merge pull request #606 from sveltejs/gh-584
9 years ago
Rich Harris 173fdffaa8 Merge pull request #605 from sveltejs/gh-602
9 years ago
Rich Harris 7e5e6c3f13 add test for #610
9 years ago
Rich Harris 41cd7f1b15 coerce empty string in number/range inputs to undefined - closes #584
9 years ago
Rich Harris 19a64181b6 support binding to computed member expressions (fixes #602)
9 years ago
Rich Harris 96efd6d993 Merge branch 'master' into gh-592
9 years ago
Rich Harris feb308cebf Merge pull request #601 from sveltejs/gh-574
9 years ago
Rich Harris ac6bdd4df3 Merge pull request #600 from sveltejs/gh-575
9 years ago
Rich Harris cbc0b968ef separate unmount from destroy
9 years ago
Rich Harris 2478c797ab Merge branch 'master' into gh-592
9 years ago
Rich Harris 7b9ef42d3b apply t0 styles to nodes if css transition has delay. fixes #574
9 years ago
Rich Harris 14936889ae always use helpers if referenced, not just for CallExpressions, and warn on context clashes (#575)
9 years ago
Rich Harris d1e2ef34f1 treat <textarea> children the same as a value attribute
9 years ago
Rich Harris 791bbc0ad5 use value property for textareas
9 years ago
Conduitry 7732e69df5 add failing unit test for #592
9 years ago
Conduitry 819217decc add unit test
9 years ago
Rich Harris eb6c72debe Merge pull request #571 from sveltejs/gh-569
9 years ago
Conduitry 5f2c7cb725 failing test for #569
9 years ago
Rich-Harris 5ecdcaf0ad update dynamic keyed each blocks
9 years ago
Rich-Harris e9a9aea5a8 handle bidirectional transitions
9 years ago
Rich-Harris 1f6743c197 Merge branch 'master' into gh-543
9 years ago
Rich-Harris ae138329dd another crack at the algorithm. outros not currently applied
9 years ago
Rich-Harris 8c0b1bee06 update keyed each-block outro test to check div order
9 years ago
Rich-Harris 3db74bff28 apply delays to bidirectional transitions - fixes #562
9 years ago
Rich Harris 3c8e83edfb Merge pull request #563 from sveltejs/gh-561
9 years ago
Rich-Harris 796adf8961 fix outros on compound if blocks, get IfBlock.js coverage to 100%
9 years ago
Rich-Harris 87a4fb4879 some more html entity stuff, the bits i understand at least
9 years ago
Rich-Harris d6856c135b add complete list of html entities
9 years ago
Rich-Harris da23dab0bf failing test for #561
9 years ago
Rich-Harris 2cab755163 oops
9 years ago
Rich-Harris 690249816c abort intros before restarting them - fixes #546
9 years ago
Rich-Harris 4bbd4eb0f9 merge master -> gh-7
9 years ago
Rich-Harris 3871627d63 outros on keyed each-blocks
9 years ago
Rich-Harris f30162f5e6 unkeyed each-blocks with outros
9 years ago
Rich-Harris e8a0646f88 fix mount order of keyed each-block with intros
9 years ago
Rich-Harris 6601a27ad0 intro transitions in each-blocks
9 years ago
Zirro 3280a1974d Use .querySelector(':checked'), enable several <select> tests
9 years ago
Rich-Harris 8e5748477d tighten up transition tests
9 years ago
Rich-Harris a839f7fc9a support dynamic simple if-blocks
9 years ago
Rich-Harris 0a62ac7619 some more transition tests, albeit somewhat ugly
9 years ago
Rich-Harris 7467f5ea12 get basic intro transition test passing
9 years ago
Rich-Harris 3eda59d2cb Merge branch 'master' into gh-7
9 years ago
Rich Harris ae467608db Merge pull request #536 from sveltejs/gh-534
9 years ago
Conduitry 3e736f5ebd fix parsing of expressions wrapped in parentheses (#534)
9 years ago
Conduitry dcd2a99a77 fix simple if blocks with top-level or conditions (#532)
9 years ago
Rich-Harris c3c58531a8 Merge branch 'master' into gh-7
9 years ago
Rich Harris 5384583c19 Merge pull request #527 from sveltejs/gh-524
9 years ago
Rich-Harris 789b759d48 fix for #524
9 years ago
Rich-Harris 8291c53349 include destroy as valid built-in method for event handlers (fixes #523)
9 years ago
Rich-Harris 61e7089f9e failing test for intro transition
9 years ago
Rich Harris 5dac68ed5a Merge branch 'master' into gh-3
9 years ago
Rich-Harris f20d29c993 skip <select> test
9 years ago
Conduitry 2911513fb8 fix unit test?
9 years ago
Tobias Davis 685dffd4f5 failing test for bound event handler on <select> elements
9 years ago
Conduitry 5f27bbdcde replace invalid characters in element names when creating variables (#516)
9 years ago
Conduitry bbca5d1402 only call .update on yield fragment if it's present (#514)
9 years ago
Conduitry 7969409ae6 Merge branch 'master' into gh-3
9 years ago
Rich Harris a52f40eb82 Merge branch 'master' into gh-507
9 years ago
Rich-Harris e903ff69fc only create anchors for if blocks when necessary
9 years ago
Rich-Harris 6ff83a4127 rename root to state, and allow state to be used as context
9 years ago
Rich-Harris be5dcd5631 null out else block references when they are destroyed — fixes #509
9 years ago
Rich Harris d17de8c51d Merge pull request #501 from sveltejs/gh-498-b
9 years ago
Rich Harris 425aec2bf5 Merge pull request #500 from sveltejs/gh-498
9 years ago
Rich Harris f591a5e844 Merge pull request #499 from sveltejs/gh-495
9 years ago
Rich-Harris 834c94b861 formatting
9 years ago
Rich-Harris 79d99b9170 Merge branch 'master' of https://github.com/saibotsivad/svelte into taylorzane-hotfix/initialize-select-element
9 years ago
Rich-Harris 430037cb9c whoops
9 years ago
Rich-Harris c6aa61ae1f allow dynamic each-block to have static else-block
9 years ago
Rich-Harris 5591443103 failing test for #498
9 years ago
Rich-Harris 0d459b949c ensure var names in binding callbacks are unique — fixes #495
9 years ago
Rich-Harris 2c760223d0 failing test for #495
9 years ago
Tobias Davis cb095325e4 add failing test for bound select elements
9 years ago
Rich-Harris efcf4b318b dont try to test audio stuff in JSDOM
9 years ago
Rich-Harris a7e7fb6423 Merge branch 'window-events' into gh-406
9 years ago
Rich-Harris 1ad1cd8a78 reenable all tests
9 years ago
Rich-Harris 509328ceb2 allow window events to access state
9 years ago
Rich-Harris ce060c1679 implement bind:duration and bind:paused
9 years ago
Rich-Harris 20ef3734fa implement bind:currentTime
9 years ago
Rich-Harris 6e89ce0bfb make all tests run
9 years ago
Rich-Harris eb76a28f8d helpers should not be considered dependencies — fixes #492
9 years ago
Rich-Harris 35a45799f2 more tidying up
9 years ago
Rich-Harris d027851e43 wait this is actually way easier
9 years ago
Rich-Harris d0d17bfde7 prevent component binding blowback on initial render
9 years ago
Rich-Harris 134e9b6f9d ensure binding event handlers precede normal ones (fixes #486)
9 years ago
Rich-Harris 4c927c0c26 clone before set — fixes #479
10 years ago
Rich-Harris 04db04cbd5 update select value bindings at the end of the cycle (fixes #476)
10 years ago
Conduitry 11dcbc1e68 only warn on missing properties in dev mode, do not warn on whitelisted globals
10 years ago
Rich-Harris 24c8782165 replace all invalid characters in attribute names when creating variables (fixes #470)
10 years ago
Rich Harris 6258a7c09e Merge branch 'master' into readonly-dev-warning
10 years ago
Rich Harris a8e5a9c49e Merge pull request #461 from sveltejs/gh-404-scroll
10 years ago
Rich Harris 05e3118592 ensure hoisted event handler names are globally unique — fixes #466
10 years ago