0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00
Commit Graph

1091 Commits

Author SHA1 Message Date
Rich Harris
0131216a1a Merge branch 'master' into gh-1144 2018-02-24 13:30:49 -05:00
Rich Harris
602f13ae6b fix out of date test 2018-02-24 13:25:27 -05:00
Rich Harris
cb8071acd4 allow observing $foo in dev mode - #1181 2018-02-24 13:08:28 -05:00
Rich Harris
c2bb549901 wrap <slot> updates in conditional - fixes #1144 2018-02-24 12:15:06 -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
Rich Harris
fba8a9479b
Merge pull request #1178 from GarethOates/storeCancelScope
this._changeHandlers was undefined when calling cancel()
2018-02-23 08:50:55 -05:00
Rich Harris
fdd9adab4d add test for #1179 2018-02-23 08:40:02 -05:00
Gareth Oates
389b5c9ff9 There was no test to determine if onchange cancel threw an error 2018-02-18 14:19:46 +01: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
81b12e030e Merge branch 'immutable-support' of https://github.com/jacwright/svelte into jacwright-immutable-support 2018-02-11 16:50:57 -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
dd5e0f7358 Merge branch 'master' into gh-1122 2018-02-11 11:18:24 -05:00
Rich Harris
b3049a6fa0
Merge pull request #1158 from sveltejs/gh-1156
[WIP] Error on unclosed comments and blocks with no content
2018-02-11 11:18:08 -05:00
Rich Harris
c0292cbca1 update tests 2018-02-11 08:24:55 -05:00
Jacob Wright
cb446bca64 Adds some runtime tests for the immutable option 2018-02-11 01:10:13 -07: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
Rich Harris
f77314f647 increase test coverage 2018-02-10 23:29:47 -05:00
Rich Harris
bc6ee3ef9f increase test coverage, handle immediately-closed blocks 2018-02-10 22:08:39 -05:00
Rich Harris
dfff2957a0 increase test coverage 2018-02-10 22:00:32 -05: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
Rich Harris
cccc3e4c41 failing test for second part of #1100 2018-02-10 13:01:27 -05: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
Rich Harris
198f132b28 doh 2018-02-10 11:51:24 -05:00
Rich Harris
ff67b137c4 empty blocks are a dev warning, not an error 2018-02-10 11:46:23 -05:00
Rich Harris
d6dc60285e
Merge branch 'master' into gh-1117 2018-02-09 10:05:34 -05:00
Rich Harris
e5e6959281
Merge pull request #1153 from sveltejs/gh-1100
component store bindings
2018-02-09 10:04:52 -05:00
Rich Harris
41a2592708
Merge pull request #1165 from sveltejs/sigil-component-attribute-ssr
SSR: more sigil and template string escaping fixes
2018-02-09 08:39:36 -05:00
Rich Harris
25b1f05ee8
Merge pull request #1154 from sveltejs/gh-1065
prevent erroneous missing data warnings for custom elements
2018-02-09 08:38:44 -05:00
Conduitry
7b282e58a0
Merge branch 'master' into sigil-component-attribute-ssr 2018-02-09 08:32:35 -05:00
Conduitry
f606aee209 do not escape html characters in tags in non-root <style> in SSR mode 2018-02-09 08:27:05 -05:00
Rich Harris
a33dfe5bf3
Merge pull request #1160 from sveltejs/gh-1108
remove <noscript> elements in DOM mode (#1108)
2018-02-09 08:24:05 -05:00
Conduitry
fc34792743 expand escape-template-literals test 2018-02-09 01:45:17 -05:00
Conduitry
132901bbe7 fix escaping of sigils in component attribute values in SSR 2018-02-09 01:07: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
Conduitry
fc2ecce4ef make test more robust 2018-02-08 14:29:38 -05:00
Conduitry
cf3705dc11 add test 2018-02-08 14:18:39 -05:00
Rich Harris
1719a318ad failing test for #1082 2018-02-08 13:04:46 -05:00
Conduitry
50d95e1642 remove <noscript> elements in DOM mode (#1108) 2018-02-08 01:24:56 -05:00
Rich Harris
a4d08c205a error on unclosed comments and blocks with only whitespace 2018-02-07 09:11:28 -05:00
Rich Harris
620badc9d0 Merge branch 'empty-each-blocks' of https://github.com/Crisfole/svelte into Crisfole-empty-each-blocks 2018-02-07 08:09:58 -05:00
Rich Harris
0ef8229077
Merge pull request #1155 from sveltejs/ssr-escape-attribute-values
escape attribute values in SSR
2018-02-07 08:09:04 -05:00
Rich Harris
5b9f254087
Merge pull request #1149 from sveltejs/gh-1138
remove empty style blocks in prod mode
2018-02-07 08:08:23 -05:00