Commit Graph

2214 Commits (daa2820ad6185a15ecc96899010048ab320d6cf6)

Author SHA1 Message Date
Rich Harris 5c9b7df07b fixes
8 years ago
Rich Harris b72225a28f rename loc to start, include character info in locations
8 years ago
Rich Harris ac662d3b92 update test
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 b128399540 fix some more tests
8 years ago
Rich Harris 6719958169 remove cascade option
8 years ago
Rich Harris 325b5a6c5c update css tests
8 years ago
Rich Harris 00d4550733 update hydration tests
8 years ago
Rich Harris ff214ef8ab SSR tests
8 years ago
Rich Harris 842e49155c update validation tests
8 years ago
Rich Harris 53963dc7e6 remove store option
8 years ago
Rich Harris 50533bcefa remove v1 tests
8 years ago
Rich Harris 3db454c91d remove v1 runtime tests
8 years ago
Rich Harris e6e3f9a07c remove deprecated renderCss method
8 years ago
Rich Harris 90d06134fd remove v1 snapshot tests
8 years ago
Rich Harris 7a5042208b oops
8 years ago
Rich Harris c854f2c9fc remove v1 parser tests
8 years ago
Rich Harris b6d93feba6 dont typecast numeric attributes
8 years ago
Rich Harris cd0ffa35f6 remove validate and Stylesheet from public API
8 years ago
Rich Harris 75c86887b8 remove code, map and cssMap from svelte.compile output
8 years ago
Rich Harris 2994c9681d update snapshot tests
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 d9828355b2 update store tests
8 years ago
Rich Harris d045e3907d remove ES5 constraint
8 years ago
Rich Harris 9b81ff1640 deprecate get with string argument
8 years ago
Rich Harris cae27b1904 allow overwritten observe
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 f07b050d52 update tests
8 years ago
Rich Harris 526a7799ec deprecate observe
8 years ago
Rich Harris 3b4b8c25d5 implement onstate and onupdate
8 years ago
Rich Harris 97acdbe30e Merge branch 'master' into gh-1197
8 years ago
Rich Harris 2855fbdc32 add some onstate/onupdate tests
8 years ago
Rich Harris c20ae70b88 Merge pull request #1340 from sveltejs/gh-474
8 years ago
Rich Harris f8801feb2b add codes to errors
8 years ago
Conduitry b7145ffaee in v2, don't parse for interpolations in non-root style elements (#1339)
8 years ago
Rich Harris 7b1df97d7e add codes to validation errors
8 years ago
Rich Harris 2151301716 update tests
8 years ago
Rich Harris 17a20bbe37 add codes to warnings (#474)
8 years ago
Rich Harris 62cbb31844 Merge pull request #1330 from sveltejs/gh-1318
8 years ago
Rich Harris dca723a3ef attribute shorthand test
9 years ago
Rich Harris 844c89dce6 update keyed each block syntax
9 years ago
Rich Harris 1a41f8bddd implement dynamic components etc
9 years ago
Rich Harris f6958f03fe reenable all tests
9 years ago
Rich Harris c6157909c3 fix debugging comments
9 years ago
Rich Harris 23f8f87243 fix head/window meta tags
9 years ago
Rich Harris d1ca636120 v2 js tests
9 years ago
Rich Harris 9235efb8dd more tests, support svelte: elements
9 years ago
Rich Harris 22bb74413a add validator tests
9 years ago
Rich Harris 0ac3a522d9 attribute shorthand
9 years ago
Rich Harris dd2de33df3 fix #1331
9 years ago
Rich-Harris 8e95bf5111 brute force new keyed each block syntax
9 years ago
Rich-Harris ac13b72bd6 update parser for v2
9 years ago
Rich-Harris 6aef662fa5 add v2 parser tests, handle single curly tags
9 years ago
Rich Harris 24238e5778 Merge pull request #1299 from sveltejs/gh-1257
9 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 f7bdf71946 Merge pull request #1313 from sveltejs/gh-1270
9 years ago
Rich Harris 209012c59d Merge pull request #1314 from sveltejs/gh-1269
9 years ago
Rich-Harris 22308a02ea support custom events on <:Window> - fixes #1268
9 years ago
Rich-Harris 381356aae7 make CSS DCE case-insensitive - fixes #1269
9 years ago
Rich-Harris 0963c226a8 fail validation if bound <select> has dynamic multiple attribute - fixes #1270
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 bd7cc3ce15 Merge pull request #1310 from sveltejs/gh-1300
9 years ago
Rich-Harris b496a2f058 bail out of CSS optimisations on encountering spread - fixes #1300
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 15b371eeff merge master -> gh-1257
9 years ago
Rich Harris 0601e3bc0f Merge pull request #1298 from sveltejs/gh-795
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 834824f4c6 include warnings in stats object
9 years ago
Rich-Harris fd16fadad9 add lifecycle hooks
9 years ago
Rich-Harris 51df2cb7f6 add stats tests, handle imports
9 years ago
Rich-Harris e8442d01eb dont generate test output if no css
9 years ago
Rich-Harris 6d47e924c4 output { js, css, ast } from svelte.compile - fixes #795
9 years ago
Rich-Harris aea4caaf2a fix element spread SSR
9 years ago
Rich-Harris 6e41ebe91b component spread
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 249e1f014b Revert "fix handler in-place"
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
ekhaled 59df8ca4f3 fix handler in-place
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
ekhaled bf71af4c2f support both destroy and teardown in custom event handlers
9 years ago
Rich-Harris 8a38ba3636 basic attribute spreading on elements
9 years ago
Josh Duff 4539466c0c Accept backtick string literals in tag/props properties
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 85c10c2172 include spread with other attributes
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
Rich Harris 4e28a2d637 Merge pull request #1280 from sveltejs/dynamic-component-mount-ref
9 years ago
Luke Edwards 74e0e7e51d update test samples’ expectants
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 18e96a642f Merge branch 'preserve-comments-option' of https://github.com/zzolo/svelte into zzolo-preserve-comments-option
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
Alan Palazzolo d9855597b8 Add option preserve comments in SSR rendering.
9 years ago
Jacob Wright a5ed6cbe18 Adds actions to components
9 years ago
Rich Harris 9227d025a1 Merge branch 'master' into gh-1254
9 years ago
Rich Harris dad62871e6 Merge pull request #1256 from sveltejs/each-keyed-helper
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 ef09ecd8a1 Merge pull request #1250 from UnwrittenFun/feat/warn-end-pos
9 years ago
Rich Harris ad0ce6fde2 simplify updateKeyedEach
9 years ago
James Birtles 843ff973f6 Fix named-export end position
9 years ago
Rich Harris 8678f39bce Merge pull request #1249 from btakita/issues/588
9 years ago
Rich Harris 30f3849f87 Merge pull request #1243 from sveltejs/gh-1240
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
James Birtles 4bda127108 add end position to errors
9 years ago
James Birtles 3f404eaf99 add end position to warnings
9 years ago
Rich Harris c9d029f705 skip missing property warning for computed/global properties
9 years ago
Rich Harris 160d9136c0 add local variable for list values - fixes #1240
9 years ago
Rich Harris b2c2a02f50 nicer error messages
9 years ago
Rich Harris f06cf99434 error if ref:foo has a value
9 years ago
Rich Harris 05d23f6101 failing test for #1240
9 years ago
Rich Harris c320e4f29f Merge pull request #1242 from jacwright/directive-parsing-cleanup
9 years ago
Jacob Wright 0f9570a9b6 Refactor directive parsing for code reuse
9 years ago
Rich Harris 9ab870bcb2 Merge pull request #1237 from sveltejs/gh-1209
9 years ago
Rich Harris 6cdce62e8d Merge pull request #1239 from sveltejs/gh-1221
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 5495d44484 use setAttribute with inputs, for benefit of IE - fixes #1209
9 years ago
Rich Harris cbca5cd006 alias listName to deconflict with shared helpers - fixes #1229
9 years ago
Rich Harris 7fa6109785 add CSS scoping classes when stringifying child nodes - fixes #1223
9 years ago
Rich Harris 63dd90cf31 set arbitrary compile options when calling SSR register function
9 years ago
Rich Harris 5169ef1cb1 allow SVG elements to have scoped CSS - fixes #1224
9 years ago
Rich Harris 74058004d5 update test
9 years ago
Rich Harris cd5e68e648 add each_value to contextProps - fixes #1206
9 years ago
Rich Harris 7ea39993be Merge branch 'test-1217' of https://github.com/aphitiel/svelte into aphitiel-test-1217
9 years ago
Rich Harris f02deae6c2 switch back to using svelte- instead of name-
9 years ago
Rich Harris 12ab482802 Merge branch 'gh-1118' into gh-1118-base36
9 years ago
Rich Harris 7647913591 merge master -> gh-1118
9 years ago
Rich Harris e1d52398d9 merge
9 years ago
pk 95bbf585fe failing test for #1217
9 years ago
Rich Harris 8b8461a554 Merge pull request #1200 from leereamsnyder/process-atsupports
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 7f4cc3c2af fix snapshots for the actual mounting code
9 years ago
ekhaled b7a3d24dc4 fix bundle snapshots
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
ekhaled 61ad7bcaeb fix snapshots
9 years ago
Rich Harris ba5b661dc7 update deps to get tests to pass again
9 years ago
Rich Harris 1dca323660 only apply key to keyed each block, not its children - fixes #1202
9 years ago
Lee Reamsnyder 67ea9626eb process code in @supports queries with cascade: false
9 years ago
Conduitry 517621bea1 update js if-block-no-update test
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 1bd5d0897c use base36 for style classes
9 years ago
Rich Harris f822a50d3e update more tests
9 years ago
Rich Harris 3053aaeec3 update tests
9 years ago
Rich Harris 5a8a2dff9c Merge branch 'master' into gh-1144
9 years ago
Rich Harris e561f05e9f fix out of date test
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
Rich Harris 43e116685a Merge pull request #1173 from sveltejs/gh-1122
9 years ago
Rich Harris d9b9327779 update tests
9 years ago
Rich Harris 648a0a895f Merge pull request #1169 from sveltejs/gh-1166
9 years ago
Rich Harris 610dd36130 update tests
9 years ago
Rich Harris 9f182f95f0 Merge pull request #1178 from GarethOates/storeCancelScope
9 years ago
Rich Harris cd62a43102 add test for #1179
9 years ago
Gareth Oates 92cb77f8da There was no test to determine if onchange cancel threw an error
9 years ago
Robert Hall 61ac049b70 Using pageYOffset & pageXOffset
9 years ago
Rich Harris dcf8e4694a Merge branch 'master' into gh-1122
9 years ago
Rich Harris e4da15330f put _differs on prototype, remove runtime option
9 years ago
Rich Harris c7acf71efd Merge branch 'immutable-support' of https://github.com/jacwright/svelte into jacwright-immutable-support
9 years ago
Rich Harris 0a0f7d142f remove some unused code etc
9 years ago
Rich Harris a7fd6ecc78 all tests passing
9 years ago
Rich Harris c5211e8074 everything working except some destructuring stuff
9 years ago
Rich Harris 63614be14b Merge branch 'master' into gh-1122
9 years ago
Rich Harris 8e7fdb1031 Merge pull request #1158 from sveltejs/gh-1156
9 years ago
Rich Harris f674561331 update tests
9 years ago
Jacob Wright e7eb8aff2f Adds some runtime tests for the immutable option
9 years ago
Jacob Wright 6fc42fe18b Add another test
9 years ago
Jacob Wright 514ebd28b7 Adding compiler option for immutable back in
9 years ago
Rich Harris 991c9b42ae increase test coverage
9 years ago
Rich Harris 4c6b3b79da increase test coverage, handle immediately-closed blocks
9 years ago
Rich Harris 98fead1c64 increase test coverage
9 years ago
Jacob Wright 7afb9b79f7 Makes immutable a component option rather than a compile option
9 years ago
Rich Harris f9e5bb3d18 failing test for second part of #1100
9 years ago
Jacob Wright faa613d357 Removes date checks and simplifies NaN checks, adds tests
9 years ago
Rich Harris 910f7a46e3 use ["default"] instead of .default in legacy mode - fixes #1166
9 years ago
Rich Harris b4edc7c01e doh
9 years ago
Rich Harris 8b6a099ced empty blocks are a dev warning, not an error
9 years ago
Rich Harris cb19de6c24 Merge branch 'master' into gh-1117
9 years ago
Rich Harris 4106840a00 Merge pull request #1153 from sveltejs/gh-1100
9 years ago
Rich Harris a7334b9148 Merge pull request #1165 from sveltejs/sigil-component-attribute-ssr
9 years ago
Rich Harris b47c62111d Merge pull request #1154 from sveltejs/gh-1065
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
Jacob Wright e1ae3d1a43 Add support to computed and store for immutable structures
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
Rich Harris 02574812ee error on unclosed comments and blocks with only whitespace
9 years ago
Rich Harris 4d312302ff Merge branch 'empty-each-blocks' of https://github.com/Crisfole/svelte into Crisfole-empty-each-blocks
9 years ago
Rich Harris 979a16f165 Merge pull request #1155 from sveltejs/ssr-escape-attribute-values
9 years ago
Rich Harris fc3e150a8c Merge pull request #1149 from sveltejs/gh-1138
9 years ago
Christopher Pfohl 35a9edbb9c Make sure scripts are passing good data so it's only the parse that can go wrong
9 years ago
Christopher Pfohl 40633327c4 Empty Each Blocks should have consistent behavior.
9 years ago
Conduitry 3d238b0846 escape attribute values in SSR
9 years ago
Rich Harris dd47757d3b prevent erroneous missing data warnings for custom elements - fixes #1065
9 years ago
Rich Harris 91e16dd411 component store bindings - fixes #1100
9 years ago
Rich Harris 40a5d3bb50 in custom elements, call oncreate in connectedCallback - fixes #1117
9 years ago
Rich Harris 5d17248074 prevent await blocks using stale state - fixes #1131
9 years ago
Rich Harris a69442734d remove empty style blocks in prod mode - fixes #1138
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 ca2a33e702 Merge branch 'master' into gh-1135
9 years ago
Rich Harris e2efbdf36d Merge branch 'master' into gh-1062-again
9 years ago
Rich Harris fed4c69f13 change test outcome for uninitialised component bindings inside conditionals
9 years ago
Rich Harris f004837196 update snapshot tests
9 years ago
Rich Harris 89ce3ae3d5 run oncreate functions in sensible order (#1135)
9 years ago
Conduitry 8f06877504 update jsdom; update `window.performance.now` test shim
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
Rich Harris e97d9edbaf fix test failure
9 years ago
Rich Harris a67aa5db2e Merge branch 'issue-1091' of https://github.com/emilos/svelte into emilos-issue-1091
9 years ago
Rich Harris b9647ff966 Merge pull request #1106 from sveltejs/gh-1083
9 years ago
Rich Harris 2abed15c99 oops
9 years ago
Rich Harris 557035c887 handle wacky identifier names in templates
9 years ago
Rich Harris 563fd552dd Merge pull request #1112 from sveltejs/gh-1110
9 years ago
James Birtles 0e7bf529c2 addd failing nested store test
9 years ago
Conduitry e85b8edfe7 do not run a11y validation on child component elements (#1110)
9 years ago
Rich Harris 084eb39fbd simplify test slightly, add test for reserved words
9 years ago
Rich Harris ea07020d8a fix expected error position, tweak expected message to include suggested alternative
9 years ago
Rich Harris b76818c6c2 run prettier (spaces -> tabs)
9 years ago
Rich Harris 2ef77052d5 Merge branch 'master' of https://github.com/asweingarten/svelte into asweingarten-master
9 years ago
Rich Harris ccbba4b487 Merge pull request #1094 from sveltejs/gh-1061-b
9 years ago
Emil Ajdyna 7c58d0520c Base scoping hashes on CSS content rather than entire file
9 years ago
asweingarten 417acc3236 [1083] Svelte should throw a compile time error when illegal characters are used in computed names
9 years ago
Rich Harris 40fe045c6b Merge pull request #1093 from sveltejs/gh-1061-a
9 years ago
Rich Harris d56ae292ed Merge pull request #1095 from sveltejs/gh-1062
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 7b0e577a52 validate contents of await blocks (#1061)
9 years ago
Rich Harris 02898f8d37 deconflict referenced globals - fixes #1079
9 years ago
Rich Harris d5e93c6d51 add test to ensure only <, > and & are escaped
9 years ago
Conduitry 11d909b9c4 update test
9 years ago
Rich Harris a42ca8d28a Merge pull request #1076 from emilos/a11y
9 years ago
Rich Harris fc1505f883 Merge pull request #1072 from sveltejs/gh-1071
9 years ago
Emil Ajdyna d44f922df8 Allow xlink:href attribute
9 years ago
Rich Harris ae5b15baba reuse timeout function
9 years ago
Rich Harris 9923d6131f escape HTML - fixes #1066
9 years ago
Rich Harris 0d1af53840 remove incorrect test
9 years ago
Rich Harris 9fcb2f4f7f failing tests for #1066
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 96ca2bd1b7 propagate console events inside nightmare
9 years ago
Rich Harris ee571319af Merge pull request #1053 from sveltejs/gh-1027
9 years ago
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
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
Rich Harris 2099226931 Revert "test 4 and 6 in one go"
9 years ago
Rich Harris ebfbf57506 test 4 and 6 in one go
9 years ago
Rich Harris 72802b78c8 get things working in node 4 again
9 years ago
Rich Harris 508188d107 add dev mode warning for double destroy
9 years ago
Rich Harris 6325a19199 lint
9 years ago
Rich Harris c6b1604e27 reuse window object for faster tests
9 years ago
Rich Harris d2a5f5df33 remove reify
9 years ago
Rich Harris 97aaccec65 update jsdom
9 years ago
Rich Harris d7f61217a1 update rollup and plugins
9 years ago
Rich Harris 714a267837 dont throw error if component is destroyed twice (closes #643)
9 years ago
Rich Harris e1574b195c optimise for ternary expressions when excluding unused css (#696)
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 faf68126df Merge branch 'master' into gh-697
9 years ago
Rich Harris 55778c3b8e Merge pull request #732 from sveltejs/gh-638
9 years ago
Rich Harris ca2ce1f23a Merge pull request #731 from sveltejs/gh-686
9 years ago
Rich Harris d13b682f85 Merge pull request #728 from sveltejs/gh-721
9 years ago
Rich Harris 8720fa5fbc event propagation shorthand for components (#638)
9 years ago
Rich Harris e25a4d5882 event propagation shorthand for elements (#638)
9 years ago
Rich Harris 28e5ebac69 validate ref callees (#686)
9 years ago
Rich Harris cff7fe004b minify css and remove unused styles (#697)
9 years ago
Rich Harris 1feee787f5 use _set, not set, when updating child components - fixes #721
9 years ago
Rich Harris 3c04dd7ed1 clear refs in destroy, not unmount, so that refs are populated in ondestroy. fixes #706
9 years ago
Rich Harris d5ac8d1be2 unescape hash character (#722)
9 years ago
Zhuravlev Yury 8f1836f46e Update css-media-query test. It's look like somebody forgot about that.
9 years ago
Yury Zhuravlev 8193ab534c Fix binding in each block
9 years ago
Rich Harris 1ff8feb341 Merge pull request #720 from sveltejs/gh-711
9 years ago
Rich Harris 6676fe31b4 Merge pull request #719 from sveltejs/gh-712
9 years ago
Rich Harris 66adfefd36 Merge pull request #718 from sveltejs/gh-713
9 years ago
Rich Harris 8ebbe52c65 update tests
9 years ago
Rich Harris 850d66411f ensure data is up to date when re-rendering yield blocks (fixes #711)
9 years ago
Rich Harris e1ee7574bd failing test for #711
9 years ago
Rich Harris b4f2111f70 second failing test for #712
9 years ago
Rich Harris 1eb897df52 failing test for #712
9 years ago
Rich Harris 540f83529c dont strip whitespace at the end of an each block (#713)
9 years ago
Rich Harris 3f38efcf09 update tests
9 years ago
Rich Harris e6ff9fafc9 Merge branch 'master' into gh-708
9 years ago
Rich Harris 4759515db6 better CSS sourcemaps
9 years ago
Rich Harris f4089a8558 make test more stringent
9 years ago
Rich Harris 84503ced19 tidy up
9 years ago
Rich Harris 574f428fa8 tidy up test
9 years ago
Rich Harris 1ba0c88b3d NAILED IT
9 years ago
Rich Harris 3032c82111 sketch of a solution to #708
9 years ago
Rich Harris c90441f345 Merge branch 'master' into gh-691
9 years ago
Rich Harris 9803202e8a Merge pull request #704 from sveltejs/gh-700
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 de3dfbd302 use anchor comments to preserve order in keyed each blocks with components (fixes #700)
9 years ago
Rich Harris 45a55a2325 alias #component in hoisted event handlers - fixes #699
9 years ago
Rich Harris 3757a853a4 fix tests
9 years ago
Rich Harris 3fae55b199 reduce duplication by moving validation into stylesheet
9 years ago
Rich Harris 62c70cce9f move css logic into new Stylesheet class, add CSS sourcemap support
9 years ago
Rich Harris befb5f1615 Merge pull request #690 from sveltejs/gh-685
9 years ago
Rich Harris b37cfd37f2 rename _renderHooks to _oncreate, since thats all its used for
9 years ago
Rich Harris 68af2fd26c add test
9 years ago
Rich Harris 1f34e4a469 call oncreate functions before bindings
9 years ago
Rich Harris a07cd328a0 fix context for bindings (#685)
9 years ago
Rich Harris 10a46a5bab Merge pull request #680 from sveltejs/gh-679
9 years ago
Rich Harris e90ca611c5 fix handling of modified :global(...) selectors
9 years ago
Rich Harris 1926ffa708 fix tests
9 years ago
Rich Harris 0bbc66be28 Merge branch 'gh-678' into gh-679
9 years ago
Rich Harris bd5a09de52 simplify tests
9 years ago
Rich Harris 278c44a234 warn on unused selectors
9 years ago
Rich Harris 11da4841a7 bug fix
9 years ago
Rich Harris 5c3bb52fb9 apply css optimisations to SSR
9 years ago
Rich Harris 13cd7a6820 implement ID selectors, refactor
9 years ago
Rich Harris fbacf3a9ee implement all attribute selector operators
9 years ago
Rich Harris f82da68afc handle ~= attribute selector operator
9 years ago
Rich Harris 6196d80e5c handle empty attributes
9 years ago
Rich Harris 07d102717d handle attribute selectors with = operator
9 years ago
Rich Harris ffea4201e0 handle universal selectors
9 years ago
Rich Harris 03271b176e refactoring, and more :global(...) fixes
9 years ago
Rich Harris 1b9b12b7a4 more :global(...) handling
9 years ago
Rich Harris afbef75516 handle :global(...) styles
9 years ago
Rich Harris 5d44d65ae8 hack sourcemap to mitigate confusion caused by missing data for each block (#681)
9 years ago
Rich Harris 22e33a7c8c move CSS analysis into preprocess
9 years ago
Rich Harris 1d9900272e Merge branch 'master' into gh-679
9 years ago
Rich Harris 79ed77414c Merge pull request #676 from sveltejs/gh-608
9 years ago
Rich Harris f644807e7a only apply svelte-123xyz attributes where necessary (WIP)
9 years ago
Rich Harris ab9eb4fe19 set up tests for omitted scoping attributes
9 years ago
Rich Harris 217f2662c3 Merge branch 'master' into codegen
9 years ago
Rich Harris aaa0c50651 handle @foo and #foo edge cases
9 years ago
Rich Harris 0cbd35cc16 add dev mode hydration error (closes #664)
9 years ago
Rich Harris 4db141dc63 Merge branch 'master' into codegen
9 years ago
Rich Harris 70cd2a205f Merge pull request #675 from sveltejs/gh-651
9 years ago
Rich Harris 6a6857624f update parser tests
9 years ago
Rich Harris 8b2e65b3ce update tests
9 years ago
Rich Harris 137cefde72 move whitespace logic out of parse and into preprocess
9 years ago
Rich Harris 21b8776ae2 merge master -> codegen
9 years ago
Rich Harris a95bd7f416 add test for #651
9 years ago
Rich Harris 2ca8c74a4d remove redundant try-catch
9 years ago
Rich Harris e8f43c9e3e deconflict name with imports (#655)
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 09213f5d12 dont recreate if_blocks incorrectly
9 years ago
Rich Harris b6be4cec07 reenable tests
9 years ago
Rich Harris 4b7f9ec722 pass params to get_block (#667)
9 years ago
Rich Harris 729f909b1b only run create() for new if blocks - fixes #665
9 years ago
Rich Harris f6a6c55007 fix each-else blocks that are empty on initial render (#662)
9 years ago
Rich Harris 47da5f9038 put attribute selector before pseudo-class selector - fixes #658
9 years ago
Rich Harris 6a1248334b update tests
9 years ago
Rich Harris 30cc2664c7 test with hydratable: true and hydratable: false
9 years ago
Rich Harris 1bce6f22ce get all tests passing with hydration
9 years ago
Rich Harris f10d2bb250 fix most non-hydration tests
9 years ago
Rich Harris 79ca1b962c events, bindings, if block fixes
9 years ago
Rich Harris d964b63ad3 fix component hydration
9 years ago
Rich Harris e26c37b408 more hydration
9 years ago
Rich Harris 1cc36884d4 hydration working with elements, text nodes, tags and if blocks
9 years ago
Rich Harris 451ea0068c Merge branch 'master' into hydration
9 years ago
Rich Harris b8141d0fc5 doh
9 years ago
Rich Harris 282a3553d2 add test for #643
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 77cd688922 Merge pull request #642 from sveltejs/gh-639-b
9 years ago
Rich Harris 937a33b03c Merge pull request #641 from sveltejs/gh-639-a
9 years ago
Rich Harris 8a095f1d11 mark indirect dependencies of <select> bindings - #639
9 years ago
Rich Harris 6a13e538b3 skip failing SSR test for now
9 years ago
Rich Harris f2596decc6 sync state with view, if <select> binding does not have initial value (#639)
9 years ago
Rich Harris 0013764a01 first, very incorrect stab at hydration
9 years ago
Rich Harris 49b2136220 add hydration tests
9 years ago
Rich Harris 0c0122cd1f include ast in svelte.compile return value (#632)
9 years ago
Rich Harris b844f7a58d Merge pull request #627 from sveltejs/gh-624
9 years ago
Conduitry c31bdc6863 correctly handle empty <style> tag (#634)
9 years ago
Rich Harris ae39be8368 Merge pull request #630 from sveltejs/gh-620
9 years ago
Rich Harris e926dc09f4 only enforce static type if input is bound (fixes #620)
9 years ago
Rich Harris 20801f2dc2 warn on missing component (#623)
9 years ago
Rich Harris e04ae39b51 allow components to have computed member expressions for bindings (fixes #624)
9 years ago
Rich Harris 736f36b717 more useful presentation of failing SSR code
9 years ago
Rich Harris ef3d0f8dd1 lint
9 years ago
Rich Harris 81561703fa more improvements to ergonomics around test failures
9 years ago
Rich Harris 27a10994ad failing test for #625
9 years ago
Rich Harris 789f04c5e3 remove logging
9 years ago
Rich Harris a4e28a7499 improve readability of debugging printouts
9 years ago
Rich Harris 204ee5a746 Merge branch 'master' into gh-616
9 years ago
Rich Harris ba0cbdb8d0 TS-ify spaces.js and deindent.js, so they get included in prettier task
9 years ago
Conduitry 330c22e146 also escape back-ticks and backslashes in text nodes in SSR code (#616)
9 years ago
Rich Harris ecc84fbecf prettierfy test files
9 years ago
Rich Harris f92b33c130 run prettier on src, update tests
9 years ago
Conduitry c97159ee2e sanitize event name in handler function name (#612)
9 years ago
Rich Harris 8458a3f9e2 merge master -> gh-592
9 years ago
Rich Harris 63a1df3f76 Merge pull request #607 from sveltejs/gh-583
9 years ago
Rich Harris 5a3aa566ce Merge pull request #606 from sveltejs/gh-584
9 years ago
Rich Harris 173fdffaa8 Merge pull request #605 from sveltejs/gh-602
9 years ago
Rich Harris 7e5e6c3f13 add test for #610
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 ac83b405a6 add cascade option, to prevent components inheriting styles (#583)
9 years ago
Rich Harris 41cd7f1b15 coerce empty string in number/range inputs to undefined - closes #584
9 years ago
Rich Harris 4b08fe38f2 change error message for invalid bindings
9 years ago
Rich Harris 19a64181b6 support binding to computed member expressions (fixes #602)
9 years ago
Rich Harris 96efd6d993 Merge branch 'master' into gh-592
9 years ago
Rich Harris feb308cebf Merge pull request #601 from sveltejs/gh-574
9 years ago
Rich Harris ac6bdd4df3 Merge pull request #600 from sveltejs/gh-575
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 cbc0b968ef separate unmount from destroy
9 years ago
Rich Harris 2478c797ab Merge branch 'master' into gh-592
9 years ago
Rich Harris 7b9ef42d3b apply t0 styles to nodes if css transition has delay. fixes #574
9 years ago
Rich Harris 14936889ae always use helpers if referenced, not just for CallExpressions, and warn on context clashes (#575)
9 years ago
Rich Harris d1e2ef34f1 treat <textarea> children the same as a value attribute
9 years ago
Rich Harris 2da800524d fix server-side rendering of textareas with value/children
9 years ago
Rich Harris 791bbc0ad5 use value property for textareas
9 years ago
Rich Harris e46e631a48 prevent textarea from having both value and children
9 years ago
Rich Harris 02068bfb3a separate parsing rules for textareas
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 dde59938c6 Merge pull request #591 from sveltejs/gh-590
9 years ago
Conduitry 7732e69df5 add failing unit test for #592
9 years ago
Conduitry 819217decc add unit test
9 years ago
Conduitry 8cdd4dad8a downgrade invalid callee error for event handlers to a warning (#579)
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
Conduitry 5f2c7cb725 failing test for #569
9 years ago
Rich-Harris 5ecdcaf0ad update dynamic keyed each blocks
9 years ago
Rich-Harris e9a9aea5a8 handle bidirectional transitions
9 years ago
Rich-Harris 1f6743c197 Merge branch 'master' into gh-543
9 years ago
Rich Harris 8ca425e339 Merge pull request #567 from sveltejs/gh-562
9 years ago
Rich-Harris ae138329dd another crack at the algorithm. outros not currently applied
9 years ago
Rich-Harris 2fab5c1cb8 fix bug in assert.htmlEqual
9 years ago
Rich-Harris 8c0b1bee06 update keyed each-block outro test to check div order
9 years ago
Rich-Harris 3db74bff28 apply delays to bidirectional transitions - fixes #562
9 years ago
Rich-Harris 9833dd0174 validate transition directives - closes #564
9 years ago
Rich Harris 3c8e83edfb Merge pull request #563 from sveltejs/gh-561
9 years ago
Rich-Harris 796adf8961 fix outros on compound if blocks, get IfBlock.js coverage to 100%
9 years ago
Rich-Harris 2d7d7fec2a validate <:Window>
9 years ago
Rich-Harris 21371b2362 test @rules in css
9 years ago
Rich-Harris 87a4fb4879 some more html entity stuff, the bits i understand at least
9 years ago
Rich-Harris d6856c135b add complete list of html entities
9 years ago
Rich-Harris 5b307ca1ee increase test coverage
9 years ago
Rich-Harris da23dab0bf failing test for #561
9 years ago
Rich Harris 41a5a53be5 Merge pull request #559 from sveltejs/simpler-codegen
9 years ago
Rich Harris 952a381445 Merge pull request #556 from sveltejs/gh-540
9 years ago
Rich-Harris 2cab755163 oops
9 years ago
Rich-Harris 690249816c abort intros before restarting them - fixes #546
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 4bbd4eb0f9 merge master -> gh-7
9 years ago
Rich-Harris 3871627d63 outros on keyed each-blocks
9 years ago
Rich-Harris f30162f5e6 unkeyed each-blocks with outros
9 years ago
Rich-Harris e8a0646f88 fix mount order of keyed each-block with intros
9 years ago
Rich-Harris 6601a27ad0 intro transitions in each-blocks
9 years ago
Zirro 3280a1974d Use .querySelector(':checked'), enable several <select> tests
9 years ago
Rich-Harris 8e5748477d tighten up transition tests
9 years ago
Rich-Harris a839f7fc9a support dynamic simple if-blocks
9 years ago
Rich-Harris 0a62ac7619 some more transition tests, albeit somewhat ugly
9 years ago
Rich-Harris 7467f5ea12 get basic intro transition test passing
9 years ago
Rich-Harris 3eda59d2cb Merge branch 'master' into gh-7
9 years ago
Rich Harris 45831b929f Merge pull request #529 from sveltejs/bind-checked
9 years ago
Rich-Harris 9e4c78a278 add test
9 years ago
Rich Harris ae467608db Merge pull request #536 from sveltejs/gh-534
9 years ago
Conduitry 3e736f5ebd fix parsing of expressions wrapped in parentheses (#534)
9 years ago
Conduitry dcd2a99a77 fix simple if blocks with top-level or conditions (#532)
9 years ago
Rich-Harris 33bce40839 allow parameter-less transitions
9 years ago
Rich-Harris 339d2987fc update tests
9 years ago
Rich-Harris c3c58531a8 Merge branch 'master' into gh-7
9 years ago
Rich Harris 5384583c19 Merge pull request #527 from sveltejs/gh-524
9 years ago
Rich-Harris 789b759d48 fix for #524
9 years ago
Rich-Harris 8291c53349 include destroy as valid built-in method for event handlers (fixes #523)
9 years ago
Rich-Harris 61e7089f9e failing test for intro transition
9 years ago
Rich-Harris 41700f689b parse transition directives
9 years ago
Rich Harris 5dac68ed5a Merge branch 'master' into gh-3
9 years ago
Rich-Harris f20d29c993 skip <select> test
9 years ago
Conduitry 2911513fb8 fix unit test?
9 years ago
Tobias Davis 685dffd4f5 failing test for bound event handler on <select> elements
9 years ago
Conduitry 5f27bbdcde replace invalid characters in element names when creating variables (#516)
9 years ago
Conduitry bbca5d1402 only call .update on yield fragment if it's present (#514)
9 years ago
Conduitry 7969409ae6 Merge branch 'master' into gh-3
9 years ago
Rich Harris b05dbdb9e2 Update expected.js
9 years ago
Rich Harris a52f40eb82 Merge branch 'master' into gh-507
9 years ago
Rich Harris 68a446c156 Merge pull request #510 from sveltejs/gh-509
9 years ago
Rich-Harris 84cac6bbd9 anchor-less each blocks
10 years ago
Rich-Harris e903ff69fc only create anchors for if blocks when necessary
10 years ago
Rich-Harris 12f211c6a8 populate state in preprocess step, including naming DOM nodes
10 years ago
Rich-Harris 6ff83a4127 rename root to state, and allow state to be used as context
10 years ago
Rich-Harris be5dcd5631 null out else block references when they are destroyed — fixes #509
10 years ago
Rich-Harris 54047c31bf hoist variables where appropriate (#504)
10 years ago
Rich Harris d17de8c51d Merge pull request #501 from sveltejs/gh-498-b
10 years ago
Rich Harris 425aec2bf5 Merge pull request #500 from sveltejs/gh-498
10 years ago
Rich Harris f591a5e844 Merge pull request #499 from sveltejs/gh-495
10 years ago
Rich-Harris 834c94b861 formatting
10 years ago
Rich-Harris 79d99b9170 Merge branch 'master' of https://github.com/saibotsivad/svelte into taylorzane-hotfix/initialize-select-element
10 years ago
Rich-Harris 430037cb9c whoops
10 years ago
Rich-Harris c6aa61ae1f allow dynamic each-block to have static else-block
10 years ago
Rich-Harris 5591443103 failing test for #498
10 years ago
Rich-Harris 0d459b949c ensure var names in binding callbacks are unique — fixes #495
10 years ago
Rich-Harris d65a0e58c5 Merge branch 'master' into gh-495
10 years ago
Rich-Harris 29e81c3d0a fix annoying SSR test failures with solo tests
10 years ago
Rich-Harris 2c760223d0 failing test for #495
10 years ago
Tobias Davis cb095325e4 add failing test for bound select elements
10 years ago
Rich-Harris efcf4b318b dont try to test audio stuff in JSDOM
10 years ago
Rich-Harris a7e7fb6423 Merge branch 'window-events' into gh-406
10 years ago
Rich-Harris 1ad1cd8a78 reenable all tests
10 years ago
Rich-Harris 509328ceb2 allow window events to access state
10 years ago
Rich-Harris ce060c1679 implement bind:duration and bind:paused
10 years ago
Rich-Harris 20ef3734fa implement bind:currentTime
10 years ago
Rich-Harris 5534e565bd validate bindings
10 years ago
Rich-Harris 6e89ce0bfb make all tests run
10 years ago
Rich-Harris eb76a28f8d helpers should not be considered dependencies — fixes #492
10 years ago
Rich-Harris adaccacc32 optimise simple if-blocks
10 years ago
Rich-Harris dc6fa6ff24 collapse text around comments
10 years ago
Rich-Harris 6f5f961c8a exclude indexes from dependencies
10 years ago
Rich-Harris df468e3afb use correct dependencies for each-block updates
10 years ago
Rich-Harris aa67df7fbb simplify if-block switching code
10 years ago
Rich-Harris 796ee21cc2 rename some variables so that they make more sense
10 years ago
Rich-Harris b50ad08506 get rid of tmp variable, we dont need it
10 years ago
Rich-Harris f75a2f0aba dont update static subtrees, even with a noop
10 years ago
Rich-Harris 35a45799f2 more tidying up
10 years ago
Rich-Harris 9818346e86 conditionalise each-block updates
10 years ago
Rich-Harris 73318de59b failing test for #381
10 years ago
Rich-Harris d027851e43 wait this is actually way easier
10 years ago
Rich-Harris d0d17bfde7 prevent component binding blowback on initial render
10 years ago
Rich-Harris 134e9b6f9d ensure binding event handlers precede normal ones (fixes #486)
10 years ago
Rich-Harris 4c927c0c26 clone before set — fixes #479
10 years ago
Rich Harris 3ba49f07bc Merge pull request #478 from sveltejs/gh-476
10 years ago
Rich Harris bbf2b12bfc Merge pull request #473 from sveltejs/gh-166
10 years ago
Rich-Harris 04db04cbd5 update select value bindings at the end of the cycle (fixes #476)
10 years ago
Conduitry 11dcbc1e68 only warn on missing properties in dev mode, do not warn on whitelisted globals
10 years ago
Rich Harris bdf58ee3c2 handle this.get special case in helpers
10 years ago
Rich Harris 3f7f643816 enforce helper function purity
10 years ago
Rich Harris 453cb1e806 check that event handler callee corresponds to a valid method
10 years ago
Rich Harris 97e0dd62bd validate namespaces
10 years ago
Rich-Harris 24c8782165 replace all invalid characters in attribute names when creating variables (fixes #470)
10 years ago
Rich Harris c853c79bf6 Merge pull request #468 from sveltejs/gh-465
10 years ago
Rich Harris f75d345f3d Merge branch 'master' into gh-465
10 years ago
Rich Harris 6258a7c09e Merge branch 'master' into readonly-dev-warning
10 years ago
Rich Harris a8e5a9c49e Merge pull request #461 from sveltejs/gh-404-scroll
10 years ago
Rich Harris 4233f1de42 catch hardcoded names that should be aliases (#465)
10 years ago
Rich Harris 05e3118592 ensure hoisted event handler names are globally unique — fixes #466
10 years ago
Rich Harris d8d334d86d move some tests to where they belong
10 years ago
Conduitry 7fffde7ffc unit test
10 years ago
Rich Harris 8769d9734f merge master -> readonly-dev-warning
10 years ago
Rich Harris d897607cc1 throw if user sets read-only properties in dev mode
10 years ago
Rich Harris 4a20d3d946 window scroll bindings are bidirectional (#404)
10 years ago
Rich Harris 2fea782240 Merge pull request #460 from sveltejs/gh-450
10 years ago
Rich Harris a3ca11f830 Merge pull request #459 from sveltejs/gh-189
10 years ago
Rich Harris ceea9be45a collapse consecutive if-statements with the same condition (#450)
10 years ago
Rich Harris e04bc02518 dont create whitespace nodes inside elements like <select> (#189)
10 years ago
Rich Harris 60d42ffabe better error for attempts to use getters/setters for methods. closes #425
10 years ago
Rich Harris 20e483f7eb correctly bind one-way select value attributes (#423)
10 years ago
Rich Harris e74b3edd30 hoist some event handlers, rewrite non-hoisted ones to avoid binding
10 years ago
Rich-Harris 20ee8370e4 failing test for #433
10 years ago
Rich-Harris 48d8c2ca95 Merge branch 'master' into refactor
10 years ago
Rich Harris 445ba268aa Merge pull request #448 from sveltejs/gh-441
10 years ago
Rich-Harris de1f21553d add gitkeep file so tests pass in CI
10 years ago
Rich-Harris 2cd132e44d separate current *fragment* from current *generator state*
10 years ago
Rich-Harris b97438749f all tests passing once more. now the real work begins
10 years ago
Rich Harris 505da643d3 another horrible half-done commit
10 years ago
Rich Harris c7187d1b17 baby steps...
10 years ago
Rich Harris 1462ec4665 minor test tweaks
10 years ago
Taylor Zane Glaeser f97cfcda59 Fixes #452. Fixed an issue that caused setting `computed` to an empty object to prevent the component from compiling.
10 years ago
Rich Harris 88cf096065 remove #433 test for now
10 years ago
Rich Harris 7479219f3c move test/generator to test/runtime, and have separate input -> output tests for codegen. add test for #433
10 years ago
Rich Harris 9875411177 reverse pre and post to fix deferrerd observers (fixes #441)
10 years ago
Rich Harris a6b4bb0d01 while we're at it, remove unused stuff from generated SSR code
10 years ago
Rich Harris 8e27684642 centralise logic for manipulating source javascript
10 years ago
Rich Harris 84bc724bba Merge pull request #445 from sveltejs/gh-442-b
10 years ago
Rich-Harris ef23b0c431 fix broken proto helper
10 years ago
Rich-Harris 57f1397d68 generate more idiomatic code when removing object properties
10 years ago
Rich Harris fb599f4f83 Merge pull request #443 from sveltejs/gh-431
10 years ago
Rich Harris 7054cdc633 Merge pull request #422 from sveltejs/gh-419
10 years ago
Rich-Harris 0f44611285 use assign helper, to avoid compatibility headaches
10 years ago
Rich Harris 5985245cf5 Merge pull request #438 from sveltejs/gh-436
10 years ago
Rich-Harris 2ce0cbec23 better error for bind:value="{{foo}}" - fixes #437
10 years ago
Rich-Harris 5c10dea6c9 read values from range/number inputs as numbers - fixes #436
10 years ago
Rich-Harris f9fc2f37dc prevent unclosed <script> causing infinite loop
10 years ago
Rich-Harris 3672b61b37 make it easier to run parser tests solo
10 years ago
Rich-Harris 9d3427facc Merge branch 'master' into gh-424
10 years ago
Rich Harris e52484cffa Merge pull request #427 from sveltejs/gh-423
10 years ago
Rich Harris 4494c6ccb9 Merge pull request #429 from sveltejs/gh-428
10 years ago
Rich Harris 60792e03fe Merge pull request #430 from sveltejs/disallow-import-root
10 years ago
Rich-Harris 660e72a773 retain binding sourcemaps to the extent possible
10 years ago
Rich-Harris d985a89467 prevent hard-to-reproduce bug with deep two-way bindings
10 years ago
Conduitry 9c3814fe0e disallow `import root` during validation
10 years ago
Conduitry 2b23b2cd60 bind callback passed to custom events to the node context (#428)
10 years ago
Conduitry 575a60ee3c add unit test
10 years ago
Conduitry 516117e2f1 use snake case in generated identifiers (#419)
10 years ago
Conduitry 6fcd405351 add unit test for #424
10 years ago
Rich-Harris 854ecd441a remove surplus `root.` prefix
10 years ago
Dexter 3d1d7c4360 Added test for binding bug
10 years ago
Rich Harris 0ac2b2d0f1 Merge pull request #416 from sveltejs/gh-413
10 years ago
Rich-Harris 1aedd7e456 renable tests
10 years ago
Rich-Harris 588872cf40 include css in compiler output (#409)
10 years ago
Rich-Harris b61fd27cfc recompute computed values with functions as dependencies (#413)
10 years ago
Rich Harris 7ae853c75c Merge branch 'master' into gh-400
10 years ago
Rich-Harris ccfc0ed645 prevent infinite loops caused by pathological component bindings (#398)
10 years ago
Conduitry f1b608e706 new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
10 years ago
Rich Harris ca6e290653 Merge pull request #391 from sveltejs/gh-371
10 years ago
Cristian Necula 7b82bc4fa7 (test) assert input's checked status after a DOM 'change' event
10 years ago
Rich Harris 042c8eb1c1 Merge branch 'master' into gh-371
10 years ago
Rich-Harris 1ffc76ec3f Merge branch 'master' into gh-371
10 years ago
Conduitry 5968a539d0 deconflict `template` variable (#392)
10 years ago
Rich-Harris 4949edfe55 add infrastructure for bindings on <:Window>
10 years ago
Rich-Harris f5c612520e ugh node 4
10 years ago
Rich-Harris ab03bef8cd SSR support for <:Window> (albeit impossible to test for some reason)
10 years ago
Rich-Harris 958ed7409f implement :Window events
10 years ago
Rich Harris 50dc10810e Merge pull request #394 from sveltejs/fix-overly-aggressive-reserved-tag-parsing
10 years ago
Conduitry c33ee7b56e fix removeObjectKey when removing last key in object and it has a trailing comma
10 years ago
Conduitry fe3068f779 only do special reserved name handling when tag is all lowercase letters
10 years ago
Rich-Harris 879b61a99a Merge branch 'master' into gh-371
10 years ago
Conduitry 3e0063fb64 add unit test for imported components that are then renamed as they're used
10 years ago
Rich Harris b2423281e9 Merge pull request #389 from sveltejs/gh-388-deconflict-non-helper-functions
10 years ago
Rich-Harris eaf4a2e8bd parse <:Window> tags
10 years ago
Conduitry ce66d15c71 add unit test
10 years ago
Rich Harris a64d2081ea Merge pull request #385 from sveltejs/gh-383
10 years ago
Rich Harris 24664b997b Merge pull request #387 from sveltejs/gh-311
10 years ago
Rich Harris c2696168cb Merge pull request #384 from sveltejs/shorthand-attributes
10 years ago
Rich Harris 8a4ac4953b implement bind:group for radio input groups (#311)
10 years ago
Rich Harris 97868099aa implement bind:group for checkbox inputs (#312)
10 years ago
Rich Harris f5fc6c5c35 Merge branch 'master' into gh-312
10 years ago
Rich Harris e71d4e0d53 allow reserved words in tags e.g. {{class}} (#383)
10 years ago
Rich Harris 8b528bada1 implement :shorthand attributes
10 years ago
Rich Harris 952a659858 fix test
10 years ago
Rich Harris 99b7e7e304 test binding values work with sourcemaps
10 years ago
Rich Harris 2ac793c561 treat binding values as expressions
10 years ago
Rich Harris 1081dd77a4 make test harder to pass
10 years ago
Rich Harris 9f2a90e95c tweak htmlEqual helper so tests are easier to write
10 years ago
Rich Harris 337f44dd45 test for #312
10 years ago
Rich Harris 30f0dca598 dev warnings for bad arguments to component.observe (#369), and component.on("teardown") (#365)
10 years ago
Rich Harris 480586eb91 tests for #365 and #369
10 years ago
Rich-Harris a2fd58e980 Merge branch 'master' of https://github.com/sveltejs/svelte
10 years ago
Rich-Harris 0d8b53aa11 update gitignore, remove some files from repo
10 years ago
Rich-Harris 4070c6a117 revert to previous addCss behaviour (#372)
10 years ago
Rich Harris cb8429fef7 move test to new location
10 years ago
Rich Harris 1d59b6093b alternative approach to #331
10 years ago
Rich-Harris 38cd051543 fix two-way binding for components inside each-blocks - closes #356
10 years ago
Rich-Harris fe9974470a update tests posts-#354
10 years ago
Rich-Harris 940bd82d03 Merge branch 'master' into gh-109
10 years ago
Rich-Harris f7c1fb0c57 move tests around to facilitate registering babel based on environment
10 years ago
Rich-Harris 573f8681a1 differentiate between nbsp and other whitespace (#348)
10 years ago
Conduitry 04874b8b7f unit test
10 years ago
Conduitry b6b66ee274 fix test
10 years ago
Taylor Zane Glaeser 42bb3642bb Implemented a `create` method that outputs a Svelte component constructor. Added a format called `eval` that returns a string that when called by `eval` will return a Svelte component constructor. Wrote tests for the `create` method, and the `eval` format. All these tests pass.
10 years ago
Rich Harris 4b23c0ac36 Merge pull request #352 from sveltejs/gh-348
10 years ago
Rich-Harris bb2cd0d33f differentiate between nbsp and other whitespace (#348)
10 years ago
Conduitry af0372246d unit test
10 years ago
Conduitry 222a8cd5fb fix test
10 years ago
Rich-Harris 80d95f2bf9 <:Self> inside each-block
10 years ago
Rich-Harris cac61b2b0f self-references (#51)
10 years ago
Cristian Necula 0dbb2fe727 tests/render-in-iframe: added failing test for rendering in another document
10 years ago
Rich-Harris a71d0c8982 two-way binding with <select multiple> (#313)
10 years ago
Rich-Harris 25bcfef878 allow [arrow] function expressions inside tags (#269)
10 years ago
Rich-Harris 3e4afe5052 better errors for malformed event handlers (#220)
10 years ago