Commit Graph

710 Commits (eabc9ba38575ba6e9dd61e45c8ef82fac06a2abc)

Author SHA1 Message Date
Rich Harris a1ec36414e remove leftover logging
8 years ago
Rich Harris 4003b3fd82 detach each block iterations with no update method - fixes #1795
8 years ago
Rich Harris 5deb460d8b extend dependency tracking to all directives
8 years ago
Rich Harris 00e87b2356 recognise dependencies in class directives - fixes #1793
8 years ago
Yury Zhuravlev 72939812c1 fix #1780 just start use parent instead parent.parent in IfBlock wrapper
8 years ago
Rich Harris bcc736384f Merge branch 'fix-lost-anchor-if-if-block-first' of https://github.com/stalkerg/svelte into stalkerg-fix-lost-anchor-if-if-block-first
8 years ago
Yury Zhuravlev e3e50855ed Fix removing next link during strip whitespaces for first element.
8 years ago
Rich Harris 83ff84cc57 fix blocks inside <svelte:head> - closes #1774
8 years ago
Rich Harris 07a85eb790 handle elseif blocks with no else
8 years ago
Rich Harris 9b8b779ee9 move render logic into separate phase (#1678)
8 years ago
Jacob Wright 36ffdcd0a6 Fixes shorthand class directives which do not have classes
8 years ago
Yury Zhuravlev edf26fde24 Fix binding input with event in each and add test case.
8 years ago
Jacob Wright 36adf33829 Fixes keyed each blocks for outro
8 years ago
Rich Harris 08bf21dbb3 Merge pull request #1693 from sveltejs/gh-1617
8 years ago
Rich Harris 777d95b218 Merge pull request #1695 from sveltejs/class-shortcut
8 years ago
Jacob Wright 586f806c26 Remove camel-casing, but account for dashed parameters still.
8 years ago
Jacob Wright 848066a472 Adds class directive shortcut
8 years ago
Jacob Wright 53befe6b30 Fix for each-blocks preventing outros from completing
8 years ago
Rich Harris 5cb9279265 Merge branch 'master' into gh-1520
8 years ago
Rich Harris f7e3aa9fe6 Merge branch 'master' into gh-890
8 years ago
Jacob Wright d6bdf5e3a1 Fixes an error with outros and elseifs
8 years ago
Jacob Wright 4fe7e81146 Adds the class directive
8 years ago
Rich Harris 91b620ef0d run transitions in context of component - fixes #1675
8 years ago
Jacob Wright a669faca84 Allows actions to use any expression type
8 years ago
Jacob Wright 8aaf9119b0 Allows fragment updates to happen after state updates
8 years ago
Rich Harris 6d0c5bb680 allow non-existent dynamic components to be destroyed (#1660)
8 years ago
Christian Kaisermann cb57973392 Remove an undefined attribute instead of setting it to "undefined" (string)
8 years ago
Rich Harris a007000f09 Merge pull request #1652 from sveltejs/gh-1544-computed-whole-state
8 years ago
Rich Harris 56f5e5f998 Merge pull request #1530 from sveltejs/gh-1522
8 years ago
Conduitry 59c0e3377f exclude current prop in computed properties using entire state #1544
8 years ago
Rich Harris 65112181e7 preserve whitespace inside lists
8 years ago
Rich Harris 082a471584 tests were wrong way round
8 years ago
Rich Harris 65aa0691eb Merge pull request #1628 from sveltejs/gh-1540
8 years ago
Rich Harris 3f05095552 failing test for #1621
8 years ago
Rich Harris ed9a7250f2 handle rest elements in computed properties - fixes #1540
8 years ago
Rich Harris 45b3b4132a stringify values before setting text data - fixes #1598
8 years ago
ekhaled f3d94bff21 failing test for #1598
8 years ago
ekhaled 23c8691dd4 add failing test for #1589
8 years ago
Rich Harris 86c2e847b2 null out refs to dynamic components - fixes #1596
8 years ago
Rich Harris f74733d43d Merge branch 'master' of github.com:sveltejs/svelte
8 years ago
Conduitry 0dcea4128b allow {:then}/{:catch} to have no bound identifier (#1507)
8 years ago
Conduitry cd5ebd2a3c in each-else, use mount/intro according to that branch's contents (#1586)
8 years ago
Conduitry 15299e7be0 in .fire always set calling flag back to false (#1587)
8 years ago
Yury Zhuravlev 13230096dd Merge branch 'master' into fix_outro_timeout
8 years ago
Conduitry 3f334171ce unique name for select_block_type in IfBlock#buildCompoundWithOutros
8 years ago
Conduitry 8e95c29a77 fix determing whether an attribute should prevent innerHTML optimization
8 years ago
Yury Zhuravlev 2bfc369951 Fix race condition for if block
8 years ago
Rich Harris 61266fb225 use template.content in place of template where appropriate - fixes #1571
8 years ago
Rich Harris f70073720a Merge pull request #1572 from sveltejs/gh-1561
8 years ago
Rich Harris e19bddb8be Merge pull request #1555 from fjorgemota/patch-1
8 years ago
Rich Harris dddad36b77 abort transition on detach - alternative fix for #1561
8 years ago
Rich Harris d6b4ab1770 outro when <svelte:component> switches - #1568
8 years ago
Fernando Jorge Mota a27160c5fa Support invalid JS attributes when passing data to components and on binding attributes, too
8 years ago
Rich Harris c730cc9f4e Merge pull request #1533 from sveltejs/gh-1532
8 years ago
Rich Harris d708dde42b call outrocallback immediately for empty each block
8 years ago
Rich Harris 909015a34e fix for #1522... maybe?
8 years ago
Rich Harris 2e5c29749f failing test for #1522
8 years ago
Rich Harris 8fc6d850cc failing test for #1527
8 years ago
Conduitry 95377be635 fix spread when an attribute or prop has multiple dependencies (#1515)
8 years ago
Rich Harris 5b7d28dcfe change __svelte_meta to __svelte_meta.loc
8 years ago
Rich Harris ad27d5471e add location info to nodes - fixes #1499
8 years ago
Rich Harris 9398528525 fix nested outro transitions
8 years ago
Rich Harris 4c8e0922a9 separate hasOutros from hasOutroMethod - fixes #1492
8 years ago
Rich Harris b444c96c38 fix dynamic component bindings (#1489)
8 years ago
Rich Harris 3974584c9e Merge pull request #1479 from sveltejs/gh-1470
8 years ago
Rich Harris f067d76495 always create outro method for top-level block - fixes #1470
8 years ago
Rich Harris 54a72c1a57 nested components skip intro on initial render - fixes #1460
8 years ago
Rich Harris 4f89adeaaf Merge pull request #1468 from sveltejs/gh-1458
8 years ago
Rich Harris d0ffb5d81a add test, tweak codegen
8 years ago
Rich Harris 8e2f8fd16d support parameterised animations
8 years ago
Rich Harris 152aff3a23 quote slot names if necessary - fixes #1461
8 years ago
Rich Harris f97397ff90 tidy up a bit
8 years ago
Rich Harris 27e5331a98 css animations
8 years ago
Rich Harris d6b897b16b implement js transitions, albeit messily
8 years ago
Rich Harris 96d67b274d groundwork for animations (#1431)
8 years ago
Rich Harris f0a36373f6 allow transition functions to return a function (#1431)
8 years ago
Rich Harris a1c810f870 supply 1 - t as second argument to transition tick/css functions (#1431)
8 years ago
Rich Harris f9db67edbb nested component transitions
8 years ago
Rich Harris 1b2ced7bf1 nested await block outros
8 years ago
Rich Harris de93e49c68 outroing each blocks
8 years ago
Rich Harris 721af8fc64 WIP towards nested transitions
8 years ago
Rich Harris 0e43507660 add skipIntroByDefault compiler option (#547)
8 years ago
Conduitry a9fb844dcd allow spaces around reserved words used in tags in attributes (#1445)
8 years ago
Rich Harris 0e793011a8 allow spread props on elements with tests for static attributes
8 years ago
Rich Harris 0e0e7bebc8 Abort outro if block is recreated — fixes #1425
8 years ago
Rich Harris ead5aec41b Group outro callbacks — fixes #648
8 years ago
Conduitry 816060283d fix handling of shorthand event handler in dynamic components
8 years ago
Rich Harris a344afaa86 update tests
8 years ago
Rich Harris 46bc257df8 ugh
8 years ago
Rich Harris 42346c2015 support transitions in await blocks - fixes #956
8 years ago
Rich Harris 1eacde9f1e Merge branch 'await-helper' into gh-956
8 years ago
Rich Harris 3e8e589616 fix #1417
8 years ago
Rich Harris b4089474c4 failing test for #1417
8 years ago
Rich Harris aac1e4678c failing test for #956
8 years ago
Rich Harris 17d7aea40e failing test for #1413
8 years ago
Rich Harris 195f9af187 Merge pull request #1395 from sveltejs/gh-1327
8 years ago
Conduitry 0413e7d63d mark elements with refs as ineligible for innerhtml (#1407)
8 years ago
Rich Harris a60d5166b5 update state with new computed properties
8 years ago
Rich Harris 450165ac5c Merge branch 'master' into gh-1327
8 years ago
Rich Harris c7bd87bd83 evaluate each block key in child scope - fixes #1397
8 years ago
Rich Harris e137e50516 failing test for #1327
8 years ago
Rich Harris 7ea5b0f0c6 only overwrite this in event handlers for custom events - fixes #1390
8 years ago
Rich Harris b767227a2f bind to destructured properties
8 years ago
Rich Harris 4d1e71fdd5 sparse array patterns
8 years ago
Rich Harris 58f481d2e4 destructuring
8 years ago
Rich Harris 70b01fe960 allow arbitrary expressions in each block keys - fixes #703
8 years ago
Rich Harris c563cfa83d Merge pull request #1376 from sveltejs/gh-1297
8 years ago
Rich Harris 91cd2cfef1 Merge pull request #1377 from sveltejs/gh-1303
8 years ago
Rich Harris c0366c7b0f preserve outer context for await blocks - fixes #1251
8 years ago
Rich Harris 51651ebce5 implement full-state computed properties - fixes #1303
8 years ago
Rich Harris 21c4d9ce55 overwrite this in custom event handlers - fixes #1297
8 years ago
Rich Harris 0e98b39803 more stuff
8 years ago
Rich Harris 3186f2e0ba WIP
8 years ago
Rich Harris 032aeab970 baby steps towards #1316
8 years ago
Rich Harris 6800b160d0 Merge pull request #1364 from sveltejs/gh-1356
8 years ago
Rich Harris 947b39cd8d Merge pull request #1365 from sveltejs/gh-1354
8 years ago
Rich Harris 50377c2a6b prevent stale state in component event handlers - fixes #1353
8 years ago
Rich Harris 50dd0fd460 set state to blank object on destroy, not null - fixes #1354
8 years ago
Rich Harris e0dc854a5f correctly report changed properties in initial state/update events - fixes #1356
8 years ago
pk 04b1c11026 Failing test for #1356
8 years ago
Rich Harris dcdcb9ab03 Merge pull request #1358 from sveltejs/gh-1038
8 years ago
Conduitry f5fb3e6c08 add test
8 years ago
Rich Harris 0769c2fd59 update spread props in each blocks without other dynamic attributes - fixes #1337
8 years ago
Rich Harris 736cd9ea06 support $method(...) calls, and warn on store.method(...)
8 years ago
Rich Harris 14c8e88045 remove redundant test
8 years ago
Rich Harris 17be6f5b29 skip test, fix post-v2
8 years ago
Rich Harris 62e9f12db0 tidy up
8 years ago
Rich Harris 6719958169 remove cascade option
8 years ago
Rich Harris 3db454c91d remove v1 runtime tests
8 years ago
Rich Harris b6d93feba6 dont typecast numeric attributes
8 years ago
Rich Harris c806aad410 update tests to account for removal of observe
8 years ago
Rich Harris d532561a7f update snapshot tests
8 years ago
Rich Harris d045e3907d remove ES5 constraint
8 years ago
Rich Harris ef1954947e Merge pull request #1345 from sveltejs/gh-1069
8 years ago
Rich Harris 382e0191a8 use destructuring syntax for computed props in v2 mode - fixes #1069
8 years ago
Rich Harris 3b4b8c25d5 implement onstate and onupdate
8 years ago
Rich Harris 2855fbdc32 add some onstate/onupdate tests
8 years ago
Conduitry b7145ffaee in v2, don't parse for interpolations in non-root style elements (#1339)
8 years ago
Rich Harris dca723a3ef attribute shorthand test
8 years ago
Rich Harris 844c89dce6 update keyed each block syntax
8 years ago
Rich Harris 1a41f8bddd implement dynamic components etc
8 years ago
Rich Harris bbec452b0a Merge pull request #1311 from sveltejs/gh-1278
9 years ago
Rich Harris f26cd3b58e Merge pull request #1312 from sveltejs/gh-1275
9 years ago
Rich-Harris 22308a02ea support custom events on <:Window> - fixes #1268
9 years ago
Rich-Harris 0ed59b7d74 deconflict against inherited contexts - fixes #1275
9 years ago
Rich-Harris 9a9f787e52 treat component events the same as element events - fixes #1278
9 years ago
Rich-Harris cbafb650bf ensure correct order of DOM insertions with neighbouring keyed each blocks - fixes #1306
9 years ago
Rich-Harris df07dde5fd spread on dynamic component - fixes #1307
9 years ago
Rich Harris 3af38db0f2 Merge pull request #1289 from sveltejs/gh-195
9 years ago
Rich-Harris 29f8b28747 handle boolean attributes
9 years ago
Rich-Harris aea4caaf2a fix element spread SSR
9 years ago
Rich-Harris cf05f19e11 tidy up/notes to self
9 years ago
Rich Harris 31a6174a6a Merge pull request #1295 from sveltejs/each-block-keyed-empty
9 years ago
Rich-Harris b7589e3162 Merge branch 'custom-event-teardown' of https://github.com/ekhaled/svelte into ekhaled-custom-event-teardown
9 years ago
Rich-Harris 760b430ea8 handle empty each blocks
9 years ago
Rich-Harris 29358228a5 argh, need a precommit check for this
9 years ago
Rich-Harris b3a5973894 allow keyed each block to have static content - fixes #1291
9 years ago
ekhaled c1b1e4b188 add dev mode warning when teardown is returned instead of destroy
9 years ago
Rich-Harris 8a38ba3636 basic attribute spreading on elements
9 years ago
Josh Duff 3062a86435 Fix backtick string literals not being recognized for the svg property
9 years ago
Rich-Harris ff56d9c312 Merge branch 'master' into mrkishi-spread
9 years ago
Conduitry 5dcbb8881b fix assembly of initial state object
9 years ago
Rich-Harris c5aa5693e5 merge master -> mrkishi-spreadh
9 years ago
Rich Harris 22028c094c Merge pull request #1279 from jacwright/action-this
9 years ago
Conduitry bfd8edc938 when mounting dynamic components, set ref if required
9 years ago
Jacob Wright 74fa12a3e1 Make tests work when running all of them together.
9 years ago
Jacob Wright 97f74dc8a6 Make actions execute with the component context
9 years ago
Rich Harris 9908272d73 Merge pull request #1247 from jacwright/behaviors
9 years ago
Rich-Harris 00873cc5f7 tidy up
9 years ago
Rich-Harris abde84e6db all tests passing
9 years ago
Rich-Harris 93d4a7da12 holy shit i think i did it
9 years ago
Rich-Harris a5eb7d0549 am close...
9 years ago
Jacob Wright a5ed6cbe18 Adds actions to components
9 years ago
Rich Harris 4abbd7df56 prevent name collisions with each block index - fixes #1254
9 years ago
Rich Harris b89729d296 failing test for #1254
9 years ago
Rich Harris ad0ce6fde2 simplify updateKeyedEach
9 years ago
Rich Harris 8678f39bce Merge pull request #1249 from btakita/issues/588
9 years ago
Brian Takita 6f8195fe11 Implement https://github.com/sveltejs/svelte/issues/588
9 years ago
mrkishi 1589e6ed34 Prioritize named over spread attributes
9 years ago
mrkishi a287d50354 Add spread -- rough idea
9 years ago
Rich Harris 05d23f6101 failing test for #1240
9 years ago
Rich Harris e17f2660e3 reenable all tests
9 years ago
Rich Harris 915b75422d scale transition duration by delta - fixes #1221
9 years ago
Rich Harris 5169ef1cb1 allow SVG elements to have scoped CSS - fixes #1224
9 years ago
Rich Harris cd5e68e648 add each_value to contextProps - fixes #1206
9 years ago
pk 95bbf585fe failing test for #1217
9 years ago
Rich Harris 2c03aaa7e8 prevent context variables being called component or state - fixes #1213
9 years ago
ekhaled 3de7059fbe re-add Child.html
9 years ago
ekhaled 4d532dc77b remove file
9 years ago
ekhaled 376ae983f5 some case-sensitivity thing
9 years ago
ekhaled c30845661f clarify in test that its an intro test only
9 years ago
ekhaled 4fe99e0ff3 fix tests on linux
9 years ago
ekhaled 73e0181cac add test for transitions on nested components
9 years ago
Rich Harris 1dca323660 only apply key to keyed each block, not its children - fixes #1202
9 years ago
Conduitry cee1feaff6 add failing test for #1195
9 years ago
Rich Harris fde43ea376 Merge branch 'master' into gh-1175
9 years ago
Rich Harris 34f18989d8 only use page[XY]Offset
9 years ago
Rich Harris 5a8a2dff9c Merge branch 'master' into gh-1144
9 years ago
Rich Harris d625e8d16f allow observing $foo in dev mode - #1181
9 years ago
Rich Harris 4226cbb4c4 wrap <slot> updates in conditional - fixes #1144
9 years ago
Robert Hall 61ac049b70 Using pageYOffset & pageXOffset
9 years ago
Rich Harris c7acf71efd Merge branch 'immutable-support' of https://github.com/jacwright/svelte into jacwright-immutable-support
9 years ago
Jacob Wright e7eb8aff2f Adds some runtime tests for the immutable option
9 years ago
Rich Harris 98fead1c64 increase test coverage
9 years ago
Rich Harris f9e5bb3d18 failing test for second part of #1100
9 years ago
Rich Harris 4106840a00 Merge pull request #1153 from sveltejs/gh-1100
9 years ago
Conduitry 1b551ca703 Merge branch 'master' into sigil-component-attribute-ssr
9 years ago
Conduitry 68b3b26166 do not escape html characters in tags in non-root <style> in SSR mode
9 years ago
Rich Harris af4e510916 Merge pull request #1160 from sveltejs/gh-1108
9 years ago
Conduitry acc7c244ed expand escape-template-literals test
9 years ago
Conduitry b65ab427ad fix escaping of sigils in component attribute values in SSR
9 years ago
Conduitry bef0f9b0c7 make test more robust
9 years ago
Conduitry 9d2ccbb433 add test
9 years ago
Rich Harris 7ff328a2f9 failing test for #1082
9 years ago
Conduitry 27fbf382ce remove <noscript> elements in DOM mode (#1108)
9 years ago
Conduitry 3d238b0846 escape attribute values in SSR
9 years ago
Rich Harris 91e16dd411 component store bindings - fixes #1100
9 years ago
Rich Harris 5d17248074 prevent await blocks using stale state - fixes #1131
9 years ago
Rich Harris 7d0ebc36fc Merge pull request #1145 from jacobmischka/fix-destructured-hoisting
9 years ago
Jacob Mischka 00ba7c5176 Add audio video volume binding (#1148)
9 years ago
Jacob Mischka f831405682 Add destructured context container to usedContexts
9 years ago
Rich Harris dc7ff61de7 Merge pull request #1137 from sveltejs/gh-1135
9 years ago
Rich Harris fed4c69f13 change test outcome for uninitialised component bindings inside conditionals
9 years ago
Rich Harris 89ce3ae3d5 run oncreate functions in sensible order (#1135)
9 years ago
Conduitry f71fc96c92 another stab at #1062; also fix attribute case in static HTML
9 years ago
Conduitry 5e68edeb4a fix handling of boolean attributes in SSR (#1109)
9 years ago
James Birtles 0e7bf529c2 addd failing nested store test
9 years ago
Rich Harris ccbba4b487 Merge pull request #1094 from sveltejs/gh-1061-b
9 years ago
Rich Harris 0761f25683 be more relaxed about attribute casing - fixes #1062
9 years ago
Rich Harris 4abd7b416d fire oncreate handlers for components inside await blocks (#1061)
9 years ago
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