0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
Commit graph

63 commits

Author SHA1 Message Date
Manuel Schiller
18b8abfbdf add e2e test for server context 2025-08-31 17:00:55 +02:00
Manuel Schiller
30ad7f6db4
feat: allow composability of server function factories and middlewares (#5044) 2025-08-31 01:23:32 +02:00
Manuel Schiller
bbfab37a99
feat: serverfn abstraction (#5040) 2025-08-29 02:31:57 +02:00
chorobin
c145e397d8 serialization pls 2025-08-28 00:02:09 +02:00
Manuel Schiller
02276b1e8c
refactor: start compiler (#5014) 2025-08-23 20:32:03 +02:00
Manuel Schiller
7503cd15a0
fix: change plugin config (#5012) 2025-08-22 22:31:12 +02:00
James Opstad
191e442648
fix: use separate output directories for client and server (#5000)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2025-08-22 06:33:34 +02:00
Manuel Schiller
805b1d39ae fix tests 2025-08-22 06:06:41 +02:00
Manuel Schiller
769490a48e custom error serialization in server functions 2025-08-21 20:07:35 +02:00
Manuel Schiller
004b32845f whitelist expected errors 2025-08-20 19:03:14 +02:00
Manuel Schiller
4f4d34d2fc use seroval for serverfunctions 2025-08-20 18:26:46 +02:00
Manuel Schiller
1158731b51 add e2e test 2025-08-18 19:37:35 +02:00
Manuel Schiller
e459efd26c don't duplicate test fixture in e2e tests 2025-08-18 19:37:35 +02:00
Manuel Schiller
bcfe15e676 Merge remote-tracking branch 'origin/main' into HEAD 2025-08-16 19:14:18 +02:00
Manuel Schiller
e77e8173da use custom server in e2e examples 2025-08-12 19:23:59 +02:00
Manuel Schiller
cd112e01e2 update clerk usage 2025-08-11 21:55:42 +02:00
Manuel Schiller
73499fb1aa fix e2e test 2025-08-11 21:55:41 +02:00
Manuel Schiller
9b783bd007 rename getWebRequest to getRequest 2025-08-11 21:55:41 +02:00
Manuel Schiller
c71a9b8fd5
fix: server functions reference serialization (#4913) 2025-08-11 18:22:07 +02:00
autofix-ci[bot]
28c7ce9786
ci: apply automated fixes 2025-08-09 11:09:56 +00:00
Nico Lynzaad
df1e08b897 update test to use new Header type exports 2025-08-09 13:05:02 +02:00
Manuel Schiller
f436579232 Merge remote-tracking branch 'origin/main' into HEAD 2025-08-09 12:13:50 +02:00
autofix-ci[bot]
c8171007a8
ci: apply automated fixes 2025-08-09 10:05:21 +00:00
Nico Lynzaad
5cb57797fd update e2e-tests 2025-08-09 12:04:18 +02:00
Nico Lynzaad
93afcca2fc add wait for networkidle 2025-08-09 03:47:52 +02:00
Manuel Schiller
2ad7079770 run e2e test via srvx 2025-08-09 00:49:07 +02:00
Manuel Schiller
e078c8a443 bump vite 2025-08-09 00:12:51 +02:00
Manuel Schiller
8812cb2661 bump vite version to 7 2025-08-09 00:11:58 +02:00
Manuel Schiller
db0236cad4 dont autoconfigure react/solid vite plugin anymore 2025-08-09 00:11:38 +02:00
Manuel Schiller
90adfe919e
feat: restructure query-integration (#4643)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-08-08 23:52:29 +02:00
Manuel Schiller
d09f5daa74
fix: spa mode with prerendering (#4811)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-28 18:56:47 +02:00
Manuel Schiller
c8be12cd14
fix: prerending with SPA mode enabled renders all routes (#4800) 2025-07-28 00:18:26 +02:00
Manuel Schiller
be7a578547
fix: scroll to top if no scroll restoration entry exists (#4786) 2025-07-26 19:02:33 +02:00
Nico Lynzaad
f0a60cbb71
test(e2e): use locally hosted api over an external provider (#4725)
A lot of our e2e tests are querying external endpoints like
[typicode.com](https://jsonplaceholder.typicode.com) or
[example.com](https://example.com)

This is not ideal as it makes the e2e tests beholden to external factors
for example unavailability or rate limiting of these endpoints.

This PR addresses this by starting and stopping a local dummy server for
each test that needs to query external endpoints and mocks the results.
The setup and teardown have been implemented on each test package
individually so as to allow custom requirements where needed.

---------

Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2025-07-22 00:15:28 +02:00
Manuel Schiller
f9dfb3121f
feat: pass in router instance in client function middleware (#4723)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-21 01:09:46 +02:00
Nico Lynzaad
e90171ab38
fix: resolve flaky e2e tests on useServerFn redirect tests (#4688)
This PR addresses some flaky tests in the redirect e2e tests for
react-start and solid start.

Specifically, when testing external redirects use useServerFn it was
trying to reach out to http://example.com. This updates it to redirect
to the local dummy server.
2025-07-18 00:02:28 +02:00
wookhyung
1930152cca
fix(start-server-core): properly merge middleware context objects (#4665) 2025-07-17 19:29:51 +12:00
Nico Lynzaad
3854370bdf
fix: assign random ports for e2e tests (#4676)
This is a follow on from #4653

This PR resolves flaky E2E tests caused by port collisions when running
tests in parallel.

Instead of deriving ports from package names (which can collide), this
new approach assigns a random, available port to each test server
instance.

Key Changes:

- Random Port Allocation: Each test server (Playwright, dummy servers)
gets a unique, random port at startup.
- File-based Sync: The server writes its assigned port to a port.txt
file in its test project directory, this is kept unique through using
the package name or another input string for the file name.
- Test Runner Sync: The test runner reads the port from that file to
build the correct URL.
- Automatic Cleanup: All port files are deleted at the start of each
test:e2e run to ensure fresh ports.

Local parallel runs (up to 10) have shown this to be stable and free of
collisions.

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-17 07:24:59 +02:00
Onur Guvenc
bbc480aeda
fix(start-server-functions-server): add base path to the RPC URL (#4619) 2025-07-12 12:05:24 +12:00
Manuel Schiller
4b4562aea6
fix: don't run router.load() when hydrating only SSRed matches (#4630)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-12 01:18:27 +02:00
wookhyung
f9b5a5a4a8
fix(start): support SSR for non-Latin character route paths (#4611) 2025-07-10 15:33:18 +12:00
Manuel Schiller
d728d69900
feat: ssr setting per route (#4565)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-07-05 14:35:14 +02:00
Felipe Stanzani
ceec4f2102
feat: Add style to HeadContent (#4559)
Currently Route HeadContent don't have support to inline style tags.

After a contribution proposition made by @schiller-manuel in the Discord
Group I have decided to implement this.

I also have used this in the basic example for react-start and
solid-start and added style and style w/loader test cases to both
modules.

---------

Co-authored-by: Flo <fpellet@ensc.fr>
2025-07-02 00:28:12 +02:00
Vladimir Kutepov
91d1e3863f
fix: follow server fn redirects when submitting formdata (#4519)
Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-25 23:26:23 +02:00
Ulrich Stark
ffeb725020
chore(examples): move beforeLoad property before head in createFileRoute (#4504) 2025-06-24 15:11:02 +12:00
Manuel Schiller
7e257df6bf
tests: wait for scripts route to be loaded before evaluating script (#4465) 2025-06-19 02:04:14 +02:00
wookhyung
adc5d5ce94
fix(react-router, solid-router): make head function scripts load properly (#4323) 2025-06-18 22:03:06 +02:00
Manuel Schiller
5cacc14b13
fix: if validate search rewrites search params, issue a server-side redirect (#4439)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-06-16 19:57:42 +02:00
Manuel Schiller
2a9b4435cd chore: re-generate route tree for examples/e2e tests 2025-06-15 22:36:35 +02:00
Manuel Schiller
1a4497359b
fix: generator fixes (#4389)
fixes #4383
fixes #4343
2025-06-11 19:53:25 +02:00