Skip to content

Commit

Permalink
Add serializeAsync compat
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Sep 8, 2023
1 parent ef43396 commit 2da1487
Showing 1 changed file with 56 additions and 53 deletions.
109 changes: 56 additions & 53 deletions docs/compatibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,59 +2,59 @@

## Supported Types

| Type | `serialize` |
| --- | --- |
| `NaN` ||
| `Infinity` ||
| `-Infinity` ||
| `-Infinity` ||
| `-0` ||
| `number` ||
| `string` ||
| `boolean` ||
| `null` ||
| `undefined` ||
| `bigint` |[^1] |
| `Array` ||
| sparse (holey) `Arrays` ||
| `Object` ||
| `RegExp` ||
| `Date` ||
| `Map` |[^2] |
| `Set` |[^3] |
| `Object.create(null)` ||
| `ArrayBuffer` ||
| `DataView` ||
| `Int8Array` |[^4] |
| `Int16Array` |[^4] |
| `Int32Array` |[^4] |
| `Uint8Array` |[^4] |
| `Uint16Array` |[^4] |
| `Uint32Array` |[^4] |
| `Uint8ClampedArray` |[^4] |
| `Float32Array` |[^4] |
| `Float64Array` |[^4] |
| `BigInt64Array` |[^1][^5] |
| `BigUint64Array` |[^1][^5] |
| `Error` |[^6] |
| `AggregateError` |[^6][^7] |
| `EvalError` |[^6] |
| `RangeError` |[^6] |
| `ReferenceError` |[^6] |
| `SyntaxError` |[^6] |
| `TypeError` |[^6] |
| `URIError` |[^6] |
| `Promise` ||
| [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_protocol) |[^8] |
| [Well-known symbols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#static_properties) |[^8] |
| [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) |[^9] |
| [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) |[^9] |
| [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) ||
| [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) ||
| [`Headers`](https://developer.mozilla.org/en-US/docs/Web/API/Headers) |[^9] |
| [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) |[^9] |
| Cyclic references ||
| Isomorphic references ||
| Type | `serialize` | `serializeAsync` |
| --- | --- | --- |
| `NaN` |||
| `Infinity` |||
| `-Infinity` |||
| `-Infinity` |||
| `-0` |||
| `number` |||
| `string` |||
| `boolean` |||
| `null` |||
| `undefined` |||
| `bigint` |[^1] |[^1] |
| `Array` |||
| sparse (holey) `Arrays` |||
| `Object` |||
| `RegExp` |||
| `Date` |||
| `Map` |[^2] |[^2] |
| `Set` |[^3] |[^3] |
| `Object.create(null)` |||
| `ArrayBuffer` |||
| `DataView` |||
| `Int8Array` |[^4] |[^4] |
| `Int16Array` |[^4] |[^4] |
| `Int32Array` |[^4] |[^4] |
| `Uint8Array` |[^4] |[^4] |
| `Uint16Array` |[^4] |[^4] |
| `Uint32Array` |[^4] |[^4] |
| `Uint8ClampedArray` |[^4] |[^4] |
| `Float32Array` |[^4] |[^4] |
| `Float64Array` |[^4] |[^4] |
| `BigInt64Array` |[^1][^5] |[^1][^5] |
| `BigUint64Array` |[^1][^5] |[^1][^5] |
| `Error` |[^6] |[^6] |
| `AggregateError` |[^6][^7] |[^6][^7] |
| `EvalError` |[^6] |[^6] |
| `RangeError` |[^6] |[^6] |
| `ReferenceError` |[^6] |[^6] |
| `SyntaxError` |[^6] |[^6] |
| `TypeError` |[^6] |[^6] |
| `URIError` |[^6] |[^6] |
| `Promise` ||[^11] |
| [`Iterable`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#the_iterable_protocol) |[^8] |[^8] |
| [Well-known symbols](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol#static_properties) |[^8] |[^8] |
| [`URL`](https://developer.mozilla.org/en-US/docs/Web/API/URL) |[^9] |[^9] |
| [`URLSearchParams`](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) |[^9] |[^9] |
| [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) ||[^9] |
| [`File`](https://developer.mozilla.org/en-US/docs/Web/API/File) ||[^9] |
| [`Headers`](https://developer.mozilla.org/en-US/docs/Web/API/Headers) |[^9] |[^9] |
| [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData) |[^9][^10] |[^9] |
| Cyclic references |||
| Isomorphic references |||

[^1]: `Feature.BigInt` must be enabled, otherwise throws an `UnsupportedTypeError`.
[^2]: `Feature.Map` must be enabled, otherwise throws an `UnsupportedTypeError`.
Expand All @@ -65,3 +65,6 @@
[^7]: `Feature.AggregateError` must be enabled, otherwise `AggregateError` is serialized into an `Error` instance.
[^8]: `Feature.Symbol` must be enabled, otherwise throws an `UnsupportedTypeError`.
[^9]: `Feature.WebAPI` must be enabled, otherwise throws an `UnsupportedTypeError`.
[^10]: `FormData` is partially supported if it doesn't contain any `Blob` or `File` instances.
[^11]: `Feature.Promise` must be enabled, otherwise throws an `UnsupportedTypeError`.

0 comments on commit 2da1487

Please sign in to comment.