Skip to content
Merged
Changes from 1 commit
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
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@
"*": "prettier --write --ignore-unknown"
},
"dependencies": {
"@rc-component/select": "~1.2.0",
"@rc-component/tree": "~1.0.1",
"@rc-component/util": "^1.3.0",
"@rc-component/select": "~1.3.0",
"@rc-component/tree": "~1.1.0",
"@rc-component/util": "^1.4.0",
Comment on lines +46 to +48

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There's an inconsistency in the version range specifiers used for dependencies. @rc-component/select and @rc-component/tree use ~ (tilde), which restricts updates to patch releases, while @rc-component/util uses ^ (caret), allowing minor version updates.

For consistency and to fully benefit from semantic versioning, it's recommended to use ^ for all dependencies. This ensures that you receive non-breaking feature updates and bug fixes automatically.

If pinning to specific minor versions for certain packages is intentional due to stability concerns, consider adding a comment to package.json to document the reason.

Suggested change
"@rc-component/select": "~1.3.0",
"@rc-component/tree": "~1.1.0",
"@rc-component/util": "^1.4.0",
"@rc-component/select": "^1.3.0",
"@rc-component/tree": "^1.1.0",
"@rc-component/util": "^1.4.0",

"clsx": "^2.1.1"
},
"devDependencies": {
Expand Down
Loading