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

breaking change in minimatch v3.0.5 #153

Closed
ljharb opened this issue Feb 11, 2022 · 5 comments
Closed

breaking change in minimatch v3.0.5 #153

ljharb opened this issue Feb 11, 2022 · 5 comments

Comments

@ljharb
Copy link
Contributor

ljharb commented Feb 11, 2022

https://unpkg.com/browse/minimatch@3.0.5/minimatch.js has an arrow function (and const and spread); https://unpkg.com/browse/minimatch@3.0.4/minimatch.js doesn't.

https://unpkg.com/browse/minimatch@3.0.4/package.json and https://unpkg.com/browse/minimatch@3.0.5/package.json both explicitly declare they work in every node version; i use it in tape, whose contract goes down to node 0.4.

@msieurtoph
Copy link

@ljharb see #152

It is closed, but people are complaining in comments (including me).
I agree : it is a breaking change and it should not be included in a simple patch version. It should have been released as major version.

@ljharb
Copy link
Contributor Author

ljharb commented Feb 11, 2022

It’s also an addition in a patch version, which semver dictates should make it a minor.

@lcoq
Copy link

lcoq commented Feb 11, 2022

I'm struggling with the same issue, so many deeply nested dependencies of some projects are using this package, so we can't have a working build due to this breaking change on minor SEMver version.

@isaacs Please at least remove this patch version which makes no sense.

That is an incredibly old node version. You need to be able to use ()=>{} syntax these days, I'm sorry.

I understand this, but hey, by not respecting the versioning system you use, you are actually punishing people that trusted your work. A bit sad..

@ljharb
Copy link
Contributor Author

ljharb commented Feb 11, 2022

Note that "pin your versions" doesn't solve this for dependents; tape v5.5.1 pins minimatch to v3.0.4, but other things (that don't have the same version compatibility) pull in v3.0.5 (especially on older npm versions), which means that it's going to force every consumer to pin the version.

@isaacs isaacs closed this as completed in 20b4b56 Feb 12, 2022
isaacs pushed a commit that referenced this issue Feb 12, 2022
Fixes #153.

PR-URL: #154
Credit: @ljharb
Close: #154
Reviewed-by: @isaacs
@lcoq
Copy link

lcoq commented Mar 10, 2022

Thank you very much for this fix ❤️

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 a pull request may close this issue.

3 participants