-
Notifications
You must be signed in to change notification settings - Fork 134
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
Express 5 types released - deduplication problem #307
Comments
Hi @RobinTail, if it easy to remove |
Ok. Then I propose making a conceptual change to the following idea:
(it's from Readme) Line 78 in 40e0e75
so that it would be different:
(wording is a subject to collaborate on). That would allow to detach from I will try my best on making a corresponding PR, @eugef |
This sounds to me like a backwards incompatible change - let's not go this way. I am fine with moving |
That would also be a breaking change, @eugef |
But it should not be scary, I presume, making a next major version slightly different. |
Yeah, I can make an alternative implementation using this approach, so you could compare them... |
It would be much less "breaking" change. For many projects BTW, for consistency let's also move |
@RobinTail, thanks for your contribution, |
Good news:
@types/express@5.0.0
released.However, this line leads to multiple versions installed on consumer side:
node-mocks-http/package.json
Line 49 in 40e0e75
Would it be possible somehow to address this?
An approach could be moving
@types/express
topeerDependencies
(and probablydevDependencies
for building purposes). So that consumer would decide which version of@types/express
to use accordingly.I also noticed, that those types are only used to define defaults for
RequestType
. Another approach could be removing defaults.Third option could be defining dependency with
>=
or as*
, which however would lead to v5 by default, that can consequently by corrected byresolution
/overrides
entry on consumer side.What do you think, @eugef ?
The text was updated successfully, but these errors were encountered: