Skip to content

Commit a89408a

Browse files
chore: sync TanStack repo changes (#4784)
## 🎯 Changes - Update Prettier and use experimental CLI - Update Nx to v21 - Fix bug in test exposed by new prettier version - Sync issues template ## ✅ Checklist - [x] I have followed the steps listed in the [Contributing guide](https://github.com/TanStack/config/blob/main/CONTRIBUTING.md). - [x] I have tested and linted this code locally.
1 parent 4f802cf commit a89408a

File tree

8 files changed

+112
-119
lines changed

8 files changed

+112
-119
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: '🐛 Bug report'
1+
name: 🐛 Bug Report
22
description: Create a report to help us improve
33
body:
44
- type: markdown

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: 🤔 Feature Requests & Questions
4-
url: https://github.com/tanstack/router/discussions
4+
url: https://github.com/TanStack/router/discussions
55
about: Please ask and answer questions here.
66
- name: 💬 Community Chat
77
url: https://discord.gg/mQd7egN
8-
about: A dedicated discord server hosted by Tanner Linsley
9-
- name: 💬 Tanstack Twitter
10-
url: https://twitter.com/tan_stack
8+
about: A dedicated discord server hosted by TanStack
9+
- name: 🦋 TanStack Bluesky
10+
url: https://bsky.app/profile/tanstack.com
1111
about: Stay up to date with new releases of our libraries

docs/router/framework/react/guide/code-splitting.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Code splitting and lazy loading is a powerful technique for improving the bundle
1313
TanStack Router separates code into two categories:
1414

1515
- **Critical Route Configuration** - The code that is required to render the current route and kick off the data loading process as early as possible.
16-
1716
- Path Parsing/Serialization
1817
- Search Param Validation
1918
- Loaders, Before Load

docs/start/framework/react/reading-writing-file.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,18 +452,15 @@ With this, our UI should look like this:
452452
Let's break down how the different parts of our application work together:
453453

454454
1. **Server Functions**: These run on the server and handle data operations
455-
456455
- `getJokes`: Reads the jokes from our JSON file
457456
- `addJoke`: Adds a new joke to our JSON file
458457

459458
2. **TanStack Router**: Handles routing and data loading
460-
461459
- The loader function fetches jokes data when the route is accessed
462460
- `useLoaderData` makes this data available in our component
463461
- `router.invalidate()` refreshes the data when we add a new joke
464462

465463
3. **React Components**: Build the UI of our application
466-
467464
- `JokesList`: Displays the list of jokes
468465
- `JokeForm`: Provides a form for adding new jokes
469466

examples/react/authenticated-routes-firebase/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
1. By default, firebase will configure an accepted domain for localhost...update if necessary!
55
2. Enable Authentication in the Firebase console
66
3. Add GitHub as an authentication provider:
7-
87
- Go to **Authentication** > **Sign-in method** > **GitHub**
98
- Enable GitHub authentication
109
- You'll need to set up OAuth in your GitHub account:

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"build:all": "nx run-many --target=build --exclude=examples/** --exclude=e2e/**",
2626
"watch": "pnpm run build:all && nx watch --all -- pnpm run build:all",
2727
"dev": "pnpm run watch",
28-
"prettier": "prettier --ignore-unknown '**/*'",
28+
"prettier": "prettier --experimental-cli --ignore-unknown '**/*'",
2929
"prettier:write": "pnpm run prettier --write",
3030
"cipublish": "node scripts/publish.js",
3131
"gpt-generate": "node gpt/generate.js",
@@ -51,9 +51,9 @@
5151
"fast-glob": "^3.3.3",
5252
"jsdom": "^25.0.1",
5353
"markdown-link-extractor": "^4.0.2",
54-
"nx": "20.8.1",
55-
"prettier": "^3.5.0",
56-
"publint": "^0.3.4",
54+
"nx": "21.3.7",
55+
"prettier": "^3.6.2",
56+
"publint": "^0.3.12",
5757
"react": "^19.0.0",
5858
"react-dom": "^19.0.0",
5959
"redaxios": "^0.5.1",

packages/react-router/tests/router.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,8 @@ describe('router rendering stability', () => {
10341034

10351035
await act(() => fireEvent.click(links.foo3bar1))
10361036
await check('fooId', { value: '3', mountCount: 1 }, mountMocks)
1037-
await check('barId', { value: '1', mountCount: 1 }, mountMocks),
1038-
await act(() => fireEvent.click(links.foo3bar2))
1037+
await check('barId', { value: '1', mountCount: 1 }, mountMocks)
1038+
await act(() => fireEvent.click(links.foo3bar2))
10391039
await check('fooId', { value: '3', mountCount: 1 }, mountMocks)
10401040
await check('barId', { value: '2', mountCount: 1 }, mountMocks)
10411041
})

0 commit comments

Comments
 (0)