diff options
author | 2023-07-19 23:59:15 -0700 | |
---|---|---|
committer | 2023-07-19 23:59:15 -0700 | |
commit | 53ad9b922f17de5568a1303ade1d82b49afae120 (patch) | |
tree | a511b84021d6901912d0ca71c6a13a4ad132c858 /docs/api | |
parent | 0b365781a8ddbea40ec3259e5bf0435c9aebc0a6 (diff) | |
download | bun-53ad9b922f17de5568a1303ade1d82b49afae120.tar.gz bun-53ad9b922f17de5568a1303ade1d82b49afae120.tar.zst bun-53ad9b922f17de5568a1303ade1d82b49afae120.zip |
Docs & types for 0.7 (#3665)
* Docs & types for 0.7
* Tweak
* Update
* Tweaks
* Tweak
* Tweaks
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
Diffstat (limited to 'docs/api')
-rw-r--r-- | docs/api/utils.md | 4 | ||||
-rw-r--r-- | docs/api/workers.md | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/docs/api/utils.md b/docs/api/utils.md index 7366649b7..2723edf7c 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -247,7 +247,7 @@ Bun.deepEquals(new Foo(), { a: 1 }, true); // false ## `Bun.escapeHTML()` -`Bun.escapeHTML(value: string | object | number | boolean): boolean` +`Bun.escapeHTML(value: string | object | number | boolean): string` Escapes the following characters from an input string: @@ -402,7 +402,7 @@ The second argument supports the same set of configuration options as [`Bun.gzip ## `Bun.inflateSync()` -DEcompresses a `Uint8Array` using zlib's INFLATE algorithm. +Decompresses a `Uint8Array` using zlib's INFLATE algorithm. ```ts const buf = Buffer.from("hello".repeat(100)); diff --git a/docs/api/workers.md b/docs/api/workers.md index af459d18e..ba45d7cc1 100644 --- a/docs/api/workers.md +++ b/docs/api/workers.md @@ -1,5 +1,5 @@ {% callout %} -`Worker` support was added in Bun v0.6.15. +`Worker` support was added in Bun v0.7.0. {% /callout %} [`Worker`](https://developer.mozilla.org/en-US/docs/Web/API/Worker) lets you start and communicate with a new JavaScript instance running on a separate thread while sharing I/O resources with the main thread. |