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
[webpack-hot-middleware] Separating client and middleware options into 2 separate types #43625
[webpack-hot-middleware] Separating client and middleware options into 2 separate types #43625
Conversation
@saboya Thank you for submitting this PR!
If no reviewer appears after a week, a DefinitelyTyped maintainer will review the PR instead. |
After 5 days, no one has reviewed the PR |
@saboya, should this have been a new major version? |
@johanbaaij Well the issue is that they keep in sync at least minor version between the package and its types. Which means they can only do patch releases on types. Still that's bit boring : "@types/webpack-hot-middleware": "^2.25.0" // Works since 4 months And implementing breaking type changes in 2.25.1 just break all projects that were importing options through : import { Options as WebpackHotMiddlewareOptions } from 'webpack-hot-middleware' |
@johanbaaij and @kevinmarrec: The problem is that passing client options to the middleware never worked anyway. So I'd rather let applications "break" to let developers know that what they're doing is... well, doing nothing. |
@saboya Client options weren't the problem here. You changed main middleware options interface name, breaking the import even for people that never cared about client thing. |
But it would break for anyone that did care about the client thing. And it wouldn't be an issue anyone unless you updated the types / didn't pin the version. I see your point here about maintaining compatibility, and you can make a PR about it if you want. I think we can agree to disagree on this one. |
I'm totally fine with the changes, my only concern was having a "breaking" change on a patch version release. But as the types version are tied to the package itself version, it couldn't have been other way than patch version, so according this, there wasn't just ideal solution. Also worth to mention that a "breaking" type is nothing compared to a "breaking" package feature. The types are all good now and let's stick with it. |
I has error when deploy in Jenkins. Useing Nuxt v2.x. |
@oneiho-safie You need to somehow update accordingly your dependencies against Jenkins |
@kevinmarrec thx! I fix my package.json |
Please fill in this template.
npm test
.)npm run lint package-name
(ortsc
if notslint.json
is present).Select one of these and delete the others:
If changing an existing definition:
tslint.json
containing{ "extends": "dtslint/dt.json" }
. If for reason the any rule need to be disabled, disable it for that line using// tslint:disable-next-line [ruleName]
and not for whole package so that the need for disabling can be reviewed.