Commit Graph

1125 Commits (915b75422db92ab53d23cfd994865483787ae0c5)

Author SHA1 Message Date
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 3c98ba7985 parse :Switch tags
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 9613e3f506 reenable all tests
9 years ago
Rich Harris 2d72a50ad9 fix attribute parsing
9 years ago
Rich Harris b5a8755102 remove tests of coffeescript etc
9 years ago
Rich Harris ab7550c4e2 more direct tests
9 years ago
Rich Harris 9dc02f1748 use helper
9 years ago
Rich Harris 4f05a22cb3 return promise, so that test results are correct
9 years ago
Efthymis Sarmpanis 6500b460e8 Basic support for style and script preprocessors
9 years ago
Rich Harris 7a7ce6097c Merge pull request #965 from sveltejs/gh-961
9 years ago
Rich Harris a075bb552c update test
9 years ago
Rich Harris 0b8ef112ca prevent boolean attributes breaking shapes inside estree-walker - fixes #961
9 years ago
Rich Harris 27e3e3330f guard against introducing ES6+isms into store.js
9 years ago
Rich Harris 037786f5f3 Merge branch 'master' into prevent-cyclical-store-computations
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 e2286da150 prevent cyclical store computations, and computation duplication
9 years ago
Rich Harris cd8d144818 allow parameterised transitions - fixes #962
9 years ago
Rich Harris f6d8e2acd9 remove combineStores
9 years ago
Rich Harris 5b8387553e make target store optional
9 years ago
Rich Harris e1867e11e2 better implementation of computed properties
9 years ago
Rich Harris f3d5becac8 add combineStores function
9 years ago
Rich Harris 5ed6ed2a29 computed properties
9 years ago
Rich Harris 510515f4c8 ditch async/await in tests, so that they run in node 6
9 years ago
Rich Harris 0332aeb983 SSR await-then-catch
9 years ago
Rich Harris 5b0b115cfc await-then-catch with non-promise
9 years ago
Rich Harris dd8eb73e81 show output using cjs format, so stack traces make sense
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 522744b47e parse await-then-catch
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 30093ce036 use store in SSR mode
9 years ago
Rich Harris ff543bd171 reenable all tests
9 years ago
Rich Harris 2ade424988 update snapshot tests
9 years ago
Rich Harris 1bd56a591f client-side store subscriptions
9 years ago
Rich Harris 53ed35ddf0 implement Store
9 years ago
Rich Harris dcee5fae69 throw error on illegal context (#934)
9 years ago
Rich Harris dabf840841 remove whitespace around <:Window/> - fixes #943
9 years ago
Efthymis Sarmpanis bde84f05e9 Add support for intercepting different file extensions, other than .html, in ssr. (#940)
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 40c3648dfb Increase code coverage
9 years ago
Rich Harris e7ae9d764b Reinstate code coverage
9 years ago
Rich Harris 839e8905c9 attach globals to state object on initialisation
9 years ago
Rich Harris d17e7b309c enable <:Window bind:online/> - fixes #936 (#937)
9 years ago
Rich Harris ef8971ecad fix annoying test failure
9 years ago
Rich Harris a532f36ab2 combine multiple bindings in single handler, implement bind:indeterminate — fixes #910
9 years ago
Rich Harris 08cf4b476a Merge pull request #931 from sveltejs/gh-928
9 years ago
Rich Harris 91a14091b8 treat quoted property names the same way as identifiers - fixes #914
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 7ac0a52a45 update snapshot tests
9 years ago
Rich Harris c4b9538e2a Merge pull request #921 from sveltejs/gh-917
9 years ago
Rich Harris b955b92977 Merge pull request #925 from sveltejs/gh-915
9 years ago
esarbanis 5af6eee10d Use el.dataset.foo = bar instead of setAttribute(el, 'data-foo', bar)
9 years ago
Rich Harris 21d995d904 dont use innerHTML for options inside optgroups - fixes #915
9 years ago
Rich Harris 155002bbba update snapshot tests
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
esarbanis 59ba074781 Use a block scoped unique name for the context
9 years ago
Rich Harris 3fa98b64ea remove unused _yield property
9 years ago
Rich Harris d2103c8ad8 oops
9 years ago
Rich Harris 900bbd1c0a Merge branch 'm59peacemaker-oncreate-async-#904'
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
Johnny Hauser fa5a02774b test attribute only selector when html is also attribute only
9 years ago
Johnny Hauser 41f942e828 test for attribute name only selector
9 years ago
Rich Harris 7685f70a95 add test for #891
9 years ago
Rich Harris 620b29f88e Merge branch 'patch-1' of https://github.com/petterek/svelte into petterek-patch-1
9 years ago
Rich Harris 562315c123 possible fix for #893
9 years ago
Rich Harris 9e8cf22a47 Merge pull request #900 from sveltejs/event-handler-options-callee
9 years ago
Conduitry 0c76aff62a allow options.* as event handler callee
9 years ago
Conduitry 6af2d95191 add failing test for each block updates
9 years ago
Conduitry bb311d8d22 update tests
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
Jacob Mischka 03a13d0527 Add array destructuring for each contexts
9 years ago
Rich Harris 4dca1ca08d Merge pull request #874 from sveltejs/gh-871
9 years ago
Rich Harris 66f27ea268 handle unknown at-rules that are declaration-like — fixes #871
9 years ago
Rich Harris 261f38ff79 escape backslashes in CSS for custom elements - fixes #872
9 years ago
Conduitry 00856b412b more testing
9 years ago
Conduitry 8ed5a71fef expand unit test
9 years ago
Rich Harris bcfe487f9e merge master -> no-template-iife
9 years ago
Rich Harris 22e4d0c5a0 Merge branch 'master' into short-method-names
9 years ago
Rich Harris 5f76cad961 fix escaping of %-prefixed names
9 years ago
Rich Harris aed2e2be6d exclude irrelevant stuff from SSR output
9 years ago
Rich Harris 29c954487b fix indentation, update snapshot tests
9 years ago
Rich Harris a71cade90c move properties out of the template IIFE (#756)
9 years ago
Rich Harris e90daceb45 take template object out of IIFE
9 years ago
Rich Harris d100014327 merge master -> gh-23
9 years ago
Rich Harris 14e1c20dee dont wrap ESM in IIFE
9 years ago
Rich Harris 1934d82dd7 merge master => iife
9 years ago
Rich Harris b6a5994ce7 use short method names
9 years ago
Rich Harris c4a3017d13 remove unused destroyEach and destroy arguments
9 years ago
Rich Harris c765ec6acc simplify module wrapping
9 years ago
Rich Harris 8f5303ad30 Merge branch 'master' into iife
9 years ago
Rich Harris 2a689ee40b Merge pull request #854 from sveltejs/gh-782
9 years ago
Rich Harris 9021b8524f Merge branch 'master' into gh-23
9 years ago
Rich Harris 4564b9a04b update validation message
9 years ago
Rich Harris e2a9b7aa90 shorten each block var names
9 years ago
Rich Harris b9327d095d more readable each block values
9 years ago
Rich Harris 990a8f27d0 remove incorrect argument
9 years ago
Rich Harris 309ff0fe35 use textContent and innerHTML where appropriate (#23)
9 years ago
Rich Harris e5e6783879 fix test
9 years ago
Rich Harris 2429d93f52 various fixes
9 years ago
Rich Harris 4ccf1ea7b0 wrap ES modules in an IIFE
9 years ago
Rich Harris 7fdabf38f5 update tests
9 years ago
Rich Harris 86d6e91920 Merge pull request #856 from sveltejs/remove-is-initial
9 years ago
Rich Harris 35881b0829 Merge branch 'master' into static-components
9 years ago
Rich Harris 54ae5f1dcb remove version numbers from snapshot tests
9 years ago
Rich Harris fd2d1ad645 dont update components with only static bindings
9 years ago
Rich Harris c4623c8e20 update snapshot tests
9 years ago
Rich Harris fbc4524599 remove excess parentheses
9 years ago
Rich Harris e59a12a6b1 merge master -> shared-init
9 years ago
Rich Harris 7a41c694e6 Merge pull request #853 from sveltejs/gh-823
9 years ago
Rich Harris c54e461786 update tests
9 years ago
Rich Harris c47d2bd88d extract some shared init logic
9 years ago
Rich Harris cd33f05704 Merge pull request #852 from sveltejs/gh-849
9 years ago
Rich Harris c8ce6feb65 Merge pull request #851 from sveltejs/gh-850
9 years ago
Rich Harris 8d7a8829dc allow console.* calls in event handlers. fixes #782
9 years ago
Rich Harris ddbcebab43 put version comment above imports
9 years ago
Rich Harris ef787b84c9 add debugging comments
9 years ago
Rich Harris 3fc667b18a compile time error on slotted content inside if/each blocks. closes #849
9 years ago
Rich Harris 71a315f818 use anchor.parentNode as target instead of slot document fragment - fixes #850
9 years ago
Rich Harris baa4dbf640 typo
9 years ago
Rich Harris 33d374d5f1 failing test for #850
9 years ago
Rich Harris 0f7a08a8ca Merge pull request #847 from sveltejs/gh-827
9 years ago
Rich Harris c7b8c98e5e Merge branch 'master' into gh-827
9 years ago
Rich Harris de2aaaab5c escape shadow DOM CSS - fixes #840
9 years ago
Rich Harris f8be8f5a13 dont use skipped text nodes as anchors - fixes #843
9 years ago
P 88418b318b Change let -> var, solves #838
9 years ago
Rich Harris 879b6b3d0d use anchors for slotted content - fixes #822
9 years ago
Rich Harris a18c7c8cc3 Merge pull request #833 from sveltejs/nightmare
9 years ago
Rich Harris 630aa04603 increase timeout
9 years ago
Rich Harris 63d65d87ea reenable all tests
9 years ago
Rich Harris 3dd32b9fc2 use nightmare to test custom element stuff
9 years ago
Rich Harris 0c957496f3 remove requestAnimationFrame stuff, convert time ranges to {start, end} objects
9 years ago
Rich Harris 32a2ddc1af failing test for #827
9 years ago
Rich Harris 7d447bff86 add snapshot test for #830
9 years ago
Conduitry ee4a4a8eb0 fix a11y-html-has-lang unit test
9 years ago
Rich Harris aae316ce4f Update input.html
9 years ago
jpsc a40d6dbc69 feat(a11y): add warning missing lang on html tag
9 years ago
Rich Harris fcca63ae81 reenable all tests, fix some failures
9 years ago
Rich Harris 7f5eb2a86a tabindex-no-positive
9 years ago
Rich Harris 688dbdf102 scope
9 years ago
Rich Harris 864bdd90fd no-distracting-elements
9 years ago
Rich Harris 97686302b8 no-autofocus
9 years ago
Rich Harris 275a3ec460 no-access-key
9 years ago
Rich Harris 636016b26c heading-has-content
9 years ago
Rich Harris 3fce4d400f aria-role
9 years ago
Rich Harris 9f2481c90b aria-props
9 years ago
Rich Harris 9f3f35e37b update some tests
9 years ago
Rich Harris 6842c37ab6 anchor-is-valid
9 years ago
Rich Harris defa982029 anchor-has-content
9 years ago
Rich Harris 9e1ae7202c a11y checks (#374)
9 years ago
Rich Harris c430094b36 Merge pull request #814 from sveltejs/gh-645
9 years ago
Rich Harris 9db4e7a5ef remove redundant input blowback guard - closes #645
9 years ago
Rich Harris 2654f6a2c0 Merge branch 'master' into gh-781
9 years ago
Rich Harris bc69c67e23 more consistent style for generated code
9 years ago
Rich Harris 99f9e6a4c1 use component name in runtime dev warnings - fixes #781
9 years ago
Rich Harris 62764624c6 merge master -> gh-797
9 years ago
Rich Harris 25bac688bc Merge branch 'master' into gh-797
9 years ago
Rich Harris b4b4197032 handly directly instantiated custom elements, and slots
9 years ago
Rich Harris 155a6327cf use helper for setting styles
9 years ago
Rich Harris 9e5f871550 update tests
9 years ago
Rich Harris cbfc609064 scoped styles
9 years ago
Rich Harris aee6d4ade7 update tests
9 years ago
Rich Harris 440bdbe1e0 basic custom element generation (#797)
9 years ago
Rich Harris 3d487264ff handle url(...) and quoted values
9 years ago
Rich Harris f555a6f7f0 optimize style attributes
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 f9cc92e340 Merge branch 'tidy-up' into gh-637
9 years ago
Rich Harris f63616903e failing tests for #637
9 years ago
Rich Harris 667a7665a7 handle unquoted attribute values (fixes #798)
9 years ago
Rich Harris eb4b22b898 Merge pull request #796 from sveltejs/gh-757
9 years ago
Rich Harris db3c7abec4 Merge pull request #794 from sveltejs/gh-550
9 years ago
Rich Harris 6b4f90d4e1 Merge pull request #793 from sveltejs/gh-791
9 years ago
Rich Harris 81ba059a8a handle css vars in <style> tags (fixes #757)
9 years ago
Rich Harris 47b10a184a remove test of instantiation without options, its nonsensical
9 years ago
Rich Harris e759dad2cd update snapshot tests
9 years ago
Rich Harris 72fd1228c7 attach options to component (#550)
9 years ago
Rich Harris da1c3b3a98 error if component has transition (fixes #791)
9 years ago
Rich Harris be6e778a53 support nested <slot> elements
9 years ago
Rich Harris e5d0958ab4 Merge pull request #787 from sveltejs/gh-763
9 years ago
Rich Harris 3a5054dd58 remove comments from HTML to be normalized, fixes final test
9 years ago
Rich Harris fd8f6f5f09 dont actually render <slot> elements
9 years ago
Rich Harris 9190990ed9 only add this._slotted if necessary
9 years ago
Rich Harris c1eda75ba0 wrap fallback hydration code in conditional
9 years ago
Rich Harris e0b173ebde validation
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 5e6cd3dfa8 Merge pull request #786 from sveltejs/gh-783
9 years ago
Rich Harris 0d8817f2a9 remove leading selectors safely - fixes #783
9 years ago
Rich Harris 224a3c0e96 start work on <slot>
9 years ago
Andrew Worcester 186fa2701f updated tests to reflect anchor change
9 years ago
Rich Harris af88c030eb add legacy option, use it for setInputType (#773)
9 years ago
Rich Harris 4da59be023 Merge pull request #775 from sveltejs/gh-774
9 years ago
Rich Harris d75a9dca94 smarter handling of keyframes - fixes #774
9 years ago
Rich Harris 5b28edf156 tidy up
9 years ago
Rich Harris d02c468834 update component bindings together. WIP
9 years ago
Rich Harris 15b481b28e apply encapsulating attributes to correct elements and selector parts (#767)
9 years ago
Rich Harris f63a07f139 we can now do changed.foo instead of "foo" in changed - is faster and smaller
9 years ago
Rich Harris dd8cc8c194 tidy up, dedupe a bit
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 0df91d9a5d update tests
9 years ago
Rich Harris ba2b6838f3 update tests
9 years ago
Rich Harris c5c0c4c4af make errors easier to track down
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 60d9cd240c Merge pull request #765 from sveltejs/gh-759
9 years ago
Rich Harris 4d9b57e911 bind to change events for range inputs, as well as input events (#740)
9 years ago
Rich Harris 213cce6e2c simplify adapted example
9 years ago
Rich Harris de87e1c812 preserve space before non-parenthesized media query expression - fixes #759
9 years ago
Rich Harris 06c9e37770 call create() on new iterations of static each blocks (#762)
9 years ago
Rich Harris a2e85aec1d replace destroy with noop on destroy
9 years ago
Rich Harris 6ae5e32371 update tests
9 years ago
Rich Harris 92766ee9e7 handle set after destroy, and move destroy into shared helpers
9 years ago
Rich Harris 33580f272e Merge pull request #751 from sveltejs/hoist-if-block-selectors
9 years ago
Hunter Perrin 22579bae78 Changed from this keyword to argument in setup method.
9 years ago
Hunter Perrin d45bb7a16c Added setup function which can supply static methods/properties. Closes #480. Closes #578.
9 years ago
Rich Harris a2f2bf09bc rename to select_block_type and current_block_type
9 years ago
Rich Harris 177ca13e70 Merge branch 'master' into hoist-if-block-selectors
9 years ago
Rich Harris 30eceebb13 hoist if block selectors
9 years ago
Conduitry 0e1b4c60ee add test
9 years ago
Rich Harris 5dc0482829 rename test
9 years ago
Rich Harris b1fd5f37f0 Merge branch 'master' into gh-741
9 years ago
Rich Harris aed1706696 failing tests for #741
9 years ago
Rich Harris aa223cac31 avoid string manipulation bugs by not minifying combinators if cascade: true (#743)
9 years ago
Rich Harris 6f3e37d442 Merge branch 'master' into gh-693
9 years ago
Rich Harris e67225bd7f Merge pull request #737 from sveltejs/update-deps
9 years ago
Rich Harris 17a95239b3 support ref:foo as a CSS selector (#693)
9 years ago
Rich Harris 5cd2d4e65a remove babel etc
9 years ago