I only upgraded the dependencies required to resolve the issues. I updated @remix-run/server-runtime to ^2.0.1, this required me to upgrade Jest in order to handle node:crypto no longer being polyfilled in @remix-run/node. The url passed to new Requests in tests had to be updated to fit new validation. I also had to change the way we test thrown responses due to the returned object not deeply matching anymore. Now instead checking to make sure error thrown is an instance of Response and then checking that the status and message are what's expected.
Should unblock release for #243
I only upgraded the dependencies required to resolve the issues. I updated
@remix-run/server-runtime
to^2.0.1
, this required me to upgrade Jest in order to handlenode:crypto
no longer being polyfilled in@remix-run/node
. The url passed to new Requests in tests had to be updated to fit new validation. I also had to change the way we test thrown responses due to the returned object not deeply matching anymore. Now instead checking to make sure error thrown is an instance of Response and then checking that the status and message are what's expected.