Skip to content

Remote Functions #13986

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 153 commits into from
Jul 31, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
4706f36
Remote Functions Exploration PR (#13957)
dummdidumm Jul 10, 2025
47e995a
Merge branch 'main' into remote-functions
dummdidumm Jul 10, 2025
91b94c0
cleanup
dummdidumm Jul 11, 2025
731cbce
remove cache code for now
dummdidumm Jul 11, 2025
e4134ee
handleValidationError
dummdidumm Jul 14, 2025
75b33a0
error property
dummdidumm Jul 14, 2025
b8c0026
code review
dummdidumm Jul 15, 2025
902e228
tweak / simplify
dummdidumm Jul 15, 2025
5e48a48
Merge branch 'main' into remote-functions
dummdidumm Jul 15, 2025
351512c
merge main
Rich-Harris Jul 17, 2025
5e3fc90
Apply suggestions from code review
dummdidumm Jul 17, 2025
729c7a2
fix
dummdidumm Jul 17, 2025
73b6f1b
fix params prop on leaf component
Rich-Harris Jul 17, 2025
88d4118
refresh queries after goto with invalidateAll
dummdidumm Jul 17, 2025
fc90222
fix redirect logic
dummdidumm Jul 17, 2025
f25299b
revert overrides on error
dummdidumm Jul 17, 2025
fc2869b
work around Svelte bug
dummdidumm Jul 17, 2025
f9fa164
lint
dummdidumm Jul 18, 2025
446483b
add names to error messages
dummdidumm Jul 18, 2025
ddecc8f
put remote function id etc assignment into helper function and add or…
dummdidumm Jul 18, 2025
9b3ecb6
use cache API for prerendered functions
dummdidumm Jul 18, 2025
dab2946
status/isLoading property
dummdidumm Jul 18, 2025
65f9dbc
add set method to resource
dummdidumm Jul 18, 2025
fc94477
Merge branch 'main' into remote-functions
Rich-Harris Jul 18, 2025
e9abf08
tweak
dummdidumm Jul 18, 2025
8160907
Merge branch 'remote-functions' of https://github.com/sveltejs/kit in…
dummdidumm Jul 18, 2025
95a4a92
more error message tweaks
dummdidumm Jul 18, 2025
d77cbb1
regenerate
dummdidumm Jul 18, 2025
f80a21b
use tick()
dummdidumm Jul 18, 2025
46cf0c6
Update packages/kit/src/runtime/client/remote.svelte.js
Rich-Harris Jul 19, 2025
9a06a92
validationerror issues tweak
dummdidumm Jul 20, 2025
5a9690f
handle exotic characters when btoa encoding
dummdidumm Jul 20, 2025
71b9edd
prerender tweaks
dummdidumm Jul 20, 2025
a54e5f3
make fn execution a method
dummdidumm Jul 20, 2025
dc5b01a
changeset
dummdidumm Jul 20, 2025
9735f19
Update packages/kit/src/runtime/client/remote.svelte.js
Rich-Harris Jul 20, 2025
6ad721b
Add RemoteCommand type (#14020)
ottomated Jul 21, 2025
2e54628
Merge branch 'main' into remote-functions
dummdidumm Jul 21, 2025
1fa60eb
tweaks to `remote-functions` (#14034)
Rich-Harris Jul 24, 2025
b9d7b85
remote functions: fix prerender types etc (#14037)
Rich-Harris Jul 24, 2025
7bea158
Merge branch 'main' into remote-functions
Rich-Harris Jul 24, 2025
ccb11b8
remote functions: await form result (#14038)
Rich-Harris Jul 24, 2025
f1ba3b9
merge main
Rich-Harris Jul 24, 2025
8a3c5f4
docs
dummdidumm Jul 24, 2025
5c133ec
adjust docs example
dummdidumm Jul 24, 2025
e3bbcd6
turn RemoteQuery<Promise<Thing>> into RemoteQuery<Thing>
Rich-Harris Jul 24, 2025
659a6e6
make forms non-callable (#14045)
Rich-Harris Jul 25, 2025
c8135f1
get rid of status, add ready
dummdidumm Jul 25, 2025
590aa31
remove fail() support from remote forms
dummdidumm Jul 25, 2025
62bccf7
fix types / lint
dummdidumm Jul 25, 2025
44f3c63
form doc tweaks
dummdidumm Jul 25, 2025
930affd
fix indentation
Rich-Harris Jul 28, 2025
2d48ff3
hash once
Rich-Harris Jul 28, 2025
8b2489b
make remotes project-relative
Rich-Harris Jul 28, 2025
7419a67
fix
Rich-Harris Jul 28, 2025
d96bebc
fix
Rich-Harris Jul 28, 2025
fa80df4
uneval lazily
Rich-Harris Jul 29, 2025
2bda0d5
don't swallow errors
Rich-Harris Jul 29, 2025
a12ac67
surface errors more reliably, prevent crashes
Rich-Harris Jul 29, 2025
35a1239
don't clear remote_responses cache on failure. embrace the failure
Rich-Harris Jul 29, 2025
c5d90a5
lint
Rich-Harris Jul 29, 2025
75fcfd3
simplify
Rich-Harris Jul 29, 2025
f57fb87
typo
Rich-Harris Jul 29, 2025
0d17d3f
tweak
Rich-Harris Jul 29, 2025
1d39e0a
regenerate
Rich-Harris Jul 29, 2025
9611f5f
lint
Rich-Harris Jul 29, 2025
94280aa
add some more explanatory comments
Rich-Harris Jul 29, 2025
6cec4a8
simplify
Rich-Harris Jul 29, 2025
7c3a03b
compute action/formaction lazily — this lets us initialize all remote…
Rich-Harris Jul 29, 2025
ebb4423
remote function init is now simple enough that we can just inline it
Rich-Harris Jul 29, 2025
270392e
WIP
Rich-Harris Jul 29, 2025
37ec773
WIP use existing metadata
Rich-Harris Jul 29, 2025
8e7e143
no need for intermediate disk output
Rich-Harris Jul 29, 2025
18225a5
unused
Rich-Harris Jul 29, 2025
3eb34fd
bundle together
Rich-Harris Jul 29, 2025
be1d496
add explanatory comment
Rich-Harris Jul 29, 2025
1ebef8c
tweak comment
Rich-Harris Jul 29, 2025
a1997e5
tweak
Rich-Harris Jul 29, 2025
6445b39
put functions in the order they are used
Rich-Harris Jul 29, 2025
2216602
debug windows nonsense
Rich-Harris Jul 29, 2025
2b2f874
more debugging
Rich-Harris Jul 29, 2025
a576c7d
more debugging
Rich-Harris Jul 29, 2025
edae07d
more
Rich-Harris Jul 29, 2025
86ddf27
gah
Rich-Harris Jul 29, 2025
77c5718
wtaf
Rich-Harris Jul 29, 2025
22789d5
come ON
Rich-Harris Jul 29, 2025
9477cea
so confused
Rich-Harris Jul 29, 2025
88d7608
ugh
Rich-Harris Jul 29, 2025
627220c
more
Rich-Harris Jul 29, 2025
efafabb
howwwwwwww
Rich-Harris Jul 29, 2025
0ae1421
stab in the dark
Rich-Harris Jul 29, 2025
96513aa
try this
Rich-Harris Jul 29, 2025
fdbc1d1
fucking FINALLY
Rich-Harris Jul 29, 2025
7704636
remove junk
Rich-Harris Jul 29, 2025
edc9095
remove outdated comment
Rich-Harris Jul 29, 2025
393c1f4
tweak
Rich-Harris Jul 29, 2025
8d00051
tweak naming
Rich-Harris Jul 30, 2025
88f97ad
separate blocks out
Rich-Harris Jul 30, 2025
539996d
call functions directly
Rich-Harris Jul 30, 2025
3fe3281
tweak some names
Rich-Harris Jul 30, 2025
cab9619
tweaks
Rich-Harris Jul 30, 2025
4eb7ae9
capitalise Bad Request
Rich-Harris Jul 30, 2025
eef65bf
tweaks, make cache key easier to split
Rich-Harris Jul 30, 2025
576f642
tweak
Rich-Harris Jul 30, 2025
2dee752
simplify
Rich-Harris Jul 30, 2025
3f404a1
tweak
Rich-Harris Jul 30, 2025
0340df8
make methods appear as methods rather than properties
Rich-Harris Jul 30, 2025
6c9a9d1
WIP move to separate files
Rich-Harris Jul 30, 2025
97ba5d9
WIP extract shared logic
Rich-Harris Jul 30, 2025
95bc791
WIP more
Rich-Harris Jul 30, 2025
c62969a
WIP more
Rich-Harris Jul 30, 2025
681f447
move remote functions into individual modules — will be easier to wor…
Rich-Harris Jul 30, 2025
4bb3128
hoist
Rich-Harris Jul 30, 2025
d8694b9
hoist for property
Rich-Harris Jul 30, 2025
a02df4e
add type safety, make `entry.count` (as opposed to `entry[0]`) a reality
Rich-Harris Jul 30, 2025
ff2368c
simplify
Rich-Harris Jul 30, 2025
bbf3d94
typo
Rich-Harris Jul 30, 2025
168e2e1
fix
Rich-Harris Jul 30, 2025
a9965a0
same on server - move functions into their own modules
Rich-Harris Jul 30, 2025
6ee2778
tweak
Rich-Harris Jul 30, 2025
e48ae04
error eagerly - results in a much more useful stack trace
Rich-Harris Jul 30, 2025
75d093e
this always exists
Rich-Harris Jul 30, 2025
eb81ca5
generalize the concept of event-scoped state, since it is useful beyo…
Rich-Harris Jul 30, 2025
7fb54a3
make form_instances lazy
Rich-Harris Jul 30, 2025
7fde75d
make remote data lazy
Rich-Harris Jul 30, 2025
2098d26
simplify
Rich-Harris Jul 30, 2025
7bb4aa4
repeat
Rich-Harris Jul 30, 2025
5bfd828
tweak form docs
Rich-Harris Jul 30, 2025
53dfba9
prerendering error is redundant, it's all covered under SSR
Rich-Harris Jul 30, 2025
2cf9b1f
unused
Rich-Harris Jul 30, 2025
acf64e6
oops
Rich-Harris Jul 30, 2025
fa71337
defer to the full docs - it's impossible to document these in isolati…
Rich-Harris Jul 30, 2025
3e13995
regenerate
Rich-Harris Jul 30, 2025
4a3d52c
make error handling consistent between enhanced and non-enhanced forms
Rich-Harris Jul 30, 2025
db246d9
remove form.error property
Rich-Harris Jul 30, 2025
89af26a
regenerate
Rich-Harris Jul 30, 2025
a3887b7
tweak
Rich-Harris Jul 30, 2025
0bd221d
make docs buildable
Rich-Harris Jul 30, 2025
0dd3deb
tabs
Rich-Harris Jul 30, 2025
2c5d4c8
enumerable: false is redundant
Rich-Harris Jul 31, 2025
d39d85f
WIP docs
Rich-Harris Jul 31, 2025
8dff8c5
update tests
Rich-Harris Jul 31, 2025
490ab34
remove this section for now
Rich-Harris Jul 31, 2025
282285c
reuse login/register example
Rich-Harris Jul 31, 2025
d1931a6
formAction -> buttonProps
Rich-Harris Jul 31, 2025
d1b7c12
tweak docs
Rich-Harris Jul 31, 2025
2d4740d
more docs updates
Rich-Harris Jul 31, 2025
13e4d99
more docs
Rich-Harris Jul 31, 2025
d5d6c15
already covered elsewhere
Rich-Harris Jul 31, 2025
e19e9be
tweaks
Rich-Harris Jul 31, 2025
ab8e31f
docs
Rich-Harris Jul 31, 2025
6bdb573
add missing since tags
Rich-Harris Jul 31, 2025
dada03f
regenerate
Rich-Harris Jul 31, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/heavy-insects-wash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': minor
---

feat: remote functions
Loading
Loading