Skip to content

Commit

Permalink
feat(remix-vercel): add support for @vercel/node v2 (#3420)
Browse files Browse the repository at this point in the history
Co-authored-by: Michaël De Boey <[email protected]>
  • Loading branch information
mcansh and MichaelDeBoey authored Jul 12, 2022
1 parent de9fc05 commit 6ddea10
Show file tree
Hide file tree
Showing 4 changed files with 290 additions and 12 deletions.
5 changes: 5 additions & 0 deletions .changeset/slimy-avocados-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@remix-run/vercel": patch
---

feat(remix-vercel): add support for `@vercel/node` v2
2 changes: 1 addition & 1 deletion packages/remix-vercel/__tests__/server-test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import supertest from "supertest";
import { createRequest } from "node-mocks-http";
import { createServerWithHelpers } from "@vercel/node/dist/helpers";
import { createServerWithHelpers } from "@vercel/node-bridge/helpers";
import type { VercelRequest } from "@vercel/node";
import {
createRequestHandler as createRemixRequestHandler,
Expand Down
5 changes: 3 additions & 2 deletions packages/remix-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@
},
"devDependencies": {
"@types/supertest": "^2.0.10",
"@vercel/node": "^1.8.3",
"@vercel/node": "^2.4.2",
"@vercel/node-bridge": "^3.0.0",
"node-mocks-http": "^1.10.1",
"supertest": "^6.1.5"
},
"peerDependencies": {
"@vercel/node": "^1.8.3"
"@vercel/node": "^1.8.3 || ^2.4.0"
},
"engines": {
"node": ">=14"
Expand Down
Loading

0 comments on commit 6ddea10

Please sign in to comment.