Skip to content

Add debug ^4.1.1 to dependencies #1587

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

artursvonda
Copy link

Adding newer debug version while keeping same node support

Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

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

Why do we care about having debug v3+?

@@ -83,7 +83,7 @@
"array-includes": "^3.0.3",
"array.prototype.flat": "^1.2.1",
"contains-path": "^0.1.0",
"debug": "^2.6.9",
"debug": "^2.6.9 || ^4.1.1",
Copy link
Member

Choose a reason for hiding this comment

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

this doesn't actually keep the same node support; npm install will install debug v4, which means that it will force users to install a top-level v2 and rely on deduping to be able to get back their support. thus, this is a breaking change.

Copy link
Author

Choose a reason for hiding this comment

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

The recommendation by NPM is to enable engine-strict option which will force v2 be installed on older node versions since debug v4 requires node v8+.
I thought this is a nice way to allow newer versions of the dependency while still having solution for older node versions.

Copy link
Member

Choose a reason for hiding this comment

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

That's only something the top-level app can do - meaning, if the consumers of this package have to do any work whatsoever to keep the plugin working, then it's a breaking change, and that includes setting engine-strict to true (which would be a terrible idea, since "engines" is purely advisory, and should never block installs).

What's the point of a newer version tho? What do we get in v4 or v3 that we don't get in v2?

Copy link
Author

Choose a reason for hiding this comment

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

Fair enough.

The reasoning is just keeping up with latest dependencies and allow deduping.

Copy link
Member

Choose a reason for hiding this comment

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

Linting is a dev dep, deduping doesn’t matter; as for keeping up with the latest, that only matters if there’s something that we’re missing out on. Otherwise, it’s just capriciously breaking consumers for no good reason.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.18% when pulling 0448ee7 on artursvonda:upgrade-debug into 4e8960d on benmosher:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.18% when pulling 0448ee7 on artursvonda:upgrade-debug into 4e8960d on benmosher:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.18% when pulling 0448ee7 on artursvonda:upgrade-debug into 4e8960d on benmosher:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.18% when pulling 0448ee7 on artursvonda:upgrade-debug into 4e8960d on benmosher:master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 96.18% when pulling 0448ee7 on artursvonda:upgrade-debug into 4e8960d on benmosher:master.

@ljharb ljharb marked this pull request as draft January 11, 2023 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants