Repository navigation
v2.0.0-rc.1 #709
luskaner
announced in
Announcements
v2.0.0-rc.1
#709
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Note
2.0.0-rc.1 is the first release candidate of the 2.0.0 line. This page lists the changes since v2.0.0-beta.3; the changes of the earlier prereleases are not repeated here. If you are coming from Beta 2, read the Beta 3 release notes first.
What's Changed
Since v2.0.0-beta.3
🎮 General
automatch2.dboruserData.🖥️ Server
🔝 Enhancement: AoE IV masteries and challenges are unlocked by default. The server now serves every challenge definition declared by
challenges.json— including the Crucible masteries — as completed, using the official positional form[progressID, definitionID, completionCount, progress, expiryTime, lastCompletedTime, assignedTime](completionCount1,progress0,expiryTimenull). The loading bug that leftgetChallengeProgressempty is fixed:challenges.jsonis an array asset, not a signed one, so it never reached the challenge model before. Existing profiles are unlocked when they load (document version 2 renames the oldstatusfield and drops the-1expiry, which the client reads as already expired), andupdateProgressBatchednow accepts both the form-encoded and JSON payloads and never reverts a completed challenge. The parser accepts both the current wrapper[result, groups, definitions, signature]and the historical flat array, so the AoE II and AoM resources keep loading.🔝 Enhancement: The "new" badge on rewards clears.
is_newis now persisted per item instance instead of being rejected, which is what the client reports throughupdateItemAttributeswhen the player opens a reward. Rewards the server hands out by default are created already seen, so a fresh profile no longer shows every mastery portrait, monument or sigil with a new badge; the items document moves to version 1 and old profiles are migrated on load. Items whose definition does not declareis_newstill carry no attribute, matching the official inventory.🔝 Enhancement: Battle server fallback priority with warnings. When the battle server executable of a title cannot be found, the battle server manager now walks a priority list instead of giving up: AoE I tries AoE I, then AoE II, then AoE III; AoE III tries AoE II (its usual server), then AoE III, then AoE I. A warning is logged whenever the server used is not the one the title normally runs — AoE I on AoE II or AoE III, and AoE III on its own or AoE I's — because it may not work correctly. AoE II, AoE IV and AoM keep their existing mapping.
🐛 Fix:
getChallengeProgressByProfileIDanswered with the caller's progress. The route was aFIXMEregistered againstgetChallengeProgress; it is now its own handler and answers with the requestedprofile_id(or an empty list when that profile is unknown). AoE IV is the only title that registers it.🐛 Fix: Two narrowing integer conversions flagged by CodeQL are bounded.
matchHistory.GetProfileByPlatformUserIDno longer converts an arbitraryuint64platform id toint64: any id abovemath.MaxInt64wrapped negative and could match an unrelated row, and it now reports not-found, which is howplatform_user_idis stored.communityEventkeeps the event type asint64instead of narrowing it toint, which only held it on 64-bit platforms.🎮 Launcher
launcher-config flush-cachenow reports a failed file logger initialization instead of discarding the error silently, the waysetUpandrevertalready did.Developer changes
🚧 Update: Go directive bumped from
1.27.3to1.27.4in every module and ingo.work; GitHub Actionssetup-gov6 → v7,setup-nodev4 → v7 with Nodelts/*instead of a pinned major, the legacy Windows 7 toolchain to1.27.4-1, and GoReleaser to v2.20.2 (both the action parameter and thetools/scriptsdependency).🚧 Update:
charm.land/lipgloss/v2v2.0.6 → v2.1.1,goreleaser/chglogv0.7.4 → v0.7.5,goreleaser/nfpm/v2v2.48.0 → v2.49.0,golang.org/x/cryptov0.58.0 → v0.59.0,golang.org/x/imagev0.47.0 → v0.48.0,golang.org/x/syncv0.24.0 → v0.25.0,golang.org/x/sysv0.49.0 → v0.50.0,golang.org/x/termv0.47.0 → v0.48.0,golang.org/x/textv0.43.0 → v0.44.0,klauspost/compressv1.20.3 → v1.20.4,modernc.org/libcv1.80.1 → v1.81.2 andmodernc.org/memoryv1.12.1 → v1.13.0.🔝 Enhancement: The generated GoReleaser config is deterministic again:
mergeBuildssorted the merged architecture lists, whose map iteration order madeTestGenerateConfigUniversalMacOSflaky on Linux.🔝 Enhancement: The byte-size parser lives in
common/bytesizeand is shared by the server and the configuration GUI, so the editor can no longer accept a value the server rejects. TheMaxFileSize/MaxTotalSize/Expiryvalidation is oneresolveSizeLimits, with the only remaining difference being thatCustomFilesrequires a positive expiry whileReplaysreads it as keep forever; the expiry error message is now the same in both.🔝 Enhancement: Internal consolidation with no behaviour change: the chat, item and invitation handlers share their bind-and-resolve prefix, the leaderboard response helpers are shared, the embedded battle server ports are validated with
battleconfig, andNumberToInt64/BoolToNumberreplace the copies of the same conversions.🔝 Enhancement: New tests: the challenge progress migration and positional encoding, the item
is_newhandling, a benchmark for a full 1000-row leaderboard page in both orderings, and a shared ephemeral-port helper for the config I/O tests.🐛 Fix: The actionable GoLand inspection findings are resolved: dead code removed (unused
QueryServers,LadderName,ExitCode, thecmdloghelpers nothing calls and their orphaned handle types, the configuration GUI's unused WinUI duplicates,battleconfig's unused TLS and port helpers,session.Version, the write-onlyconfigErrand several unused test helpers), shadowed imports renamed, tautological typed-nil tests deleted, certificate cleanup tests rewritten againstAddCert's real error path, and results that cannot be acted upon now discarded explicitly.go fixran the Go 1.27 modernizers; one generated hunk was wrong and was repaired by hand (tools/scriptshad substitutedos.PathSeparatorwith a literal\, which would have broken Linux).gofmtis clean across the workspace.🐛 Fix: The
wsshandler dropsServerOption.WriteBufferSize(deprecated since gws v1.4.5 and ignored) and the unusedwriteMessagehelper, and makes the discardedSetReadDeadlineresults explicit.🚧 Update:
AGENTS.mdadded with the contract a change must pass before it is considered done (gofmt, build, vet, tests and-race, the modernizers, the cross-GOOSvet and the signed-commit steps),DEVELOPMENT.mdrefreshed for Go 1.27, Node.js and GoReleaser v2.See GitHub differences in v2.0.0-beta.3...v2.0.0-rc.1
Help
Create an issue or look for other related issues.
This discussion was created from the release v2.0.0-rc.1.
All reactions