remix-run / indie-stack

The Remix Stack for deploying to Fly with SQLite, authentication, testing, linting, formatting, etc.
https://remix.run/stacks
MIT License
1.13k stars 315 forks source link

feat: upgrade to Remix v2 #257

Closed MichaelDeBoey closed 1 year ago

brophdawg11 commented 1 year ago

Oops! Totally missed this PR. I took a stab at this as well to se if we could punt on #255 for the time being since converting to ESM is not a prerequisite for v2 compatibility. We can launch v2 with the indie stack on CJS and then convert it to ESM separately.

Here's my changes which I confirmed instaleld correctly against the latest prerelease: https://github.com/remix-run/indie-stack/compare/main...v2

I imagine the only thing that's not in here is the changes to Response and Readble.toWeb in entry.server since the latest prerelease contains the fetch changes

MichaelDeBoey commented 1 year ago

@brophdawg11 Just rebased this branch on main so we can merge this independently

I'll keep it as draft until v2 is released stably