Skip to content

Update to rfd-api 0.14.1#192

Merged
augustuswm merged 5 commits intomainfrom
rfd-api-0.14.0
Mar 2, 2026
Merged

Update to rfd-api 0.14.1#192
augustuswm merged 5 commits intomainfrom
rfd-api-0.14.0

Conversation

@augustuswm
Copy link
Contributor

No description provided.

@vercel
Copy link

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
rfd-site Ready Ready Preview Feb 21, 2026 1:07am

Request Review

@augustuswm augustuswm changed the title Update to rfd-api 0.14.0 Update to rfd-api 0.14.1 Feb 20, 2026
R.map((rfd) => {
// @ts-expect-error - We check for committedAt in the previous pipe step
return url(`/rfd/${rfd.formattedNumber}`, rfd.committedAt)
}),
Copy link
Contributor

@david-crespo david-crespo Feb 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine, but the other way to do this is rfd.committedAt!. The comment would still be appropriate because I like to have a comment to justify the non-null assertion. Slightly surprised the filter doesn't narrow for you, but I guess it makes sense to keep the original type. The other way you could do it, to avoid the non-null assertion, is flip the direction and do the map first, like rfd => rfd.committedAt ? url(/rfd/${rfd.formattedNumber}, rfd.committedAt) : undefined followed by filter(x => !!x).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, did not know about the ! suffix

</Badge>
</td>
<td>{formatTime(job.startedAt)}</td>
<td>{job.startedAt ? formatTime(job.startedAt) : '--'}</td>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpickiest nitpick ever but this should be a real em dash — instead of two dashes.

@augustuswm augustuswm merged commit aa2abae into main Mar 2, 2026
6 of 7 checks passed
@augustuswm augustuswm deleted the rfd-api-0.14.0 branch March 2, 2026 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants