From 53ad9b922f17de5568a1303ade1d82b49afae120 Mon Sep 17 00:00:00 2001 From: Colin McDonnell Date: Wed, 19 Jul 2023 23:59:15 -0700 Subject: Docs & types for 0.7 (#3665) * Docs & types for 0.7 * Tweak * Update * Tweaks * Tweak * Tweaks --------- Co-authored-by: Jarred Sumner --- docs/api/utils.md | 4 ++-- docs/api/workers.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/api') 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. -- cgit v1.2.3