Had to dig GitHub issues because `shrink-ray` is dead, its maintained fork requires old dependencies that don't build on macOS (seemingly), so I ended up `compress-next` which is a fork of `compression` w/ brotli compression https://github.com/Econify/compression-next
Found out about Lucide which is basically Feather Icons but with more icons so that'll be perfect for placeholder(?) icons https://lucide.dev/
Not pictured but before taking the screenshot I had an hilarious bug that only manifested now.. I was sorting the tweet IDs in such a way that mentions from 6 years ago were showing up, basically running `_.sortBy(t=>t,['desc']` where some of the ids were shorter than the others
Ended up going with `superstruct`. It's neat, a bit less verbose than io-ts and has better type inference in some places.
Native enums support is not there yet but can be worked around https://github.com/ianstormtaylor/superstruct/issues/993
@Eramdam what's wrong with BigInts? also idk how you're sorting but you could split the id into a top and bottom part, compare top parts as integers, and only compare bottom parts if the top parts are equal
A) they're not widely supported yet iirc
B) they're not free to use.
That said, I checked a bit more and:
- IDs are sequential but I feel like edge cases could be possible but very unlikely
- I checked how current TweetDeck does its sorting and... it's not that much more complex lmao
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!