-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into initialData-should-allow-undefined
- Loading branch information
Showing
733 changed files
with
41,888 additions
and
32,440 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"configMigration": true, | ||
"extends": [ | ||
"config:recommended", | ||
"group:allNonMajor", | ||
"schedule:weekly", | ||
":approveMajorUpdates", | ||
":automergeMinor", | ||
":disablePeerDependencies", | ||
":maintainLockFilesMonthly", | ||
":semanticCommits", | ||
":semanticCommitTypeAll(chore)" | ||
], | ||
"ignorePresets": [":ignoreModulesAndTests"], | ||
"labels": ["dependencies"], | ||
"rangeStrategy": "bump", | ||
"postUpdateOptions": ["pnpmDedupe"], | ||
"ignoreDeps": [ | ||
"@types/node", | ||
"@types/react", | ||
"@types/react-dom", | ||
"eslint-plugin-react-compiler", | ||
"node", | ||
"react", | ||
"react-dom", | ||
"react-scripts", | ||
"tsup", | ||
"typescript", | ||
"typescript47", | ||
"typescript48", | ||
"typescript49", | ||
"typescript50", | ||
"typescript51", | ||
"typescript52", | ||
"vue", | ||
"vue-tsc", | ||
"vue2", | ||
"vue2.7" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: autofix.ci # needed to securely identify the workflow | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: [main, alpha, beta, rc, v4] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
autofix: | ||
name: autofix | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Setup Tools | ||
uses: tanstack/config/.github/setup@main | ||
- name: Fix formatting | ||
run: pnpm prettier:write | ||
- name: Apply fixes | ||
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c | ||
with: | ||
commit-message: 'ci: apply automated fixes' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ on: | |
description: override release tag | ||
required: false | ||
push: | ||
branches: ['main', 'alpha', 'beta', 'rc', 'v4'] | ||
branches: [main, alpha, beta, rc, v4] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
|
@@ -16,29 +16,24 @@ concurrency: | |
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
||
permissions: | ||
contents: write | ||
id-token: write | ||
|
||
jobs: | ||
test-and-publish: | ||
name: Test & Publish | ||
if: github.repository == 'TanStack/query' | ||
if: github.repository_owner == 'TanStack' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: '0' | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
uses: actions/[email protected] | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
fetch-depth: 0 | ||
- name: Start Nx Agents | ||
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
- name: Setup Tools | ||
uses: tanstack/config/.github/setup@main | ||
- name: Run Tests | ||
run: pnpm run test:ci --parallel=3 | ||
- name: Stop Nx Agents | ||
|
@@ -51,12 +46,12 @@ jobs: | |
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | ||
pnpm run cipublish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GH_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
TAG: ${{ inputs.tag }} | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v4.5.0 | ||
with: | ||
directory: packages | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ name: pr | |
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- 'media/**' | ||
push: | ||
branches: ['svelte-5-adapter'] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.number || github.ref }} | ||
|
@@ -12,38 +12,48 @@ concurrency: | |
env: | ||
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
main: | ||
name: Nx Cloud - Main Job | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.7 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v2 | ||
with: | ||
version: 8 | ||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: .nvmrc | ||
cache: pnpm | ||
- name: Start Nx Agents | ||
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml" | ||
- name: Install dependencies | ||
run: pnpm install --frozen-lockfile --prefer-offline | ||
- name: Setup Tools | ||
uses: tanstack/config/.github/setup@main | ||
- name: Get base and head commits for `nx affected` | ||
uses: nrwl/nx-set-shas@v3 | ||
uses: nrwl/nx-set-shas@v4.0.6 | ||
with: | ||
main-branch-name: 'main' | ||
- name: Run Tests | ||
main-branch-name: main | ||
- name: Run Checks | ||
run: pnpm run test:pr --parallel=3 | ||
- name: Stop Nx Agents | ||
if: ${{ always() }} | ||
run: npx nx-cloud stop-all-agents | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
uses: codecov/codecov-action@v4.5.0 | ||
with: | ||
directory: packages | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | ||
preview: | ||
name: Preview | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup Tools | ||
uses: tanstack/config/.github/setup@main | ||
- name: Build Packages | ||
run: pnpm run build:all | ||
- name: Publish Previews | ||
run: pnpx pkg-pr-new publish --pnpm --compact './packages/*' --template './examples/*/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,6 +36,7 @@ stats.html | |
.cache | ||
.idea | ||
.nx/cache | ||
.nx/workspace-data | ||
.pnpm-store | ||
.svelte-kit | ||
.tsup | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
link-workspace-packages=true | ||
prefer-workspace-packages=true | ||
provenance=true |
Oops, something went wrong.