Release as 4.0.0: the rating redesign is a breaking change

Merged
BO
2mo ago
+4-4

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 stable 3.9.0 entry is renamed to 4.0.0. It is still the last key, still Prerelease: false, and keeps its 8 aggregated PRs. Its notes now open with a 重大变更 paragraph about the rating change.
  • XMOJ.user.js @version and package.json version → 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.0 from dev (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 edited event 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:

  1. 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.
  2. I have commented on my proposed changes within the code.
  3. I have tested my changes.
  4. I am willing to help maintain this change if there are issues with it later.
  5. It is compatible with the GNU General Public License v3.0
  6. I have squashed any insignificant commits. (git rebase)
  7. I have checked that another pull request for this purpose does not exist.
  8. I have considered and confirmed that this submission will be valuable to others.
  9. I accept that this submission may not be used, and the pull request can be closed at the will of the maintainer.
  10. I give this submission freely and claim no ownership to its content.
  11. 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.0 entry is renamed to 4.0.0 in Update.json, and the release notes lead with the breaking rating change.
  • The //!ci-no-touch marker that blocked the automation from bumping the version has been stripped again by the automation, so the next event may re-bump to 4.0.1; the earlier accidental 4.0.1 bump 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.0 prerelease tag on GitHub is left untouched.