Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropped isomorphic-fetch in examples in favor of isomorphic-unfetch. #3230

Merged
merged 1 commit into from
Nov 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/data-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"start": "next start"
},
"dependencies": {
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/data-fetch/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import React from 'react'
import Link from 'next/link'
import 'isomorphic-fetch'
import 'isomorphic-unfetch'

export default class MyPage extends React.Component {
static async getInitialProps () {
Expand Down
2 changes: 1 addition & 1 deletion examples/data-fetch/pages/preact.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

import React from 'react'
import Link from 'next/link'
import 'isomorphic-fetch'
import 'isomorphic-unfetch'

export default class MyPage extends React.Component {
static async getInitialProps () {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo-and-redux/lib/initApollo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApolloClient, createNetworkInterface } from 'react-apollo'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

let apolloClient = null

Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo-and-redux/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"graphql": "^0.9.3",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"prop-types": "^15.5.8",
"react": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo-auth/lib/init-apollo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ApolloClient, createNetworkInterface } from 'react-apollo'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

let apolloClient = null

Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo-auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"cookie": "^0.3.1",
"graphql": "^0.9.3",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"prop-types": "^15.5.10",
"react": "^15.5.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo/lib/initApollo.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ApolloClient } from 'apollo-client'
import { HttpLink } from 'apollo-link-http'
import { InMemoryCache } from 'apollo-cache-inmemory'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

let apolloClient = null

Expand Down
2 changes: 1 addition & 1 deletion examples/with-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"graphql": "^0.11.7",
"graphql-anywhere": "^3.1.0",
"graphql-tag": "^2.5.0",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"prop-types": "^15.5.8",
"react": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-firebase-authentication/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"express-session": "^1.15.2",
"firebase": "^3.7.5",
"firebase-admin": "^4.2.0",
"isomorphic-fetch": "2.2.1",
"isomorphic-unfetch": "2.0.0",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-firebase-authentication/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { Component } from 'react'
import firebase from 'firebase'
import 'isomorphic-fetch'
import 'isomorphic-unfetch'
import clientCredentials from '../credentials/client'

export default class Index extends Component {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-freactal/githubApi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global fetch */
import 'isomorphic-fetch'
import 'isomorphic-unfetch'

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

Expand Down
2 changes: 1 addition & 1 deletion examples/with-freactal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"freactal": "^1.1.1",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-i18next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"dependencies": {
"i18next": "^7.1.3",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-i18next/tools/translationHelpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* global fetch */
import 'isomorphic-fetch'
import 'isomorphic-unfetch'

/**
* Fetch translation file(s).
Expand Down
2 changes: 1 addition & 1 deletion examples/with-redux-saga/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"dependencies": {
"es6-promise": "4.1.1",
"isomorphic-fetch": "2.2.1",
"isomorphic-unfetch": "2.0.0",
"next": "latest",
"next-redux-saga": "1.0.1",
"next-redux-wrapper": "1.2.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-redux-saga/saga.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {delay} from 'redux-saga'
import {all, call, put, take, takeLatest} from 'redux-saga/effects'
import es6promise from 'es6-promise'
import 'isomorphic-fetch'
import 'isomorphic-unfetch'

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

Expand Down
2 changes: 1 addition & 1 deletion examples/with-relay-modern/lib/createRelayEnvironment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Environment, Network, RecordSource, Store } from 'relay-runtime'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

let relayEnvironment = null

Expand Down
2 changes: 1 addition & 1 deletion examples/with-relay-modern/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"dependencies": {
"dotenv": "^4.0.0",
"dotenv-webpack": "^1.5.4",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "^3.0.3",
"react": "^15.6.1",
"react-dom": "^15.6.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-socket.io/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "1.0.0",
"dependencies": {
"express": "^4.15.2",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "latest",
"react": "^16.0.0",
"react-dom": "^16.0.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-socket.io/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from 'react'
import io from 'socket.io-client'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

class HomePage extends Component {
// fetch old messages data from the server
Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const fetch = require('isomorphic-fetch')
const fetch = require('isomorphic-unfetch')

module.exports = {
async exportPathMap () {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"main": "server.js",
"dependencies": {
"express": "^4.15.3",
"isomorphic-fetch": "^2.2.1",
"isomorphic-unfetch": "^2.0.0",
"next": "beta",
"react": "^15.5.4",
"react-dom": "^15.5.4",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Component } from 'react'
import Head from 'next/head'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

import Post from '../components/post'

Expand Down
2 changes: 1 addition & 1 deletion examples/with-static-export/pages/post.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component } from 'react'
import Link from 'next/link'
import Head from 'next/head'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

export default class extends Component {
static async getInitialProps ({ query }) {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ If you want to render the built-in error page you can by using `next/error`:
```jsx
import React from 'react'
import Error from 'next/error'
import fetch from 'isomorphic-fetch'
import fetch from 'isomorphic-unfetch'

export default class Page extends React.Component {
static async getInitialProps() {
Expand Down