Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make @types/express a peerDependency #380

Merged
merged 3 commits into from
Dec 12, 2024
Merged

Conversation

daogrady
Copy link
Contributor

@daogrady daogrady commented Dec 12, 2024

Fixes #375

This allows users to freely choose between @types/express v4 and v5. This is in line with how we handle things in @sap/cds. I have verified that all uses of the express package within our type declarations work in v5 as well.
Starting (again) with npm7, peerDependencies are automatically installed if they are not resolvable otherwise, so this should not effect our JS users who have no explicit dependency on @types/express.

@daogrady daogrady requested a review from chgeo December 12, 2024 12:25
@daogrady daogrady enabled auto-merge (squash) December 12, 2024 12:52
@daogrady daogrady merged commit 04a89c3 into main Dec 12, 2024
16 checks passed
@daogrady daogrady deleted the chore/express-peerDependency branch December 12, 2024 12:53
"dependencies": {
"@types/express": "^4.17.21"
"@sap/cds": "^8.0.0",
"@types/express": ">=5"
Copy link
Contributor

Choose a reason for hiding this comment

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

@daogrady
Just curious: why did you change >=4 to >=5? Now the changelog entry is not correct too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right, that's obviously incorrect, thanks for pointing it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] @types/express should be peerDependency instead of hard dependency
3 participants