diff --git a/README.md b/README.md index 80bca1690ee..5380481dc15 100644 --- a/README.md +++ b/README.md @@ -46,23 +46,6 @@ The OpenAPI Specification has undergone 5 revisions since initial creation in 20 | 1.0.13 | 2013-03-08 | 1.1, 1.2 | [tag v1.0.13](https://github.com/swagger-api/swagger-ui/tree/v1.0.13) | | 1.0.1 | 2011-10-11 | 1.0, 1.1 | [tag v1.0.1](https://github.com/swagger-api/swagger-ui/tree/v1.0.1) | -## Anonymized analytics - -SwaggerUI uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`: - -``` -// package.json -{ - // ... - "scarfSettings": { - "enabled": false - } - // ... -} -``` - -Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`. - ## Documentation #### Usage diff --git a/flavors/swagger-ui-react/README.md b/flavors/swagger-ui-react/README.md index 50a2e8e0881..e66637003c3 100644 --- a/flavors/swagger-ui-react/README.md +++ b/flavors/swagger-ui-react/README.md @@ -10,24 +10,6 @@ It has a few differences from the main version of Swagger UI: Versions of this module mirror the version of Swagger UI included in the distribution. -## Anonymized analytics - -`swagger-ui-react` uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`: - -``` -// package.json -{ - // ... - "scarfSettings": { - "enabled": false - } - // ... -} -``` - -Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`. - - ## Quick start Install `swagger-ui-react`: diff --git a/package-lock.json b/package-lock.json index cedd9566554..8f0dd0a92c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "^7.27.1", - "@scarf/scarf": "=1.4.0", "base64-js": "^1.5.1", "buffer": "^6.0.3", "classnames": "^2.5.1", @@ -5550,11 +5549,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@scarf/scarf": { - "version": "1.4.0", - "hasInstallScript": true, - "license": "Apache-2.0" - }, "node_modules/@sideway/address": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/@sideway/address/-/address-4.1.5.tgz", @@ -26458,7 +26452,6 @@ "license": "Apache-2.0", "dependencies": { "@babel/runtime-corejs3": "^7.22.15", - "@scarf/scarf": "=1.4.0", "@swagger-api/apidom-core": ">=1.0.0-beta.41 <1.0.0-rc.0", "@swagger-api/apidom-error": ">=1.0.0-beta.41 <1.0.0-rc.0", "@swagger-api/apidom-json-pointer": ">=1.0.0-beta.41 <1.0.0-rc.0", diff --git a/package.json b/package.json index 523f61745d1..f7fadea1ad3 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,6 @@ }, "dependencies": { "@babel/runtime-corejs3": "^7.27.1", - "@scarf/scarf": "=1.4.0", "base64-js": "^1.5.1", "buffer": "^6.0.3", "classnames": "^2.5.1", diff --git a/swagger-ui-dist-package/README.md b/swagger-ui-dist-package/README.md index 6d198eb4542..662842270a5 100644 --- a/swagger-ui-dist-package/README.md +++ b/swagger-ui-dist-package/README.md @@ -1,24 +1,6 @@ # Swagger UI Dist [![NPM version](https://badge.fury.io/js/swagger-ui-dist.svg)](http://badge.fury.io/js/swagger-ui-dist) -## Anonymized analytics - -SwaggerUI Dist uses [Scarf](https://scarf.sh/) to collect [anonymized installation analytics](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-what-information-does-scarf-js-send-about-me). These analytics help support the maintainers of this library and ONLY run during installation. To [opt out](https://github.com/scarf-sh/scarf-js?tab=readme-ov-file#as-a-user-of-a-package-using-scarf-js-how-can-i-opt-out-of-analytics), you can set the `scarfSettings.enabled` field to `false` in your project's `package.json`: - -``` -// package.json -{ - // ... - "scarfSettings": { - "enabled": false - } - // ... -} -``` - -Alternatively, you can set the environment variable `SCARF_ANALYTICS` to `false` as part of the environment that installs your npm packages, e.g., `SCARF_ANALYTICS=false npm install`. - - # API This module, `swagger-ui-dist`, exposes Swagger-UI's entire dist folder as a dependency-free npm module. diff --git a/swagger-ui-dist-package/package.json b/swagger-ui-dist-package/package.json index 41ffb2ba017..f4ddd7cf335 100644 --- a/swagger-ui-dist-package/package.json +++ b/swagger-ui-dist-package/package.json @@ -13,8 +13,6 @@ "Sahar Jafari " ], "license": "Apache-2.0", - "dependencies": { - "@scarf/scarf": "=1.4.0" - }, + "dependencies": {}, "devDependencies": {} }