0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00
Commit Graph

203 Commits

Author SHA1 Message Date
ekhaled
270be984ac fix bundle snapshots 2018-03-06 18:46:42 +00:00
ekhaled
2e3724f7d3 fix snapshots 2018-03-06 17:07:49 +00:00
Rich Harris
94c76308a1 update deps to get tests to pass again 2018-03-05 11:14:27 -05:00
Conduitry
a2873df711 update js if-block-no-update test 2018-03-02 16:01:02 -05:00
Rich Harris
e95a0b60a9 Merge branch 'master' into gh-1175 2018-02-25 08:48:52 -05:00
Rich Harris
a5cc451c9c only use page[XY]Offset 2018-02-25 08:45:59 -05:00
Rich Harris
602f13ae6b fix out of date test 2018-02-24 13:25:27 -05:00
Rich Harris
805c72fefc
Merge pull request #1173 from sveltejs/gh-1122
[WIP] Simplify everything
2018-02-24 11:12:30 -05:00
Rich Harris
036277df64 update tests 2018-02-23 09:11:10 -05:00
Rich Harris
4ccc2ade2f
Merge pull request #1169 from sveltejs/gh-1166
use ["default"] instead of .default in legacy mode
2018-02-23 08:59:39 -05:00
Rich Harris
af5a73cc11 update tests 2018-02-23 08:57:01 -05:00
Robert Hall
836cc36598 Using pageYOffset & pageXOffset 2018-02-15 22:10:07 +07:00
Rich Harris
d162ce9968 Merge branch 'master' into gh-1122 2018-02-11 17:33:10 -05:00
Rich Harris
1b599bd57b put _differs on prototype, remove runtime option 2018-02-11 17:32:48 -05:00
Rich Harris
27f6d560b5 remove some unused code etc 2018-02-11 16:04:15 -05:00
Rich Harris
7baba8bf8c all tests passing 2018-02-11 15:55:18 -05:00
Rich Harris
b94f63ed70 everything working except some destructuring stuff 2018-02-11 15:02:25 -05:00
Rich Harris
c0292cbca1 update tests 2018-02-11 08:24:55 -05:00
Jacob Wright
046a8000e6 Add another test 2018-02-11 00:03:04 -07:00
Jacob Wright
405c4f6371 Adding compiler option for immutable back in
This will keep existing code smaller and _mostly_ only add size when using the `immutable` compiler option.
2018-02-10 23:54:33 -07:00
Jacob Wright
9e877d9da1 Makes immutable a component option rather than a compile option
This allows components to opt in (or out) of using immutable data checking for greater flexibility in app design. It also removes the compiler option.
2018-02-10 12:37:33 -07:00
Jacob Wright
9a1d87494d Removes date checks and simplifies NaN checks, adds tests 2018-02-10 10:23:58 -07:00
Rich Harris
38bf5b1d3f use ["default"] instead of .default in legacy mode - fixes #1166 2018-02-10 12:22:12 -05:00
Jacob Wright
d2f8e472a5 Add support to computed and store for immutable structures
Adds optional performance support for apps using an immutable data structure such as redux. Adds the `immutable` boolean option for compile and an `immutable` option to store as well. When these options are used, computed will not recompute if the object has not changed. If your data structure is not immutable you should not use this as svelte cannot know if a mutation was made on objects.

This PR also adds support for Dates and NaN values so computed properties will not recompute if a date has not changed or a value did not change from NaN.

This closes out these issues:
* https://github.com/sveltejs/svelte/issues/1146
* https://github.com/sveltejs/svelte/issues/1161

This is my first PR for Svelte. Any feedback would be appreciated!
2018-02-08 21:04:29 -07:00
Jacob Mischka
b5a3e2224d Add audio video volume binding (#1148)
* Add audio/video volume binding

Fixes #1143

* Update test and add volumechange event

* Set volume on initial update

* Update test after setting volume initially

Oops.
2018-02-03 13:33:27 -05:00
Rich Harris
d411a82a32 update snapshot tests 2018-01-26 13:29:21 -05:00
Emil Ajdyna
f9fc7c9e91 Base scoping hashes on CSS content rather than entire file 2018-01-13 18:05:01 +01:00
Rich Harris
728d2fa9fb deconflict referenced globals - fixes #1079 2018-01-10 21:48:03 -05:00
Rich Harris
6ccc7b812b reuse timeout function 2018-01-05 10:55:12 -05:00
Rich Harris
297ea67ebe lock scroll bindings to allow tweening - fixes #1071 2018-01-04 21:30:52 -05:00
Rich Harris
976c278d37 prevent main fragment being created twice - fixes #1063 2018-01-01 23:02:39 -05:00
Rich Harris
a8f7d57c3a only optimise <title> inside <:Head> 2017-12-30 10:55:10 -05:00
Rich Harris
b7d8c49dc8
Merge branch 'master' into gh-1027 2017-12-30 10:48:34 -05:00
Rich Harris
1f31ba52c3 dont create text nodes inside <:Head> - fixes #1026 2017-12-24 16:00:25 -05:00
Rich Harris
646b0c0e01 optimise <title> - fixes #1027 2017-12-24 15:09:38 -05:00
Rich Harris
f8362fe5fb fix toString method in SSR output - closes #1044 2017-12-24 11:18:46 -05:00
Rich Harris
ca7e90083e can just use options here 2017-12-15 19:55:48 -05:00
Emil Ajdyna
d398b34a41 Add state() method handling for components 2017-12-15 01:47:42 +01:00
Rich Harris
394dec9f11
Merge pull request #1024 from sveltejs/gh-1013
update SSR render method, and introduce <:Head>
2017-12-13 21:20:03 -05:00
Rich Harris
8a3898c6cb fix unrelated bug that was causing tests to fail 2017-12-13 21:05:59 -05:00
Rich Harris
ed44f7d1fa server-side <:Head> 2017-12-13 19:40:32 -05:00
Rich Harris
ca6a4a7708
Merge pull request #1021 from sveltejs/gh-1015
implement preload
2017-12-13 18:23:07 -05:00
Rich Harris
22ba8f74ca deprecate renderCss 2017-12-13 09:55:03 -05:00
Rich Harris
0127f9f0ca change server-side render method signature 2017-12-13 09:28:29 -05:00
Emil Ajdyna
fadeeaf177 Expose root as a public property 2017-12-13 10:50:19 +01:00
Rich Harris
6bd410c886 implement preload 2017-12-12 22:11:27 -05:00
Rich Harris
797165b5a8
trim SSR'd output more intelligently - fixes #998 2017-12-10 10:04:22 -05:00
Rich Harris
c799230164
don't use dataset with svg elements - fixes #995 2017-12-10 09:55:26 -05:00
Rich Harris
82fc0f2713
Merge branch 'master' into gh-654 2017-12-03 09:08:49 -05:00
Rich Harris
8a0813e96b SSR await-then-catch 2017-11-25 10:34:44 -05:00