Skip to content
Source
Sign inSign up
TanStack/devtools

fix(solid): cap solid-js peer range at ^1 #557

Mergedryansolid(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/557/headmerged by AlemTuzlak View on GitHub

🎯 Changes

The Solid packages here declare an open-ended solid-js peer (>=1.x). Solid 2.0.0 is due shortly. Once it's tagged latest, that range will accept it, so npm install will pair these Solid 1 adapters with Solid 2 without any peer warning, and they will fail at build or run time: Solid 2 removes solid-js/store, createComputed, mergeProps/splitProps, onMount, batch and more.

This PR changes each range from >=X to ^X, keeping the same lower bound, and adds a patch changeset so the cap actually ships. Solid 2 support can then come as a new adapter major on a pre-release branch, the way @tanstack/solid-router 2.x and @tanstack/solid-query 6.x did it.

Prereleases (2.0.0-rc.*) never matched >=1.x, which is why nobody has run into this yet.

✅ Checklist

  • Only peerDependencies ranges and a changeset change; no code changes.

Devtools specifics

@tanstack/devtools and @tanstack/devtools-ui list solid-js both as a dependency and as a peer. The peer stays, now capped at ^1, because it keeps the shell on the app's Solid instance: the shell calls each plugin's render inside its own effect, @tanstack/solid-devtools answers with a Portal built from the app's solid-js, and @tanstack/devtools-a11y uses devtools-ui components with its own Solid store and contexts. All five Solid-dependent devtools packages (devtools, devtools-ui, devtools-utils, devtools-a11y, solid-devtools) are capped the same way until they get a Solid 2 entry.

Summary by CodeRabbit

  • Compatibility
    • Solid DevTools packages now specify compatibility with Solid 1.x versions starting at 1.9.7. Solid 2.x is no longer included in the supported version range.
    • This clarifies which Solid versions are supported when installing or updating the packages.
    1. changeset-bot[bot](GitHub profile, opens in a new tab)commented

      🦋 Changeset detected

      Latest commit: 17095b79757f6965a8781fa4ae185aa56967c55e

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

      This PR includes changesets to release 14 packages
      NameType
      @tanstack/devtoolsPatch
      @tanstack/devtools-uiPatch
      @tanstack/devtools-a11yPatch
      @tanstack/devtools-utilsPatch
      @tanstack/solid-devtoolsPatch
      @tanstack/angular-devtoolsPatch
      @tanstack/preact-devtoolsPatch
      @tanstack/react-devtoolsPatch
      @tanstack/svelte-devtoolsPatch
      @tanstack/vue-devtoolsPatch
      @tanstack/devtools-example-angular-a11y-devtoolsPatch
      @tanstack/devtools-example-angular-basicPatch
      @tanstack/devtools-example-angular-panelPatch
      @tanstack/devtools-example-angular-with-devtoolsPatch

      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 →

      Important

      Review skipped

      Review was skipped due to path filters

      :no_entry: Files ignored due to path filters: 1
      • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

      CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

      Run configuration

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • 🔍 Trigger review

      No actionable comments were generated in the recent review.

      Recent review info
      Run configuration
      Commits

      Reviewing files that changed from the base of the PR and between 6fbe63f3cb6761b196e112baf81adfd8f2dbc66a and dba6f5b78cc85c38b847e2d7872beb4798d89bd8.

      Files selected for processing: 6
      • .changeset/solid-js-peer-cap.md
      • packages/devtools-a11y/package.json
      • packages/devtools-ui/package.json
      • packages/devtools-utils/package.json
      • packages/devtools/package.json
      • packages/solid-devtools/package.json

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

      Walkthrough

      Five packages now declare a solid-js peer range of ^1.9.7 instead of >=1.9.7. A changeset marks the packages for patch releases and states that they target Solid 1.

      Changes: Solid.js peer range

      Layer / File(s)Summary
      Peer range and patch release
      packages/devtools-a11y/package.json, packages/devtools-ui/package.json, packages/devtools-utils/package.json, packages/devtools/package.json, packages/solid-devtools/package.json, .changeset/solid-js-peer-cap.md
      The five package manifests narrow the solid-js peer range to ^1.9.7. The changeset marks all five packages for patch releases and describes their Solid 1 compatibility.
      Priority: Normal

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

      Change: Bug fix

      Suggested reviewers: alemtuzlak

      Merge Risk: Minimal · previous review dba6f

      No actionable merge-blocking risk remains in this dependency-range-only change.

      Pre-merge checks: Passed 5
      Check nameStatusExplanation
      Description checkPassedThe description clearly explains the peer dependency changes, the Solid 2 compatibility risk, the affected packages, and the changeset. It includes the Changes section and a checklist, but it omits se…
      Title checkPassedThe title is concise and accurately describes the main change: capping the solid-js peer range at ^1.
      Docstring CoveragePassedNo eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
      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.
      Full details: Description check

      Explanation

      The description clearly explains the peer dependency changes, the Solid 2 compatibility risk, the affected packages, and the changeset. It includes the Changes section and a checklist, but it omits several template checklist items and the Release Impact section.

      Full details: Docstring Coverage

      Explanation

      No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (6 skipped: 6 unsupported.)

      Finishing Touches
      🧪 Generate unit tests (beta)
      • 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. AlemTuzlak approved these changes

    4. AlemTuzlak merged thisf4ca00c

    5. AlemTuzlak closed this

Sign in to join this conversation.