Skip to content

Commit 293a6ae

Browse files
committed
Merge branch 'main' into remove-solid-js-from-peer-deps
2 parents 1c5216c + 8f62544 commit 293a6ae

661 files changed

Lines changed: 56494 additions & 8059 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.changeset/config.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.2/schema.json",
33
"changelog": [
4-
"@svitejs/changesets-changelog-github-compact",
5-
{ "repo": "TanStack/devtools" }
4+
"@changesets/changelog-github",
5+
{ "repo": "TanStack/devtools", "disableThanks": true }
66
],
77
"commit": false,
88
"access": "public",

‎.changeset/hip-readers-retire.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
---
2-
'@tanstack/devtools-utils': patch
3-
'@tanstack/solid-devtools': patch
42
'@tanstack/devtools-ui': patch
53
'@tanstack/devtools': patch
64
---
75

8-
Remove solid-js from peerDeps
6+
Remove the solid-js peer dependency from `@tanstack/devtools` and `@tanstack/devtools-ui`. Both keep solid-js as a regular dependency, so panels from libraries on either Solid 1 or Solid 2 can be mounted in the shell.

‎.coderabbit.yaml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
3+
reviews:
4+
request_changes_workflow: false
5+
slop_detection:
6+
enabled: true
7+
8+
knowledge_base:
9+
code_guidelines:
10+
enabled: true
11+
filePatterns:
12+
- 'CONTRIBUTING.md'

‎.github/CODEOWNERS‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.github/ @TanStack/tanstack-core
2+
.nx/ @TanStack/tanstack-core
3+
nx.json @TanStack/tanstack-core
4+
.changeset/config.json @TanStack/tanstack-core
5+
scripts/ @TanStack/tanstack-core
6+
.npmrc @TanStack/tanstack-core

‎.github/pull_request_template.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
## ✅ Checklist
66

