Skip to content

Commit b41d177

Browse files
lquixadatimneutkens
authored andcommitted
Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch. (vercel#3230)
1 parent 31ba48a commit b41d177

File tree

26 files changed

+26
-26
lines changed

26 files changed

+26
-26
lines changed

examples/data-fetch/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"start": "next start"
88
},
99
"dependencies": {
10-
"isomorphic-fetch": "^2.2.1",
10+
"isomorphic-unfetch": "^2.0.0",
1111
"next": "latest",
1212
"react": "^16.0.0",
1313
"react-dom": "^16.0.0"

examples/data-fetch/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import React from 'react'
33
import Link from 'next/link'
4-
import 'isomorphic-fetch'
4+
import 'isomorphic-unfetch'
55

66
export default class MyPage extends React.Component {
77
static async getInitialProps () {

examples/data-fetch/pages/preact.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
import React from 'react'
33
import Link from 'next/link'
4-
import 'isomorphic-fetch'
4+
import 'isomorphic-unfetch'
55

66
export default class MyPage extends React.Component {
77
static async getInitialProps () {

examples/with-apollo-and-redux/lib/initApollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ApolloClient, createNetworkInterface } from 'react-apollo'
2-
import fetch from 'isomorphic-fetch'
2+
import fetch from 'isomorphic-unfetch'
33

44
let apolloClient = null
55

examples/with-apollo-and-redux/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"graphql": "^0.9.3",
11-
"isomorphic-fetch": "^2.2.1",
11+
"isomorphic-unfetch": "^2.0.0",
1212
"next": "latest",
1313
"prop-types": "^15.5.8",
1414
"react": "^16.0.0",

examples/with-apollo-auth/lib/init-apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { ApolloClient, createNetworkInterface } from 'react-apollo'
2-
import fetch from 'isomorphic-fetch'
2+
import fetch from 'isomorphic-unfetch'
33

44
let apolloClient = null
55

examples/with-apollo-auth/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"cookie": "^0.3.1",
1414
"graphql": "^0.9.3",
15-
"isomorphic-fetch": "^2.2.1",
15+
"isomorphic-unfetch": "^2.0.0",
1616
"next": "latest",
1717
"prop-types": "^15.5.10",
1818
"react": "^15.5.4",

examples/with-apollo/lib/initApollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ApolloClient } from 'apollo-client'
22
import { HttpLink } from 'apollo-link-http'
33
import { InMemoryCache } from 'apollo-cache-inmemory'
4-
import fetch from 'isomorphic-fetch'
4+
import fetch from 'isomorphic-unfetch'
55

66
let apolloClient = null
77

examples/with-apollo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"graphql": "^0.11.7",
1212
"graphql-anywhere": "^3.1.0",
1313
"graphql-tag": "^2.5.0",
14-
"isomorphic-fetch": "^2.2.1",
14+
"isomorphic-unfetch": "^2.0.0",
1515
"next": "latest",
1616
"prop-types": "^15.5.8",
1717
"react": "^16.0.0",

examples/with-firebase-authentication/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"express-session": "^1.15.2",
1313
"firebase": "^3.7.5",
1414
"firebase-admin": "^4.2.0",
15-
"isomorphic-fetch": "2.2.1",
15+
"isomorphic-unfetch": "2.0.0",
1616
"next": "latest",
1717
"react": "^16.0.0",
1818
"react-dom": "^16.0.0",

examples/with-firebase-authentication/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { Component } from 'react'
22
import firebase from 'firebase'
3-
import 'isomorphic-fetch'
3+
import 'isomorphic-unfetch'
44
import clientCredentials from '../credentials/client'
55

66
export default class Index extends Component {

examples/with-freactal/githubApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* global fetch */
2-
import 'isomorphic-fetch'
2+
import 'isomorphic-unfetch'
33

44
const API_BASE_URL = 'https://api.github.com'
55

examples/with-freactal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"freactal": "^1.1.1",
11-
"isomorphic-fetch": "^2.2.1",
11+
"isomorphic-unfetch": "^2.0.0",
1212
"next": "latest",
1313
"react": "^16.0.0",
1414
"react-dom": "^16.0.0"

examples/with-i18next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"dependencies": {
1010
"i18next": "^7.1.3",
11-
"isomorphic-fetch": "^2.2.1",
11+
"isomorphic-unfetch": "^2.0.0",
1212
"next": "latest",
1313
"react": "^16.0.0",
1414
"react-dom": "^16.0.0",

examples/with-i18next/tools/translationHelpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* global fetch */
2-
import 'isomorphic-fetch'
2+
import 'isomorphic-unfetch'
33

44
/**
55
* Fetch translation file(s).

examples/with-redux-saga/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"es6-promise": "4.1.1",
12-
"isomorphic-fetch": "2.2.1",
12+
"isomorphic-unfetch": "2.0.0",
1313
"next": "latest",
1414
"next-redux-saga": "1.0.1",
1515
"next-redux-wrapper": "1.2.0",

examples/with-redux-saga/saga.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import {delay} from 'redux-saga'
44
import {all, call, put, take, takeLatest} from 'redux-saga/effects'
55
import es6promise from 'es6-promise'
6-
import 'isomorphic-fetch'
6+
import 'isomorphic-unfetch'
77

88
import {actionTypes, failure, loadDataSuccess, tickClock} from './actions'
99

examples/with-relay-modern/lib/createRelayEnvironment.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Environment, Network, RecordSource, Store } from 'relay-runtime'
2-
import fetch from 'isomorphic-fetch'
2+
import fetch from 'isomorphic-unfetch'
33

44
let relayEnvironment = null
55

examples/with-relay-modern/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"dotenv": "^4.0.0",
1717
"dotenv-webpack": "^1.5.4",
18-
"isomorphic-fetch": "^2.2.1",
18+
"isomorphic-unfetch": "^2.0.0",
1919
"next": "^3.0.3",
2020
"react": "^15.6.1",
2121
"react-dom": "^15.6.1",

examples/with-socket.io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "1.0.0",
44
"dependencies": {
55
"express": "^4.15.2",
6-
"isomorphic-fetch": "^2.2.1",
6+
"isomorphic-unfetch": "^2.0.0",
77
"next": "latest",
88
"react": "^16.0.0",
99
"react-dom": "^16.0.0",

examples/with-socket.io/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from 'react'
22
import io from 'socket.io-client'
3-
import fetch from 'isomorphic-fetch'
3+
import fetch from 'isomorphic-unfetch'
44

55
class HomePage extends Component {
66
// fetch old messages data from the server

examples/with-static-export/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const fetch = require('isomorphic-fetch')
1+
const fetch = require('isomorphic-unfetch')
22

33
module.exports = {
44
async exportPathMap () {

examples/with-static-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"main": "server.js",
33
"dependencies": {
44
"express": "^4.15.3",
5-
"isomorphic-fetch": "^2.2.1",
5+
"isomorphic-unfetch": "^2.0.0",
66
"next": "beta",
77
"react": "^15.5.4",
88
"react-dom": "^15.5.4",

examples/with-static-export/pages/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component } from 'react'
22
import Head from 'next/head'
3-
import fetch from 'isomorphic-fetch'
3+
import fetch from 'isomorphic-unfetch'
44

55
import Post from '../components/post'
66

examples/with-static-export/pages/post.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component } from 'react'
22
import Link from 'next/link'
33
import Head from 'next/head'
4-
import fetch from 'isomorphic-fetch'
4+
import fetch from 'isomorphic-unfetch'
55

66
export default class extends Component {
77
static async getInitialProps ({ query }) {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ If you want to render the built-in error page you can by using `next/error`:
893893
```jsx
894894
import React from 'react'
895895
import Error from 'next/error'
896-
import fetch from 'isomorphic-fetch'
896+
import fetch from 'isomorphic-unfetch'
897897

898898
export default class Page extends React.Component {
899899
static async getInitialProps() {

0 commit comments

Comments
 (0)