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/
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 awoo
@Eramdam i feel like you're going to hit edge cases because of float precision
@codl maybe but i dont really see what else I could do short of using Big Ints lmao
@codl fuck you're right, hum, guess I'll need to sort by date as a last resort
@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
@codl well,
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
@codl (code is deobfuscated and i renamed the variables for clarity)
@Eramdam oh that's clever. length comparison first then lexicographic comparison if they match
@Eramdam hoping they dont have plans to kill off 1.1?
@dogo well, api v2 is supposed to replace 1.1 in the long term but it's not feature complete with it just yet so
@dogo like, the "deprecate legacy apis" is the very last item in the roadmap https://trello.com/b/myf7rKwV/twitter-developer-platform-roadmap
I'm a bit bummed out because I wanted to use the API v2 endpoint for mentions but it returns V2 tweets which dont contain as much as what you get from 1.1 so I use the mentions 1.1 endpoint and lookup tweets on API v2 to grab more things AND THEN make my own representation