tourney changelog
Every tourney release, newest first.
Versions
0.5.0
4 addedAdded
@haruhimemoe/tourney/api, a new entry point with the schemas of tourney.haruhime.moe's public API v1, shared by its server and its clients. It needs no new peers. Every schema has a type to go with it (ApiMatchforApiMatchSchema).- Read answers:
ApiLineageResponseSchema,ApiEditionResponseSchema,ApiRoundsResponseSchema,ApiTeamsPageSchema,ApiBracketResponseSchema,ApiMatchesPageSchema,ApiMatchResponseSchema,ApiStandingsResponseSchema,ApiPlacementsResponseSchemaandApiMeResponseSchema. They are built fromApiLineageSchema,ApiEditionSummarySchema,ApiEditionSchema,ApiQuestionSchema,ApiRoundSchema,ApiTeamSchema(with a status fromTEAM_STATUSES, and usernames),ApiMatchSchema(a match without its staff ids, reschedules and notes) andApiStandingSchema. - Write bodies, strict, each typed as what a caller sends (defaults optional):
ApiRegistrationInputSchema,ApiMatchPatchSchemawithApiStaffChangeSchema(slots fromAPI_SLOT_KINDS),ApiResultInputSchema,ApiFillInputSchemaandApiAnnouncementInputSchema. Their answers:ApiRegistrationResponseSchema,ApiMatchUpdateResponseSchema,ApiResultResponseSchema,ApiFillResponseSchemaandApiAnnouncementResponseSchema, built fromApiRegistrationSchema,ApiMatchSlotsSchema,ApiFillSchemaandApiAnnouncementSchema. ApiErrorSchema(the error body),apiPageSchema(pages of{ items, next }),API_PAGE_LIMIT(1 to 100, default 50) andAPI_KEY_PREFIX(htr_).
0.4.0
2 added, 1 changed, 1 fixedAdded
- Roster rules:
RosterRulesSchema(extendable) withlockAt,maxChangesandapprover(one ofROSTER_APPROVERS:captainoradmin), andDEFAULT_ROSTER_RULES(frozen: no lock, then one change approved by an admin).checkRosterChangesays whether a change counts against the limit and who approves it: free and up to the captain before the lock, counted and up to the approver from the lock on,limitonce the changes are used. forfeitWithdrawn: forfeits every ready match a withdrawn entrant is in to the other side, in play order, including the matches those forfeits fill (a losers bracket drop, a grand final reset). A match still waiting for its other side is forfeited by a later call, once that side is known.
Changed
reviewRegistrationmoves a waitlisted registration to pending, for when a spot frees up.
Fixed
checkPickBanstook the tiebreaker only next to the tied score before it, so the final score of a match that went to the tiebreaker (4-3 in a best of 7) was refused. It now takes the tied score (3-3) or the final one after it (4-3 or 3-4), and no other.
- Roster rules:
0.3.0
4 addedAdded
@haruhimemoe/tourney/lan, a new entry point for LAN events. It needs no new peers.allocate: seats active signups by kind priority, then submit time, then id, up to a capacity, waitlists the rest, seats companions after every signup, and gives out rooms from an inventory of room types (roomsUsed,roomShort).seatingOrderandroomGroups(mutual roommate pairs on 2-bed rooms, companions, empty beds) are exported on their own.- Roommate pair codes:
pairCodefrom random bytes,normalizePairCodefor what people type (any case, whitespace, and hyphens or the Unicode dashes phones autocorrect them to: U+2010 to U+2015 and U+2212),PairCodeSchema,PAIR_CODE_ALPHABET(no 0, O, 1 or I) andPAIR_CODE_LENGTH. LanRegistrationSchema(extendable),LAN_STATUSES,ACTIVE_LAN_STATUSESandRoomStockSchema;deriveAttendeeKindandATTENDEE_KINDS(staff, player or attendee from tournament registrations);roomShares, a room price split into whole-unit shares.
0.2.1
2 changedChanged
- The
@haruhimemoe/osupeer range takes 0.6 and 0.7 as well as 0.5. - CI runs CodeQL and a gitleaks scan of the full git history, and Dependabot covers dependencies and pinned actions. Dependencies are on their latest versions.
- The
0.2.0
6 added, 2 changedAdded
- Pick/ban phase order:
rules.phases(PickBanPhaseSchema) for split bans and any other order,pickBanPhases, andphasein the replay state. The 0.1protects/bansrules still work as shorthand and give the same results and refusals. rollFirst: two rolls and the roll winner's choice to the first turns; a tie is refused.- Third place match in single elimination (
thirdPlace: true, round3RD, beforeF). placements: standings from a bracket in both formats, filled in as rounds finish.@haruhimemoe/tourney/mp:fromOsuMatchreads an osu! multiplayer match (from@haruhimemoe/osu) into maps, score, winner and a problem list.MapResultSchematakes an optionalgameId.- Groups:
roundRobin,groupStandingswith points and tiebreaks (StandingsRulesSchema),swissPairingsandswissRounds,snakeGroups,seedsFromGroups,GroupSchema.
Changed
@haruhimemoe/osu(0.5 or newer) is an optional peer dependency, needed only for@haruhimemoe/tourney/mp.RoundSchema.sidecan be"third". Code that switches over every side needs a case for it.
- Pick/ban phase order:
0.1.0
9 addedAdded
- Round ladders for single and double elimination (
buildLadder): RO/QF/SF/F, losers rounds, grand final with optional reset, qualifiers, best-of per round. - Brackets with progression (
createBracket,reportResult,reportForfeit,clearResult,champion): standard seeding, byes, losers bracket drops, grand final reset. - Qualifier ranking by total score or average rank (
rankQualifiers), and standard seed order (seedPositions). - Stored match records (
MatchSchema) with maps, per-player scores, lineups, staff, links and reschedules; score helpers. - Pick/ban replay against a
@haruhimemoe/poolpool (checkPickBans): protects, bans, picks, tiebreaker, whose turn is next. - Teams with rosters, subs and per-map lineups; solo sides.
- Captain drafts: snake or linear order, the clock, picks, deadlines.
- Tournaments with phases and a registration window; registrations with review, role conflicts and caps.
- Scheduling through
@haruhimemoe/time(suggestMatchTimes) and reschedule rules (checkReschedule).
- Round ladders for single and double elimination (