Commit Graph

380 Commits (c806aad4101942277e4b3e7bfcef8036f301ae94)

Author SHA1 Message Date
Rich Harris d5e93c6d51 add test to ensure only <, > and & are escaped
9 years ago
Rich Harris 9fcb2f4f7f failing tests for #1066
9 years ago
Rich Harris d0136fe543 detect unused/misplaced components - closes #1039
9 years ago
Rich Harris 5304abf915 fix data references in event handlers inside await-then-catch (fixes #1032)
9 years ago
Rich Harris b61e3c8a35 Merge pull request #1048 from sveltejs/gh-1022
9 years ago
Rich Harris c2aeead86e reenable tests
9 years ago
Rich Harris 5c54cad290 boy do i feel stupid. fixes #1022
9 years ago
Rich Harris 94f7b959b8 create initial data for dynamic components in correct place - fixes #1040
9 years ago
Rich Harris f639bbed42 get store() to work with nested components in SSR compiler
9 years ago
Emil Ajdyna 8609956e22 Add state() method handling for components
9 years ago
Rich Harris bd85fc13fc Merge pull request #1024 from sveltejs/gh-1013
9 years ago
Rich Harris 84b70eac88 server-side <:Head>
9 years ago
Rich Harris 69dab15d8d remove <:Document>, implement <:Head> on client-side
9 years ago
Rich Harris 69a9fe042e deconflict properly
9 years ago
Rich Harris f0055e555b change server-side render method signature
9 years ago
Rich Harris 2390952973 add new <:Document> meta-component
9 years ago
Rich Harris feee1d9c8f implement preload
9 years ago
Rich Harris f5573cd8e8 Merge pull request #1019 from sveltejs/gh-1012
9 years ago
Rich Harris 1600a89b98 Merge pull request #1018 from sveltejs/gh-1014
9 years ago
Rich Harris 48dc90d9f7 remove solo
9 years ago
Rich Harris afcf2aa3f2 deconflict computed properties with arguments to _recompute - fixes #1012
9 years ago
Rich Harris f6995a800b allow await blocks in slots - fixes #1014
9 years ago
Rich Harris ffdae43b70 allow components without slots to have whitespace as only child - fixes #1007
9 years ago
Rich Harris 89305e63c9 await...then shorthand - fixes #957
9 years ago
Rich Harris d127015849 emit dev mode error for bad arguments to set - fixes #990
9 years ago
Rich Harris 877e811c99 don't add event to expectedProperties - fixes #972
9 years ago
Rich Harris 0fb180009e fix dynamic components inside elements - fixes #994
9 years ago
Rich Harris c64561458b Merge branch 'master' into gh-640
9 years ago
Rich Harris f54bfe29dd mount await blocks with siblings (#974), and unmount correctly (#975)
9 years ago
Rich Harris f5c5083881 fix tests, finish renaming stuff
9 years ago
Rich Harris 5e71d2fff4 slotted contents of dynamic components
9 years ago
Tim Hall d744b038e4 Failing test for #975
9 years ago
Tim Hall f5c608f357 Failing test for #974
9 years ago
Rich Harris cd534ab792 update props of existing dynamic component
9 years ago
Rich Harris e3ac083ab0 dynamic component bindings
9 years ago
Rich Harris b7d9c1e113 rename tests
9 years ago
Rich Harris 96267066b6 dynamic component event handlers
9 years ago
Rich Harris ef838363d9 client-side dynamic components mostly working (#640)
9 years ago
Rich Harris 3551019a75 dont transform bidi transitions twice - fixes #962
9 years ago
Rich Harris 4ba5d65a16 correctly mount await block that has an anchor
9 years ago
Rich Harris 6187a703c2 Merge branch 'master' into gh-654
9 years ago
Rich Harris 0b8ef112ca prevent boolean attributes breaking shapes inside estree-walker - fixes #961
9 years ago
Rich Harris 8a9044a848 fix test failures resulting from new JSDOM version
9 years ago
Rich Harris a354365798 gah i always forget this. need a pre-commit hook
9 years ago
Rich Harris cd8d144818 allow parameterised transitions - fixes #962
9 years ago
Rich Harris f3d5becac8 add combineStores function
9 years ago
Rich Harris 510515f4c8 ditch async/await in tests, so that they run in node 6
9 years ago
Rich Harris 5b0b115cfc await-then-catch with non-promise
9 years ago
Rich Harris 5cd47cfdbb basic client-side await-then-catch working
9 years ago
Rich Harris cfd6ff54f3 halfway there
9 years ago
Rich Harris 7e725b11b7 remove solo: true
9 years ago
Rich Harris e53b4f5386 fix tests, now that computed prop dependencies are expected
9 years ago
Rich Harris 5ec57f8b9a allow computed properties to depend on store props
9 years ago
Rich Harris fbc1785e36 allow event handlers to call store methods
9 years ago
Rich Harris fd63a56d52 store bindings
9 years ago
Rich Harris ff543bd171 reenable all tests
9 years ago
Rich Harris 1bd56a591f client-side store subscriptions
9 years ago
Rich Harris 7231693a9c append to the dom, not a document fragment, when updating each block in slot - fixes #927
9 years ago
Rich Harris 839e8905c9 attach globals to state object on initialisation
9 years ago
Rich Harris a532f36ab2 combine multiple bindings in single handler, implement bind:indeterminate — fixes #910
9 years ago
Rich Harris cd97521daa update tests
9 years ago
Rich Harris 4116b9d8b1 use <option> children as value attribute, if none exists. fixes #928
9 years ago
Rich Harris c4b9538e2a Merge pull request #921 from sveltejs/gh-917
9 years ago
Rich Harris 21d995d904 dont use innerHTML for options inside optgroups - fixes #915
9 years ago
Rich Harris ce797a5ee7 oops
9 years ago
Rich Harris 06bdaa99da check component exists after _bind before continuing - fixes #917
9 years ago
Rich Harris a562314ffc Merge pull request #902 from sveltejs/gh-893
9 years ago
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