cosmiconfig icon indicating copy to clipboard operation
cosmiconfig copied to clipboard

Prepare v8

Open davidtheclark opened this issue 2 years ago • 6 comments

I'll leave this open for a day to see if any watchers have concerns.

davidtheclark avatar May 27 '22 14:05 davidtheclark

Might want to drop node 12 as well because it is [https://github.com/nodejs/Release](no longer supported). Also should add the upcoming LTS v18 to the test matrix.

chrisblossom avatar May 27 '22 16:05 chrisblossom

I don't want to drop support for Node 12 because at least one key user, Stylelint, still supports Node 12 and we don't have a reason of our own to drop support.

We have v18 in the test matrix -- did you have something else in mind? I'm open to whatever.

davidtheclark avatar May 27 '22 17:05 davidtheclark

The js-yaml package doesn't strictly follow the YAML 1.2 spec. It supports some YAML 1.1 features.

https://github.com/unifiedjs/unified-engine/issues/65


Should that be considered? @davidtheclark

JounQin avatar May 28 '22 02:05 JounQin

I don't want to drop support for Node 12 because at least one key user, Stylelint, still supports Node 12 and we don't have a reason of our own to drop support.

Because this is a breaking change with the new YAML parser- stylelint would need to bump to a new major to use it, right? I assume stylelint would drop unsupported node versions at the same time as a version bump.

We have v18 in the test matrix -- did you have something else in mind? I'm open to whatever.

Sorry, very limited cell phone service for the week so I missed that v18 was added.

If you’d like, I could work on updating dependencies before the version bump if that would be helpful. I would need a week or so though to find time.

chrisblossom avatar May 28 '22 03:05 chrisblossom

The Stylelint's current test suite passes the next version 8 of cosmiconfig (this PR's branch). 🎉 See https://github.com/stylelint/stylelint/pull/6120


I don't want to drop support for Node 12 because at least one key user, Stylelint, still supports Node 12 and we don't have a reason of our own to drop support.

Because this is a breaking change with the new YAML parser- stylelint would need to bump to a new major to use it, right? I assume stylelint would drop unsupported node versions at the same time as a version bump.

I think it's possible that Stylelint's next major version will drop the Node 12 support (due to EOL), but the Stylelint team doesn't discuss anything about it yet.

ybiquitous avatar May 29 '22 00:05 ybiquitous

Asking Stylelint about both yaml/js-yaml and Node version support over in https://github.com/stylelint/stylelint/issues/6101#issuecomment-1140465191.

davidtheclark avatar May 29 '22 14:05 davidtheclark

Hi @d-fischer, the Stylelint team has been going forward to the next major v15.0.0.

It would be nice to release Stylelint v15, including a dependency on Cosmiconfig v8. I will be happy to help if there is anything I can do.

ybiquitous avatar Nov 18 '22 14:11 ybiquitous

My plan is to wait a few more days (probably until Sunday) and then merge #282 (if nobody sends in a negative review) and #283 (if there are proper tests by then). I'm not 100% sure about edge cases that could change with ESM support, so I'd rather have that in a major version than a minor, and I also don't want to bump major too often. But if it takes too long to finish the PR with tests, I can surely go on with the release.

d-fischer avatar Nov 18 '22 14:11 d-fischer

Thanks, I understand the situation and agree with your plan. I will review the PRs.

ybiquitous avatar Nov 18 '22 14:11 ybiquitous