Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{ "repo": "TanStack/pacer" }
],
"commit": false,
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"fixed": [],
"linked": [],
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/shaggy-clubs-drive.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@tanstack/react-pacer': minor
'@tanstack/solid-pacer': minor
'@tanstack/pacer': minor
---

feat: Initial release
20 changes: 20 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$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", "node"]
}
4 changes: 2 additions & 2 deletions .github/workflows/autofix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Fix formatting
run: pnpm prettier:write
# - name: Regenerate docs
# run: pnpm docs:generate
- name: Apply fixes
uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c
uses: autofix-ci/action@551dded8c6cc8a1054039c8bc0b8b48c51dfc6ef
with:
commit-message: 'ci: apply automated fixes'
51 changes: 0 additions & 51 deletions .github/workflows/ci.yml

This file was deleted.

15 changes: 5 additions & 10 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: pr
name: PR

on:
pull_request:
Expand All @@ -23,28 +23,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Start Nx Agents
run: npx nx-cloud start-ci-run --distribute-on=".nx/workflows/dynamic-changesets.yaml"
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Get base and head commits for `nx affected`
uses: nrwl/nx-set-shas@v4
uses: nrwl/nx-set-shas@v4.3.0
with:
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
run: pnpm run test:pr
preview:
name: Preview
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Tools
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Release

on:
push:
branches: [main, alpha, beta, rc]

concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true

env:
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}

permissions:
contents: write
id-token: write
pull-requests: write

jobs:
release:
name: Release
if: github.repository_owner == 'TanStack'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Run Tests
run: pnpm run test:ci
- name: Run Changesets (version or publish)
uses: changesets/action@v1.4.9
with:
version: pnpm run changeset:version
publish: pnpm run changeset:publish
commit: 'ci: Version Packages'
title: 'ci: Version Packages'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion examples/react/debounce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/throttle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useAsyncDebouncer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useAsyncQueuer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useAsyncThrottler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useDebouncedState/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useDebouncedValue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useDebouncer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useQueue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useQueueState/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useRateLimiter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useThrottledState/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useThrottledValue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/react/useThrottler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/react-pacer": "^0.1.0",
"@tanstack/react-pacer": "^0.0.1",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/createDebouncedSignal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/solid-pacer": "^0.1.0",
"@tanstack/solid-pacer": "^0.0.1",
"solid-js": "^1.9.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/createDebouncer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/solid-pacer": "^0.1.0",
"@tanstack/solid-pacer": "^0.0.1",
"solid-js": "^1.9.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/debounce/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/solid-pacer": "^0.1.0",
"@tanstack/solid-pacer": "^0.0.1",
"solid-js": "^1.9.5"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/solid/throttle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"test:types": "tsc"
},
"dependencies": {
"@tanstack/solid-pacer": "^0.1.0",
"@tanstack/solid-pacer": "^0.0.1",
"solid-js": "^1.9.5"
},
"devDependencies": {
Expand Down
Loading
Loading