You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,9 @@
4
4
5
5
### Patch
6
6
7
+
- Updated dependencies.
8
+
- Reduced the size of the published `package.json` by moving dev tool config to files. This also prevents editor extensions such as Prettier and ESLint from detecting config and attempting to operate when opening package files installed in `node_modules`.
9
+
- Simplified the `prepublishOnly` script.
7
10
- Add tips for React Native gotchas, via [#135](https://github.com/jaydenseric/apollo-upload-client/pull/135).
Copy file name to clipboardExpand all lines: readme.md
+29-23Lines changed: 29 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -140,9 +140,9 @@ client.mutate({
140
140
141
141
Used to mark a [React Native `File` substitute](#type-reactnativefilesubstitute). It’s too risky to assume all objects with `uri`, `type` and `name` properties are files to extract. Re-exported from [`extract-files`](https://npm.im/extract-files) for convenience.
|`file`|[ReactNativeFileSubstitute](#type-reactnativefilesubstitute)| A React Native [`File`](https://developer.mozilla.org/docs/web/api/file) substitute. |
143
+
| Parameter | Type | Description |
144
+
| :-- | :-- | :-- |
145
+
|`file`|[ReactNativeFileSubstitute](#type-reactnativefilesubstitute)| A React Native [`File`](https://developer.mozilla.org/docs/web/api/file) substitute. |
146
146
147
147
#### Examples
148
148
@@ -158,19 +158,21 @@ _A React Native file that can be used in query or mutation variables._
158
158
> })
159
159
>```
160
160
161
+
---
162
+
161
163
### function createUploadLink
162
164
163
165
Creates a terminating [Apollo Link](https://apollographql.com/docs/link) capable of file uploads. Options match [`createHttpLink`](https://apollographql.com/docs/link/links/http#options).
| `options.fetch` | [function](https://mdn.io/function)? | [`fetch`](https://fetch.spec.whatwg.org) implementation to use, defaulting to the `fetch` global. |
| `type` | [String](https://mdn.io/string)? | File content type. Some environments (particularly Android) require a valid MIME type; Expo `ImageResult.type` is unreliable as it can be just `image`. |
226
+
| Property | Type | Description |
227
+
| :-- | :-- | :-- |
228
+
| `uri`| String| Filesystem path. |
229
+
| `name`| String? | File name. |
230
+
| `type`| String? | File content type. Some environments (particularly Android) require a valid MIME type; Expo `ImageResult.type` is unreliable as it can be just `image`. |
0 commit comments