Rich Harris
2ebedb04a1
configure search.exclude ( #9472 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-15 14:36:16 -05:00
Rich Harris
d749685b0f
fix: rework directive name handling ( #9470 )
...
* move snapshot test to a runtime test
* handle dynamic cases
* huh
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-15 12:52:21 -05:00
Dominic Gannaway
73e8820fe7
chore: make DOM operations lazily init ( #9468 )
...
* chore: make DOM operations lazyily init
* cleanup types
* cleanup types
* cleanup types
* Update packages/svelte/src/internal/client/operations.js
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
* single line annotations
* remove unnecessary coercion
* group statements by type
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-15 11:29:13 -05:00
Simon Holthausen
640dd48705
chore: remove obsolete script
2023-11-15 14:42:49 +01:00
Simon H
9ef3424732
fix: support class exports ( #9465 )
2023-11-15 14:42:06 +01:00
Paolo Ricciuti
6f3dc04c82
fix: allow member access on directives ( #9462 )
...
fixes #9445
2023-11-15 12:53:23 +01:00
Dominic Gannaway
9eb969ddd4
fix: address bug in before/after update ( #9448 )
...
* fix: address bug in before/after update
fix: address bug in before/after update
* Add changeset
* use every instead of filter - more explicit and enables early-exit from the loop
* Update logic and comment
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-15 10:33:16 +00:00
Rich Harris
f5101c0d8c
treat slot
the same as other props - closes #9455 ( #9457 )
...
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-14 20:17:37 -05:00
Rich Harris
6f6c3a0787
fix: only escape attribute values for elements, not components ( #9456 )
...
* only escape attribute values for elements, not components - closes #9454
* changeset
---------
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-11-14 20:05:08 -05:00
Rich Harris
9abfb52f67
add back launch config
2023-11-14 19:49:11 -05:00
Yuichiro Yamashita
f18adc8b43
docs: Update Breaking changes section ( #9444 )
...
* update docs
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
* Update sites/svelte-5-preview/src/routes/docs/content/03-appendix/02-breaking-changes.md
---------
Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Rich Harris <hello@rich-harris.dev>
2023-11-14 18:22:04 -05:00
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