Commit Graph

275 Commits (f9db67edbbf1af638944f51a8cd053a952e0a8bc)

Author SHA1 Message Date
Rich Harris ae5b15baba reuse timeout function
9 years ago
Rich Harris c22e0cfd1b lock scroll bindings to allow tweening - fixes #1071
9 years ago
Rich Harris 49fc3eee5d prevent main fragment being created twice - fixes #1063
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 f51ab57088 dont create text nodes inside <:Head> - fixes #1026
9 years ago
Rich Harris 1b2949f572 optimise <title> - fixes #1027
9 years ago
Rich Harris e323373c08 fix toString method in SSR output - closes #1044
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 84b70eac88 server-side <:Head>
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 f0055e555b change server-side render method signature
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 e5e5ff6fbf trim SSR'd output more intelligently - fixes #998
9 years ago
Rich Harris a39b435a41 don't use dataset with svg elements - fixes #995
9 years ago
Rich Harris 6187a703c2 Merge branch 'master' into gh-654
9 years ago
Rich Harris 0332aeb983 SSR await-then-catch
9 years ago
Rich Harris fd63a56d52 store bindings
9 years ago
Rich Harris 30093ce036 use store in SSR mode
9 years ago
Rich Harris 2ade424988 update snapshot tests
9 years ago
Rich Harris dabf840841 remove whitespace around <:Window/> - fixes #943
9 years ago
Rich Harris 40c3648dfb Increase code coverage
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 7ac0a52a45 update snapshot tests
9 years ago
Rich Harris c4b9538e2a Merge pull request #921 from sveltejs/gh-917
9 years ago
esarbanis 5af6eee10d Use el.dataset.foo = bar instead of setAttribute(el, 'data-foo', bar)
9 years ago
Rich Harris 155002bbba update snapshot tests
9 years ago
Rich Harris 3fa98b64ea remove unused _yield property
9 years ago
Conduitry bb311d8d22 update tests
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 aed2e2be6d exclude irrelevant stuff from SSR output
9 years ago
Rich Harris 29c954487b fix indentation, update snapshot tests
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 9021b8524f Merge branch 'master' into gh-23
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 2429d93f52 various fixes
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 c54e461786 update tests
9 years ago
Rich Harris c47d2bd88d extract some shared init logic
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 baa4dbf640 typo
9 years ago
Rich Harris de2aaaab5c escape shadow DOM CSS - fixes #840
9 years ago
P 88418b318b Change let -> var, solves #838
9 years ago
Rich Harris a18c7c8cc3 Merge pull request #833 from sveltejs/nightmare
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 7d447bff86 add snapshot test for #830
9 years ago
Rich Harris 9f3f35e37b update some tests
9 years ago
Rich Harris 9db4e7a5ef remove redundant input blowback guard - closes #645
9 years ago
Rich Harris bc69c67e23 more consistent style for generated code
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 8f31f96edc dont noop set/get until after component is destroyed (fixes #788)
9 years ago
Rich Harris 0cfc67ca11 only use noscript if necessary
9 years ago
Rich Harris e759dad2cd update snapshot tests
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 5b28edf156 tidy up
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 0df91d9a5d update tests
9 years ago
Rich Harris ba2b6838f3 update tests
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 30eceebb13 hoist if block selectors
9 years ago
Rich Harris 714a267837 dont throw error if component is destroyed twice (closes #643)
9 years ago
Rich Harris 80474c524e Merge pull request #733 from sveltejs/gh-375
9 years ago
Rich Harris 92313501d0 use helper to encapsulate styles, rather than being repetitious (fixes #375)
9 years ago
Rich Harris cff7fe004b minify css and remove unused styles (#697)
9 years ago
Zhuravlev Yury 8f1836f46e Update css-media-query test. It's look like somebody forgot about that.
9 years ago
Rich Harris 6676fe31b4 Merge pull request #719 from sveltejs/gh-712
9 years ago
Rich Harris 8ebbe52c65 update tests
9 years ago
Rich Harris 1eb897df52 failing test for #712
9 years ago
Rich Harris 3f38efcf09 update tests
9 years ago
Rich Harris 84503ced19 tidy up
9 years ago
Rich Harris ae9de0f25e remove _flush in favour of callAll
9 years ago
Rich Harris f505a07384 fire intro.start and outro.start events (#702)
9 years ago
Rich Harris b37cfd37f2 rename _renderHooks to _oncreate, since thats all its used for
9 years ago
Rich Harris 1f34e4a469 call oncreate functions before bindings
9 years ago
Rich Harris 79ed77414c Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris 8b2e65b3ce update tests
9 years ago
Rich Harris f6dad89c90 Merge branch 'master' into codegen
9 years ago
Rich Harris 88ec5aee90 fix tests
9 years ago
Rich Harris c2cf6214c7 use #foo instead of block.alias("foo")
9 years ago
Rich Harris 3101c699aa use @foo for generator.alias("foo")
9 years ago
Rich Harris 6a1248334b update tests
9 years ago
Rich Harris 30bbbc5c30 fix bad indentation in generated code
9 years ago
Paul Sauve 62b42db6cf Fix #643
9 years ago
Rich Harris f92b33c130 run prettier on src, update tests
9 years ago
Rich Harris 8458a3f9e2 merge master -> gh-592
9 years ago
Rich Harris ac94286897 Merge branch 'fix-each-block' of https://github.com/hperrin/svelte into hperrin-fix-each-block
9 years ago
Hunter Perrin eb71c440a4 Fixed each block producing elements in wrong order after change. Fixes #610.
9 years ago
Rich Harris 14c42114fe update tests to use new assign helper
9 years ago
Rich Harris bc1f416121 remove TODO
9 years ago
Rich Harris 7d4dcdf531 update tests
9 years ago
Rich Harris c61db3c898 remove some files from repo
9 years ago
Rich Harris cd76c110f7 make transitionManager treeshakeable (fixes #593)
9 years ago
Rich Harris 18f5e06e83 compare bundled output with expectations
9 years ago
Rich Harris eb6c72debe Merge pull request #571 from sveltejs/gh-569
9 years ago
Rich-Harris 735bd21550 fix insertion order of if blocks and their anchors
9 years ago
Rich-Harris 13607ebe89 dont store keyed block iterations in an array
9 years ago
Rich-Harris 5b307ca1ee increase test coverage
9 years ago
Rich Harris 41a5a53be5 Merge pull request #559 from sveltejs/simpler-codegen
9 years ago
Rich-Harris 72b7b3447e remove unnecessary if statement
9 years ago
Rich-Harris 30abda37bd simplify SSR codegen
9 years ago
Rich-Harris e06ba84a74 fix test
9 years ago
Rich-Harris 64dbd45601 generate less code for if-blocks with else-blocks (closes #540)
9 years ago
Conduitry 980c2626b4 label <style> element with id instead of with attribute, for performance
9 years ago
Conduitry 168b43eea1 when creating a component, always check whether its css is still in the dom (#554)
9 years ago
Rich-Harris 3871627d63 outros on keyed each-blocks
9 years ago
Rich-Harris 3eda59d2cb Merge branch 'master' into gh-7
9 years ago
Conduitry dcd2a99a77 fix simple if blocks with top-level or conditions (#532)
9 years ago