Commit Graph

555 Commits (32775a699dd9cbc9884ee04931c3903b832775d5)

Author SHA1 Message Date
Richard Harris a7370ce024 fix test
6 years ago
Rich Harris c0a8e630e3
Fix media bindings, simplify others
6 years ago
Richard Harris 18c2ae715f prevent false positive detection of events that can be made passive - fixes #1914
6 years ago
Richard Harris 468b5dc0c4 fix tests
6 years ago
Richard Harris ef944b5713 prevent parent component modifying child component state - fixes #1924
6 years ago
Rich Harris abdbb00d6d fix test
6 years ago
Rich Harris 7440fa54e9 remove missing prop warning false positives - fixes #1902
6 years ago
Rich Harris 1f46e23e1b
More conservative invalidation
6 years ago
Rich Harris 29052aba7d
Bring svelte.technology source into main repo
6 years ago
Conduitry df57e508f8 use extension-less import for svelte/internal
6 years ago
Rich Harris f45e2b70fd
Implement reactive assignments (#1839)
6 years ago
Rich Harris 79ea0bd43c
Merge pull request #1822 from aphitiel/gh-1743
6 years ago
Rich Harris e5ae97b9c9 use helper for combining window binding props
6 years ago
pk d27dbae51c move resize handler from _beforecreate to _after.. (fixes #1743)
6 years ago
Rich Harris 54fe128cf8
Merge pull request #1819 from sveltejs/gh-1088
6 years ago
Rich Harris 82b1b75afe implement event modifiers
6 years ago
Rich Harris e7c62e9182 only add list/index to each block context if necessary
6 years ago
Rich Harris 681de7d220 merge master -> gh-1187-b
6 years ago
Rich Harris d6f25a6a21 redo 9e9a078d on top of current master
6 years ago
Rich Harris 004a7a24ed Merge branch 'master' into gh-938
6 years ago
Rich Harris 4afa133214 reinstate tests
6 years ago
Rich Harris 86fd8f3e16 merge master -> gh-938
6 years ago
Rich Harris 4a88c9ccb5 remove -bundle files
6 years ago
Rich Harris e0fe31327a move render logic into separate phase (#1678)
6 years ago
Rich Harris f54c1ec7b8 support dynamic import in expressions
6 years ago
Josh Duff 211e0383cf Only update inputs when the value changed
6 years ago
Rich Harris a18cec0ec6 not sure where that extra blank line came from
6 years ago
Rich Harris c2f0ca3e2e alternative approach to #1520
6 years ago
Rich Harris 33ed2f504e Merge branch 'master' into gh-1520
6 years ago
Rich Harris ff6c4c7767
Merge pull request #1681 from sveltejs/gh-1666
6 years ago
Rich Harris 154ee73765 support debug tag in SSR mode - fixes #1659
6 years ago
Rich Harris ec6360487e correctly set select value on mount - fixes #1666
6 years ago
Jacob Wright 2c24c36120 Allows fragment updates to happen after state updates
6 years ago
Rich Harris 3778431775
Merge pull request #1670 from sveltejs/init
6 years ago
Rich Harris d323f51e6c update tests
6 years ago
Jacob Wright b6e51ddc32 Change actions to init on mount rather than hydrate
6 years ago
Rich Harris d56b0b007e update tests
6 years ago
Rich Harris bcf4c59cc6 -> v2.10.0
6 years ago
Rich Harris 6b56d0494c Merge branch 'master' of github.com:sveltejs/svelte
6 years ago
Rich Harris b6c3749d99 tidy up
6 years ago
Rich Harris 1dc1343f00 only add debugger statements in dev mode
6 years ago
Rich Harris be412d3605
Merge pull request #1642 from ekhaled/gh-1600-ios
6 years ago
Rich Harris 401a6fea5d handle single identifiers in {@debug} tags
6 years ago
Rich Harris a1264f583d fix test
6 years ago
Rich Harris a5967fa118 Merge branch 'debug' of https://github.com/GarrettGeorge/svelte into GarrettGeorge-debug
6 years ago
Admin 4004a569e1 Adds tests for valid and invalid debug tag usage.
6 years ago
ekhaled b8e03dcfb8 update snapshot
6 years ago
Rich Harris b94d7adfec replace appendNode(node, parent) with append(parent, node) - easier to follow
6 years ago
Rich Harris 9964a77565 stringify values before setting text data - fixes #1598
6 years ago
Rich Harris 264d65d52c
Merge pull request #1610 from ekhaled/gh-1600
6 years ago
ekhaled 259f77d015 closes #1600
6 years ago
Curtis Maloney f0a247a4e6 [Fixed #1608] Allow binding of input files
6 years ago
Conduitry e66d9ffae7
in .fire always set calling flag back to false (#1587)
6 years ago
Rich Harris 7678b36581 separate groupOutros from transitionsManager
6 years ago
Rich Harris ce575e1065
Revert "Fix for #1553"
6 years ago
Pavel Malyshev f1fc81a49f Fix for #1553
6 years ago
Pavel Malyshev 52ece0b5f0 Fix for #1538
6 years ago
Rich Harris 04ef203787 prevent possibility of conflicts with __file
6 years ago
Rich Harris d3201603d9 change __svelte_meta to __svelte_meta.loc
6 years ago
Rich Harris 63a712ccd9 add location info to nodes - fixes #1499
6 years ago
Rich Harris 8ba809ded1 add snapshot test
6 years ago
Rich Harris a75b0b71c5 pass in destroy method
6 years ago
Rich Harris c4937d271f fix skipped intros
6 years ago
Rich Harris 042ec54f7f nested component transitions
6 years ago
Rich Harris 44bb2da29b add skipIntroByDefault compiler option (#547)
6 years ago
Rich Harris c7c46dec29
Merge pull request #1422 from sveltejs/each-object-create
6 years ago
Rich Harris fabfc78620 fix duplicate events on range input bindings (#1419)
6 years ago
Rich Harris d85b60a09c use Object.create for each block child contexts
6 years ago
Rich Harris a18be79887 simplify handling of html blocks
6 years ago
Rich Harris 103f278cfc update tests
6 years ago
Rich Harris 6ddfc19bbc only update component props if they are dynamic - fixes #1394
6 years ago
Rich Harris 5f46650801 update test
6 years ago
Rich Harris 14f84a3e8a
Merge pull request #1386 from sveltejs/gh-984
6 years ago
Rich Harris 8f8b1308b7 update tests
6 years ago
Rich Harris ac4ff538ae Merge branch 'master' into gh-984
6 years ago
Rich Harris c01cde9065 Merge branch 'master' into gh-1360
6 years ago
Rich Harris da2a45af80 keep ES5 function names in dev mode
6 years ago
Rich Harris b381aa63a4 integrate CLI - fixes #1360
6 years ago
Rich Harris a29e2733cd update tests
6 years ago
Rich Harris 1bacad1087 update tests
6 years ago
Rich Harris 541ec6c397 bind to dimensions
6 years ago
Rich Harris f00d08427e Merge branch 'master' into gh-984
6 years ago
Rich Harris 2866b11c7d WIP towards #984
6 years ago
Rich Harris 506ab3952e destructuring
6 years ago
Rich Harris f5048fcf10 deduplicate each block context generation for keyed blocks
6 years ago
Rich Harris 61ee380e26 deduplicate each block context generation (#1287)
6 years ago
Rich Harris 7fe3e4a85d failing test for #1187
6 years ago
Rich Harris 9e9a078d5c set window scroll from bindings on initialisation - fixes #938
6 years ago
Rich Harris ff45a5315f
Merge pull request #1375 from sveltejs/gh-1369
6 years ago
Rich Harris f0bf1ef8d5 recalculate each block values lazily - fixes #1286
6 years ago
Rich Harris ef39f00902 assign custom methods to custom element prototype - fixes #1369
6 years ago
Rich Harris 7224ef4eff all tests passing
6 years ago
Rich Harris c3c7970dc9 minor fixes
6 years ago
Rich Harris 86d3476b55 minor fixes, update various tests
6 years ago
Rich Harris 6534fef37d
Merge pull request #1364 from sveltejs/gh-1356
6 years ago
Rich Harris f8b076b2f3 set state to blank object on destroy, not null - fixes #1354
6 years ago
Rich Harris 8643b7ac88 tweak
6 years ago
Rich Harris 991bd9dce8 correctly report changed properties in initial state/update events - fixes #1356
6 years ago
Rich Harris 6ff02b263e remove legacy prop stuff, now that we emit ES2015
6 years ago
Conduitry f2b6ec47a2 fix <svelte:window> to use new APIs
6 years ago
Rich Harris 5a457bfb87 rename loc to start, include character info in locations
6 years ago
Rich Harris 73e83e5571 tidy up
6 years ago
Rich Harris cae4dd93bf fix some more tests
6 years ago
Rich Harris 2d5b47b8a4 remove store option
6 years ago
Rich Harris ce114600d1 remove deprecated renderCss method
6 years ago
Rich Harris ab79cc6608 remove v1 snapshot tests
6 years ago
Rich Harris a3add04e7c remove code, map and cssMap from svelte.compile output
6 years ago
Rich Harris df4e3678dc update snapshot tests
6 years ago
Rich Harris daa2635cd3 update snapshot tests
6 years ago
Rich Harris 5ebd43898c deprecate get with string argument
6 years ago
Rich Harris ee8256604c allow overwritten observe
6 years ago
Rich Harris 6249fa6bc8
Merge pull request #1345 from sveltejs/gh-1069
6 years ago
Rich Harris 99ea7539af use destructuring syntax for computed props in v2 mode - fixes #1069
6 years ago
Rich Harris 3d8c768c81 update tests
6 years ago
Rich Harris 2a43fe94b3 deprecate observe
6 years ago
Rich Harris c1573dbf2c implement onstate and onupdate
6 years ago
Rich Harris e85eda8279 reenable all tests
6 years ago
Rich Harris 94a7ffb9a5 fix debugging comments
6 years ago
Rich Harris 7681939d3e fix head/window meta tags
6 years ago
Rich Harris bb61e6e911 v2 js tests
6 years ago
Rich Harris f27b29d5cb
Merge pull request #1289 from sveltejs/gh-195
6 years ago
Rich-Harris 36290cb6cd component spread
6 years ago
Rich-Harris 6e5523cb89 Revert "fix handler in-place"
6 years ago
ekhaled 6ebf46ad67 fix handler in-place
6 years ago
ekhaled b8c0ab2949 support both destroy and teardown in custom event handlers
6 years ago
Rich Harris c9435fc87f
Merge pull request #1279 from jacwright/action-this
7 years ago
Luke Edwards a412f11907 update test samples’ expectants
7 years ago
Jacob Wright 9b0a884035 Make actions execute with the component context
7 years ago
Rich Harris e77988b195
Merge pull request #1247 from jacwright/behaviors
7 years ago
Alan Palazzolo 3c61655e93 Add option preserve comments in SSR rendering.
7 years ago
Jacob Wright 04f5d5c975 Adds actions to components
7 years ago
Rich Harris 86a151a7ea
Merge pull request #1243 from sveltejs/gh-1240
7 years ago
Rich Harris 7c25eb32fa skip missing property warning for computed/global properties
7 years ago
Rich Harris ce607d5ab3 add local variable for list values - fixes #1240
7 years ago
Rich Harris 26239463c5
Merge pull request #1237 from sveltejs/gh-1209
7 years ago
Rich Harris 4e99eb8d37 use setAttribute with inputs, for benefit of IE - fixes #1209
7 years ago
Rich Harris 01f6f9fa4d alias listName to deconflict with shared helpers - fixes #1229
7 years ago
Rich Harris d680356622 update test
7 years ago
Rich Harris 428784d570 Merge branch 'gh-1118' into gh-1118-base36
7 years ago
Rich Harris 2f01115a41 merge master -> gh-1118
7 years ago
Rich Harris 0c66e9e2f7 merge
7 years ago
ekhaled 2e9cd4742c fix snapshots for the actual mounting code
7 years ago
ekhaled 270be984ac fix bundle snapshots
7 years ago
ekhaled 2e3724f7d3 fix snapshots
7 years ago
Rich Harris 94c76308a1 update deps to get tests to pass again
7 years ago
Conduitry a2873df711 update js if-block-no-update test
7 years ago
Rich Harris e95a0b60a9 Merge branch 'master' into gh-1175
7 years ago
Rich Harris a5cc451c9c only use page[XY]Offset
7 years ago
Rich Harris 1ad28e6fe6 use base36 for style classes
7 years ago
Rich Harris 81743a2562 update more tests
7 years ago
Rich Harris 9971283671 update tests
7 years ago
Rich Harris 602f13ae6b fix out of date test
7 years ago
Rich Harris 805c72fefc
Merge pull request #1173 from sveltejs/gh-1122
7 years ago
Rich Harris 036277df64 update tests
7 years ago
Rich Harris 4ccc2ade2f
Merge pull request #1169 from sveltejs/gh-1166
7 years ago
Rich Harris af5a73cc11 update tests
7 years ago
Robert Hall 836cc36598 Using pageYOffset & pageXOffset
7 years ago
Rich Harris d162ce9968 Merge branch 'master' into gh-1122
7 years ago
Rich Harris 1b599bd57b put _differs on prototype, remove runtime option
7 years ago
Rich Harris 27f6d560b5 remove some unused code etc
7 years ago
Rich Harris 7baba8bf8c all tests passing
7 years ago
Rich Harris b94f63ed70 everything working except some destructuring stuff
7 years ago
Rich Harris c0292cbca1 update tests
7 years ago
Jacob Wright 046a8000e6 Add another test
7 years ago
Jacob Wright 405c4f6371 Adding compiler option for immutable back in
7 years ago
Jacob Wright 9e877d9da1 Makes immutable a component option rather than a compile option
7 years ago
Jacob Wright 9a1d87494d Removes date checks and simplifies NaN checks, adds tests
7 years ago
Rich Harris 38bf5b1d3f use ["default"] instead of .default in legacy mode - fixes #1166
7 years ago
Jacob Wright d2f8e472a5 Add support to computed and store for immutable structures
7 years ago
Jacob Mischka b5a3e2224d Add audio video volume binding (#1148)
7 years ago
Rich Harris d411a82a32 update snapshot tests
7 years ago
Emil Ajdyna f9fc7c9e91 Base scoping hashes on CSS content rather than entire file
7 years ago
Rich Harris 728d2fa9fb deconflict referenced globals - fixes #1079
7 years ago
Rich Harris 6ccc7b812b reuse timeout function
7 years ago
Rich Harris 297ea67ebe lock scroll bindings to allow tweening - fixes #1071
7 years ago
Rich Harris 976c278d37 prevent main fragment being created twice - fixes #1063
7 years ago
Rich Harris a8f7d57c3a only optimise <title> inside <:Head>
7 years ago
Rich Harris b7d8c49dc8
Merge branch 'master' into gh-1027
7 years ago
Rich Harris 1f31ba52c3 dont create text nodes inside <:Head> - fixes #1026
7 years ago
Rich Harris 646b0c0e01 optimise <title> - fixes #1027
7 years ago
Rich Harris f8362fe5fb fix toString method in SSR output - closes #1044
7 years ago
Rich Harris ca7e90083e can just use options here
7 years ago
Emil Ajdyna d398b34a41 Add state() method handling for components
7 years ago
Rich Harris 394dec9f11
Merge pull request #1024 from sveltejs/gh-1013
7 years ago
Rich Harris 8a3898c6cb fix unrelated bug that was causing tests to fail
7 years ago
Rich Harris ed44f7d1fa server-side <:Head>
7 years ago
Rich Harris ca6a4a7708
Merge pull request #1021 from sveltejs/gh-1015
7 years ago
Rich Harris 22ba8f74ca deprecate renderCss
7 years ago
Rich Harris 0127f9f0ca change server-side render method signature
7 years ago
Emil Ajdyna fadeeaf177 Expose root as a public property
7 years ago
Rich Harris 6bd410c886 implement preload
7 years ago
Rich Harris 797165b5a8
trim SSR'd output more intelligently - fixes #998
7 years ago
Rich Harris c799230164
don't use dataset with svg elements - fixes #995
7 years ago
Rich Harris 82fc0f2713
Merge branch 'master' into gh-654
7 years ago
Rich Harris 8a0813e96b SSR await-then-catch
7 years ago
Rich Harris 945d8ce526 store bindings
7 years ago
Rich Harris be68cd9de2 use store in SSR mode
7 years ago
Rich Harris 75e911b05a update snapshot tests
7 years ago
Rich Harris dc154987da remove whitespace around <:Window/> - fixes #943
7 years ago
Rich Harris 0a01aa0243
Increase code coverage
7 years ago
Rich Harris 51901442c9
attach globals to state object on initialisation
7 years ago
Rich Harris 775866780e
combine multiple bindings in single handler, implement bind:indeterminate — fixes #910
7 years ago
Rich Harris 4411ab116e update snapshot tests
7 years ago
Rich Harris 0a4e795498
Merge pull request #921 from sveltejs/gh-917
7 years ago
esarbanis ea3f58a786 Use el.dataset.foo = bar instead of setAttribute(el, 'data-foo', bar)
7 years ago
Rich Harris fb675fd5e3 update snapshot tests
7 years ago
Rich Harris f659fd8391 remove unused _yield property
7 years ago
Conduitry 2800b5cacc update tests
7 years ago
Rich Harris 1dc4882183 merge master -> no-template-iife
7 years ago
Rich Harris d27e4734d5 Merge branch 'master' into short-method-names
7 years ago
Rich Harris 6436886500 exclude irrelevant stuff from SSR output
7 years ago
Rich Harris 4dbfc65e74 fix indentation, update snapshot tests
7 years ago
Rich Harris fcf2b03ba6 take template object out of IIFE
7 years ago
Rich Harris 94e280e430 merge master -> gh-23
7 years ago
Rich Harris dabc2d1fdf dont wrap ESM in IIFE
7 years ago
Rich Harris 2da0e252c7 merge master => iife
7 years ago
Rich Harris 2b2a1b40ce use short method names
7 years ago
Rich Harris c8f094cf80 remove unused destroyEach and destroy arguments
7 years ago
Rich Harris 1f9fc04d27 simplify module wrapping
7 years ago
Rich Harris fdd7ac71c2 Merge branch 'master' into iife
7 years ago
Rich Harris cf56c0ba04 Merge branch 'master' into gh-23
7 years ago
Rich Harris 5d84a93c99 shorten each block var names
7 years ago
Rich Harris 4f1d48c4a6 more readable each block values
7 years ago
Rich Harris 74d84d81e9 remove incorrect argument
7 years ago
Rich Harris 66ae0d9c94 use textContent and innerHTML where appropriate (#23)
7 years ago
Rich Harris 5cd76be290 various fixes
7 years ago
Rich Harris 3b68d1f5dc update tests
7 years ago
Rich Harris 6b70825ac3 Merge pull request #856 from sveltejs/remove-is-initial
7 years ago
Rich Harris 21f6dd8cef Merge branch 'master' into static-components
7 years ago
Rich Harris bd282df921 remove version numbers from snapshot tests
7 years ago
Rich Harris e2ef1fdb96 dont update components with only static bindings
7 years ago
Rich Harris 4d6e95d799 update snapshot tests
7 years ago
Rich Harris b1cbffece6 remove excess parentheses
7 years ago
Rich Harris 33dbc18a10 merge master -> shared-init
7 years ago
Rich Harris 0b71a93779 update tests
7 years ago
Rich Harris bd002f94bc extract some shared init logic
7 years ago
Rich Harris 1d34bd886e put version comment above imports
7 years ago
Rich Harris 6e57fa3ced add debugging comments
7 years ago
Rich Harris fbbaff5404 typo
7 years ago
Rich Harris 770c14955d escape shadow DOM CSS - fixes #840
7 years ago
P 072f541855 Change let -> var, solves #838
7 years ago
Rich Harris bf3afe955c Merge pull request #833 from sveltejs/nightmare
7 years ago
Rich Harris ef2a2b329a use nightmare to test custom element stuff
7 years ago
Rich Harris d75ab8544e remove requestAnimationFrame stuff, convert time ranges to {start, end} objects
7 years ago
Rich Harris 1a99c515ff add snapshot test for #830
7 years ago
Rich Harris 073cbc0460 update some tests
7 years ago
Rich Harris 5e325d5a87 remove redundant input blowback guard - closes #645
7 years ago
Rich Harris e993ae0748 more consistent style for generated code
7 years ago
Rich Harris 81a04ad86c merge master -> gh-797
7 years ago
Rich Harris 7401590fba Merge branch 'master' into gh-797
7 years ago