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

6325 Commits

Author SHA1 Message Date
Tan Li Hau
50bff36407
update changelog 2021-06-28 18:14:08 +08:00
Mohammed Al-Qurafi
1b33248ead
#6299 - Throw a compile error when passing an empty directive name (#6300)
* Compile error when passing empty directive names

* Revert "Compile error when passing empty directive names"

This reverts commit ac8718b3a4.

* Compile error when passing empty directive names

* Adjust empty-directive-name error offset
2021-06-28 18:13:02 +08:00
Ben McCann
2357e642e3
Rename menu item from API to Docs (#6456) 2021-06-28 14:49:28 +08:00
Tan Li Hau
e69c05a7db
Update CHANGELOG.md 2021-06-28 14:48:33 +08:00
zerdox
0df9233fb1
Fix wrong "slot" property warning (runtime) (#6065)
* updated: condition for warning about unknown prop

* test are updated
2021-06-28 14:45:22 +08:00
Tan Li Hau
5d824966a2
internal: add typescript def for transitions (#5625) 2021-06-27 19:08:19 +02:00
Simon H
92fba761a8
docs: clarify writable value is lost when destroyed
Closes #4610
Closes #4407
2021-06-27 18:58:38 +02:00
Simon H
5f584d165a
update unreleased 2021-06-27 18:49:59 +02:00
Dennis Kaspar
b464320607
Add trusted modifier (#6149)
Fixes #6137

Adding a trusted modifier to make events not be dispatchable by console/sourcecode.
Useful to prevent injected code to automatically dispatch event for preventing botting
2021-06-27 18:48:42 +02:00
swyx
e43778a0c4
document new style props feature in Svelte 3.38 (#6378) 2021-06-27 18:13:07 +02:00
EmNudge
0e18b1311e
docs: clarified readonly prop access (#5825) 2021-06-27 18:05:53 +02:00
Ophir LOJKINE
f797482e27
Add documentation for crossfade (#6196) 2021-06-27 18:01:26 +02:00
fivem
bca46b9f70
tutorial: In the onDestroy example, explicitly show the memory leak (#5515) 2021-06-26 21:13:25 -07:00
pngwn
000c7ca5ba
add issue form (#6454)
* add issue form

* add chat link

* add feature request form

* tweaks
2021-06-26 22:09:26 +01:00
Ben McCann
c584af34ec
site: fix falling back to default port (#5382) 2021-06-26 13:54:41 -07:00
pngwn
fbf0a0c4de
add stale-bot config (#6455) 2021-06-26 19:51:49 +01:00
The Jared Wilcurt
7115601cd3
Docs: Accurately name function (#4060) 2021-06-26 20:23:30 +02:00
Simon Scharf
f99deeb67b
docs: remove type property from special elements tutorial (#4715)
Instead, determine type based on the existence of the files property. Removes console warnings
2021-06-26 20:18:09 +02:00
Stephane
f9b796cabe
Add tutorial for component binding (#5009)
Closes #5008

Co-authored-by: Stephane Vanraes <stephane.vanraes@fjordline.com>
Co-authored-by: pngwn <pnda007@gmail.com>
2021-06-26 20:09:49 +02:00
Outvi V
92422fdee2
doc: Add notes to stress call-context-during-initialisation (#5631) 2021-06-26 20:05:17 +02:00
Nguyễn Đức Hào
0f92863033
tutorial: add name attribute to inputs (#5649) 2021-06-26 19:57:48 +02:00
Aswin Vayiravan
4b4717b351
Reorder text area and output to improve visibility (#5790) 2021-06-26 19:55:35 +02:00
Ava Johnson
46fac828f7
Bubble svelte dev events (#5994) 2021-06-26 12:59:27 -04:00
Geoff Rich
7bf3f20dc3
Add docs for compound :global selector (#6271)
* Add docs for compound :global selector

Co-authored-by: Antony Jones <ant@enzy.org>
2021-06-26 17:56:10 +01:00
Tan Li Hau
142de015eb
add accessibility warnings to the docs (#5316) 2021-06-26 12:09:40 -04:00
Tan Li Hau
25a48be0ef
update docs for style tag in elements (#6415) 2021-06-26 12:09:00 -04:00
Ersin Ertan
0e1d54efdf
Add Vite to intro's officially maintained plug-ins (#6446) 2021-06-25 14:50:57 +02:00
Dominik G
2c488f4d61
docs: update documentation for preprocessor sourcemap output (#6438) 2021-06-24 07:03:13 -07: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
Roy Choo
228832c9a3
fix: :global(...):some-pseudoclass should be considered global (#6317) 2021-06-22 11:03:08 -04:00
Conduitry
3c889da6b7 update changelog 2021-06-22 10:35:49 -04:00
Hasan Altan Birler
04bc37de31
Improve hydration by reordering optimally (#6395)
* Implement new hydration optimization

During hydration, greedily pick nodes that exist in the original HTML that should not be detached.
Detach the rest.

* Implement optimal reordering during hydration

During hydration we track the order in which children are claimed.
Afterwards, rather than reordering them greedily one-by-one, we reorder all claimed children during the first append optimally.
The optimal reordering first finds the longest subsequence of children that have been claimed in order.
These children will not be moved.
The rest of the children are reordered to where they have to go.
This algorithm is guaranteed to be optimal in the number of reorderings.

The hydration/head-meta-hydrate-duplicate test sample has been modified slightly.
The order in which the <title> tag is being generated changed, which does not affect correctness.

* Fix issue potentially causing extra reorders

Not sorting children before executing the `insertBefore` calls in `init_hydrate` potentially caused extra `insertBefore` calls in `append`

* Simplify`init_hydrate` sorting logic
2021-06-22 10:34:48 -04:00
Conduitry
96b5669572 update changelog 2021-06-22 10:28:01 -04:00
Tan Li Hau
a6055b34d9
fix slot props not updated when transition aborted (#6414) 2021-06-22 10:26:47 -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
Tan Li Hau
7d39e676c5
bind this in bubbled events (#6417) 2021-06-22 10:12:25 -04:00
Conduitry
b9e19004cb update changelog 2021-06-22 10:04:56 -04:00
Tan Li Hau
bbcc1e7479
disallow multiple selectors inside :global() (#6428) 2021-06-22 10:03:56 -04:00
Conduitry
cba92ad2a9 update changelog 2021-06-22 09:51:15 -04:00
Tan Li Hau
bce3641e92
fix escaping attributes in spread in SSR (#6429) 2021-06-22 09:50:43 -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
Tan Li Hau
3acaa03f6f
fix textarea end tag parsing (#6424) 2021-06-22 09:43:51 -04:00
Bjørn
de6d0c66d3
Add a more descriptive message for the error generated by an empty shorthand attribute (#6217)
Added error message "empty-attribute-shorthand" for when the shorthand attribute is empty,
giving a more explicit error for #6086
2021-06-22 15:33:50 +02:00
Robert Hall
17c5402e31
Cleanup logos on homepage (#6409) 2021-06-18 19:09:03 -07:00
Tan Li Hau
3f990a96ba
Use SSR rendered as initial html for runtime hydration test (#4444) 2021-06-18 19:06:01 -07:00
pngwn
8dd9c1b098
docs: make yaml frontmatter in blogs valid (#6206) 2021-06-15 11:51:45 -07:00
Ben McCann
c441fb1ad1
Bump site-kit (#6407) 2021-06-15 11:51:09 -07:00