fix: ensure peer dependencies reflect latest breaking changes for pre-1.0 packages #836
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fixes peer dependency constraints for pre-1.0 packages in the monorepo. The previous implementation only used major version ranges (
^0.0.0
for all pre-1.0 packages), which was too permissive and could allow incompatible older versions. This update ensures peer dependencies correctly reflect the most significant version digit for breaking changes, following semantic versioning best practices for pre-1.0 packages.Same PR in core
Related issues
Fixes:
Manual testing steps
yarn constraints
to verify no constraint violations0.4.1
→ generates^0.4.0
peer dependency range0.2.1
→ generates^0.2.0
peer dependency range8.1.1
→ generates^8.0.0
peer dependency range (unchanged)0.0.5
→ generates^0.0.5
peer dependency rangeScreenshots/Recordings
Not applicable - this is a build configuration improvement with no visual changes.
Before
Pre-1.0 packages generated overly permissive
^0.0.0
peer dependency ranges.After
Pre-1.0 packages generate appropriate ranges:
^0.minor.0
for minor-based versions,^0.0.patch
for patch-only versions.Pre-merge author checklist
Pre-merge reviewer checklist