Brandon Johnson
banner
bjohn465.net
Brandon Johnson
@bjohn465.net
Software engineer who is feeling amazing!
🎉
May 4, 2025 at 12:04 AM
It looks like the link should be github.com/humanwhocode...
Release env: v4.0.1 · humanwhocodes/env
4.0.1 (2025-03-28) Bug Fixes Allow future node versions (#210) (d9771f1)
github.com
March 28, 2025 at 7:18 PM
No word yet on if another turbo-stream v2 release containing the fix is planned or possible.
March 8, 2025 at 6:27 PM
The serialization format in turbo-stream v3 is not backwards compatible with v2, so I figured out what it would take to fix the issue in v2 in case a project could not upgrade to v3 in the near future github.com/bjohn465/tur...
Iterate over Map and Set entries in reverse order · bjohn465/turbo-stream@536c948
When hydrating `Map` and `Set` data, iterating over the entries in reverse order appears to produce a final `Map` or `Set` object with entries in the correct order. This should fix https://github....
github.com
March 8, 2025 at 6:24 PM
Version 3 of turbo-stream does not have this issue, and there's an open pull request to upgrade React Router to turbo-stream v3 github.com/remix-run/re...
feat: turbo-stream v3 by jacob-ebey · Pull Request #12945 · remix-run/react-router
github.com
March 8, 2025 at 6:20 PM
It turns out that this is caused by an issue in the version of the package that React Router uses to serialize loader and action data: turbo-stream v2 github.com/jacob-ebey/t...
Order of Map and Set entries reversed in v2 · Issue #71 · jacob-ebey/turbo-stream
In the latest v2 version of turbo-stream (currently v2.4.1), encoding and decoding a Map or Set object results in a Map or Set with the order of entries reversed. Since Map and Set are specified to...
github.com
March 8, 2025 at 6:18 PM
While working on that, I discovered that the order of Map and Set entries are reversed on page hydration github.com/remix-run/re...
Map and Set entries reversed on page hydration by bjohn465 · Pull Request #13093 · remix-run/react-router
When the loader data contains a Map or Set object, the data maintains the correct order in the server-rendered response. However, once the page hydrates, the order of the items in the Map or Set ar...
github.com
March 8, 2025 at 6:16 PM
It looks like it's in a "LinkedIn" branch at the moment: github.com/humanwhocode...
github.com
February 13, 2025 at 3:57 AM