Skip to content
Contents

Changelog: packages

What changed in each @haruhimemoe package (ui, next-kit, osu, mirror, pool and the rest), release by release, newest first.

  1. harumin-config0.14.0

    4 added

    Added

    • Drafts on Discord. TOURNEY_ROUTES.draft answers an edition's draft as a linked guild reads it (tourneyDraftSchema, its players draftPlayerSchema): the pick on the clock and its deadline, up to five teams next, the picks made, the players left by rank, and what the Discord user named by DISCORD_USER_HEADER may do. TOURNEY_ROUTES.draftPick takes a captain's pick (draftPickBodySchema), which names the pick its menu was made for so a stale menu or a second click is refused, and answers the draft after it (draftPickAnswerSchema).
    • TOURNEY_ROUTES.roleGuilds answers every guild a role rule of an enabled link names (roleGuildsSchema). harumin refreshes the roles of members it sees only in those.
    • HARUMIN_COLLECTIONS.tourneyDrafts (tourney_drafts): the bot's draft mirrors, one per edition.
    • Each new schema exports its type under the PascalCase name: DraftPlayer, TourneyDraft, DraftPickBody, DraftPickAnswer and RoleGuilds.

    harumin-config 0.14.0 in the harumin-config changelog

  2. harumin-config0.13.0

    4 added, 1 changed

    Added

    • The tourney.haruhime.moe contract. Role rules: ROLE_TRIGGERS, ROLE_REVOKES, MAX_ROLE_RULES (25), roleTriggerSchema, roleRuleSchema and roleRulesSchema (unique ids, one guild and one revoke per role). A lineage's link to Discord: tourneyLinkSchema. The channel a harumin post goes to: notificationRouteSchema.
    • Two bot routes tourney calls: SERVICE_ROUTES.guildRoles answers a guild's roles and what harumin may do with them (guildRolesSchema); SERVICE_ROUTES.tourneyPost takes one embed with no mentions and an optional Register button, whose custom id starts with REGISTER_BUTTON_PREFIX (tourneyPostBodySchema, tourneyEmbedSchema), and answers the message's id (tourneyPostAnswerSchema).
    • tourney's routes for harumin, TOURNEY_ROUTES, and DISCORD_USER_HEADER for /api/v1 calls made for a Discord user. Role sync: roleSyncJobSchema, roleSyncClaimBodySchema, roleSyncClaimAnswerSchema, roleSyncAckBodySchema, roleSyncRefreshBodySchema, ROLE_SYNC_ERRORS, ROLE_SYNC_LEASE_SECONDS (120) and MAX_ROLE_SYNC_CLAIM (50). A guild's linked lineages: tourneyGuildSchema. What the Register button does: registrationButtonSchema.
    • Each new schema exports its type under the PascalCase name (roleRuleSchema gives RoleRule), and RoleRevoke and RoleSyncError name one revoke and one error.

    Changed

    • 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.

    harumin-config 0.13.0 in the harumin-config changelog

  3. invites0.2.0

    2 changed

    Changed

    • 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.
    • cancel takes "system" as its actor from pending or countered, so an app can close an open invite whose subject went away. Other actions still refuse it.

    invites 0.2.0 in the invites changelog

  4. tourney0.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_).

    tourney 0.5.0 in the tourney changelog

  5. tourney0.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.

    tourney 0.4.0 in the tourney changelog

  6. tourney0.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.

    tourney 0.3.0 in the tourney changelog

  1. bbcode0.4.0

    1 added

    Added

    • Template sections: {{#key}}...{{/key}} keeps its content when the field fills to something and drops it when the field is empty, so optional links and images don't leave [url=] or [img][/img] behind. A section on whole lines takes its line breaks with it. {{#a|b}}...{{/a|b}} keeps its content when either field fills. A section that can't resolve (its field undeclared or in error) stays as written and doesn't block the sections around it; an opening marker never closed is text. Line breaks may be LF or CRLF. templateFields counts section keys as used. A template body that already held {{#key}}...{{/key}} as text for a declared field now reads it as a section.

    bbcode 0.4.0 in the bbcode changelog

  2. bbcode0.3.2

    1 fixed

    Fixed

    • An unclosed-tag fix no longer crosses the tags inside it. A tag open at the end of the text now closes after any tag it holds and after the fixes of tags open inside it ([b]x [code]a\nb[/code] becomes [b]x [code]a\nb[/code][/b], not [/b] inside the code). A one-line tag, or an inline raw tag like [img], gets no fix when a [ follows it on its line.

    bbcode 0.3.2 in the bbcode changelog

  3. bbcode0.3.1

    1 added

    Added

    • unclosed-tag diagnostics carry a fix when the closing is obvious. A tag crossed by the close of the tag around it closes right before that close, or swaps with it when its own close comes right after ([b][i]x[/b][/i] becomes [b][i]x[/i][/b]). A one-line tag with no close after it closes at the end of its line. A tag still open at the end of the text closes at the end of its line (inline tags) or at the end of the text (block tags). No fix when a close exists on a later line.

    bbcode 0.3.1 in the bbcode changelog

  4. bbcode0.3.0

    1 added

    Added

    • ./markdown: toMarkdown and fromMarkdown, with a lost report of what the other format can't say. Emphasis follows a simplified CommonMark, with no "rule of 3" for telling */_ delimiter runs apart. Typed BBCode written inside markdown passes through as is; fromMarkdown lints its own output afterward and reports any problem osu! would have with that BBCode as a no-equivalent loss instead of shipping it broken.

    bbcode 0.3.0 in the bbcode changelog

  5. next-kit0.20.1

    1 changed

    Changed

    • The @haruhimemoe/osu peer range accepts 0.8, 0.9 and 0.10.

    next-kit 0.20.1 in the next-kit changelog

  6. next-kit0.20.0

    1 added

    Added

    • preferences: formatInstant takes locale in its prefs (default "en-US"), so times read in the page's language.

    next-kit 0.20.0 in the next-kit changelog

  7. next-kit0.19.1

    1 fixed

    Fixed

    • createRequestConfig no longer reads next-intl's requestLocale when request is set or the app has one locale. Reading it touched the request headers, which made every page dynamic. With one locale it doesn't call request either, so an app can pass readRequestLocale before it has a second language and its pages stay static.

    next-kit 0.19.1 in the next-kit changelog

  8. next-kit0.19.0

    4 added, 1 changed

    Added

    • i18n/next-intl: prefix-less locales. createRequestConfig takes request, and the new readRequestLocale reads the NEXT_LOCALE cookie and Accept-Language through next/headers. With no matched segment the locale is the cookie, then userLocale(), then the best Accept-Language match, then the default. No [locale] folder or middleware needed.
    • i18n: uiLabels(t) builds ui's and next-kit's built-in text from a translator for the ui namespace of @haruhimemoe/messages.
    • DeleteAccountForm takes labels (DELETE_ACCOUNT_LABELS) for every string it writes, including the type-to-confirm label.
    • serviceWorkerResponse takes offlineRetry and lang for the offline page.

    Changed

    • The @haruhimemoe/ui peer range now includes 0.26.

    next-kit 0.19.0 in the next-kit changelog

  9. next-kit0.18.0

    3 added

    Added

    • preferences (new subpath, no runtime imports besides zod): PreferencesSchema and Preferences (a time zone, or null for "use the browser's", and an hour cycle of h12, h23, or null to let the locale decide), DEFAULT_PREFERENCES, parsePreferences (never throws: a bad stored value falls back to the default) and serializePreferences, plus formatInstant for turning an ISO instant into display text with those preferences applied.
    • preferences/server (new subpath, loads mongodb): readPreferences and writePreferences touch only the preferences field on the identity user, and createPreferencesRoute({ db, getSession }) gives the hub a GET/POST route (refuseCrossSite first, then the session, then schema validation on POST).
    • auth's IDENTITY_USER_FIELDS gains preferences, so every createOsuAuth instance's additionalFields carries it, single-DB apps included.

    next-kit 0.18.0 in the next-kit changelog

  10. osu0.10.0

    4 added, 2 changed

    Added

    • Forum reads: getForumTopic(topicId, { sort, limit, cursor, start }), getForumPost({ topicId, postId }) and listForumTopics({ forumId, sort, limit, cursor }). Posts carry body.raw, the BBCode as written. Cursor paging, null on 404, and the client's own public token is enough. For bb's forum post import.
    • Forum shapes in /shapes: osuForumPostSchema, osuForumTopicSchema, osuForumTopicPageSchema, osuForumTopicListSchema, toOsuForumTopicPage, toOsuForumTopicList, parseForumUrl, and the types OsuForumPost, OsuForumTopic, OsuForumTopicPage, OsuForumTopicList. OSU_FORUM_PAGE_LIMIT (50) and the option types ForumTopicOptions, ListForumTopicsOptions.
    • getUserPage(user): a user's "me!" page as { raw, html }, or null. OsuUserProfile gains page.
    • The retry and sleep client options, OSU_RETRY_ATTEMPTS (2), OSU_RETRY_MAX_WAIT_MS (10,000), and attempts on OsuApiError.

    Changed

    • Retries are on by default. The client now retries a 429 or 503: it waits osu!'s Retry-After (or 1 s, 2 s, 4 s), twice by default, at most 10 s of waiting in total per call. Another 5xx is retried once on a GET. A call that used to fail at once on a 429 may now succeed (or fail) up to 10 s later, plus the retried requests' own timeoutMs. Pass retry: false to keep the 0.9 behavior.
    • beforeCall now runs once per HTTP call, retries included. A budget counter that beforeCall increments goes up for each retry. If your code already retries on retryAfterMs, pass retry: false or drop your own loop so osu! isn't asked twice.

    osu 0.10.0 in the osu changelog

  11. ui0.27.1

    1 fixed

    Fixed

    • LocaleSelect with one locale no longer calls useRouter, so it renders (as nothing) outside the app router, in tests for example.

    ui 0.27.1 in the ui changelog

  12. ui0.27.0

    1 added

    Added

    • LocaleSelect, a language picker for prefix-less apps: each locale named in its own language, the NEXT_LOCALE cookie on an optional shared domain, then a refresh. Renders nothing for one locale. Also localeName and writeLocaleCookie.

    ui 0.27.0 in the ui changelog

  13. ui0.26.0

    3 added

    Added

    • Every string a component writes can now be translated. CommandPalette and siteCommands take labels (PALETTE_LABELS, SITE_COMMAND_LABELS). CodeBlock, ContentPage and BrandPage do too (CODE_BLOCK_LABELS, CONTENT_PAGE_LABELS, BRAND_PAGE_LABELS). ContentPage also takes locale for its dates.
    • New text props: SectionHeading anchorLabel, SortableMoveButtons upLabel / downLabel, ContentNav summaryLabel, ContentSearch countText, MapGroup countText.
    • The README has a new "Translating built-in text" section. Every default is unchanged English.

    ui 0.26.0 in the ui changelog

  1. bbcode0.2.3

    1 changed, 1 fixed

    Changed

    • 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.

    Fixed

    • Template date fields refuse days that don't exist, like 2026-02-31 or 2025-02-29. They used to pass because Date.parse rolls them over into the next month.

    bbcode 0.2.3 in the bbcode changelog

  2. harumin-config0.12.0

    1 added

    Added

    • noticeCardSchema and CARD_ROUTES.notice: errors and confirmations as an image, in styled runs (plain, bold, code), at most 600 characters.

    harumin-config 0.12.0 in the harumin-config changelog

  3. harumin-config0.11.1

    1 fixed

    Fixed

    • guildSettingsPatchSchema takes the replay auto-embed. In 0.11.0 it refused any patch that set it.

    harumin-config 0.11.1 in the harumin-config changelog

  4. harumin-config0.11.0

    1 added

    Added

    • A replay auto-embed (on by default): .osr files posted in chat get a score card.

    harumin-config 0.11.0 in the harumin-config changelog

  5. mirror0.2.0

    2 changed

    Changed

    • Depends on @haruhimemoe/osu ^0.7.0 (was ^0.4.0), so apps on osu 0.7 get one copy of the shapes. The msw peer for /testing takes 3 as well as 2.
    • 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.

    mirror 0.2.0 in the mirror changelog

  6. next-kit0.17.1

    1 changed

    Changed

    • The @haruhimemoe/ui peer range takes 0.25.

    next-kit 0.17.1 in the next-kit changelog

  7. next-kit0.17.0

    1 changed, 1 added

    Changed

    • createDiscordLinkRoutes's siteTitle defaults to the redirect URI's host instead of "haruhime.moe", so another app's 403 names that app. The README shows passing your own Organization instead of HARUHIME_ORG.

    Added

    • createDiscordLinkRoutes takes stateCookie, the state cookie's name (default DISCORD_STATE_COOKIE).

    next-kit 0.17.0 in the next-kit changelog

  8. next-kit0.16.1

    1 fixed, 2 changed

    Fixed

    • /testing's setupMsw fails unhandled requests under msw 3 too. msw 3 renamed onUnhandledRequest to onUnhandledFrame and ignores the old key, so the helper passes both.

    Changed

    • The @haruhimemoe/osu peer range takes 0.5, 0.6 and 0.7 too, and msw takes 3 as well as 2.
    • 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.

    next-kit 0.16.1 in the next-kit changelog

  9. ordr0.1.0

    4 added

    Added

    • createOrdrClient with createRender (replay bytes or URL, every danser setting), waitForRender (polling, progress, timeout), getRender, listRenders, downloadLink, listSkins, getCustomSkin and getBotPreset.
    • renderMatchMap: one render per player of a match map, paced, with retries for passing refusals.
    • OrdrError, ORDR_ERROR_CODES (o!rdr codes 1 to 54) and isRetryableOrdrCode.
    • ORDR_DEV_KEYS for o!rdr's dev mode.

    ordr 0.1.0 in the ordr changelog

  10. osu0.9.0

    2 added

    Added

    • @haruhimemoe/osu/replay: parseReplayHeader(bytes) reads an .osr header (ruleset, beatmap MD5, player, hit counts, score, combo, mods, date, score id), replayScore(header) gives lazer statistics with stable's accuracy and rank, and modsFromFlags(flags) turns stable mod bits into acronyms. Throws ReplayError on a file that isn't a replay.
    • getBeatmapByChecksum(md5): a difficulty by its .osu MD5, or null.

    osu 0.9.0 in the osu changelog

  11. osu0.8.0

    1 added, 1 changed

    Added

    • getScoreReplay(id, { ruleset }): a score's replay as .osr bytes, or null when osu! keeps none. Pass ruleset for a stable score's legacy id.

    Changed

    • 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.

    osu 0.8.0 in the osu changelog

Older releases are on each repo's own changelog page.