Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit a71396d

Browse files
committed
Remove isomorphic-unfetch
NextJS now comes with built-in support for fetch: https://nextjs.org/blog/next-9-4#improved-built-in-fetch-support
1 parent af532f0 commit a71396d

File tree

12 files changed

+0
-31
lines changed

12 files changed

+0
-31
lines changed

cypress/fixtures/pages/api/shows/[...params].js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
2-
31
export default async (req, res) => {
42
// Get the params and query string parameters
53
const { query } = req

cypress/fixtures/pages/api/shows/[id].js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
2-
31
export default async (req, res) => {
42
// Get the ID of the show
53
const { query } = req

cypress/fixtures/pages/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Link from 'next/link'
32

43
const Index = ({ shows }) => (

cypress/fixtures/pages/shows/[...params].js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Error from 'next/error'
32
import Link from 'next/link'
43

cypress/fixtures/pages/shows/[id].js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Error from 'next/error'
32
import Link from 'next/link'
43

package-lock.json

-16
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
},
3232
"devDependencies": {
3333
"cypress": "^4.6.0",
34-
"isomorphic-unfetch": "^3.0.0",
3534
"jest": "^26.0.1",
3635
"netlify-cli": "^2.51.0",
3736
"next": "^9.4.2",

tests/fixtures/pages/api/shows/[...params].js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
2-
31
export default async (req, res) => {
42
// Respond with JSON
53
res.setHeader('Content-Type', 'application/json')

tests/fixtures/pages/api/shows/[id].js

-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
2-
31
export default async (req, res) => {
42
// Respond with JSON
53
res.setHeader('Content-Type', 'application/json')

tests/fixtures/pages/index.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Link from 'next/link'
32

43
const Index = ({ shows }) => (

tests/fixtures/pages/shows/[...params].js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Error from 'next/error'
32
import Link from 'next/link'
43

tests/fixtures/pages/shows/[id].js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from 'isomorphic-unfetch'
21
import Error from 'next/error'
32
import Link from 'next/link'
43

0 commit comments

Comments
 (0)