Contents
Changelog: packages
What changed in each @haruhimemoe package (ui, next-kit, osu, mirror, pool and the rest), release by release, newest first.
harumin-config0.14.0
4 addedAdded
- Drafts on Discord.
TOURNEY_ROUTES.draftanswers an edition's draft as a linked guild reads it (tourneyDraftSchema, its playersdraftPlayerSchema): 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 byDISCORD_USER_HEADERmay do.TOURNEY_ROUTES.draftPicktakes 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.roleGuildsanswers 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,DraftPickAnswerandRoleGuilds.
- Drafts on Discord.
harumin-config0.13.0
4 added, 1 changedAdded
- The tourney.haruhime.moe contract. Role rules:
ROLE_TRIGGERS,ROLE_REVOKES,MAX_ROLE_RULES(25),roleTriggerSchema,roleRuleSchemaandroleRulesSchema(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.guildRolesanswers a guild's roles and what harumin may do with them (guildRolesSchema);SERVICE_ROUTES.tourneyPosttakes one embed with no mentions and an optional Register button, whose custom id starts withREGISTER_BUTTON_PREFIX(tourneyPostBodySchema,tourneyEmbedSchema), and answers the message's id (tourneyPostAnswerSchema). - tourney's routes for harumin,
TOURNEY_ROUTES, andDISCORD_USER_HEADERfor/api/v1calls made for a Discord user. Role sync:roleSyncJobSchema,roleSyncClaimBodySchema,roleSyncClaimAnswerSchema,roleSyncAckBodySchema,roleSyncRefreshBodySchema,ROLE_SYNC_ERRORS,ROLE_SYNC_LEASE_SECONDS(120) andMAX_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 (
roleRuleSchemagivesRoleRule), andRoleRevokeandRoleSyncErrorname 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.
- The tourney.haruhime.moe contract. Role rules:
invites0.2.0
2 changedChanged
- 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.
canceltakes"system"as its actor frompendingorcountered, so an app can close an open invite whose subject went away. Other actions still refuse it.
tourney0.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_).
tourney0.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:
tourney0.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.
bbcode0.4.0
1 addedAdded
- 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.templateFieldscounts section keys as used. A template body that already held{{#key}}...{{/key}}as text for a declared field now reads it as a section.
- Template sections:
bbcode0.3.2
1 fixedFixed
- An
unclosed-tagfix 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.
- An
bbcode0.3.1
1 addedAdded
unclosed-tagdiagnostics 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.
bbcode0.3.0
1 addedAdded
./markdown:toMarkdownandfromMarkdown, with alostreport 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;fromMarkdownlints its own output afterward and reports any problem osu! would have with that BBCode as ano-equivalentloss instead of shipping it broken.
next-kit0.20.1
1 changedChanged
- The
@haruhimemoe/osupeer range accepts 0.8, 0.9 and 0.10.
- The
next-kit0.20.0
1 addedAdded
preferences:formatInstanttakeslocalein its prefs (default "en-US"), so times read in the page's language.
next-kit0.19.1
1 fixedFixed
createRequestConfigno longer reads next-intl'srequestLocalewhenrequestis set or the app has one locale. Reading it touched the request headers, which made every page dynamic. With one locale it doesn't callrequesteither, so an app can passreadRequestLocalebefore it has a second language and its pages stay static.
next-kit0.19.0
4 added, 1 changedAdded
i18n/next-intl: prefix-less locales.createRequestConfigtakesrequest, and the newreadRequestLocalereads theNEXT_LOCALEcookie and Accept-Language throughnext/headers. With no matched segment the locale is the cookie, thenuserLocale(), 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 theuinamespace of@haruhimemoe/messages.DeleteAccountFormtakeslabels(DELETE_ACCOUNT_LABELS) for every string it writes, including the type-to-confirm label.serviceWorkerResponsetakesofflineRetryandlangfor the offline page.
Changed
- The
@haruhimemoe/uipeer range now includes 0.26.
next-kit0.18.0
3 addedAdded
preferences(new subpath, no runtime imports besideszod):PreferencesSchemaandPreferences(a time zone, or null for "use the browser's", and an hour cycle ofh12,h23, or null to let the locale decide),DEFAULT_PREFERENCES,parsePreferences(never throws: a bad stored value falls back to the default) andserializePreferences, plusformatInstantfor turning an ISO instant into display text with those preferences applied.preferences/server(new subpath, loadsmongodb):readPreferencesandwritePreferencestouch only thepreferencesfield on the identity user, andcreatePreferencesRoute({ db, getSession })gives the hub aGET/POSTroute (refuseCrossSitefirst, then the session, then schema validation on POST).auth'sIDENTITY_USER_FIELDSgainspreferences, so everycreateOsuAuthinstance'sadditionalFieldscarries it, single-DB apps included.
osu0.10.0
4 added, 2 changedAdded
- Forum reads:
getForumTopic(topicId, { sort, limit, cursor, start }),getForumPost({ topicId, postId })andlistForumTopics({ forumId, sort, limit, cursor }). Posts carrybody.raw, the BBCode as written. Cursor paging, null on 404, and the client's ownpublictoken is enough. For bb's forum post import. - Forum shapes in
/shapes:osuForumPostSchema,osuForumTopicSchema,osuForumTopicPageSchema,osuForumTopicListSchema,toOsuForumTopicPage,toOsuForumTopicList,parseForumUrl, and the typesOsuForumPost,OsuForumTopic,OsuForumTopicPage,OsuForumTopicList.OSU_FORUM_PAGE_LIMIT(50) and the option typesForumTopicOptions,ListForumTopicsOptions. getUserPage(user): a user's "me!" page as{ raw, html }, or null.OsuUserProfilegainspage.- The
retryandsleepclient options,OSU_RETRY_ATTEMPTS(2),OSU_RETRY_MAX_WAIT_MS(10,000), andattemptsonOsuApiError.
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' owntimeoutMs. Passretry: falseto keep the 0.9 behavior. beforeCallnow runs once per HTTP call, retries included. A budget counter thatbeforeCallincrements goes up for each retry. If your code already retries onretryAfterMs, passretry: falseor drop your own loop so osu! isn't asked twice.
- Forum reads:
ui0.27.1
1 fixedFixed
LocaleSelectwith one locale no longer callsuseRouter, so it renders (as nothing) outside the app router, in tests for example.
ui0.27.0
1 addedAdded
LocaleSelect, a language picker for prefix-less apps: each locale named in its own language, theNEXT_LOCALEcookie on an optional shared domain, then a refresh. Renders nothing for one locale. AlsolocaleNameandwriteLocaleCookie.
ui0.26.0
3 addedAdded
- Every string a component writes can now be translated.
CommandPaletteandsiteCommandstakelabels(PALETTE_LABELS,SITE_COMMAND_LABELS).CodeBlock,ContentPageandBrandPagedo too (CODE_BLOCK_LABELS,CONTENT_PAGE_LABELS,BRAND_PAGE_LABELS).ContentPagealso takeslocalefor its dates. - New text props:
SectionHeadinganchorLabel,SortableMoveButtonsupLabel/downLabel,ContentNavsummaryLabel,ContentSearchcountText,MapGroupcountText. - The README has a new "Translating built-in text" section. Every default is unchanged English.
- Every string a component writes can now be translated.
bbcode0.2.3
1 changed, 1 fixedChanged
- 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
datefields refuse days that don't exist, like 2026-02-31 or 2025-02-29. They used to pass becauseDate.parserolls them over into the next month.
harumin-config0.12.0
1 addedAdded
noticeCardSchemaandCARD_ROUTES.notice: errors and confirmations as an image, in styled runs (plain, bold, code), at most 600 characters.
harumin-config0.11.1
1 fixedFixed
guildSettingsPatchSchematakes thereplayauto-embed. In 0.11.0 it refused any patch that set it.
harumin-config0.11.0
1 addedAdded
- A
replayauto-embed (on by default):.osrfiles posted in chat get a score card.
- A
mirror0.2.0
2 changedChanged
- Depends on
@haruhimemoe/osu^0.7.0 (was ^0.4.0), so apps on osu 0.7 get one copy of the shapes. Themswpeer for/testingtakes 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.
- Depends on
next-kit0.17.1
1 changedChanged
- The
@haruhimemoe/uipeer range takes 0.25.
- The
next-kit0.17.0
1 changed, 1 addedChanged
createDiscordLinkRoutes'ssiteTitledefaults to the redirect URI's host instead of "haruhime.moe", so another app's 403 names that app. The README shows passing your ownOrganizationinstead ofHARUHIME_ORG.
Added
createDiscordLinkRoutestakesstateCookie, the state cookie's name (defaultDISCORD_STATE_COOKIE).
next-kit0.16.1
1 fixed, 2 changedFixed
/testing'ssetupMswfails unhandled requests under msw 3 too. msw 3 renamedonUnhandledRequesttoonUnhandledFrameand ignores the old key, so the helper passes both.
Changed
- The
@haruhimemoe/osupeer range takes 0.5, 0.6 and 0.7 too, andmswtakes 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.
ordr0.1.0
4 addedAdded
createOrdrClientwithcreateRender(replay bytes or URL, every danser setting),waitForRender(polling, progress, timeout),getRender,listRenders,downloadLink,listSkins,getCustomSkinandgetBotPreset.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) andisRetryableOrdrCode.ORDR_DEV_KEYSfor o!rdr's dev mode.
osu0.9.0
2 addedAdded
@haruhimemoe/osu/replay:parseReplayHeader(bytes)reads an.osrheader (ruleset, beatmap MD5, player, hit counts, score, combo, mods, date, score id),replayScore(header)gives lazer statistics with stable's accuracy and rank, andmodsFromFlags(flags)turns stable mod bits into acronyms. ThrowsReplayErroron a file that isn't a replay.getBeatmapByChecksum(md5): a difficulty by its.osuMD5, or null.
osu0.8.0
1 added, 1 changedAdded
getScoreReplay(id, { ruleset }): a score's replay as.osrbytes, or null when osu! keeps none. Passrulesetfor 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.
Older releases are on each repo's own changelog page.