Commit Graph

251 Commits (1143b0a991e8c3cf82c8ed1949a78bfd67f72d42)

Author SHA1 Message Date
Rich Harris 29fc3e5169 update tests
9 years ago
Rich Harris afe3e2e669 basic custom element generation (#797)
9 years ago
Rich Harris d54d00cac1 handle url(...) and quoted values
9 years ago
Rich Harris 228a7808ac optimize style attributes
9 years ago
Rich Harris f5958584d9 dont noop set/get until after component is destroyed (fixes #788)
9 years ago
Rich Harris 6499d4714d only use noscript if necessary
9 years ago
Rich Harris 5f5f09b94e update snapshot tests
9 years ago
Andrew Worcester caa67b5325 updated tests to reflect anchor change
9 years ago
Rich Harris f7b829820f add legacy option, use it for setInputType (#773)
9 years ago
Rich Harris 8818357fc4 tidy up
9 years ago
Rich Harris 3daa7aa6b3 we can now do changed.foo instead of "foo" in changed - is faster and smaller
9 years ago
Rich Harris f31c206b73 tidy up, dedupe a bit
9 years ago
Rich Harris 4dd5fc5594 apply optimisation to raw tags
9 years ago
Rich Harris 5636506fc0 update tests
9 years ago
Rich Harris 427a0b5925 update tests
9 years ago
Rich Harris 9b9aa0416f make errors easier to track down
9 years ago
Rich Harris fd3792bd60 replace destroy with noop on destroy
9 years ago
Rich Harris 44b73191c7 update tests
9 years ago
Rich Harris 86fb0e4ced handle set after destroy, and move destroy into shared helpers
9 years ago
Rich Harris f3f85841a5 Merge pull request #751 from sveltejs/hoist-if-block-selectors
9 years ago
Hunter Perrin ba74297a19 Changed from this keyword to argument in setup method.
9 years ago
Hunter Perrin 59d01f737d Added setup function which can supply static methods/properties. Closes #480. Closes #578.
9 years ago
Rich Harris fef2367c11 rename to select_block_type and current_block_type
9 years ago
Rich Harris 177e7d09c3 hoist if block selectors
9 years ago
Rich Harris ae060cfa3b Merge pull request #737 from sveltejs/update-deps
9 years ago
Rich Harris e02c248456 update rollup and plugins
9 years ago
Rich Harris 962f04f4bf dont throw error if component is destroyed twice (closes #643)
9 years ago
Rich Harris 608f8943f3 Merge pull request #733 from sveltejs/gh-375
9 years ago
Rich Harris 70a99925a9 use helper to encapsulate styles, rather than being repetitious (fixes #375)
9 years ago
Rich Harris 7b1299904b minify css and remove unused styles (#697)
9 years ago
Zhuravlev Yury ab607269f9 Update css-media-query test. It's look like somebody forgot about that.
9 years ago
Rich Harris 5f09421a18 Merge pull request #719 from sveltejs/gh-712
9 years ago
Rich Harris 9085c0a22a update tests
9 years ago
Rich Harris 343d66538b failing test for #712
9 years ago
Rich Harris 3f73f252ac update tests
9 years ago
Rich Harris 1733966d18 tidy up
9 years ago
Rich Harris 2d2c68c26b NAILED IT
9 years ago
Rich Harris 84e6d0c5b7 remove _flush in favour of callAll
9 years ago
Rich Harris e9f17f34ff fire intro.start and outro.start events (#702)
9 years ago
Rich Harris d89d70e7a3 rename _renderHooks to _oncreate, since thats all its used for
9 years ago
Rich Harris d707f6a3b2 call oncreate functions before bindings
9 years ago
Rich Harris 203e123d94 Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris df1870df8b update tests
9 years ago
Rich Harris f87c3328b5 Merge branch 'master' into codegen
9 years ago
Rich Harris 21a8b1dd06 fix tests
9 years ago
Rich Harris 334772a11d use #foo instead of block.alias("foo")
9 years ago
Rich Harris 9feee3a0bf use @foo for generator.alias("foo")
9 years ago
Rich Harris 0250398ee6 update tests
9 years ago
Rich Harris d10ddc0c51 fix most non-hydration tests
9 years ago
Rich Harris e9516abffd fix bad indentation in generated code
9 years ago
Paul Sauve dc0dedf3fe Fix #643
9 years ago
Rich Harris 10ecd81734 prettierfy test files
9 years ago
Rich Harris 84595fb381 run prettier on src, update tests
9 years ago
Rich Harris 3b70920991 merge master -> gh-592
10 years ago
Rich Harris ce8dd647f0 Merge branch 'fix-each-block' of https://github.com/hperrin/svelte into hperrin-fix-each-block
10 years ago
Hunter Perrin 41c214a986 Fixed each block producing elements in wrong order after change. Fixes #610.
10 years ago
Rich Harris a538f7a071 update tests to use new assign helper
10 years ago
Rich Harris c4b68ca8cb remove TODO
10 years ago
Rich Harris 288d1c9d74 update tests
10 years ago
Rich Harris 739a832c37 remove some files from repo
10 years ago
Rich Harris 015ef56b18 make transitionManager treeshakeable (fixes #593)
10 years ago
Rich Harris 34170a5e76 compare bundled output with expectations
10 years ago
Rich Harris 86e05aaf74 Merge pull request #571 from sveltejs/gh-569
10 years ago
Rich-Harris 6dfb568d2a fix insertion order of if blocks and their anchors
10 years ago
Rich-Harris 23331e605a dont store keyed block iterations in an array
10 years ago
Rich-Harris 7db27152fb increase test coverage
10 years ago
Rich Harris 3a7f7e29c2 Merge pull request #559 from sveltejs/simpler-codegen
10 years ago
Rich-Harris d8364f6e0a remove unnecessary if statement
10 years ago
Rich-Harris 43091431d1 simplify SSR codegen
10 years ago
Rich-Harris 3efb5ab993 fix test
10 years ago
Rich-Harris c1a1a01bf0 generate less code for if-blocks with else-blocks (closes #540)
10 years ago
Conduitry e6d2571e34 label <style> element with id instead of with attribute, for performance
10 years ago
Conduitry a1c8ada088 when creating a component, always check whether its css is still in the dom (#554)
10 years ago
Rich-Harris 22ac50abb6 outros on keyed each-blocks
10 years ago
Rich-Harris 7f76ab24f9 Merge branch 'master' into gh-7
10 years ago
Conduitry f74941b293 fix simple if blocks with top-level or conditions (#532)
10 years ago
Rich-Harris 6ed2a6c785 update tests
10 years ago
Conduitry a0284a4c67 Merge branch 'master' into gh-3
10 years ago
Rich Harris bfe9904db7 Update expected.js
10 years ago
Rich Harris 5f2846ae00 Merge branch 'master' into gh-507
10 years ago
Rich-Harris 9480f349ec anchor-less each blocks
10 years ago
Rich-Harris d274d08734 only create anchors for if blocks when necessary
10 years ago
Rich-Harris 162281ef4f populate state in preprocess step, including naming DOM nodes
10 years ago
Rich-Harris e345287a76 rename root to state, and allow state to be used as context
10 years ago
Rich-Harris f82d04913f hoist variables where appropriate (#504)
10 years ago
Rich-Harris 86413ef4fa optimise simple if-blocks
10 years ago
Rich-Harris 9f2bd988a0 collapse text around comments
10 years ago
Rich-Harris 3629c9e9a1 exclude indexes from dependencies
10 years ago
Rich-Harris 0c013cfd9b use correct dependencies for each-block updates
10 years ago
Rich-Harris 080afc99a8 simplify if-block switching code
10 years ago
Rich-Harris c9a2bf98a5 rename some variables so that they make more sense
10 years ago
Rich-Harris 2e7a429684 get rid of tmp variable, we dont need it
10 years ago
Rich-Harris 950f2ce2fd dont update static subtrees, even with a noop
10 years ago
Rich-Harris b574c405eb conditionalise each-block updates
10 years ago
Rich-Harris db7fe861b2 failing test for #381
10 years ago
Rich Harris 2852b96e65 collapse consecutive if-statements with the same condition (#450)
10 years ago
Rich Harris 1e2c8593f2 hoist some event handlers, rewrite non-hoisted ones to avoid binding
10 years ago
Rich-Harris 31269e84f0 failing test for #433
10 years ago
Rich-Harris 858c6b5e82 add gitkeep file so tests pass in CI
10 years ago
Rich Harris f43e71b959 remove #433 test for now
10 years ago
Rich Harris 803d1d2746 move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433
10 years ago