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

6301 Commits

Author SHA1 Message Date
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
Rui Sousa
9051ee011e
Fix ScreenToggle button styling so text is centered (#6394) 2021-06-15 08:53:53 -07: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
dependabot[bot]
6e9ecd8159
Bump glob-parent from 5.1.1 to 5.1.2 (#6390)
Bumps [glob-parent](https://github.com/gulpjs/glob-parent) from 5.1.1 to 5.1.2.
- [Release notes](https://github.com/gulpjs/glob-parent/releases)
- [Changelog](https://github.com/gulpjs/glob-parent/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gulpjs/glob-parent/compare/v5.1.1...v5.1.2)

---
updated-dependencies:
- dependency-name: glob-parent
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-10 14:08:19 -07:00
dependabot[bot]
e6c2c8ed9f
Bump ws from 6.2.1 to 6.2.2 (#6383)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/commits)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-06 08:10:49 -07:00
Debargha Roy
8f6bb14e69
Minor update to svelte:body-tutorial (#6376)
Switch style/html order
2021-06-02 09:06:07 +02:00
Andrew Lee
791104d9fe
Adjust store unsubscribe tutorial section (#5975)
The `unsubscribe` function in the first step was without any usage, which lead to confusion
2021-06-01 14:19:30 +02:00
Daniel Sandoval
2ae79f6815
"What's new in Svelte" June newsletter (#6356) 2021-05-30 15:35:40 +02:00
Simon H
e27d71f0cf
docs: fix typo 2021-05-30 12:33:20 +02:00
Kai
1a1f36edcf
Tutorial: Description fix - each block bindings (#5974)
The chapter highlights event binding in `each` block which is missing within the snippet. Thus it seems reasonable to include it within the description snippet block.
2021-05-29 19:56:17 +02:00
Paul Murray
ad29604d6b
Docs: Rename slot let section (#6018)
The title of this section was a bit confusing, since `<slot let:name={value} />` is not actually the correct syntax
2021-05-29 19:46:20 +02:00
Dan Kozlov
cc58f60002
Add a note that bind:files is readonly (#6099) 2021-05-29 19:44:25 +02:00
Stephane
b1d09a4aa2
Clarify that special elements have to be top level (#6240) 2021-05-29 19:36:35 +02:00
Bashu Naimi-Roy
8184bd5219
docs: update Keyed Each Blocks tutorial (#6358) 2021-05-29 19:31:11 +02:00
Simon H
4acfb05315
Docs: Clarify that @html does not compile Svelte code (#6349) 2021-05-29 18:44:42 +02:00
gltchitm
7c21f919ad
site: filter out bot contributors (#6352) 2021-05-27 12:08:23 -07:00
Konstantin Nosov
fd9eea28f2
remove redundant CSS (#6355) 2021-05-26 11:13:37 -07:00
Konstantin Nosov
2ce3a58188
combine padding specifications (#6354) 2021-05-26 11:13:16 -07:00
dependabot[bot]
7c4a08e109
Bump browserslist from 4.16.0 to 4.16.6 in /site (#6361)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.16.0 to 4.16.6.
- [Release notes](https://github.com/browserslist/browserslist/releases)
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.16.0...4.16.6)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 11:07:55 -07: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
Adam Alexander
3301b09619
Fix tutorial instructions refer to wrong line number in code (#6342)
Instructions refer to wrong line number

Video element is not on line 116, it's on line 58
2021-05-19 11:40:42 +02:00
Ajit Krishna
b11f5b12f5
Update <svelte:options> copy (#6339)
<svelte:options> is not the last lesson in "Special Elements"
2021-05-18 16:27:44 +02:00
Lawrence Logoh
58b897fc83
updated select-bindings text.md (#6333)
Referenced line is now 20 instead of 24
2021-05-16 14:16:24 +02:00
Walker Lockard
19e4a4fdf3
Update tutorial text.md (#6329)
The component referenced in text.md is no longer on line 33 of the provided code.
2021-05-16 08:39:39 +02:00
dependabot[bot]
0a3be1d041
Bump hosted-git-info from 2.7.1 to 2.8.9 (#6315)
Bumps [hosted-git-info](https://github.com/npm/hosted-git-info) from 2.7.1 to 2.8.9.
- [Release notes](https://github.com/npm/hosted-git-info/releases)
- [Changelog](https://github.com/npm/hosted-git-info/blob/v2.8.9/CHANGELOG.md)
- [Commits](https://github.com/npm/hosted-git-info/compare/v2.7.1...v2.8.9)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-10 15:19:23 -07:00