|
16 | 16 | method can return synchronously. |
17 | 17 | - Fix `ReadableStreamSource.fromStream` cancel after error ([#6](https://github.com/Zekfad/fetch_api/issues/6)) |
18 | 18 | - Add `canStreamRequests` function to check if streaming is supported in |
19 | | - current browser. |
| 19 | + current browsers. |
20 | 20 |
|
21 | 21 | ## 2.2.0 |
22 | 22 |
|
|
30 | 30 | single `AbortType`. |
31 | 31 | Method itself now always returns `ReadableStream<JSUint8Array, AbortType>`, |
32 | 32 | this means that any `TypedData` is re-viewed to be `Uint8List`. |
33 | | -- **BREAKING** `RequestBody` and `ResponseBody` now constructable only from |
| 33 | +- **BREAKING** `RequestBody` and `ResponseBody` now constructible only from |
34 | 34 | JS types: |
35 | 35 | - Removed `fromByteBuffer` instead added `fromJSArrayBuffer`. |
36 | 36 | - Removed `fromTypedData` instead added `fromJSTypedArray`. |
|
42 | 42 | - Fixed `Response` and `Request` not working in WASM: this happened due to JS |
43 | 43 | runtime being more lax in type assertions, namely `JSString` as `String` is |
44 | 44 | ok in JS runtime, but fails in WASM. |
45 | | -- `Response` and `Request` now uses precise type |
| 45 | +- `Response` and `Request` now use precise type |
46 | 46 | `ReadableStream<JSUint8Array, JSAny>` |
47 | 47 |
|
48 | 48 | ## 2.1.0 |
49 | 49 |
|
50 | 50 | - Add `package:fetch_api/enums.dart` `fetch_api.enums` package with enumerations |
51 | | - available to all platforms (including VM). |
| 51 | + available for all platforms (including VM). |
52 | 52 | - Use `DOMException` from `package:web` instead of alias to`JSObject`. |
53 | 53 | - Enumerations use `if (dart.library.io) ''` for documentation-only imports, |
54 | 54 | this allows to use them in non-JS environments. |
|
59 | 59 | - Full rewrite to use `extension type`s - no more `InstanceMembers`. |
60 | 60 | - Internal JS Iterators are now fully covered with generics. |
61 | 61 | - JS Iterator is no longer exported via public API. |
62 | | -- `Headers` uses `(String, String)` in entries instead of `List<String>`. |
| 62 | +- `Headers` now use `(String, String)` in entries instead of `List<String>`. |
63 | 63 | - `FetchOptions` and `RequestOptions` are now inherited from `RequestInit` |
64 | 64 | and interchangeable. |
65 | 65 | - `ReadableStreamSource` `start`, `pull` and `cancel` are now only callable |
|
89 | 89 | ## 1.0.0-dev.5 |
90 | 90 |
|
91 | 91 | - **BREAKING**: Renamed `RequestInit` to `FetchOptions`. |
92 | | - This is done to make emphasis, that `fetch` and `Request` have different |
| 92 | + This is done to make emphatic, that `fetch` and `Request` have different |
93 | 93 | (default) behaviors. |
94 | 94 | - Added `Request`. |
95 | 95 | - Added `RequestDuplex`. This adds support for request streaming in supported |
|
108 | 108 | - Added `createRequestOptions`. |
109 | 109 | - Added `createReadableStream`. |
110 | 110 | - Added `createReadableStreamSourceFromStream`. |
111 | | -- Fixed dev dependencies versions, to allow running on Dart 2.19. |
| 111 | +- Fixed dev dependency versions, to allow running on Dart 2.19. |
112 | 112 |
|
113 | 113 |
|
114 | 114 | ## 1.0.0-dev.4 |
|
0 commit comments