Conduitry
d01dc9b2eb
update changelog
2021-07-21 10:27:17 -04:00
Tan Li Hau
c78a3af019
Update CHANGELOG.md
2021-07-21 13:00:09 +08:00
Simon H
5534b911ea
update changelog
2021-07-17 13:38:48 +02:00
Simon H
5dd1e6e232
update changelog
2021-07-14 10:01:57 +02:00
Simon H
a8c35daa9a
[fix] be able to silence more warnings ( #6504 )
...
including css-unused-selector, unused-export-let, module-script-reactive-declaration
Fixes #5954
Related to #5281
2021-07-14 09:54:15 +02:00
Ben McCann
ff50bfba6f
update changelog
2021-07-13 17:10:37 -07:00
Tan Li Hau
8f1ae80a99
update changelog
2021-07-12 22:59:11 +08:00
Tan Li Hau
5f8f7ae28c
update changelog
2021-07-10 12:14:54 +08:00
Tan Li Hau
e238903846
update changelog
2021-07-10 12:10:19 +08:00
Simon H
ce43bd67c7
[fix] relax store derived function signature ( #6509 )
...
With this fix, doing
```
const stores= [writable(0), writable(1)]
derived(stores, ([a,b,c]) => {});
```
works without type errors. The propblem with the previous type signature was that it's too strict for TypeScript's suboptimal inference of the value `stores` in that example, which is `Array<Readable<any>>`, which does not convey the info "at least one element", which the old Stores signature required.
Runtime-wise, it's no problem passing an empty array to derived.
The new signature is only appended to, not replaced, because the old signature is able to correctly infer the values of each array entry: For `derived([writable(0), writable('foo')], ([a, b]) => {});` the parameters `a` and `b` are correctly inferred as `number` and `string`. If the type would be changed to `type Stores = Readable<any> | Array<Readable<any>>` that would be no longer the case.
Fixes #6178
2021-07-09 17:42:27 +02:00
Conduitry
687492a5bc
update changelog
2021-07-08 11:25:33 -04:00
Conduitry
341137285d
update changelog
2021-07-08 10:48:20 -04:00
Ben McCann
384513e3b1
Update CHANGELOG
2021-07-08 05:44:51 -07:00
Ben McCann
2077a7b2a0
update changelog
2021-07-02 12:13:33 -07:00
Tan Li Hau
98bec66f51
update changelog
2021-06-29 15:11:06 +08:00
Tan Li Hau
f757de328a
update changelog
2021-06-29 10:18:35 +08:00
Tan Li Hau
eadb83b934
update changelog
2021-06-29 09:45:18 +08:00
Simon H
7b914a46b1
update changelog
2021-06-28 13:11:35 +02:00
Simon H
40f4615cf4
update changelog
2021-06-28 12:52:47 +02:00
Tan Li Hau
50bff36407
update changelog
2021-06-28 18:14:08 +08:00
Tan Li Hau
e69c05a7db
Update CHANGELOG.md
2021-06-28 14:48:33 +08:00
Simon H
5f584d165a
update unreleased
2021-06-27 18:49:59 +02:00
Conduitry
716d54571e
-> v3.38.3
2021-06-22 11:12:18 -04:00
Conduitry
1741699957
update changelog
2021-06-22 11:04:24 -04:00
Conduitry
3c889da6b7
update changelog
2021-06-22 10:35:49 -04:00
Conduitry
96b5669572
update changelog
2021-06-22 10:28:01 -04:00
Conduitry
7e4112d184
update changelog
2021-06-22 10:14:36 -04:00
Conduitry
dd58bf9c05
update changelog
2021-06-22 10:13:23 -04:00
Conduitry
b9e19004cb
update changelog
2021-06-22 10:04:56 -04:00
Conduitry
cba92ad2a9
update changelog
2021-06-22 09:51:15 -04:00
Conduitry
3f87ff7c56
update changelog
2021-06-22 09:49:23 -04:00
Conduitry
6f81c230ae
update changelog
2021-06-22 09:46:11 -04:00
Simon H
c5f588ee50
Fix generic props relationship in SvelteComponentTyped ( #6400 )
...
A recent refactoring commit where the constructor definition was moved to an interface disconnected the props relationship of the props that are passed in the constructor and the instance props
2021-06-13 12:56:01 +02:00
Ignatius Bagus
b295d68ec6
fix types: allow writable/readable empty initialization ( #6293 )
...
Fixes #6291
Fixes #6345
Both writable and readable initialized without any arguments are already valid, but TS complains about it. This makes both allowed to be emptily initialized. It's also possible to invoke readable with one argument only.
2021-05-20 15:31:51 +02:00
Ben McCann
086cff2272
Add issue number to changelog
2021-05-03 13:51:13 -07:00
Conduitry
5975b2dbd2
-> v3.38.2
2021-05-03 16:38:14 -04:00
Conduitry
6d16e92606
Revert hydration optimisation ( #6290 )
...
Co-authored-by: haveyaseen <haveyaread@gmail.com>
2021-05-03 16:37:19 -04:00
Conduitry
166a61aa26
-> v3.38.1
2021-05-01 11:10:09 -04:00
Conduitry
b3a642c3d3
-> v3.38.0
2021-04-30 12:32:24 -04:00
Conduitry
1b4c83c41f
update changelog
2021-04-30 12:07:56 -04:00
Conduitry
7ef869fc76
update changelog
2021-04-30 11:56:39 -04:00
Conduitry
20cb78377d
update changelog
2021-04-30 11:53:01 -04:00
Conduitry
c8632a9b53
update changelog
2021-04-30 11:49:21 -04:00
Conduitry
f0f8fae114
update changelog
2021-04-30 11:38:27 -04:00
Conduitry
ce55e10df5
update changelog
2021-04-30 10:37:18 -04:00
Conduitry
0e8ed759a0
update changelog
2021-04-30 10:19:05 -04:00
Conduitry
6d5a200e04
update changelog
2021-04-30 10:13:57 -04:00
Mohammed Al-Qurafi
a39fc8de72
Add "context" typing to SvelteComponent constructor options ( #6236 )
2021-04-24 16:10:02 +02:00
Ben McCann
10e3e3dae8
Improve SSR hydration performance ( #6204 )
...
* Improve SSR hydration performance
- Fixes #4308 by avoiding de- and reattaching nodes during hydration
- Turns existing append, insert and detach methods into "upserts"
The new "hydration mode" was added in order to maintain the detach by
default behavior during hydration. By tracking which nodes are claimed
during hydration unclaimed nodes can then removed from the DOM at the
end of hydration without touching the remaining nodes.
Co-authored-by: Jonatan Svennberg <jonatan.svennberg@gmail.com>
2021-04-21 09:42:52 -07:00
Simon H
dafbdc286e
Update unreleased
2021-04-12 18:01:21 +02:00
Simon H
52d6a5905d
Update unreleased
2021-04-11 17:49:23 +02:00
Conduitry
26d006591d
-> v3.37.0
2021-03-31 12:14:28 -04:00
Tan Li Hau
6c5257beb2
allow passing in context in constructor ( #6032 )
...
Co-authored-by: Conduitry <git@chor.date>
2021-03-31 11:07:32 -04:00
Conduitry
ed01d16a8e
-> v3.36.0
2021-03-29 22:57:06 -04:00
Conduitry
286c60da4d
fix missing slotted elements in AST ( #6148 )
2021-03-29 22:55:52 -04:00
Conduitry
32f58b9d41
update changelog
2021-03-29 22:41:40 -04:00
Simon H
ff0ccb8755
Update unreleased
2021-03-24 16:03:46 +01:00
Simon H
4e346b9970
Update unreleased
2021-03-24 15:52:57 +01:00
Conduitry
c56653dfd6
-> v3.35.0
2021-03-01 16:18:45 -05:00
Conduitry
2853be1ff2
update changelog
2021-03-01 16:04:26 -05:00
Rich Harris
f792c14492
-> v3.34.0
2021-02-25 18:08:50 -05:00
Conduitry
5c8807e523
-> v3.33.0
2021-02-25 07:38:35 -05:00
Tan Li Hau
d17a90cc44
allow destructured defaults to refer to variables ( #5986 )
...
Co-authored-by: M. Habib Rosyad <habib@volantis.io>
Co-authored-by: Conduitry <git@chor.date>
2021-02-25 11:36:44 -05:00
Tan Li Hau
b764374b62
no warning on contextual-store if declaring it as a parameter / variable ( #6008 )
2021-02-25 10:53:23 -05:00
Conduitry
8ea4fb1106
update changelog
2021-02-25 06:23:08 -05:00
Antony Jones
6928f9492c
Emphasis on method name
2021-02-15 22:47:20 +00:00
Antony Jones
48b56bd819
Update changelog
2021-02-15 22:46:14 +00:00
Conduitry
d3f3ea38d0
-> v3.32.3
2021-02-10 22:02:27 -05:00
Tan Li Hau
e8094df779
fix remove of lone :host selectors ( #5984 )
2021-02-10 22:01:50 -05:00
Conduitry
160a4eccd1
-> v3.32.2
2021-02-08 14:28:02 -05:00
Conduitry
341948e166
update changelog
2021-02-08 14:24:39 -05:00
Tan Li Hau
44f41c9edd
fix :host and :global css scoping ( #5957 )
2021-02-08 11:26:46 -05:00
Conduitry
df191385f5
-> v3.32.1
2021-01-29 15:06:30 -05:00
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive ( #5847 )
2021-01-29 15:05:04 -05:00
Conduitry
dd7403ade4
update changelog
2021-01-29 13:32:41 -05:00
Conduitry
47baa1965d
update changelog
2021-01-29 11:48:55 -05:00
Tan Li Hau
6207596175
fix extraneous store subscription in SSR ( #5929 )
2021-01-29 11:07:33 -05:00
Simon H
0f3264e205
make SvelteComponentDev
typings more forgiving ( #5937 )
...
Add `$$events_def` and `$$slot_def` so that users can do
```
let el: SvelteComponent;
<SomeComponent bind:this={el} />
```
without type errors.
2021-01-29 10:59:57 -05:00
Simon H
842a0b1a07
make animation/transition params optional ( #5936 )
...
They are not needed for most of the functions and should be marked as optional accordingly to make TypeScript users happy.
Fixes sveltejs/language-tools#785
2021-01-29 10:52:19 -05:00
Conduitry
f00348c14c
update changelog
2021-01-29 10:34:30 -05:00
Conduitry
b3431f9bf2
update changelog
2021-01-29 10:20:06 -05:00
Conduitry
94439ef5e7
fix changelog link
2021-01-25 17:55:36 -05:00
Conduitry
290746cfbd
-> v3.32.0
2021-01-25 17:52:53 -05:00
halfnelson
a7eff8894f
add foreign
namespace to preserve attribute case and skip HTML-specific a11y validations ( #5652 )
2021-01-25 16:25:10 -05:00
Conduitry
d5f2ddc417
update changelog
2021-01-25 15:59:55 -05:00
Simon H
8364048d95
Update unreleased
2021-01-20 09:35:34 +01:00
Conduitry
8180c5dd6c
fix issue link in changelog
2021-01-04 17:08:54 -05:00
Conduitry
c758028cde
-> v3.31.2
2021-01-04 16:53:01 -05:00
Tan Li Hau
734257001d
deconflict conextual action variable ( #5839 )
2021-01-04 16:51:55 -05:00
Tan Li Hau
5949c4a594
fix await outro race condition ( #5850 )
2021-01-04 16:19:24 -05:00
Tan Li Hau
9cc21e3c09
fix removing elements that are currently transitioning out ( #5849 )
2021-01-04 15:50:22 -05:00
Tan Li Hau
82fcdfc2fa
rework SSR store autosubscription ( #5419 )
2021-01-04 14:41:11 -05:00
Conduitry
2eda5b0bf3
fix issue link in changelog
2021-01-01 21:05:08 -05:00
Conduitry
60ac0a4174
-> v3.31.1
2021-01-01 21:01:05 -05:00
Conduitry
77438e1740
update changelog
2021-01-01 20:58:58 -05:00
Tan Li Hau
1da4105d65
fix deep object property as action ( #5845 )
2021-01-01 20:48:03 -05:00
Tan Li Hau
08cb3142e9
keep each block value ( #5841 )
2021-01-01 20:41:31 -05:00
Tan Li Hau
63669330f6
maintain context for keyed each ( #5840 )
2021-01-01 20:28:11 -05:00
Tan Li Hau
a41c7644e6
shift injected declarations to the top ( #5837 )
2021-01-01 19:59:35 -05:00
Tan Li Hau
2d5d6b05ed
warn if React attributes are used ( #5836 )
2021-01-01 19:49:03 -05:00
Tan Li Hau
662d9b44e6
fix checkbox bind:group when index depends on another context ( #5835 )
2021-01-01 19:35:43 -05:00
Conduitry
2d697a38c5
update changelog
2021-01-01 19:23:21 -05:00
Conduitry
e02c291050
-> v3.31.0
2020-12-02 15:55:14 -05:00
Conduitry
cf23eb08c2
-> v3.30.1
2020-11-30 16:21:31 -05:00
Conduitry
f029559855
update changelog
2020-11-30 16:18:33 -05:00
Tan Li Hau
ccc61a71d8
add missing export for hasContext ( #5727 )
2020-11-27 08:06:36 -05:00
Conduitry
505eba84b9
-> v3.30.0
2020-11-24 17:49:20 -05:00
Tan Li Hau
9331398299
support spread into slot props ( #5616 )
2020-11-24 17:47:03 -05:00
Simon H
99000ef42e
typed SvelteComponent(Dev) interface ( #5431 )
2020-11-24 17:41:22 -05:00
Conduitry
666b7aefa8
update changelog
2020-11-23 11:59:46 -05:00
Tan Li Hau
1cc5bdb9ca
reactive dependency not referenced can't set to undefined initially ( #5600 )
2020-11-23 11:57:44 -05:00
Tan Li Hau
24c44b9177
fix order of html tags with {#if} in {#key} block ( #5685 )
2020-11-23 11:41:56 -05:00
Conduitry
342c1e427c
update changelog
2020-11-23 11:30:33 -05:00
Conduitry
0aa8cc1c9f
update changelog
2020-11-23 11:24:05 -05:00
Conduitry
4524566fda
-> v3.29.7
2020-11-10 10:53:12 -05:00
Conduitry
ed4288fe43
-> v3.29.6
2020-11-09 11:53:32 -05:00
Ben McCann
627aae8c5c
Add package.json to exports map ( #5660 )
2020-11-09 11:52:51 -05:00
Conduitry
b135055c5c
-> v3.29.5
2020-11-09 11:20:06 -05:00
Tan Li Hau
41d16c02be
add export map ( #5566 )
2020-11-09 10:26:33 -05:00
Tan Li Hau
7949d8efac
support $$slots in custom elements ( #5619 )
2020-11-09 10:11:37 -05:00
Tan Li Hau
f7bddb23d3
add extension to request to support webpack 5 ( #5624 )
2020-11-09 09:57:40 -05:00
Tan Li Hau
148b6105ed
fix else block transition update ( #5591 )
2020-10-29 16:32:12 -04:00
Tan Li Hau
5d7ffdb8a7
fix function slot props based on context ( #5607 )
2020-10-29 15:15:54 -04:00
Tan Li Hau
6fa3e91b5d
support $$props and $$restProps for custom elements ( #5608 )
2020-10-28 15:33:03 -04:00
Conduitry
a47ca4498a
update changelog
2020-10-28 12:25:49 -04:00
Conduitry
65104e8b2a
-> v3.29.4
2020-10-22 15:55:02 -04:00
Conduitry
040e9cc6fa
fix code generation error with nullish coalescing operator and logical operators ( #5564 )
2020-10-22 15:53:56 -04:00
Conduitry
5cbc8c80b1
-> v3.29.3
2020-10-22 13:25:24 -04:00
Conduitry
a6040d6e73
-> v3.29.2
2020-10-22 13:10:05 -04:00
Conduitry
ae1f9e5f9a
-> v3.29.1
2020-10-22 12:52:36 -04:00
Conduitry
b9ac8c9e47
update changelog
2020-10-22 12:44:04 -04:00
Conduitry
f038cf75fa
update changelog
2020-10-22 12:36:33 -04:00
Conduitry
0ec928324f
update changelog
2020-10-22 12:33:15 -04:00
Conduitry
377c7647ed
update changelog
2020-10-02 09:32:37 -04:00
Conduitry
a28d776c06
update changelog
2020-10-01 11:31:15 -04:00
Conduitry
c24b313b1a
-> v3.29.0
2020-09-29 16:19:24 -04:00
Tan Li Hau
2d88dc460e
warn for possible use of component without uppercase tag name ( #5302 )
2020-09-29 16:13:23 -04:00
Conduitry
99e2cfca11
update changelog
2020-09-29 15:14:39 -04:00
Tan Li Hau
2c5f1c466e
add typings to get_store_value
( #5269 )
...
Co-authored-by: Julian Laubstein <contact@julianlaubstein.de>
2020-09-29 14:02:36 -04:00
Tan Li Hau
8056829a91
allow <slot> to be part of a slot ( #4295 )
2020-09-29 11:55:44 -04:00
Tan Li Hau
3970def5eb
fix sibling combinators with spread attributes ( #5467 )
2020-09-29 11:06:27 -04:00
Tan Li Hau
296e81af4d
add EventSource to the known globals ( #5468 )
2020-09-29 10:58:00 -04:00
Conduitry
46a83a50e3
-> v3.28.0
2020-09-25 10:13:32 -04:00
Tan Li Hau
fa7c780bad
{#key} block ( #5397 )
...
Co-authored-by: Conduitry <git@chor.date>
2020-09-25 10:12:49 -04:00
Conduitry
0ca1dcd33c
-> v3.27.0
2020-09-24 16:07:33 -04:00
Tan Li Hau
967b88186b
scope CSS sibling combinators ( #5427 )
2020-09-24 16:06:32 -04:00
Tan Li Hau
a1651ca271
add nonpassive event modifier ( #5442 )
...
Co-authored-by: filipot <filipot@stud.ntnu.no>
2020-09-24 15:54:54 -04:00
Tan Li Hau
41d1656458
update keyed each when key expression changes ( #5447 )
2020-09-24 15:20:17 -04:00
Tan Li Hau
c3b56a164e
handle destructuring to a store value ( #5452 )
2020-09-24 14:55:55 -04:00
Tan Li Hau
6e0cd9bcbf
fix missing-declaration warning for use:obj.method ( #5454 )
2020-09-24 09:48:27 -04:00
Conduitry
e867a4de33
-> v3.26.0
2020-09-22 08:51:22 -04:00
Tan Li Hau
b5b02f8561
whitelist [open] attribute selector for <details> ( #5425 )
2020-09-18 13:53:19 -04:00
Tan Li Hau
254096d320
support methods as actions ( #5398 )
2020-09-18 12:50:18 -04:00
Tan Li Hau
b3f54bd2cf
fix store direct property assignment ( #5416 )
2020-09-18 12:17:36 -04:00
Tan Li Hau
aef5671411
update acorn and parse expression as module script ( #5423 )
2020-09-18 12:09:44 -04:00
Conduitry
6601143255
-> v3.25.1
2020-09-15 09:31:37 -04:00
Tan Li Hau
87ed0b2f42
fix await stuck indefinitely without catch ( #5402 )
2020-09-15 09:13:50 -04:00
Tan Li Hau
1ce6ac5d48
fix destructuring to get multiple stores ( #5390 )
2020-09-15 09:03:09 -04:00
Tan Li Hau
338cf877bc
maintain context for transition ( #5392 )
2020-09-15 08:49:35 -04:00
Tan Li Hau
46d423d9db
fix css specificity for child combinator ( #5399 )
2020-09-15 08:39:57 -04:00
Tan Li Hau
7900e3eafa
fix style scoping with > * ( #5400 )
2020-09-15 08:32:55 -04:00
Conduitry
5bf2d6fadf
-> v3.25.0
2020-09-10 15:56:35 -04:00
Conduitry
daa1c390d5
update changelog
2020-09-10 15:52:25 -04:00
Conduitry
b7710b93bc
update changelog
2020-09-10 15:39:59 -04:00
Tan Li Hau
8a28d1bb38
valid XHTML syntax in innerHTML for static elements ( #5317 )
2020-09-10 15:28:22 -04:00
Tan Li Hau
51e2626f42
fix $$props reactivity in fallback of a slot ( #5375 )
2020-09-10 14:42:38 -04:00
Tan Li Hau
8148a7a334
each binding with store props ( #5289 )
2020-08-27 19:25:33 -04:00
Tan Li Hau
c752ed3527
handle undefined input value with spread ( #5291 )
2020-08-27 17:17:44 -04:00
Conduitry
1d9e2a13f2
update changelog
2020-08-17 09:53:37 -04:00
Tan Li Hau
0ac341d2c6
expose which slots are present in $$slots ( #4602 )
2020-08-13 10:20:55 -04:00
Tan Li Hau
e879cb5a4c
fix not passing child_ctx for catch block ( #5261 )
2020-08-12 17:24:19 -04:00
Conduitry
76b7196a1b
update changelog
2020-08-12 17:06:26 -04:00
Conduitry
6ebe7f8210
update changelog
2020-08-12 16:58:45 -04:00
Tan Li Hau
7aae362bcb
fix reference for namespaced component ( #5256 )
2020-08-12 16:20:52 -04:00
Tan Li Hau
5194f596f7
do not declare variable for member assignment in reactive declaration in SSR ( #5251 )
2020-08-12 14:53:18 -04:00
Conduitry
a62d736215
-> v3.24.1
2020-08-05 12:25:52 -04:00
Conduitry
0f3bbb441e
update changelog
2020-08-05 12:22:22 -04:00
Conduitry
308f3c284d
update changelog
2020-08-05 11:58:38 -04:00
Conduitry
f0d586f4a4
update changelog
2020-08-05 11:44:32 -04:00
Tan Li Hau
02e10b1159
fix bind:group contextual reference ( #5199 )
2020-07-24 15:48:29 -04:00
Tan Li Hau
3dad14f0e1
better error message for mismatched tags due to autoclosing ( #5060 )
2020-07-24 14:48:43 -04:00
Tan Li Hau
ec0f79c5af
add updating guard to binding callback ( #5126 )
2020-07-17 16:12:26 -04:00
Tan Li Hau
d472bd2f5e
invalidate $$props and $$restProps only when there are changes ( #5123 )
2020-07-14 17:32:24 -04:00
Tan Li Hau
fc7e99e9f0
fix $$props reactive for slots ( #5125 )
2020-07-13 12:03:12 -04:00
Conduitry
87aeb1d609
-> v3.24.0
2020-07-07 13:52:10 -04:00
Tan Li Hau
4021063305
spread condition for input element ( #5004 )
2020-07-07 13:50:35 -04:00
Conduitry
d6392ad6b2
update changelog
2020-07-07 13:27:36 -04:00
Tan Li Hau
62345432ac
html anchor in head ( #5071 )
2020-07-07 11:37:35 -04:00
Tan Li Hau
f739b4772a
error on expression scope store ( #5079 )
2020-07-07 11:23:00 -04:00
Conduitry
e6026fe6f5
update changelog
2020-07-07 11:08:37 -04:00
Conduitry
4910f5797f
update changelog
2020-07-07 10:49:05 -04:00
Tan Li Hau
2450dd1ff0
update acorn@^7.3.1 for optional chaining support ( #5013 )
2020-06-27 05:58:21 -04:00
Tan Li Hau
55c809624d
fix collapsing HTML with static content ( #5059 )
2020-06-25 13:42:16 -04:00
Conduitry
d3ee85e5fe
update changelog
2020-06-25 11:06:52 -04:00
Tan Li Hau
1a71e04079
fix bind:this, skip checking before adding to binding_callbacks ( #5072 )
2020-06-25 08:33:30 -04:00
Tan Li Hau
e1b55f0fc3
add further cases where {@html} uses an anchor ( #5061 )
2020-06-24 18:17:21 -04:00
Conduitry
e139bd4922
update changelog
2020-06-23 16:18:56 -04:00
Conduitry
92578706b0
update changelog
2020-06-23 16:07:09 -04:00
Tan Li Hau
6289dfcdcd
fix <select> one-way bind when options change ( #5054 )
2020-06-23 15:55:33 -04:00
Tan Li Hau
6e2b81663c
fix extracting names from ThisExpression ( #5036 )
2020-06-23 10:00:43 -04:00