77
- [ ] I have followed the steps in the [Contributing guide](https://github.com/TanStack/devtools/blob/main/CONTRIBUTING.md).
8-
- [ ] I have tested this code locally with `pnpm test:pr`.
8+
- [ ] I have tested code changes locally with `pnpm test:pr`, or these tests do not apply to this pull request.
9+
- [ ] I fully understand the code in this pull request, including any code generated with AI assistance.
910

1011
## 🚀 Release Impact
1112

‎.github/renovate.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
"group:allNonMajor",
77
"schedule:weekly",
88
":approveMajorUpdates",
9-
":automergeMinor",
109
":disablePeerDependencies",
1110
":maintainLockFilesMonthly",
1211
":semanticCommits",

‎.github/workflows/autofix.yml‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
runs-on: ubuntu-latest
1919
steps:
2020
- name: Checkout
21-
uses: actions/checkout@v6.0.1
21+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
with:
23+
persist-credentials: false
2224
- name: Setup Tools
23-
uses: tanstack/config/.github/setup@main
25+
uses: TanStack/config/.github/setup@2903e4f30d417cfcb5a5ba5a9dc24a4dd4a75f2c # main
2426
- name: Fix formatting
2527
run: pnpm format
2628
# - name: Regenerate docs

‎.github/workflows/check-skills.yml‎

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
# check-skills.yml — Drop this into your library repo's .github/workflows/
2+
#
3+
# Checks for stale intent skills after a release and opens a review PR
4+
# if any skills need attention. The PR body includes a prompt you can
5+
# paste into Claude Code, Cursor, or any coding agent to update them.
6+
#
7+
# Triggers: new release published, or manual workflow_dispatch.
8+
#
9+
# Template variables (replaced by `intent setup`):
10+
# @tanstack/devtools — e.g. @tanstack/query
11+
12+
name: Check Skills
13+
14+
on:
15+
release:
16+
types: [published]
17+
workflow_dispatch: {}
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
check:
24+
name: Check for stale skills
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: write
28+
pull-requests: write
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
32+
with:
33+
fetch-depth: 0
34+
persist-credentials: true # review job pushes a generated branch
35+
36+
- name: Setup Node
37+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
38+
with:
39+
node-version: 20
40+
41+
- name: Install intent
42+
run: npm install -g @tanstack/intent@0.0.41
43+
44+
- name: Check staleness
45+
id: stale
46+
run: |
47+
OUTPUT=$(npx @tanstack/intent stale --json 2>&1) || true
48+
echo "$OUTPUT"
49+
50+
# Check if any skills need review
51+
NEEDS_REVIEW=$(echo "$OUTPUT" | node -e "
52+
const input = require('fs').readFileSync('/dev/stdin','utf8');
53+
try {
54+
const reports = JSON.parse(input);
55+
const stale = reports.flatMap(r =>
56+
r.skills.filter(s => s.needsReview).map(s => ({ library: r.library, skill: s.name, reasons: s.reasons }))
57+
);
58+
if (stale.length > 0) {
59+
console.log(JSON.stringify(stale));
60+
}
61+
} catch {}
62+
")
63+
64+
if [ -z "$NEEDS_REVIEW" ]; then
65+
echo "has_stale=false" >> "$GITHUB_OUTPUT"
66+
else
67+
echo "has_stale=true" >> "$GITHUB_OUTPUT"
68+
# Escape for multiline GH output
69+
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
70+
echo "stale_json<<$EOF" >> "$GITHUB_OUTPUT"
71+
echo "$NEEDS_REVIEW" >> "$GITHUB_OUTPUT"
72+
echo "$EOF" >> "$GITHUB_OUTPUT"
73+
fi
74+
75+
- name: Build summary
76+
if: steps.stale.outputs.has_stale == 'true'
77+
id: summary
78+
run: |
79+
node -e "
80+
const stale = JSON.parse(process.env.STALE_JSON);
81+
const lines = stale.map(s =>
82+
'- **' + s.skill + '** (' + s.library + '): ' + s.reasons.join(', ')
83+
);
84+
const summary = lines.join('\n');
85+
86+
const prompt = [
87+
'Review and update the following stale intent skills for @tanstack/devtools:',
88+
'',
89+
...stale.map(s => '- ' + s.skill + ': ' + s.reasons.join(', ')),
90+
'',
91+
'For each stale skill:',
92+
'1. Read the current SKILL.md file',
93+
'2. Check what changed in the library since the skill was last updated',
94+
'3. Update the skill content to reflect current APIs and behavior',
95+
'4. Run \`npx @tanstack/intent validate\` to verify the updated skill',
96+
].join('\n');
97+
98+
// Write outputs
99+
const fs = require('fs');
100+
const env = fs.readFileSync(process.env.GITHUB_OUTPUT, 'utf8');
101+
const eof = require('crypto').randomBytes(15).toString('base64');
102+
fs.appendFileSync(process.env.GITHUB_OUTPUT,
103+
'summary<<' + eof + '\n' + summary + '\n' + eof + '\n' +
104+
'prompt<<' + eof + '\n' + prompt + '\n' + eof + '\n'
105+
);
106+
"
107+
env:
108+
STALE_JSON: ${{ steps.stale.outputs.stale_json }}
109+
110+
- name: Open review PR
111+
if: steps.stale.outputs.has_stale == 'true'
112+
env:
113+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
114+
VERSION: ${{ github.event.release.tag_name || 'manual' }}
115+
SUMMARY: ${{ steps.summary.outputs.summary }}
116+
PROMPT: ${{ steps.summary.outputs.prompt }}
117+
run: |
118+
BRANCH="skills/review-${VERSION}"
119+
120+
git config user.name "github-actions[bot]"
121+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
122+
git checkout -b "$BRANCH"
123+
git commit --allow-empty -m "chore: review stale skills for ${VERSION}"
124+
git push origin "$BRANCH"
125+
126+
{
127+
printf '%s\n\n' '## Stale Skills Detected'
128+
printf '%s\n\n' 'The following skills may need updates after the latest release:'
129+
printf '%s\n\n' "$SUMMARY"
130+
printf '%s\n\n' '---'
131+
printf '%s\n\n' '### Update Prompt'
132+
printf '%s\n\n' 'Paste this into your coding agent (Claude Code, Cursor, etc.):'
133+
printf '%s\n' '~~~'
134+
printf '%s\n' "$PROMPT"
135+
printf '%s\n' '~~~'
136+
} > pr-body.md
137+
138+
gh pr create \
139+
--title "Review stale skills (${VERSION})" \
140+
--body-file pr-body.md \
141+
--head "$BRANCH" \
142+
--base main
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Dependency Review
2+
3+
on:
4+
pull_request:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
review:
15+
name: Review dependency changes
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
pull-requests: write
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
23+
with:
24+
persist-credentials: false
25+
26+
- name: Dependency Review
27+
uses: actions/dependency-review-action@e58c696e52cac8e62d61cc21fda89565d71505d7 # v4.3.1
28+
with:
29+
fail-on-severity: high
30+
comment-summary-in-pr: on-failure
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# notify-intent.yml — Drop this into your library repo's .github/workflows/
2+
#
3+
# Fires a repository_dispatch event to TanStack/intent whenever docs or
4+
# source files change on merge to main. This triggers the skill staleness
5+
# check workflow in the intent repo.
6+
#
7+
# Requirements:
8+
# - A fine-grained PAT with contents:write on TanStack/intent stored
9+
# as the INTENT_NOTIFY_TOKEN repository secret.
10+
#
11+
# Template variables (replaced by `intent setup`):
12+
# @tanstack/devtools
13+
# docs/**
14+
# packages/*/src/**
15+
16+
name: Notify Intent
17+
18+
on:
19+
push:
20+
branches: [main]
21+
paths:
22+
- 'docs/**'
23+
- 'packages/*/src/**'
24+
25+
permissions:
26+
contents: read
27+
28+
jobs:
29+
notify:
30+
name: Notify TanStack Intent
31+
runs-on: ubuntu-latest
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
35+
with:
36+
fetch-depth: 2
37+
persist-credentials: false
38+
39+
- name: Collect changed files
40+
id: changes
41+
run: |
42+
FILES=$(git diff --name-only HEAD~1 HEAD | jq -R -s -c 'split("\n") | map(select(length > 0))')
43+
echo "files=$FILES" >> "$GITHUB_OUTPUT"
44+
45+
- name: Dispatch to intent repo
46+
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3.0.0
47+
with:
48+
token: ${{ secrets.INTENT_NOTIFY_TOKEN }}
49+
repository: TanStack/intent
50+
event-type: skill-check
51+
client-payload: |
52+
{
53+
"package": "@tanstack/devtools",
54+
"sha": "${{ github.sha }}",
55+
"changed_files": ${{ steps.changes.outputs.files }}
56+
}

0 commit comments

Comments
 (0)