Skip to content
Contents

tourney changelog

Every tourney release, newest first.

  1. 0.5.0

    4 added

    Added

    • @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 (ApiMatch for ApiMatchSchema).
    • Read answers: ApiLineageResponseSchema, ApiEditionResponseSchema, ApiRoundsResponseSchema, ApiTeamsPageSchema, ApiBracketResponseSchema, ApiMatchesPageSchema, ApiMatchResponseSchema, ApiStandingsResponseSchema, ApiPlacementsResponseSchema and ApiMeResponseSchema. They are built from ApiLineageSchema, ApiEditionSummarySchema, ApiEditionSchema, ApiQuestionSchema, ApiRoundSchema, ApiTeamSchema (with a status from TEAM_STATUSES, and usernames), ApiMatchSchema (a match without its staff ids, reschedules and notes) and ApiStandingSchema.
    • Write bodies, strict, each typed as what a caller sends (defaults optional): ApiRegistrationInputSchema, ApiMatchPatchSchema with ApiStaffChangeSchema (slots from API_SLOT_KINDS), ApiResultInputSchema, ApiFillInputSchema and ApiAnnouncementInputSchema. Their answers: ApiRegistrationResponseSchema, ApiMatchUpdateResponseSchema, ApiResultResponseSchema, ApiFillResponseSchema and ApiAnnouncementResponseSchema, built from ApiRegistrationSchema, ApiMatchSlotsSchema, ApiFillSchema and ApiAnnouncementSchema.
    • ApiErrorSchema (the error body), apiPageSchema (pages of { items, next }), API_PAGE_LIMIT (1 to 100, default 50) and API_KEY_PREFIX (htr_).
  2. 0.4.0

    2 added, 1 changed, 1 fixed

    Added

    • Roster rules: RosterRulesSchema (extendable) with lockAt, maxChanges and approver (one of ROSTER_APPROVERS: captain or admin), and DEFAULT_ROSTER_RULES (frozen: no lock, then one change approved by an admin). checkRosterChange says 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, limit once 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

    • reviewRegistration moves a waitlisted registration to pending, for when a spot frees up.

    Fixed

    • checkPickBans took 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.
  3. 0.3.0

    4 added

    Added

    • @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). seatingOrder and roomGroups (mutual roommate pairs on 2-bed rooms, companions, empty beds) are exported on their own.
    • Roommate pair codes: pairCode from random bytes, normalizePairCode for 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) and PAIR_CODE_LENGTH.
    • LanRegistrationSchema (extendable), LAN_STATUSES, ACTIVE_LAN_STATUSES and RoomStockSchema; deriveAttendeeKind and ATTENDEE_KINDS (staff, player or attendee from tournament registrations); roomShares, a room price split into whole-unit shares.
  4. 0.2.1

    2 changed

    Changed

    • The @haruhimemoe/osu peer 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.
  5. 0.2.0

    6 added, 2 changed

    Added

    • Pick/ban phase order: rules.phases (PickBanPhaseSchema) for split bans and any other order, pickBanPhases, and phase in the replay state. The 0.1 protects / bans rules 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, round 3RD, before F).
    • placements: standings from a bracket in both formats, filled in as rounds finish.
    • @haruhimemoe/tourney/mp: fromOsuMatch reads an osu! multiplayer match (from @haruhimemoe/osu) into maps, score, winner and a problem list. MapResultSchema takes an optional gameId.
    • Groups: roundRobin, groupStandings with points and tiebreaks (StandingsRulesSchema), swissPairings and swissRounds, snakeGroups, seedsFromGroups, GroupSchema.

    Changed

    • @haruhimemoe/osu (0.5 or newer) is an optional peer dependency, needed only for @haruhimemoe/tourney/mp.
    • RoundSchema.side can be "third". Code that switches over every side needs a case for it.
  6. 0.1.0

    9 added

    Added

    • 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/pool pool (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).