Skip to content
Source
Sign inSign up
TanStack/pacer

chore(preact-pacer): Support Preact 11 #286

MergedKevinVandymerged 3 commits intomain fromrefs/pull/286/headmerged by KevinVandy

KevinVandycommented

The preact peer ranges already allow 11 (>=10.0.0). The adapter's tests, types and build pass against Preact 11 without code changes.

  • The preact dev dependency in the Preact packages and examples goes from ^10 to ^11.0.1, so CI now builds and tests against Preact 11. The peer ranges still allow Preact 10.
  • @tanstack/preact-store goes to ^0.13.5, with a patch changeset. 0.13.4 declared preact: ^10.0.0, so npm rejected Preact 11 even though this package's own peer range allows it (TanStack/table#6616). pnpm-workspace.yaml exempts 0.13.5 from the 24-hour release-age gate because it was published yesterday.
  • The Preact examples import TargetedEvent from preact instead of JSX.TargetedEvent. Preact 11 removed it from the JSX namespace, and both 10 and 11 export it from preact.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Compatibility
    • Updated the Preact integration and examples to support Preact 11.
  • Chores
    • Aligned event typing across Preact examples. Input and slider behavior remains unchanged.
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 Changeset detected

      Latest commit: 57fc39add3008822a96eb2e43c185766f22cfb30

      The changes in this PR will be included in the next version bump.

      This PR includes changesets to release 1 package
      NameType
      @tanstack/preact-pacerPatch

      Not sure what this means? Click here to learn what changesets are.

      Click here if you're a maintainer who wants to add another changeset to this PR

    2. coderabbitai[bot](GitHub profile, opens in a new tab)commented
      Review in Change Stack →Review in Change Stack →

      No actionable comments were generated in the recent review. 🎉

      ℹ️ Recent review info
      ⚙️ Run configuration
      • Configuration used: Repository: TanStack/pacer/.coderabbit.yaml
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: add52423-f4a5-459a-9516-af783eea8645


      📥 Commits

      Reviewing files that changed from the base of the PR and between dcb12a38d15f9b68e489cac46fcda05499e209e8 and 57fc39add3008822a96eb2e43c185766f22cfb30.



      ⛔ Files ignored due to path filters (1)
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml


      📒 Files selected for processing (39)
      • examples/preact/asyncBatch/package.json
      • examples/preact/asyncDebounce/package.json
      • examples/preact/asyncRateLimit/package.json
      • examples/preact/asyncRetry/package.json
      • examples/preact/asyncThrottle/package.json
      • examples/preact/batch/package.json
      • examples/preact/debounce/package.json
      • examples/preact/queue/package.json
      • examples/preact/rateLimit/package.json
      • examples/preact/throttle/package.json
      • examples/preact/useAsyncBatchedCallback/package.json
      • examples/preact/useAsyncBatcher/package.json
      • examples/preact/useAsyncDebouncedCallback/package.json
      • examples/preact/useAsyncDebouncer/package.json
      • examples/preact/useAsyncQueuedState/package.json
      • examples/preact/useAsyncQueuer/package.json
      • examples/preact/useAsyncRateLimiter/package.json
      • examples/preact/useAsyncThrottledCallback/package.json
      • examples/preact/useAsyncThrottler/package.json
      • examples/preact/useBatchedCallback/package.json
      • examples/preact/useBatcher/package.json
      • examples/preact/useDebouncedCallback/package.json
      • examples/preact/useDebouncedState/package.json
      • examples/preact/useDebouncedValue/package.json
      • examples/preact/useDebouncer/package.json
      • examples/preact/useQueuedState/package.json
      • examples/preact/useQueuedValue/package.json
      • examples/preact/useQueuer/package.json
      • examples/preact/useRateLimitedCallback/package.json
      • examples/preact/useRateLimitedState/package.json
      • examples/preact/useRateLimitedValue/package.json
      • examples/preact/useRateLimiter/package.json
      • examples/preact/useThrottledCallback/package.json
      • examples/preact/useThrottledState/package.json
      • examples/preact/useThrottledValue/package.json
      • examples/preact/useThrottler/package.json
      • examples/preact/util-comparison/package.json
      • packages/preact-pacer-devtools/package.json
      • packages/preact-pacer/package.json


      Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review.




      📝 Walkthrough
      📝 Walkthrough

      Walkthrough

      The Preact examples now import TargetedEvent directly from preact and declare Preact ^11.0.1. The Preact package manifests, changeset, and workspace release-age exclusion are also updated.

      Changes

      Preact compatibility updates

      Layer / File(s)Summary
      Update Preact event handler types
      examples/preact/*/src/index.tsx
      The examples replace JSX.TargetedEvent parameter types with the directly imported TargetedEvent type. Handler behavior is unchanged.
      Set Preact 11 in examples
      examples/preact/*/package.json
      The example package manifests update their Preact dependency range from ^10.29.8 to ^11.0.1.
      Update Preact package and release settings
      packages/preact-pacer/package.json, packages/preact-pacer-devtools/package.json, .changeset/preact-pacer-preact-store-0-13-5.md, pnpm-workspace.yaml
      preact-pacer updates its @tanstack/preact-store dependency to ^0.13.5 and its development Preact version to ^11.0.1. The devtools package updates its development Preact version to ^11.0.1. The changeset records the store version and its stated Preact 11 peer-range condition. The workspace excludes that store release from the minimum release-age restriction.

      Priority: ➖ Normal

      Estimated code review effort: 2 (Simple) | ~10 minutes

      Change: Feature



      Merge Risk: ⚪ Minimal · up to 57fc3

      The changed examples and adapter resolve against Preact 11, with no concrete compatibility mismatch found in the reviewed diff.

      Pre-merge checks | Passed 4 | Failed 1

      ❌ Failed checks (1 warning)

      Check nameStatusExplanationResolution
      Docstring CoverageWarningDocstring coverage is 3.03% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 99 functions across 25 files. (39 skipped:…Write docstrings for the functions missing them to satisfy the coverage threshold.
      ✅ Passed checks (4 passed)
      Check nameStatusExplanation
      Linked Issues checkPassedCheck skipped because no linked issues were found for this pull request.
      Out of Scope Changes checkPassedCheck skipped because no linked issues were found for this pull request.
      Title checkPassedThe title clearly and concisely identifies the main change: adding Preact 11 support to preact-pacer.
      Description checkPassedThe description clearly explains the Preact 11 dependency updates, the preact-store compatibility fix, the type import changes, and test status. It does not use the template headings or checklist form…

      Full details: Docstring Coverage

      Explanation

      Docstring coverage is 3.03% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 99 functions across 25 files. (39 skipped: 39 unsupported.)


      • Fix all pre-merge checks with AI
      ✨ Finishing Touches
      🧪 Generate unit tests (beta)
      • Commit to this branch
      • Create a new PR



      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

      ❤️ Share

      Comment `@coderabbitai help` to get the list of available commands.
    3. github-actions[bot](GitHub profile, opens in a new tab)commented

      🚀 Changeset Version Preview

      1 package(s) bumped directly, 0 bumped as dependents.

      🟩 Patch bumps

      PackageVersionReason
      @tanstack/preact-pacer0.24.1 → 0.24.2Changeset
    4. View your CI Pipeline Execution ↗ for commit 2586f47aa599916b90411adc3a796347ee0789d2

      CommandStatusDurationResult
      nx run-many --targets=build --exclude=examples/**✅ Succeeded1sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-10 03:09:47 UTC

    5. nx-cloud[bot](GitHub profile, opens in a new tab)commented

      View your CI Pipeline Execution ↗ for commit 57fc39add3008822a96eb2e43c185766f22cfb30

      CommandStatusDurationResult
      nx affected --target=test:e2e --parallel=2 --ou...✅ Succeeded21m 11sView ↗
      nx affected --targets=test:e2e:types,test:e2e:l...✅ Succeeded10m 44sView ↗
      nx run-many --targets=build --exclude=examples/**✅ Succeeded20sView ↗

      ☁️ Nx Cloud last updated this comment at 2026-10-10 04:00:25 UTC

    6. pkg-pr-new[bot](GitHub profile, opens in a new tab)commented
      More templates

      @tanstack/alpine-pacer

      npm i https://pkg.pr.new/@tanstack/alpine-pacer@286

      @tanstack/angular-pacer

      npm i https://pkg.pr.new/@tanstack/angular-pacer@286

      @tanstack/angular-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/angular-pacer-devtools@286

      @tanstack/ember-pacer

      npm i https://pkg.pr.new/@tanstack/ember-pacer@286

      @tanstack/lit-pacer

      npm i https://pkg.pr.new/@tanstack/lit-pacer@286

      @tanstack/octane-pacer

      npm i https://pkg.pr.new/@tanstack/octane-pacer@286

      @tanstack/pacer

      npm i https://pkg.pr.new/@tanstack/pacer@286

      @tanstack/pacer-devtools

      npm i https://pkg.pr.new/@tanstack/pacer-devtools@286

      @tanstack/pacer-lite

      npm i https://pkg.pr.new/@tanstack/pacer-lite@286

      @tanstack/preact-pacer

      npm i https://pkg.pr.new/@tanstack/preact-pacer@286

      @tanstack/preact-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/preact-pacer-devtools@286

      @tanstack/react-pacer

      npm i https://pkg.pr.new/@tanstack/react-pacer@286

      @tanstack/react-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/react-pacer-devtools@286

      @tanstack/solid-pacer

      npm i https://pkg.pr.new/@tanstack/solid-pacer@286

      @tanstack/solid-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/solid-pacer-devtools@286

      @tanstack/svelte-pacer

      npm i https://pkg.pr.new/@tanstack/svelte-pacer@286

      @tanstack/svelte-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/svelte-pacer-devtools@286

      @tanstack/vue-pacer

      npm i https://pkg.pr.new/@tanstack/vue-pacer@286

      @tanstack/vue-pacer-devtools

      npm i https://pkg.pr.new/@tanstack/vue-pacer-devtools@286

      commit: 57fc39a

    7. KevinVandy changed the title

    8. socket-security[bot](GitHub profile, opens in a new tab)commented

      Review the following changes in direct dependencies. Learn more about Socket for GitHub.

      Diff Package Supply Chain
      Security
      Vulnerability Quality Maintenance License
      Updated@​tanstack/​preact-store@​0.13.4 ⏵ 0.13.589 +51006995 +1100
      Addedpreact@​11.0.110010010096100

      View full report

    9. KevinVandy merged thise8f82a3

    10. KevinVandy closed this

Sign in to join this conversation.