Keep only major.minor in Processor#version - #2109
Conversation
|
We haven’t started I can keep your PR until we will start |
984730e to
504e8f1
Compare
|
Rebased onto main and resolved the conflict — kept |
7062542 to
fd22449
Compare
5a3314d to
a9251e3
Compare
a9251e3 to
4274f3c
Compare
4274f3c to
cb4d956
Compare
Hardcoding the full patch version forces a manual lib/processor.js edit on every patch release. Only major.minor is ever consumed (lazy-result's plugin compatibility warning), so store just that. The test/version.js guard still catches drift against package.json on minor/major bumps. Fixes postcss#2101
cb4d956 to
5e83368
Compare
main released 8.5.28; kept the major.minor value this PR introduces.
|
Merged main in — this had drifted into a conflict, so it wasn't getting CI at all. The conflict was just the version line: main is on 8.5.28 now, and this PR replaces that with
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (5)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthrough
ChangesProcessor version format
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: ⚪ Minimal · up to Processor.version now reports major.minor rather than a patch-specific version, with its validation, tests, and documentation aligned. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5 files. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
lbesecker195
left a comment
There was a problem hiding this comment.
Removes the manual patch-version sync that had already drifted (8.5.28 vs the released tag), and the documented usage of version only ever splits on the major. Tests updated to match. LGTM.
Fixes #2101
Processor#versionnow holds onlymajor.minor('8.5'), so patch releases no longer require the manuallib/processor.jssync (the repo is currently on the 8.5.16 tag while the file said8.5.15— exactly the chore this removes).Details:
lib/lazy-result.js, already compares justsplit('.')[0]/[1], so it works unchanged with a two-segment version.test/version.jsstill guards against drift: it now comparesProcessor#versionagainstpackage.json'smajor.minor, so a minor/major bump without updatinglib/processor.jsstill fails CI, while patch releases no longer trip it.test/processor.test.ts,test/postcss.test.ts) to/^\d+\.\d+$/— they fail on the previous three-segment value and pass now — and theProcessor#versionJSDoc.All checks pass locally: 652/652 unit tests, lint, types, version guard.
Summary by CodeRabbit
major.minorformat.