From 7e37e625765800ac78a095e9c75d4c4222ef0f16 Mon Sep 17 00:00:00 2001 From: Rowan Manning <138944+rowanmanning@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:47:48 +0000 Subject: [PATCH 1/2] chore: mark fetch-error-handler as stable This library has been used in production for months and is now serving as a replacement for the deprecated `n-fetch` and `n-eager-fetch` libraries. There have been no reported issues, it's installed in 9 production systems (including content pipeline), and we're seeing ~2m errors per week in Splunk that were successfully handled by this library: ``` index IN (heroku, aws_cloudwatch) (error.code=FETCH_* OR error.cause.code=FETCH_*) ``` Release-As: 1.0.0 --- packages/fetch-error-handler/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/fetch-error-handler/README.md b/packages/fetch-error-handler/README.md index 5cc3a8d9..f53f8317 100644 --- a/packages/fetch-error-handler/README.md +++ b/packages/fetch-error-handler/README.md @@ -3,9 +3,6 @@ Properly handle fetch errors and avoid a lot of boilerplate in your app. This module is part of [FT.com Reliability Kit](https://github.com/Financial-Times/dotcom-reliability-kit#readme). -> [!WARNING]
-> This package is in beta and hasn't been tested extensively in production yet. Feel free to use, and any feedback is greatly appreciated. - * [Usage](#usage) * [Wrap the fetch function](#wrap-the-fetch-function) * [Handle errors with `.then`](#handle-errors-with-then) From b8b0e8310967f8bb17331bffd921d02326ade2ce Mon Sep 17 00:00:00 2001 From: Rowan Manning <138944+rowanmanning@users.noreply.github.com> Date: Wed, 29 Jan 2025 13:53:15 +0000 Subject: [PATCH 2/2] docs: add fetch-error-handler to the main README --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3373e85b..5b9b5166 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,9 @@ We maintain documentation in this repo: * **[@dotcom-reliability-kit/eslint-config](./packages/eslint-config/#readme):**
A linting config, specifically focussed on enhancing code quality and proactively catching errors/bugs before they make it into production. + * **[@dotcom-reliability-kit/fetch-error-handler](./packages/fetch-error-handler/#readme):**
+ Properly handle fetch errors and avoid a lot of boilerplate in your app. + * **[@dotcom-reliability-kit/log-error](./packages/log-error/#readme):**
A method to consistently log error object with optional request information