Commit Graph

1137 Commits (843ff973f6e1555cd753deee80fea67f6cc5fdc1)

Author SHA1 Message Date
Rich Harris 71ac27cb14 Merge pull request #1059 from sveltejs/gh-54
9 years ago
Rich Harris 62a385a8a2 only optimise <title> inside <:Head>
9 years ago
Rich Harris a587fb6303 Merge branch 'master' into gh-1027
9 years ago
Rich Harris 3515e488d1 Merge pull request #1052 from sveltejs/gh-1051
9 years ago
Rich Harris fb60f9f80a Merge pull request #1054 from sveltejs/gh-1026
9 years ago
Rich Harris 5c1f6ff206 add option to disable two-way binding (#54)
9 years ago
Rich Harris f51ab57088 dont create text nodes inside <:Head> - fixes #1026
9 years ago
Rich Harris 1b2949f572 optimise <title> - fixes #1027
9 years ago
Rich Harris d7e236f7cc warn on unused events/transitions - fixes #1051
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 8e67c210c9 Merge pull request #1047 from sveltejs/gh-1040
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 e323373c08 fix toString method in SSR output - closes #1044
9 years ago
Rich Harris 721cf679aa tweak error wording slightly
9 years ago
Emil Ajdyna 2523e47180 Check against this usage in computed functions
9 years ago
Rich Harris f639bbed42 get store() to work with nested components in SSR compiler
9 years ago
Rich Harris 28e3ecdb3e can just use options here
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 74982fc202 fix unrelated bug that was causing tests to fail
9 years ago
Rich Harris ee29ee40fe unmount head children correctly
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 7d38f2d1e1 Merge pull request #1021 from sveltejs/gh-1015
9 years ago
Rich Harris 7c01ab2cb7 deprecate renderCss
9 years ago
Rich Harris 286e4350d4 generate title in SSR compiler
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
Emil Ajdyna 554145b9ce Expose root as a public property
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
Efthymis Sarmpanis aa56cde383 Failing test for improper toString override in CompileError
9 years ago
Rich Harris 35af771990 rename file
9 years ago
Rich Harris 3fdf5d98e2 sanitize filenames before SSRing - fixes #1005
9 years ago
Rich Harris d615c3a9b8 support dynamic import - closes #1003
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 e5e5ff6fbf trim SSR'd output more intelligently - fixes #998
9 years ago
Rich Harris 93f6f8edcb Handle empty classes when pruning unused styles - fixes #997
9 years ago
Rich Harris 6334899b3d fix figcaption a11y warning - fixes #996
9 years ago
Rich Harris a39b435a41 don't use dataset with svg elements - fixes #995
9 years ago
Rich Harris 0fb180009e fix dynamic components inside elements - fixes #994
9 years ago
Rich Harris 72ce87fd31 Merge pull request #987 from tivac/preprocess-options
9 years ago
Pat Cavit ecb965251d test: filename passed to hooks
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 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