From 553bb5dc5600b103905e3d40c722ebb387510a63 Mon Sep 17 00:00:00 2001 From: Richie Bendall Date: Wed, 6 May 2020 23:47:43 +1200 Subject: [PATCH] Export `AbortError` (Fixes: #792) Signed-off-by: Richie Bendall --- docs/CHANGELOG.md | 6 ++++++ src/index.js | 1 + 2 files changed, 7 insertions(+) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index b4ed4c5..5fc6fda 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -3,6 +3,12 @@ Changelog # 3.x release +## v3.0.0-beta.6 + +**Work in progress!** + +- Fix: Export the `AbortError` class. + ## v3.0.0-beta.5 > NOTE: Since the previous beta version included serious issues, such as [#749](https://github.com/node-fetch/node-fetch/issues/749), they will now be deprecated. diff --git a/src/index.js b/src/index.js index 3148194..b364099 100644 --- a/src/index.js +++ b/src/index.js @@ -309,3 +309,4 @@ fetch.Headers = Headers; fetch.Request = Request; fetch.Response = Response; fetch.FetchError = FetchError; +fetch.AbortError = AbortError;