0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-21 19:38:58 +01:00
Commit Graph

7577 Commits

Author SHA1 Message Date
Rich Harris
6bba70a2a5
Docs (#9449)
* rename file

* add snippet docs

* add note on deprecation

* they're not attributes

* event docs

* prettier

* remove unnecessary div

* Apply suggestions from code review

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>

* make example less confusing

* note breaking props.children change

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-11-14 18:09:32 -05:00
Paolo Ricciuti
e90ded677e
fix: allow svelte:self in snippets (#9439)
* fix: allow svelte:self in snippets

* Create funny-wombats-argue.md
2023-11-14 16:55:33 -05:00
Dominic Gannaway
73ae5ef5bc
fix: tighten up event attributes and hoisting logic (#9433)
- add event delegation to spread_attributes
- add event attributes to spread
- don't delegate when bindings/actions on the same element in order to preserve backwards compatibility of ordering
- don't hoist identifiers when one of them is used in an event that is not delegateable

---------

Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
2023-11-14 22:27:27 +01:00
Arpit Jalan
3f56baf760
blog: fix typo in 'svelte.dev: A complete overhaul' blog entry (#9438) 2023-11-14 11:08:38 -08:00
Dominic Gannaway
cf63220a0e
fix: ensure keyed fallback to indexed (#9441)
Fixes #9408. Ensures that if we have a key that matches the index, that we fallback to using an indexed each block.
2023-11-14 13:37:49 +01:00
Dominic Gannaway
da37c928ef
fix: support dynamic attributes containing call expressions (#9443)
Fixes #9403. We weren't taking into account the containment of call expressions logic before.
2023-11-14 13:36:18 +01:00
Yuichiro Yamashita
a6fdc47a0b
chore: show ast on playground (#9440)
The modern one
2023-11-14 13:31:25 +01:00
Rich Harris
66661eff04
chore: use internal get_descriptors helper (#9389)
* chore: use internal get_descriptors helper

* tweak changeset

* fix bad merge

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-13 20:40:20 -05:00
Simon H
7ab03ae36c
fix: add missing files binding (#9415)
no two-way binding because setting it involves a `DataTransfer` workaround, so it's not really officially supported that way - if you need that, you shouldn't use that binding probably. This matches the behavior in Svelte 4.

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-13 15:14:23 -05:00
Simon H
9aa06bdf9e
fix: check that snippet is not rendered as a component (#9423)
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-13 15:03:10 -05:00
github-actions[bot]
1fd77d7494
Version Packages (next) (#9386)
* Version Packages (next)

* Update packages/svelte/CHANGELOG.md

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-11-13 15:01:56 -05:00
Rich Harris
9fc8726f13
skip svelte.dev deploy. this may or may not work (#9424)
* skip svelte.dev deploy. this may or may not work

* try this

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-13 14:29:58 -05:00
Rich Harris
a990e5716a
fix tsconfig.json (#9427)
* fix tsconfig.json

* prettier

* another apparently-necessary fix

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-13 14:18:04 -05:00
Dominic Gannaway
5768df1300
chore: remove selector api (#9426)
* chore: remove selector api
2023-11-13 18:47:32 +00:00
Dominic Gannaway
17e6c4f834
fix: address runtime effect issues (#9417)
* Fix runtime effect issues

* Prettier

* Add changeset

* Fix operations

* Update .changeset/khaki-mails-draw.md

* more tweaks

* more tweaks

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-11-13 13:32:37 -05:00
Dominic Gannaway
8798f3b1e7
chore: split $.each into $.each_keyed/$.each_indexed (#9422)
* Split $.each into $.each_keyed/$.each_indexed

* Add changeset

* Update .changeset/quiet-camels-mate.md

* Fix typo

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-11-13 13:32:02 -05:00
Dominic Gannaway
5a6afe5463
fix: correct each block update index type (#9425)
* fix: correctly handle index within each block updates

* changeset
2023-11-13 17:53:55 +00:00
Wilson Hobbs
1daadc357d
chore: add missing svelte/transition functions (#9391)
* chore: add missing svelte/transition functions

* lint
2023-11-13 17:41:18 +00:00
Simon H
9a99554379
breaking: remove Component type, keep using SvelteComponent instead (#9413)
I came to the conclusion that when we're making up arbitrary types, we might as well keep the old class. That way:
- one less thing to worry about (language tools and other tooling basically can continue to spit out SvelteComponent )
- we can more clearly mark $set , the constructor etc as being deprecated and no longer functioning unless you use that legacy compatibility mode
- much more ergonomic to type for the user:
  - const someInstance: SvelteComponent<..> instead of const someInstance: ReturnType<typeof Component<..>>
  - If you're using generics, you can do export class MyComponent<T> extends SvelteComponent<{ prop: T }> {} instead of having to type out the whole function in a way that I'm not even sure how to do with generics
2023-11-13 17:23:05 +01:00
gtmnayan
2ae953934d
enable dev mode for preview repl (#9393)
* enable dev mode for preview repl

* format

* also add dev mode toggle for compiler options

* whoops
2023-11-13 10:16:53 -05:00
Rich Harris
11eead7db9 lint 2023-11-13 10:00:53 -05:00
Ben McCann
6d7caf3fd3
chore: update PR template (#9397)
* chore: update PR template

* Update .github/PULL_REQUEST_TEMPLATE.md

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-11-12 18:49:59 -05:00
gtmnayan
7a84e78b4d
fix: add snippet symbol to children prop (#9395)
* add snippet symbol to children prop

* fix error message for snippet validation

* changeset
2023-11-12 21:32:57 +01:00
Rich Harris
304a29e1cc
fix runes mode indicator (#9388)
* fix runes mode indicator

* tidy up

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-11 09:18:14 -05:00
Rich Harris
7bcd33dbe1
Fix diagnostics (#9385)
* simplify a whole bunch of stuff

* delete more unused stuff

* fix diagnostics

* prettier

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-10 17:50:57 -05:00
Rich Harris
2aacfad9ae
fix: exclude internal props from spread attributes (#9384)
* exclude internal props from spread attributes

* changeset

* tighten up

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-10 17:50:44 -05:00
Simon Holthausen
51394a4834 docs: note more breaking changes 2023-11-10 18:01:41 +01:00
Rich Harris
14d7424d75
fix symlink (hopefully) (#9383)
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-10 17:47:48 +01:00
Simon Holthausen
c732bf8b42 Merge branch 'main' of https://github.com/sveltejs/svelte 2023-11-10 17:29:58 +01:00
github-actions[bot]
28b560392b
Version Packages (next) (#9382)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 16:52:33 +01:00
Simon Holthausen
341810b82c chore: don't format changeset folder 2023-11-10 16:51:30 +01:00
Simon H
c6c934afb2
chore: cleanup (#9381)
* lets see if this works

* fix versions

* sigh

* debugging ci is sooo fun

* oh wow

* fix stuff, changelog, add back readme

* appease prettier

* format stuff
2023-11-10 16:46:40 +01:00
Simon Holthausen
b8ea454372 chore: enter changeset prerelease mode 2023-11-10 15:56:52 +01:00
Simon Holthausen
fe8a9ce31d breaking: init Svelte 5
Co-authored-by: Rich Harris <rich.harris@vercel.com>
Co-authored-by: Simon Holthausen <simon.holthausen@vercel.com>
Co-authored-by: Dominic Gannaway <dg@domgan.com>
2023-11-10 15:48:23 +01:00
github-actions[bot]
1369aa5cec
Version Packages (#9380)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 13:41:20 +01:00
Simon H
e10be7a8e4
site: summit banner (#9378) 2023-11-10 13:38:39 +01:00
Simon H
2a2a773174
chore: rewire some master occurences (#9379)
(main for a few in contributing; doesn't exist yet but will, soon)
2023-11-10 13:38:07 +01:00
Kelvin Soh
00700621bb
fix: html tag hydration: regard empty claimed_nodes array as content mismatch (#9184)
fixes #6832
2023-11-10 12:44:57 +01:00
Ben McCann
d8e382712c
site: fix type errors in JS files (#9354) 2023-11-08 05:34:37 -08:00
Pedro Coelho
ac7505d81b
docs: update text color in animate example (#9374) 2023-11-07 12:54:34 -08:00
Vardhaman Bhandari
2a6f9e3bb7
docs: fix typo in blog (#9373) 2023-11-05 16:40:38 -08:00
Dani Sandoval
3a842e3da4
docs: "What's new in Svelte" November newsletter (#9360)
* november draft

* Apply suggestions from code review

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>

* add version number to kit suggestion

* add svelte summit blurb

* update title, move summit to intro, add deno note

* Update documentation/blog/2023-11-01-whats-new-in-svelte-november-2023.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>

---------

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Stanislav Khromov <stanislav.khromov+github@gmail.com>
2023-10-31 20:27:22 +01:00
Ben McCann
54233adb63
docs: clarify "obsolete" in runes blog post (#9364) 2023-10-30 22:42:25 -04:00
Ben McCann
895612514c
fix: improve a11y-click-events-have-key-events message (#9358) 2023-10-30 09:43:24 -07:00
Ben McCann
3d20b39289
site: fix 404 page by upgrading SvelteKit and avoiding null reference (#9337) 2023-10-23 13:19:06 -07:00
Sanjaiyan Parthipan
522d06a6ad
site: add type="search" to search input (#9263) 2023-10-20 21:04:22 +02:00
Ben McCann
28d6b34598
chore: fix failing format linting (#9338) 2023-10-19 10:06:57 -07:00
Min Kim
4b911045b0
docs: fix else if blocks on tutorial (#9336) 2023-10-19 15:46:51 +02:00
github-actions[bot]
590503044f
Version Packages (#9293)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-19 10:41:11 +02:00
Sina Salahshour
6b9b8af050
fix: ignore comments while comparing nodes in node_match (#9197)
related to issue #9088
it doesn't solve the main problem of dependencies getting invalidated whenever value of a variable gets changed.
but it fixes the behavior difference between the code with and without comments
2023-10-19 10:28:33 +02:00