Release as 4.0.0: the rating redesign is a breaking change
What does this PR aim to accomplish?:
Release the pending stable version as 4.0.0 instead of 3.9.0. The rating redesign (#1048) is a breaking change: ratings are computed differently, so every user's rating changes and isn't comparable with the old one, and the yellow tier is now orange.
How does this PR accomplish the above?:
Update.json: the stable3.9.0entry is renamed to4.0.0. It is still the last key, stillPrerelease: false, and keeps its 8 aggregated PRs. Its notes now open with a 重大变更 paragraph about the rating change.XMOJ.user.js@versionandpackage.jsonversion→4.0.0.- The notes string contains
//!ci-no-touch, so UpdateVersion removes the marker and exits instead of bumping to 4.0.1. The JSON stays valid in the meantime, so tests and the site keep working. - After merge, Prerelease publishes
4.0.0fromdev(the guard skips only stable releases), and the release PR #1056 then publishes 4.0.0 as stable. UpdateToRelease on #1056 will see the last entry is already stable and change nothing. - Don't edit this PR's title or body. An
editedevent would run UpdateVersion again and add a 4.0.1 entry.
npm test: 99/99 pass locally.
The leftover 3.9.0 prerelease on GitHub (tag 3.9.0) is untouched. A maintainer can delete it after 4.0.0 ships.
By submitting this pull request, I confirm the following:
- I have read and understood the contributor's guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
- I have commented on my proposed changes within the code.
- I have tested my changes.
- I am willing to help maintain this change if there are issues with it later.
- It is compatible with the GNU General Public License v3.0
- I have squashed any insignificant commits. (
git rebase) - I have checked that another pull request for this purpose does not exist.
- I have considered and confirmed that this submission will be valuable to others.
- I accept that this submission may not be used, and the pull request can be closed at the will of the maintainer.
- I give this submission freely and claim no ownership to its content.
- I have verified that my changes work correctly in both the new UI and the old/classic UI.
- I have read the above and my PR is ready for review. Check this box to confirm
🤖 Generated with Claude Code
https://claude.ai/code/session_01E5dr7XTsCeoamqLSiT9rLp
Summary by Sourcery
Release the rating redesign as stable version 4.0.0 with synchronized version metadata and breaking-change notes.
Enhancements:
- Align the project and userscript versions with the 4.0.0 stable release and document the rating redesign as a breaking change.
Documentation:
- Update release metadata and notes to announce the redesigned, non-comparable rating system and the renamed yellow tier.
Summary by cubic
Releases the rating redesign as stable 4.0.0 in Update.json, with userscript and package versions set to match.
- The stable
3.9.0entry is renamed to4.0.0inUpdate.json, and the release notes lead with the breaking rating change. - The
//!ci-no-touchmarker that blocked the automation from bumping the version has been stripped again by the automation, so the next event may re-bump to4.0.1; the earlier accidental4.0.1bump was already reverted. - The rating redesign is breaking: ratings now come from problem-solving ability rather than AC rate, so they aren't comparable with old scores, and the yellow tier is now orange.
- The leftover
3.9.0prerelease tag on GitHub is left untouched.