From ac3f525c56d90150b8dc33ef7d9d43dfdda58539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Fri, 29 Nov 2024 12:25:00 +0100 Subject: [PATCH] updates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- docs/architecture-decisions/adr013-use-fetch.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/architecture-decisions/adr013-use-fetch.md b/docs/architecture-decisions/adr013-use-fetch.md index 9a9fd8b5d7..43f66fca0f 100644 --- a/docs/architecture-decisions/adr013-use-fetch.md +++ b/docs/architecture-decisions/adr013-use-fetch.md @@ -12,8 +12,8 @@ support burden of keeping said package up to date. ## Decision -Backend (node) packages should use the native `fetch` for HTTP data fetching, -and importing `undici` where necessary. Example: +All code that is executed in Node.js (including backend and CLIs) should use the +native `fetch` for HTTP data fetching. Example: ```ts import { ResponseError } from '@backstage/errors'; @@ -67,5 +67,5 @@ export class MyClient { ## Consequences -We will gradually transition away from third party packages such as `axios`, -`got`, `node-fetch` and others. +We will gradually transition away from third party `fetch` replacement packages +such as `node-fetch` and others on the Node.js platform.