Rich Harris
1b599bd57b
put _differs on prototype, remove runtime option
7 years ago
Rich Harris
c0292cbca1
update tests
7 years ago
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.
7 years ago
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.
7 years ago
Jacob Wright
9a1d87494d
Removes date checks and simplifies NaN checks, adds tests
7 years ago
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!
7 years ago
Rich Harris
d411a82a32
update snapshot tests
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
...
update SSR render method, and introduce <:Head>
7 years ago
Rich Harris
8a3898c6cb
fix unrelated bug that was causing tests to fail
7 years ago
Emil Ajdyna
fadeeaf177
Expose root as a public property
7 years ago
Rich Harris
75e911b05a
update snapshot tests
7 years ago
Rich Harris
775866780e
combine multiple bindings in single handler, implement bind:indeterminate — fixes #910
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
d27e4734d5
Merge branch 'master' into short-method-names
7 years ago
Rich Harris
dabc2d1fdf
dont wrap ESM in IIFE
7 years ago
Rich Harris
2b2a1b40ce
use short method names
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
74d84d81e9
remove incorrect argument
7 years ago
Rich Harris
5cd76be290
various fixes
7 years ago
Rich Harris
6b70825ac3
Merge pull request #856 from sveltejs/remove-is-initial
...
remove isInitial check on recompute
7 years ago
Rich Harris
bd282df921
remove version numbers from snapshot tests
7 years ago
Rich Harris
4d6e95d799
update snapshot tests
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
073cbc0460
update some tests
7 years ago
Rich Harris
5e325d5a87
remove redundant input blowback guard - closes #645
8 years ago