fix(solid): cap solid-js peer range at ^1 #203
main fromrefs/pull/203/head·merged by KevinVandy 🎯 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
peerDependenciesranges and a changeset change; no code changes.
Summary by CodeRabbit#
- Compatibility
- Updated the supported SolidJS peer dependency range for the hotkeys packages to Solid 1.x.
- 1
No actionable comments were generated in the recent review.
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: TanStack/hotkeys
- Branch: main
- File: .coderabbit.yaml
- Commit: 41f06c5
- Layers: Repository YAML
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7ddb7e01-c27e-4d91-b87b-e1b9a8c568f3
Commits-
Reviewing files that changed from the base of the PR and between 41f06c51a38fac64409a3d4932cc8958f558ae57 and be81de5ab867303377f790d26766976570cfd779.
Files selected for processing: 3-
.changeset/solid-js-peer-cap.mdpackages/solid-hotkeys-devtools/package.jsonpackages/solid-hotkeys/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
-
Both Solid hotkeys packages change their
solid-jspeer dependency range from>=1.7.0to^1.7.0. A changeset requests patch releases for both packages and describes the version cap.Changes: Solid peer dependency range
Priority:Layer / File(s) Summary Cap Solid peer dependency ranges
.changeset/solid-js-peer-cap.md,packages/solid-hotkeys-devtools/package.json,packages/solid-hotkeys/package.jsonBoth package manifests set the solid-jspeer range to^1.7.0. The changeset requests patch releases for both packages and describes the cap. NormalEstimated code review effort: 1 (Trivial) | ~4 minutes
Change: Bug fix
Suggested reviewers:
peyton-spencer
Merge Risk:
Minimal · up tobe81d-
The dependency cap is correctly applied and the release metadata is complete; the change is mergeable.
Pre-merge checks:
5-
Check name Status Explanation Title check The title clearly and concisely describes the main change: limiting the solid-js peer dependency range to ^1. Description check The description clearly explains the motivation and implementation. It includes the Changes and Checklist sections and states that a changeset was added. The Release Impact section and two checklist i… Docstring Coverage 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. Documentat… Linked Issues check Check skipped because no linked issues were found for this pull request. Out of Scope Changes check Check skipped because no linked issues were found for this pull request. Full details: Description check
-
Explanation
The description clearly explains the motivation and implementation. It includes the Changes and Checklist sections and states that a changeset was added. The Release Impact section and two checklist items from the template are missing, but the description is otherwise mostly complete.
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. (3 skipped: 3 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.
A rabbit checks the range with care,
Solid one is listed there.
Two packages match the line,
Patch notes mark the release time.
Hop, the changeset joins the queue. Comment `@coderabbitai help` to get the list of available commands.-
KevinVandy approved these changes
KevinVandy merged this7f99e69
KevinVandy closed this
🎉 This PR has been released!
Thank you for your contribution!
Sign in to join this conversation.
🦋 Changeset detected#
Latest commit: be81de5ab867303377f790d26766976570cfd779
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 2 packages
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