0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-24 08:17:29 +01:00
Commit Graph

7787 Commits

Author SHA1 Message Date
Dennis Kamau
c53e26f2d0
chore: update copyright year to include 2024 (#10047) 2024-01-01 09:37:35 -08:00
github-actions[bot]
6307a3322c
Version Packages (next) (#10005)
* Version Packages (next)

* Apply suggestions from code review

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
2023-12-27 17:40:01 +00:00
Rich Harris
69f2840e28
#9985, but simpler (#10009)
* #9985, but simpler

* oops

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-12-27 17:32:20 +00:00
Rich Harris
2ad5e53d53
remove unnecessary test (#10008)
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-12-27 17:28:15 +00:00
Holger Dal Mogensen
8a013c4cc6
fix: transition parameters are not reactive (#9836)
* test: add tests of transitions in new runtime

* fix: move evaluation of props

* format

* add changeset
2023-12-27 16:31:28 +00:00
S. Elliott Johnson
180b3322b2
feat: minor type improvements (#9989) 2023-12-27 12:53:43 +00:00
Tom
c0a357c262
fix: support hydrating around <noscript> (#9953)
* add test

* fix: support hydrating around `<noscript>`

* changeset
2023-12-27 12:52:58 +00:00
Nguyen Tran
bd34367660
fix: Add some tests to avoid regression on #8559 (#9956)
* Add some tests to avoid regression

* Add runes test and remove extra tests
2023-12-27 10:51:37 +00:00
Nguyen Tran
b31946eb08
fix: Backtick now displays with templates (#9973)
* Add a test for backtick in template

* Put sanitize_template_string and use it everywhere

* Prettier

* Add changeset
2023-12-27 10:44:47 +00:00
Nguyen Tran
5dffe715d3
fix: issue with assiging prop values as defaults of other props (#9985)
* Fix issue on assiging prop values as defaults of other props

* Prettier

* Add changeset
2023-12-27 10:44:03 +00:00
adiGuba
547ab932a8
fix: props with dash #9964 (#9993)
* fix member call

* format
2023-12-27 10:37:17 +00:00
Dani Sandoval
2b8440c1e9
fix typo in release notes (#10003) 2023-12-27 10:33:28 +00:00
Dominic Gannaway
75cd1e825c
feat: add $state.frozen rune (#9851)
* feat: add $state.raw rune

fix typo

fix typo

* add more tests, fix example

* add other test

* change to $state.readonly

* fix readme

* fix validation

* fix more

* improve types

* improve REPL

* switch to $state.frozen

* update docs

* update docs

* update docs

* Update .changeset/dry-clocks-grow.md

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

* Update packages/svelte/src/internal/client/runtime.js

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

* Update packages/svelte/src/internal/client/runtime.js

* docs

* Update sites/svelte-5-preview/src/routes/docs/content/01-api/02-runes.md

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

---------

Co-authored-by: Rich Harris <richard.a.harris@gmail.com>
Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-12-27 10:32:59 +00:00
github-actions[bot]
eab690d31a
Version Packages (next) (#9922)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-17 14:49:06 +00:00
Dominic Gannaway
b8f3c49e5f
fix: improve event delegation handler hoisting (#9929)
* fix: improve event delegation handler hoisting

* fixes
2023-12-15 17:10:31 +00:00
Dominic Gannaway
59c7487f36
fix: better handle array property deletion reactivity (#9921) 2023-12-14 17:11:57 +00:00
github-actions[bot]
b779e72eb6
Version Packages (next) (#9913)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 16:06:45 +00:00
Dominic Gannaway
2608e621d6
add test (#9917) 2023-12-14 15:05:32 +00:00
Dominic Gannaway
b1efd8c4cd
fix: improve each block fallback handling (#9914) 2023-12-14 12:35:23 +00:00
Dominic Gannaway
3a4a09102c
fix: improve whitespace handling (#9912)
revert
2023-12-14 11:23:48 +00:00
github-actions[bot]
f2d111264c
Version Packages (next) (#9899)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-13 14:26:43 +00:00
navorite
55656f520d
feat: add support for {@const} inside snippet block (#9904)
* check for snippet block

* change the error msg

* edit tests

* changeset

* test
2023-12-13 14:18:25 +00:00
Dominic Gannaway
b0511a5966
fix: improve attribute directive reactivity detection (#9907) 2023-12-13 14:15:26 +00:00
Dominic Gannaway
4e61db7201
chore: improve readonly prop messaging (#9901) 2023-12-13 02:11:44 +00:00
Dominic Gannaway
436a6c3dc4
fix: improve $inspect batching (#9902)
* fix: improve $inspect batching

* fix dev bug

* simplify

* simplify
2023-12-13 02:06:38 +00:00
Dominic Gannaway
a9a5b11c78
fix: improve props aliasing (#9900) 2023-12-12 21:54:49 +00:00
Dominic Gannaway
0236cf87e7
fix: better support for top-level snippet declarations (#9898) 2023-12-12 21:32:01 +00:00
github-actions[bot]
a8e5cc83cd
Version Packages (next) (#9856)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-12 17:27:28 +00:00
Dominic Gannaway
56de55bb77
fix: improve unstate type definition (#9895)
* fix: improve unstate type definition

* tweak

* tweak
2023-12-12 17:25:47 +00:00
Dominic Gannaway
daa19173b1
fix: improve html tag svg behaviour (#9894) 2023-12-12 12:46:32 +00:00
Dominic Gannaway
2ca3c87d18
fix: correctly reflect readonly proxy marker (#9893) 2023-12-12 11:34:59 +00:00
Dominic Gannaway
7238e1d3ce
fix: improve each block index handling (#9889) 2023-12-11 15:18:16 +00:00
Dominic Gannaway
bdd63c8187
fix: ensure class constructor values are proxied (#9888)
* fix: ensure class constructor values are proxied

* debugger
2023-12-11 12:42:23 +00:00
Ben McCann
646c0c432b
docs: update FAQ regarding Svelte 5 release date (#9882) 2023-12-10 18:50:22 -05:00
Mike Tunik
6a89a8f482
chore: optimize get_amount_class_specificity_increased (#9853)
* Optimaze

* pnpm format

---------

Co-authored-by: Mike <prince-poley@yandex.ru>
2023-12-08 16:17:35 +00:00
Jirawat Boonkumnerd
acf73104b5
feat: add GamepadEventHandler type (#9861)
Add GamepadEventHandler type for window.addEventListener `gamepadconnected` and `gamepaddisconnected`
2023-12-08 16:34:36 +01:00
Dominic Gannaway
cb529fc666
chore: improve each block fast-path heuristic (#9855)
* chore: improve each block fast-path heuristic

* chore: improve each block fast-path heuristic
2023-12-08 01:26:19 +00:00
Rob B
3a9b1436e8
docs: fix typos (#9849)
* Update 02-runes.md

Typo fix `whech` -> `which`

* Update 02-runes.md

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-12-07 20:20:44 +01:00
github-actions[bot]
b90b14645b
Version Packages (next) (#9847)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-07 18:05:17 +00:00
Dominic Gannaway
56d8c0fd3a
fix: ensure action function returns object (#9848) 2023-12-07 17:22:28 +00:00
Dominic Gannaway
4717d2ad23
fix: handle event hoisting props referencing (#9846)
* fix: handle event hoisting props referencing
2023-12-07 17:07:26 +00:00
Dominic Gannaway
fd78acfec9
fix: support dynamic transition functions (#9844)
* fix: support dynamic transition functions

* add test

* lint

* load dynamic code lazily

load dynamic code lazily

load dynamic code lazily
2023-12-07 17:00:49 +00:00
github-actions[bot]
ab21253073
Version Packages (next) (#9833)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-07 10:56:01 -05:00
Simon H
df5105ef2e
breaking: change $inspect API (#9838)
* breaking: change `$inspect` API

`$inspect` now takes 1-n arguments, and inspections modification happens through `.with(..)`
closes #9737

* lint
2023-12-07 10:54:46 -05:00
Rich Harris
26c6d6f95d
chore: avoid creating unnecessary thunks (#9841)
Co-authored-by: Rich Harris <rich.harris@vercel.com>
2023-12-07 16:45:04 +01:00
Dominic Gannaway
8dfb2894b4
fix: improve each key animations (#9842) 2023-12-07 15:41:52 +00:00
Dominic Gannaway
08d93a2f5f
fix: improve each block with animate (#9839) 2023-12-07 12:58:22 +00:00
Dominic Gannaway
388e3e68fc
fix: improve signal consumer removal logic (#9837) 2023-12-07 12:40:44 +00:00
Dominic Gannaway
e2dcdc2887
fix: ensure computed props are wrapped in derived (#9835) 2023-12-07 12:30:02 +00:00
Dominic Gannaway
d9c250a4bf
fix: better handle unowned derived signals (#9832)
* fix: better handle unowned derived signals

* format

---------

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
2023-12-07 10:38:32 +00:00