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

626 commits

Author SHA1 Message Date
Miro Rauhala
090a9043a5
docs: use guarantee instead of guaranty (#2430) 2024-09-28 14:56:52 +02:00
Lalu Arman Rozika
a42deba776
docs(router): typo about the CLI in the file-based routing guide (#2424) 2024-09-27 16:34:43 +12:00
Christopher Horobin
61cd473b0e
docs(router): fix MUI button in "custom links" guide (#2420) 2024-09-27 08:20:43 +12:00
Henrique Kirch Heck
a2373db228
docs(examples): declare vinxi type references (#2423)
* fix: Fixed type errors with assets

* docs: added fix to getting started docs
2024-09-27 08:17:16 +12:00
Christopher Horobin
63c211cc91
docs: fix size of headings (#2411) 2024-09-24 21:16:06 +02:00
Christopher Horobin
808d90b599
docs: link custom link docs (#2410) 2024-09-24 21:03:18 +02:00
Christopher Horobin
f76bb37bb0
fix: allow activeProps to infer component props (#2347)
* fix: allow activeProps to infer component props

* test

* fix: make active props partial

* default props shall not override active/inactive props

* fix test

* docs: add createLink docs

* fix: make `search` optional when `to` or `from` not specified

* chore: add type tests fro `createLink`

* docs: update docs

* docs: update typo

* docs: add imports

* feat: add CreateLinkProps

* chore: fix build

---------

Co-authored-by: Manuel Schiller <manuel.schiller@caligano.de>
2024-09-24 20:47:38 +02:00
Manuel Schiller
65fb5a85ba
fix(start): rename deployment config to server (#2404) 2024-09-24 01:10:08 +02:00
Sean Cassiere
89f136784b
docs(router): broken gfm alert on "search params" guide (#2397) 2024-09-23 20:22:34 +12:00
Sean Cassiere
f36f92b459
docs(eslint-plugin-router): add content under empty headings (#2390) 2024-09-22 00:26:14 +12:00
Sean Cassiere
b52ef9dff8
docs(router): fixing broken links (#2389) 2024-09-21 22:56:42 +12:00
Sean Cassiere
7442812aaf
chore(examples): cleanup the deps for the start examples (#2388)
* chore(examples): cleanup the deps for the start examples

* docs(start): update the link to the start-counter example

* chore(e2e): remove lint and format scripts for the e2e sandboxes
2024-09-21 22:21:59 +12:00
Sean Cassiere
1a64daa5fb
docs(start): mention using the cli for hosting (#2383)
* docs(start): mention using the cli for hosting

* bit more updates
2024-09-20 10:25:34 +12:00
willenleal
230c460f4d
docs(start): better info on hosting (#2380)
* docs(start): clarify running builds locally

* docs: improve upon the base

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-09-20 07:57:17 +12:00
Sean Cassiere
e73a748b3f
docs(router): broken links on the file-based routing guide (#2381) 2024-09-20 07:05:22 +12:00
Sean Cassiere
5eff361103
docs(router): route-tree setup instructions for code-based routing (#2373) 2024-09-19 16:20:47 +12:00
Sean Cassiere
b2b2a2359b
docs(start): fix invalid syntax in the server-functions guide (#2372) 2024-09-19 15:17:23 +12:00
Sean Cassiere
8c2fda4d70
docs(start): guide on configuring path aliases (#2371)
* docs(start): add documentation on configuring path aliases

* chore: add the new doc into the `config.json` file

* docs: update verbiage
2024-09-19 14:27:09 +12:00
Manuel Schiller
1b2208735a
feat(eslint-plugin-router): add rule to ensure correct property order for createXXXRoute functions (#2362) 2024-09-18 22:23:00 +02:00
Sang June (Josh) Rhee
b5080c6af7
docs(router): fix the import of StartServer in the SSR guide (#2358)
Since `StartServer` is exporting from `@tanstack/start/server`, the import path should be updated
2024-09-18 12:51:28 +12:00
Casey Johnson
fb9205dc9b
docs(router): correcting a variable reference in external-data-loading.md (#2355)
"client" should have been "queryClient"
2024-09-17 17:21:47 +12:00
Em Snook
474234e072
docs(router): fix typos in the overview guide (#2343) 2024-09-15 19:59:48 +12:00
Sean Cassiere
e8a968453f
chore: correctly set the typescript55 version to 5.5.2 (#2340)
* chore: correctly set the typescript test version to 5.5.2

* docs(router): callout the typescript support policy

* docs: correction its last 5 versions
2024-09-15 14:15:59 +12:00
Sean Cassiere
02f4e9a3dd
docs(start): correctly import the redirect fn (#2338) 2024-09-15 12:56:54 +12:00
Naresh Khatri
8fde2ef13d
docs(router): fix typo in the overview guide (#2329) 2024-09-14 10:03:15 +12:00
Manuel Schiller
56ce17786f docs: Link to property 2024-09-12 17:42:12 +02:00
Manuel Schiller
d328172d10 chore: no braces for strings in JSX 2024-09-12 17:42:12 +02:00
Christopher Horobin
0890710329
chore: support TS 5.6 and drop support for 5.0 (#2299) 2024-09-10 02:29:52 +02:00
Manuel Schiller
ca9b4beb29
feat(create-router): added project generator to scaffold router projects (#2300) 2024-09-10 00:41:44 +02:00
ridwansameer
89f920941b
chore(start): add Start example with supabase for auth (#2277)
* Example: Add Supabase Auth example

* Docs: Add Supabase auth to docs config

* Fix: Remove extra files and rename supabase

* Fix: remove comment

* ci: apply automated fixes

* Refactor: Rename supabase client to not violate react hook rules

---------

Co-authored-by: Ridwan Sameer <ridsameer2000@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-09-07 15:13:00 +12:00
Manuel Schiller
f64587fe83
feat(router-generator): allow virtual subtree in file based routing (#2271) 2024-09-05 23:22:06 +02:00
SeanCassiere
5f791faae8
docs: linking to the virtual files routes page 2024-09-05 10:03:07 +12:00
Manuel Schiller
a941696174
feat(router-generator): custom route tree configuration based on virtual file routes (#2265) 2024-09-04 23:37:02 +02:00
Luca Lee
82404056ac
docs(react): add missing .md extension to link paths in route-trees.md (#2252) 2024-09-03 04:30:53 +02:00
Luca Lee
ae8c33af5f
docs(react): remove reference to deleted examples in route-trees.md (#2250)
Co-authored-by: Sean Cassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-09-03 11:23:39 +12:00
Luca Lee
12fd81129d
docs(router): fix broken links in route-trees.md and routing-concepts.md (#2249) 2024-09-03 11:20:07 +12:00
NekoChan
f32b01daab
docs(start): fix tsconfig (#2246) 2024-09-03 11:18:28 +12:00
Manuel Schiller
6dbe4b0eed
feat(router-generator): allow to customize index and route token (#2203)
* feat(router-generator): allow to customize `index` and `route` token

* semantically validate generator config in a single place

* ci: apply automated fixes

* remove usage of CHECK_USER_FLAGS_TO_BE_CHANGED

* check indexToken / routeToken before determining isLayout status

* use tokens with leading and trailing slashes

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2024-08-31 22:36:58 +02:00
Brian
0d77cbf2e3
docs(react): remove duplicated line in overview.md (#2236) 2024-08-31 19:42:51 +02:00
Tanner Linsley
a8703f017d docs: update api-routes and server-function to use vinxi 2024-08-30 10:20:40 -06:00
Tanner Linsley
bf092b6956 docs: fix route trees 2024-08-29 14:01:01 -06:00
Tanner Linsley
20266513a6 docs: route tree fixes 2024-08-28 22:52:28 -06:00
Sean Cassiere
03f9fc74d0
docs(start): partner logos to be visible in dark-mode (#2212)
* docs(start): databases

* docs(start): hosting

* docs(start): observability

* docs(start): fix the link

* docs(start): authentication

* docs(start): use the tracking link

* docs(start): use the tracking link

* docs(start): more tracking link stuff

* docs(start): overview
2024-08-29 15:21:43 +12:00
Sean Cassiere
d10ac646cf
docs(start): link to the file-based routing guide from the api routes guide (#2211) 2024-08-29 14:35:17 +12:00
Timotei Albu
c881b2cc55
docs(router): spelling and other minor markdown for to the updated guides (#2210)
* Update routing-concepts.md

* spelling.
2024-08-29 12:28:36 +12:00
Tom Redman
5349357863
docs(start): dark mode for the Convex logo on the "databases" guide (#2209)
* Added dark mode Convex logo

Added a dark mode Convex logo while retaining the light version, depending on the user's theme.

* update to use `raw.githubusercontent.com`

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-08-29 12:27:59 +12:00
Tanner Linsley
fa66b7671d docs: Reorg and simplify some of the main routing docs 2024-08-28 11:47:27 -06:00
Sean Cassiere
dbb2b886cc
docs(start): API routes (#2202)
Docs for the API Routes in #2185.
2024-08-28 12:20:16 +12:00
Tanner Linsley
610fd101c7 docs: fix server function context example 2024-08-27 14:27:42 -06:00
Tanner Linsley
21bf687b26
feat(start): add api routes (#2185)
* feat: partial work on file based api routes

* feat(router-generator,start): tsr config to support `apiBase`

* feat(router-generator): adding the route template

* feat(router-generator): smoke test to make sure no conflicting configurations are found

* chore(start-basic): cleanup to a workable state

* feat(router-generator): generate the manifest for api-routes

* feat(start): make sure requests are getting through

* fix(react-router,start): get the exports sorted

* refactor(router-generator): to use the same output as normal route files

* feat(start): piping the manifest to the api-handler

* chore(start): remove unused config option since the apiBase is being taken from tsr-generator

* fix(start): only add the api router to vinxi if its handler exists

* style(start): eslint

* test(router-generator): checking that the custom base is respected by the generator

* chore(start): add a dot notated api route and `console.debug` instead

* refactor(router-generator,start): normalize the capitalization of "API" across the generator and start

* fix(start): `createAPIHandler` to `createApiHandler`

* feat(router-generator,start): correctly output the api build chunks

* feat(start): 🎉 API-routes are working
now it just needs Tanner's multi-sort logic stuff added-in

* fix(start,router-generator): split the API stuff from the "server" export to its own "api"export

* feat(router-generator): handle updating the path `escapedPath` on API-Routes like we do for regular file-routes

* refactor(router-generator,start): rename functions

* feat(start): add logic for route matching with TSR routes

* feat(react-router,router-generator,start): remove the stuff to do with generating the "api-manifest". only the existing "route-manifest" remains. the additional tests have also been removed

* fix(start): filter out potential api-route mismatches before trying to begin the actually "find" process

* test: start-basic example with api routes

* chore: add a DEPLOY_URL field to better show that the user needs to supply this SSR

* test: start-basic-react-query example with api routes

* chore: rename "post" to "user"

* feat(start): allow the HTTP "HEAD" method

* feat(start): solution for code-based api-routes

* revert(start): undo the code-based approach since the production builds didn't work

* feat(start): add back the code-based approach

* chore(start): rename type "APIFileRouteReturnType" to "APIRouteReturnType"

* fix(start): path logic to make sure url segments cannot be less than route segments

* refactor(start): code-based approach to accept a an object of routes keyed under "routes"

* chore(start): add comments since

* refactor(router-generator,start): less exports and reuse make the fs-router extensible

* refactor(start): a more generic name

* refactor(start): generic naming again

* refactor(start): strongly type the api handlers

* docs(router): update the file-based routing to callout that `/api` routes will be ignored by router

* docs(router): callout how the `api_base can be changed`

---------

Co-authored-by: SeanCassiere <33615041+SeanCassiere@users.noreply.github.com>
2024-08-27 19:46:20 +12:00