Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Dropped dependency isomorphic-fetch in favor of cross-fetch (React Native compatible) #71

Merged
merged 1 commit into from
Dec 5, 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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

`apollo-fetch` is a lightweight client for GraphQL requests that supports middleware and afterware that modify requests and responses.

By default `apollo-fetch` uses `isomorphic-fetch`, but you have the option of using a custom fetch function.
By default `apollo-fetch` uses `cross-fetch`, but you have the option of using a custom fetch function.

If you are interested in contributing, please read the [documentation on repository structure](docs/monorepo.md) and [Contributor Guide](CONTRIBUTING.md).

Expand Down Expand Up @@ -290,7 +290,7 @@ FetchOptions {
/*
* defaults:
* uri = '/graphql'
* customFetch = fetch from isomorphic-fetch
* customFetch = fetch from cross-fetch
* constructOptions = constructDefaultOptions(exported from apollo-fetch)
*/
```
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"prepublishOnly": "npm run clean && npm run build"
},
"dependencies": {
"isomorphic-fetch": "^2.2.1"
"cross-fetch": "^1.0.0"
},
"devDependencies": {
"@types/chai": "4.0.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/apollo-fetch/src/apollo-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
FetchError,
BatchError,
} from './types';
import 'isomorphic-fetch';
import 'cross-fetch/polyfill';

type WareStack =
| MiddlewareInterface[]
Expand Down