From a5480d745bbc8102088b0a5d5c6062e84853b2c4 Mon Sep 17 00:00:00 2001 From: LazyAfternoons Date: Tue, 30 Jan 2024 17:19:27 +0100 Subject: [PATCH] chore: [IOAPPX-227] Remove abort-controller dependency (#5447) ## Short description This PR removes the unused `abort-controller` dependency found by running `npx depcheck`. The dependency was initially introduced in a previous [PR](https://github.com/pagopa/io-app/pull/284) when the project was using react-native version 0.55.4. However, its sole reference in the codebase was removed in a later [PR](https://github.com/pagopa/io-app/pull/3402) when the project was using react-native version 0.64.2. This makes sense since support for cancelling fetch requests with `AbortController` has been added in react-native version 0.60.0 as mentioned in the [relative issue](https://pagopa.atlassian.net/browse/IAI-23). I couldn't find any other reference to the library even by manually searching for `require('abort-controller')` in our codebase. ## How to test Static tests should be fine since the library is no longer referenced in the codebase anymore but I also checked the main functionalities of the app like login, messages, services and profile. Co-authored-by: Cristiano Tofani Co-authored-by: Mario Perrotta --- package.json | 1 - yarn.lock | 12 ------------ 2 files changed, 13 deletions(-) diff --git a/package.json b/package.json index 722dce13567..3b2aa48ce5e 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,6 @@ "@react-navigation/stack": "^5.14.9", "@redux-saga/testing-utils": "^1.1.3", "@xstate/react": "^3.0.1", - "abort-controller": "^1.0.2", "async-mutex": "^0.1.3", "buffer": "^4.9.1", "color": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index c0c757f034b..4bbe42459b7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4353,13 +4353,6 @@ abab@^2.0.3, abab@^2.0.5: resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a" integrity sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q== -abort-controller@^1.0.2: - version "1.1.0" - resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-1.1.0.tgz#89b6dbb47a2efcc3101bcd5c7868f87709528130" - integrity sha512-W7tP1xDfZFz1b7N59UBPwg/d9fIle1XZBuHU3BL2DDl38mHQz2bCKHyH+un5C/SN8a4u2GbutFCOVk7QmgL/fg== - dependencies: - event-target-shim "^3.0.0" - abort-controller@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392" @@ -8153,11 +8146,6 @@ etag@~1.8.1: resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== -event-target-shim@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-3.0.2.tgz#af25bb55a97c670bbeba985c82647fb64d892153" - integrity sha512-HK5GhnEAkm7fLy249GtF7DIuYmjLm85Ft6ssj7DhVl8Tx/z9+v0W6aiIVUdT4AXWGYy5Fc+s6gqBI49Bf0LejQ== - event-target-shim@^5.0.0, event-target-shim@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789"